/* =========================================================================
   Coxen & King Group — marketing site
   Palette: Navy / Cream / Sage / Terracotta / Charcoal
   ========================================================================= */

@font-face {
  font-family: 'Gordita';
  src: url('fonts/Gordita-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gordita';
  src: url('fonts/Gordita-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gordita';
  src: url('fonts/Gordita-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy:       #1B2A41;
  --navy-95:    rgba(27, 42, 65, 0.95);
  --navy-65:    rgba(27, 42, 65, 0.65);
  --navy-0:     rgba(27, 42, 65, 0);
  --cream:      #F5F1E8;
  --cream-80:   rgba(245, 241, 232, 0.80);
  --cream-40:   rgba(245, 241, 232, 0.40);
  --sage:       #A7A794;
  --sage-band:  #A7A794;
  --terracotta: #C07A5A;
  --charcoal:   #2E2E2E;
  --gold:       #C8A96A;

  --font-display: 'Gordita', 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body:    'Manrope', system-ui, -apple-system, sans-serif;

  --s1: 8px;  --s2: 16px; --s3: 24px;
  --s4: 32px; --s5: 48px; --s6: 64px;
  --s7: 80px; --s8: 120px;

  --content-max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }
a:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--s5);
}

/* ----- Header --------------------------------------------------------- */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  color: var(--cream);
}

.site-header__inner {
  padding: var(--s4) var(--s5);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--s6);
}

.site-header__logo {
  display: block;
  flex-shrink: 0;
}
.site-header__logo-img {
  /* The logo SVG has a 1:1 canvas with padding around the wordmark.
     Crop the padding with object-fit:cover; object-position:left pulls
     the wordmark flush to the container's left padding. The remaining
     ~5.7% of internal padding inside the SVG is matched on the hero
     content's padding-left so the wordmark and hero text line up. */
  width: clamp(240px, 26vw, 360px);
  height: clamp(44px, 4.5vw, 64px);
  object-fit: cover;
  object-position: left;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--s5);
}
.site-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17pt;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  transition: color 160ms ease;
}
.site-nav a:hover { color: var(--terracotta); }

/* Hamburger toggle — hidden on desktop, shown on mobile via media query. */
.site-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-left: auto;
  background: transparent;
  border: none;
  cursor: pointer;
}
.site-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--cream);
  border-radius: 1px;
  transition: transform 200ms ease, opacity 200ms ease;
  transform-origin: center;
}
.site-nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.site-nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ----- Hero ----------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg,
      var(--navy-95) 0%,
      var(--navy-95) 28%,
      var(--navy-65) 48%,
      var(--navy-0)  72%);
}

.hero__content {
  width: 100%;
  /* Left padding is the header's left padding (--s5) plus 5.7% of the
     logo's rendered width, which is the SVG's internal padding before
     the "C" of COXEN starts. Keeps hero text aligned with the wordmark. */
  padding: var(--s8) var(--s5) var(--s7) calc(var(--s5) + clamp(240px, 26vw, 360px) * 0.057);
  color: var(--cream);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin: 0 0 var(--s4);
  max-width: 14ch;
}

.hero__lede {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17pt;
  line-height: 1.6;
  color: var(--cream-80);
  margin: 0 0 var(--s5);
  max-width: 34ch;
}

/* ----- Button --------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: var(--s2) var(--s4);
  border-radius: 2px;
  transition: background-color 160ms ease, color 160ms ease;
}
.btn--primary {
  background: var(--terracotta);
  color: var(--cream);
}
.btn--primary:hover {
  background: #a85a3d;
}

/* ----- Approach ------------------------------------------------------- */

.approach {
  background: var(--cream);
  padding: var(--s8) 0 var(--s8);
  text-align: center;
}

.approach__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 var(--s3);
}
.eyebrow--accent { color: var(--terracotta); }

/* Hero variant overrides .eyebrow--accent; must come after it in source order. */
.eyebrow--hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--terracotta);
  color: var(--cream);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 1.25rem;
  letter-spacing: 0.18em;
  margin: 0 0 var(--s4);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.eyebrow--hero::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--cream);
  border-radius: 50%;
  animation: coming-soon-pulse 1.8s ease-in-out infinite;
}

@keyframes coming-soon-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.8); }
}

.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 var(--s3);
}

.rule {
  display: block;
  width: 56px;
  height: 2px;
  background: var(--terracotta);
  margin: var(--s2) 0 var(--s7);
}

.approach__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--navy);
  margin-bottom: var(--s4);
}

.card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 var(--s3);
}

.card__body {
  font-family: var(--font-body);
  font-size: 17pt;
  line-height: 1.6;
  color: var(--charcoal);
  margin: 0;
  max-width: 26ch;
}

/* ----- About ---------------------------------------------------------- */

.about {
  background: var(--cream);
  padding: var(--s8) 0;
  border-top: 1px solid rgba(46, 46, 46, 0.08);
}

.about__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about__body {
  font-family: var(--font-body);
  font-size: 17pt;
  line-height: 1.7;
  color: var(--charcoal);
  max-width: 62ch;
  margin: 0 auto var(--s7);
}

.stats {
  list-style: none;
  margin: 0;
  padding: var(--s5) 0 0;
  width: 100%;
  max-width: 880px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
  border-top: 1px solid rgba(46, 46, 46, 0.12);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  align-items: center;
}

.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--terracotta);
}

.stat__label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
}

/* ----- Service band --------------------------------------------------- */

.service-band {
  background: var(--sage-band);
}

.service-band__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--s4) var(--s5);
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: var(--s3);
}

.service-band a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  padding: var(--s1) var(--s3);
  position: relative;
  transition: color 160ms ease;
}
.service-band a:hover { color: var(--cream); }

.service-band a + a::before {
  content: "";
  position: absolute;
  left: calc(var(--s3) * -0.5);
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: var(--gold);
}

/* ----- CTA ("Be the first to know") ----------------------------------- */

.cta {
  background: var(--navy);
  color: var(--cream);
  padding: var(--s8) 0;
}

.cta__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow--on-dark { color: var(--terracotta); }

.cta__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin: 0 0 var(--s3);
}

.cta__body {
  font-family: var(--font-body);
  font-size: 17pt;
  line-height: 1.7;
  color: var(--cream-80);
  margin: 0 0 var(--s5);
  max-width: 52ch;
}

.cta__contact {
  font-size: 0.9rem;
  color: var(--cream-80);
  margin: var(--s4) 0 0;
}
.cta__contact a {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cta__contact a:hover { color: var(--terracotta); }

/* ----- Footer --------------------------------------------------------- */

.site-footer {
  background: var(--navy);
  color: var(--cream-80);
  border-top: 1px solid var(--cream-15, rgba(245, 241, 232, 0.15));
  padding: var(--s5) 0 var(--s4);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--s3);
}

.social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--s2);
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--cream-40);
  border-radius: 50%;
  color: var(--cream);
  transition: color 160ms ease, border-color 160ms ease;
}
.social a:hover {
  color: var(--terracotta);
  border-color: var(--terracotta);
}

.site-footer__copy {
  font-size: 0.82rem;
  margin: 0;
  letter-spacing: 0.04em;
}

/* ----- Responsive ----------------------------------------------------- */

@media (max-width: 900px) {
  .site-header {
    position: relative;
    background: var(--navy);
  }
  .site-header__inner {
    padding: var(--s3) var(--s4);
    gap: var(--s3);
    flex-wrap: wrap;
    align-items: center;
  }
  .site-nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    width: 100%;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s3);
    padding-top: var(--s3);
    margin-top: var(--s3);
    border-top: 1px solid var(--cream-40);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { font-size: 14pt; letter-spacing: 0.1em; }

  .hero { min-height: auto; }
  .hero__content { padding: var(--s7) var(--s4) var(--s6); }
  .hero__overlay {
    background:
      linear-gradient(180deg,
        var(--navy-95) 0%,
        var(--navy-65) 60%,
        var(--navy-95) 100%);
  }
  .hero__title  { max-width: 100%; }
  .hero__lede   { max-width: 38ch; font-size: 15pt; }
  .card__body   { font-size: 15pt; }
  .about__body  { font-size: 15pt; }
  .cta__body    { font-size: 15pt; }

  .approach { padding: var(--s7) 0; }
  .approach__grid {
    grid-template-columns: 1fr;
    gap: var(--s6);
    max-width: 360px;
  }

  .service-band__inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--s2) var(--s4);
  }
  .service-band a + a::before { display: none; }

  .about { padding: var(--s7) 0; }
  .stats {
    grid-template-columns: 1fr;
    gap: var(--s3);
    padding-top: var(--s4);
  }

  .cta { padding: var(--s7) 0; }

  .site-footer__inner {
    justify-content: center;
    text-align: center;
    gap: var(--s3);
  }
}

@media (max-width: 560px) {
  .site-nav a { font-size: 13pt; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ----- "Currently under construction" modal --------------------------- */

.cs-modal[hidden] { display: none; }

.cs-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s4);
  opacity: 0;
  transition: opacity 180ms ease;
}
.cs-modal.is-open { opacity: 1; }

.cs-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 42, 65, 0.7);
}

.cs-modal__panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--cream);
  color: var(--navy);
  padding: var(--s5);
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.cs-modal__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--terracotta);
  margin: 0 0 var(--s2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.cs-modal__body {
  font-family: var(--font-body);
  font-size: 17pt;
  line-height: 1.5;
  color: var(--charcoal);
  margin: 0 0 var(--s4);
}

.cs-modal__ok {
  margin-top: var(--s2);
  border: 0;
  cursor: pointer;
}

@media (max-width: 900px) {
  .cs-modal__body { font-size: 15pt; }
}
