/* Cox Enterprises — shared styles.
   Loaded by the home page and by every generated sub-page, so keep component
   classes generic rather than tied to one page's content. */

:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-warm: #f4efe6;
  --ink: #201c17;
  --ink-soft: #5c544a;
  --accent: #b4470f;
  --accent-dark: #8f3809;
  --accent-wash: #fdf0e6;
  --line: #e6ded1;
  --shadow: 0 1px 2px rgba(32, 28, 23, .05), 0 8px 24px rgba(32, 28, 23, .06);
  --radius: 14px;
  --wrap: 68rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.021em; margin: 0; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.12rem; letter-spacing: -.01em; }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip {
  position: absolute;
  left: -9999px;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
  z-index: 100;
}
.skip:focus { left: 0; top: 0; color: #fff; }

:where(a, button):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 247, 242, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: 9px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.brand span small {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 11px;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-sm { padding: 10px 16px; font-size: .95rem; }

/* ---------- hero ---------- */

.hero { padding-block: clamp(40px, 7vw, 76px) clamp(32px, 5vw, 56px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-wash);
  color: var(--accent-dark);
  border: 1px solid #f3d9c4;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 { margin-bottom: 18px; }
.hero h1 .accent { color: var(--accent); }
.lede {
  font-size: clamp(1.06rem, 2.2vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 34rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-note {
  margin-top: 16px;
  font-size: .92rem;
  color: var(--ink-soft);
}

.portrait {
  position: relative;
  margin: 0;
}
.portrait img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.portrait figcaption {
  margin-top: 14px;
  font-size: .92rem;
  color: var(--ink-soft);
  text-align: center;
}
.portrait figcaption b { color: var(--ink); }

/* ---------- sections ---------- */

.section { padding-block: clamp(44px, 6vw, 72px); }
.section-alt { background: var(--surface-warm); border-block: 1px solid var(--line); }
.section-head { max-width: 40rem; margin-bottom: 34px; }
.section-head p { color: var(--ink-soft); margin-top: 12px; }

/* ---------- services ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--accent-wash);
  color: var(--accent);
  margin-bottom: 16px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .97rem; }

/* ---------- quote ---------- */

.quote {
  background: var(--ink);
  color: #f6f2ec;
  border-radius: var(--radius);
  padding: clamp(30px, 5vw, 52px);
  text-align: center;
}
.quote blockquote {
  margin: 0;
  font-size: clamp(1.25rem, 3.4vw, 1.85rem);
  line-height: 1.35;
  letter-spacing: -.02em;
  font-weight: 600;
}
.quote cite {
  display: block;
  margin-top: 18px;
  font-style: normal;
  font-size: .93rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #c3b8a8;
}

/* ---------- work ---------- */

.work-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
  padding: 0;
  list-style: none;
}
.work-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 18px 20px;
  font-weight: 600;
}
.work-list span {
  display: block;
  font-weight: 500;
  font-size: .92rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 30px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.contact-card .label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.contact-card .value {
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -.02em;
  text-decoration: none;
  word-break: break-word;
}
.contact-card .hint {
  margin-top: 8px;
  font-size: .92rem;
  color: var(--ink-soft);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 34px;
  font-size: .93rem;
  color: var(--ink-soft);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
}
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--accent); }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 22rem; margin-inline: auto; order: -1; }
  .hero { padding-top: 32px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .header-cta { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- case study ---------- */

.case-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(26px, 5vw, 52px);
  align-items: center;
}
.case-video {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #14110e;
}
.case-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.case-role {
  display: inline-block;
  background: var(--accent-wash);
  color: var(--accent-dark);
  border: 1px solid #f3d9c4;
  border-radius: 999px;
  padding: 5px 13px;
  font-size: .8rem;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.case-body p + p { margin-top: 14px; }
.case-body p { color: var(--ink-soft); }
.case-body h2 { margin-bottom: 16px; color: var(--ink); }

@media (max-width: 860px) {
  .case-grid { grid-template-columns: 1fr; }
}

/* ---------- area pages ---------- */

.crumbs {
  font-size: .9rem;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs span[aria-hidden] { margin-inline: 6px; opacity: .5; }

.prose { max-width: 44rem; }
.prose h2 { margin-bottom: 16px; }
.prose p + p { margin-top: 14px; }
.prose p { color: var(--ink-soft); }
.meta-line {
  font-size: .9rem;
  letter-spacing: .01em;
}
.meta-line strong { color: var(--ink); }

.tick-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 12px;
}
.tick-list li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 15px 18px 15px 46px;
  color: var(--ink-soft);
  font-size: .97rem;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 19px;
  width: 15px;
  height: 9px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.chips li { display: block; }
.chips a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: .94rem;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .12s ease, color .12s ease;
}
.chips a:hover { border-color: var(--accent); color: var(--accent); }

.area-group + .area-group { margin-top: 30px; }
.area-group h3 {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
