/* ============================================================
   FACEVO — style.css
   Wabi-Sabi Digital theme
   ============================================================ */


:root {
  --color-clay: #3d2b1f;
  --color-clay-mid: #5c3d2e;
  --color-earth: #8b5e3c;
  --color-sand: #c9a87c;
  --color-linen: #f4ede3;
  --color-cream: #faf6f0;
  --color-moss: #4a5240;
  --color-sage: #7a8c6e;
  --color-sage-light: #b5c4a8;
  --color-fog: #e8e2d9;
  --color-charcoal: #2a2420;
  --color-text: #2e2419;
  --color-text-mid: #5a4a3a;
  --color-text-light: #8a7a6a;
  --color-accent: #c47a3a;
  --color-accent-deep: #9e5e22;
  --color-white: #fdfaf6;

  --shadow-xs: 0 1px 3px rgba(45,36,25,0.08), 0 1px 2px rgba(45,36,25,0.06);
  --shadow-sm: 0 2px 6px rgba(45,36,25,0.10), 0 1px 3px rgba(45,36,25,0.07);
  --shadow-md: 0 4px 16px rgba(45,36,25,0.12), 0 2px 6px rgba(45,36,25,0.08);
  --shadow-lg: 0 8px 32px rgba(45,36,25,0.14), 0 4px 12px rgba(45,36,25,0.09);
  --shadow-xl: 0 16px 48px rgba(45,36,25,0.16), 0 6px 20px rgba(45,36,25,0.10);

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;

  --font-body: 'Epilogue', sans-serif;
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --nav-height: 76px;
}


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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-cream);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;

  &::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
  }
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);

  &:hover {
    color: var(--color-accent-deep);
  }
}

ul {
  list-style: none;
}

address {
  font-style: normal;
}


h1, h2, h3, h4, h5 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-clay);
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1rem; font-weight: 600; }

p {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: var(--color-text-mid);
  line-height: 1.78;

  & + p {
    margin-top: 1em;
  }
}


.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;

  &::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.12);
    opacity: 0;
    transition: opacity var(--transition);
    border-radius: inherit;
  }

  &:hover::after {
    opacity: 1;
  }
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm), 0 0 0 0 rgba(196,122,58,0.3);

  &:hover {
    background: var(--color-accent-deep);
    border-color: var(--color-accent-deep);
    color: var(--color-white);
    box-shadow: var(--shadow-md), 0 0 0 4px rgba(196,122,58,0.15);
    transform: translateY(-2px);
  }

  &:active {
    transform: translateY(0);
  }
}

.btn--outline {
  background: transparent;
  color: var(--color-clay);
  border-color: var(--color-clay);

  &:hover {
    background: var(--color-clay);
    color: var(--color-cream);
    transform: translateY(-2px);
  }
}

.btn--outline-light {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(253,250,246,0.6);

  &:hover {
    background: rgba(253,250,246,0.15);
    border-color: var(--color-white);
    color: var(--color-white);
    transform: translateY(-2px);
  }
}

.btn--small {
  padding: 0.5rem 1.2rem;
  font-size: 0.875rem;
}

.btn--large {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}


.nav {
  position: relative;
  z-index: 100;
  background: rgba(250,246,240,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,124,0.2);
  height: var(--nav-height);

  & .nav__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    height: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--space-md);
  }

  & .nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-md);

    &.nav__links--left {
      justify-content: flex-end;
    }

    &.nav__links--right {
      justify-content: flex-start;
    }
  }

  & .nav__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-mid);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;

    &::after {
      content: '';
      position: absolute;
      bottom: -2px;
      left: 0;
      width: 0;
      height: 2px;
      background: var(--color-accent);
      border-radius: 2px;
      transition: width var(--transition);
    }

    &:hover {
      color: var(--color-clay);

      &::after {
        width: 100%;
      }
    }

    &.nav__link--active {
      color: var(--color-clay);
      font-weight: 600;

      &::after {
        width: 100%;
      }
    }
  }

  & .nav__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition);

    &:hover {
      transform: scale(1.03);
    }
  }

  & .nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);

    & span {
      display: block;
      width: 24px;
      height: 2px;
      background: var(--color-clay);
      border-radius: 2px;
      transition: all var(--transition);
    }
  }
}

.nav--transparent {
  background: transparent;
  border-bottom-color: rgba(253,250,246,0.15);

  & .nav__link {
    color: rgba(253,250,246,0.8);

    &:hover {
      color: var(--color-white);
    }
  }
}


.mobile-tab-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(250,246,240,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(201,168,124,0.25);
  padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(45,36,25,0.10);

  & .tab-bar__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 4px;
    color: var(--color-text-light);
    font-size: 0.65rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
    border-radius: var(--radius-sm);
    min-height: 44px;
    justify-content: center;

    & i {
      font-size: 1.1rem;
    }

    &.tab-bar__item--active {
      color: var(--color-accent);
    }

    &:hover {
      color: var(--color-clay);
    }
  }
}


.section {
  padding: var(--space-2xl) 0;
  position: relative;

  & .section__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);

    &.section__inner--narrow {
      max-width: 780px;
    }

    &.section__inner--wide {
      max-width: 1400px;
    }
  }

  & .section__heading {
    margin-bottom: var(--space-md);
    color: var(--color-clay);

    &.section__heading--center {
      text-align: center;
    }
  }

  & .section__sub {
    font-size: 1.1rem;
    color: var(--color-text-mid);
    margin-top: -0.75rem;
    margin-bottom: var(--space-lg);

    &.section__sub--center {
      text-align: center;
    }
  }
}

.section--dark {
  background: var(--color-clay);

  & h1, & h2, & h3 {
    color: var(--color-linen);
  }

  & p {
    color: rgba(244,237,227,0.75);
  }
}


.hero {
  min-height: calc(100vh - var(--nav-height));
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-2xl) var(--space-md);
  max-width: 1280px;
  margin: 0 auto;
  position: relative;

  & .hero__texture {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(ellipse at 70% 30%, rgba(196,122,58,0.07) 0%, transparent 60%),
                      radial-gradient(ellipse at 20% 80%, rgba(122,140,110,0.06) 0%, transparent 50%);
    pointer-events: none;
  }

  & .hero__eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
  }

  & .hero__headline {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-clay);
    margin-bottom: var(--space-md);
  }

  & .hero__rotate-wrap {
    display: inline-block;
    position: relative;
    overflow: hidden;
    vertical-align: bottom;
    height: 1.1em;
    min-width: 200px;
  }

  & .hero__rotate {
    display: block;
    position: relative;
  }

  & .hero__word {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    color: var(--color-accent);
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
    white-space: nowrap;

    &.hero__word--active {
      opacity: 1;
      transform: translateY(0);
      position: relative;
    }
  }

  & .hero__sub {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--color-text-mid);
    max-width: 520px;
    margin-bottom: var(--space-lg);
    line-height: 1.75;
  }

  & .hero__actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
  }

  & .hero__image-wrap {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);

    &::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(196,122,58,0.08) 0%, transparent 60%);
      z-index: 1;
      pointer-events: none;
    }
  }

  & .hero__image {
    width: 100%;
    height: 560px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    transition: transform var(--transition-slow);

    &:hover {
      transform: scale(1.02);
    }
  }

  & .hero__image-accent {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--color-sand);
    opacity: 0.25;
    z-index: -1;
  }

  & .hero__scroll-hint {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--color-text-light);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    animation: scrollBounce 2s ease-in-out infinite;

    & i {
      font-size: 0.9rem;
    }
  }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}


[data-splitting] .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  animation: charReveal 0.6s forwards;
  animation-delay: calc(0.03s * var(--char-index));
}

@keyframes charReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.gradient-bridge {
  height: 120px;
  pointer-events: none;

  &.gradient-bridge--warm {
    background: linear-gradient(to bottom, var(--color-cream), var(--color-linen));
  }

  &.gradient-bridge--cool {
    background: linear-gradient(to bottom, var(--color-linen), var(--color-fog));
  }
}


.section--intro {
  background: var(--color-cream);

  & .intro__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
  }

  & .intro__text {
    & h2 {
      margin-bottom: var(--space-md);
    }
  }

  & .intro__visual {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
  }

  & .intro__card {
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(201,168,124,0.2);
    transition: transform var(--transition), box-shadow var(--transition);

    &.card--offset {
      margin-left: var(--space-lg);
    }

    &:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-lg);
    }

    & h3 {
      margin: var(--space-xs) 0;
    }
  }
}


.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(201,168,124,0.18);
  transition: transform var(--transition), box-shadow var(--transition);

  & .card__icon {
    font-size: 1.8rem;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
  }

  & h3 {
    margin-bottom: var(--space-xs);
  }

  &:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
  }
}

.card--featured {
  background: var(--color-clay);
  border-color: var(--color-clay);

  & h3, & p {
    color: var(--color-linen);
  }

  & .card__icon {
    color: var(--color-sand);
  }

  & .card__badge {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    margin-bottom: var(--space-sm);
  }
}


.card--expandable {
  cursor: pointer;

  & .card__front {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-sm);
    align-items: start;
  }

  & .card__number {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.08em;
    padding-top: 4px;
  }

  & .card__title {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
  }

  & .card__preview {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin: 0;
    grid-column: 2;
  }

  & .card__toggle {
    background: var(--color-fog);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-clay);
    transition: all var(--transition);
    flex-shrink: 0;
    margin-top: 2px;

    &:hover {
      background: var(--color-sand);
      color: var(--color-white);
    }

    & i {
      transition: transform var(--transition);
    }
  }

  & .card__back {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding var(--transition);
    padding-top: 0;

    & p {
      font-size: 0.95rem;
      line-height: 1.75;
    }

    & p + p {
      margin-top: 0.75rem;
    }
  }

  &.card--open {
    & .card__toggle i {
      transform: rotate(45deg);
    }

    & .card__back {
      max-height: 600px;
      padding-top: var(--space-md);
      border-top: 1px solid var(--color-fog);
      margin-top: var(--space-sm);
    }
  }
}


.section--how {
  background: var(--color-linen);

  & .how__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
  }

  & .how__sub {
    font-size: 1.1rem;
    color: var(--color-text-mid);
    margin-top: 0.5rem;
  }

  & .how__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }
}


.section--image-break {
  background: var(--color-linen);
  padding: var(--space-xl) 0;

  & .image-break__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
  }

  & .image-break__img-wrap {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
  }

  & .image-break__img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: transform var(--transition-slow);

    &:hover {
      transform: scale(1.03);
    }
  }

  & .image-break__content {
    & h2 {
      margin-bottom: var(--space-md);
    }

    & p {
      margin-bottom: var(--space-sm);
    }

    & .btn {
      margin-top: var(--space-md);
    }
  }
}


.section--cta-mid {
  background: var(--color-clay);
  padding: var(--space-xl) 0;

  & .cta-mid__inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
  }

  & .cta-mid__eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-sand);
    margin-bottom: var(--space-sm);
  }

  & .cta-mid__heading {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--color-linen);
    margin-bottom: var(--space-lg);
    line-height: 1.3;
  }
}


.section--pillars {
  background: var(--color-cream);

  & .pillars__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
  }

  & .pillar {
    text-align: center;

    & .pillar__icon-wrap {
      width: 56px;
      height: 56px;
      background: var(--color-linen);
      border-radius: var(--radius-md);
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto var(--space-sm);
      font-size: 1.4rem;
      color: var(--color-accent);
      transition: all var(--transition);
    }

    & h3 {
      margin-bottom: var(--space-xs);
      font-size: 1rem;
    }

    & p {
      font-size: 0.9rem;
    }

    &:hover .pillar__icon-wrap {
      background: var(--color-accent);
      color: var(--color-white);
      transform: scale(1.08);
    }
  }
}


.section--who {
  background: var(--color-fog);

  & .who__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
  }

  & .who__image-wrap {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
  }

  & .who__image {
    width: 100%;
    height: 520px;
    object-fit: cover;
    transition: transform var(--transition-slow);

    &:hover {
      transform: scale(1.03);
    }
  }

  & .who__image-badge {
    position: absolute;
    bottom: var(--space-md);
    right: var(--space-md);
    background: rgba(61,43,31,0.85);
    backdrop-filter: blur(8px);
    color: var(--color-linen);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
  }

  & .who__content {
    & p {
      margin-bottom: var(--space-sm);
    }

    & .btn {
      margin-top: var(--space-md);
    }
  }
}


.section--minimal-cta {
  background: var(--color-cream);
  padding: var(--space-2xl) 0;
  text-align: center;

  & .minimal-cta__heading {
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    color: var(--color-clay);
    max-width: 640px;
    margin: 0 auto var(--space-lg);
    line-height: 1.3;
  }
}


.page-hero {
  padding: var(--space-2xl) var(--space-md) var(--space-xl);
  background: var(--color-clay);
  position: relative;
  overflow: hidden;

  &::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(196,122,58,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 20% 80%, rgba(122,140,110,0.10) 0%, transparent 50%);
    pointer-events: none;
  }

  & .page-hero__inner {
    max-width: 780px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }

  & .page-hero__heading {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    color: var(--color-linen);
    margin-bottom: var(--space-md);
  }

  & .page-hero__sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(244,237,227,0.75);
    max-width: 600px;
    line-height: 1.7;
  }
}

.page-hero--legal {
  padding: var(--space-xl) var(--space-md);
  text-align: center;

  & .page-hero__inner {
    max-width: 100%;
  }

  & .page-hero__sub {
    font-size: 0.9rem;
    color: rgba(244,237,227,0.6);
    margin: 0 auto;
  }
}


.section--pull-quote {
  background: var(--color-linen);
  padding: var(--space-xl) 0;

  & .pull-quote {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-xl);
    border-left: 4px solid var(--color-accent);
    background: var(--color-white);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    box-shadow: var(--shadow-md);
    position: relative;

    &::before {
      content: '\201C';
      font-size: 6rem;
      color: var(--color-sand);
      position: absolute;
      top: -20px;
      left: var(--space-md);
      line-height: 1;
      font-family: Georgia, serif;
    }

    & p {
      font-size: clamp(1.1rem, 2.2vw, 1.5rem);
      color: var(--color-clay);
      font-weight: 500;
      line-height: 1.5;
      font-style: italic;
    }
  }
}


.section--image-text {
  background: var(--color-cream);

  & .image-text__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;

    &.image-text__grid--reverse {
      & .image-text__img-wrap {
        order: 2;
      }

      & .image-text__content {
        order: 1;
      }
    }
  }

  & .image-text__img-wrap {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
  }

  & .image-text__img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    transition: transform var(--transition-slow);

    &:hover {
      transform: scale(1.03);
    }
  }

  & .image-text__content {
    & h2 {
      margin-bottom: var(--space-md);
    }

    & p {
      margin-bottom: var(--space-sm);
    }
  }
}


.section--perspective {
  background: var(--color-cream);

  & + .section--perspective {
    padding-top: 0;
  }
}


.section--offer-intro {
  background: var(--color-cream);

  & .offer-intro__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
  }

  & .offer-intro__img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
  }
}


.section--habits {
  background: var(--color-linen);

  & .habits__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-lg);
  }
}

.card--habit {
  padding: var(--space-lg);

  & .habit__header {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-fog);
  }

  & .habit__number {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 6px;
  }

  & .habit__name {
    font-size: 1.2rem;
    color: var(--color-clay);
  }

  & .habit__body p {
    font-size: 0.95rem;
    color: var(--color-text-mid);
    line-height: 1.75;
  }

  & .habit__time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-fog);

    & i {
      font-size: 0.9rem;
    }
  }
}


.section--tracking {
  background: var(--color-cream);

  & .tracking__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
  }

  & .tracking__img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
  }

  & .tracking__content {
    & h2 {
      margin-bottom: var(--space-md);
    }

    & p {
      margin-bottom: var(--space-sm);
    }
  }
}


.section--formats {
  background: var(--color-linen);

  & .formats__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
  }
}

.card--format {
  text-align: center;
  padding: var(--space-lg);
  position: relative;

  & .card__icon {
    font-size: 2.2rem;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
  }

  & h3 {
    margin-bottom: var(--space-sm);
  }
}


.section--shifts-intro {
  background: var(--color-cream);
}

.section--shifts-grid {
  background: var(--color-linen);

  & .shifts__bento {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-md);
    margin-top: var(--space-lg);
  }
}

.card--bento {
  padding: var(--space-lg);

  & .card__icon--lg {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
    display: block;
  }

  & h3 {
    margin-bottom: var(--space-sm);
  }

  & p + p {
    margin-top: var(--space-sm);
  }
}

.card--bento-wide {
  grid-column: span 2;
}


.section--timeline {
  background: var(--color-cream);

  & .timeline {
    max-width: 700px;
    margin: var(--space-lg) auto 0;
    position: relative;

    &::before {
      content: '';
      position: absolute;
      left: 20px;
      top: 0;
      bottom: 0;
      width: 2px;
      background: linear-gradient(to bottom, var(--color-sand), var(--color-sage-light));
    }
  }

  & .timeline__item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: var(--space-md);
    padding-bottom: var(--space-lg);
    position: relative;

    &:last-child {
      padding-bottom: 0;
    }
  }

  & .timeline__marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-accent);
    border: 3px solid var(--color-cream);
    box-shadow: var(--shadow-sm);
    margin-top: 4px;
    flex-shrink: 0;
    transition: transform var(--transition);
  }

  & .timeline__item:hover .timeline__marker {
    transform: scale(1.3);
  }

  & .timeline__period {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
  }

  & .timeline__content {
    & h3 {
      font-size: 1.1rem;
      margin-bottom: 0.5rem;
    }

    & p {
      font-size: 0.95rem;
    }
  }
}


.section--contact {
  background: var(--color-cream);

  & .contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
  }

  & .contact__map {
    margin-top: var(--space-xl);

    & h2 {
      margin-bottom: var(--space-md);
    }
  }

  & .map__wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(201,168,124,0.2);
  }
}


.contact-detail {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-md);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-sm);
  border: 1px solid rgba(201,168,124,0.15);
  transition: transform var(--transition), box-shadow var(--transition);

  &:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
  }

  & .contact-detail__icon {
    font-size: 1.3rem;
    color: var(--color-accent);
    margin-top: 2px;
    flex-shrink: 0;
  }

  & strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 4px;
  }

  & p {
    margin: 0;
    font-size: 0.95rem;
  }
}


.accessibility-note {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: var(--color-linen);
  border-radius: var(--radius-md);
  border: 1px solid rgba(201,168,124,0.25);

  & .accessibility-note__heading {
    font-size: 1rem;
    color: var(--color-clay);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 8px;

    & i {
      color: var(--color-accent);
    }
  }

  & p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;

    &:last-child {
      margin-bottom: 0;
    }
  }
}


.contact-form {
  & h2 {
    margin-bottom: var(--space-lg);
  }
}

.form__group {
  margin-bottom: var(--space-md);

  &.form__group--checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
  }
}

.form__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-clay);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-fog);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  min-height: 44px;
  -webkit-appearance: none;

  &::placeholder {
    color: var(--color-text-light);
  }

  &:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(196,122,58,0.12);
  }

  &:invalid:not(:placeholder-shown) {
    border-color: #c0392b;
  }
}

.form__select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a7a6a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--color-text-mid);
  line-height: 1.5;
}

.form__checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form__checkbox-custom {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--color-fog);
  border-radius: 4px;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  margin-top: 1px;

  &::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg) scale(0);
    transition: transform var(--transition);
    margin-top: -3px;
  }
}

.form__checkbox:checked + .form__checkbox-custom {
  background: var(--color-accent);
  border-color: var(--color-accent);

  &::after {
    transform: rotate(-45deg) scale(1);
  }
}

.form__link {
  color: var(--color-accent);
  text-decoration: underline;

  &:hover {
    color: var(--color-accent-deep);
  }
}

.form__submit {
  width: 100%;
  justify-content: center;
}


.section--legal {
  background: var(--color-cream);

  & .legal__doc {
    & .legal__intro {
      font-size: 1rem;
      color: var(--color-text-mid);
      margin-bottom: var(--space-xl);
      padding-bottom: var(--space-lg);
      border-bottom: 1px solid var(--color-fog);
      line-height: 1.8;
    }
  }

  & .legal__section {
    margin-bottom: var(--space-xl);

    & h2 {
      font-size: 1.15rem;
      color: var(--color-clay);
      margin-bottom: var(--space-sm);
      padding-bottom: 6px;
      border-bottom: 2px solid var(--color-sand);
      display: inline-block;
    }

    & p {
      font-size: 0.95rem;
      line-height: 1.85;
      color: var(--color-text-mid);
    }
  }
}


.body--thanks {
  background: var(--color-clay);
}

.thanks-main {
  min-height: calc(100vh - var(--nav-height) - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-clay);
  padding: var(--space-2xl) var(--space-md);
  position: relative;

  &::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 40%, rgba(196,122,58,0.2) 0%, transparent 60%);
    pointer-events: none;
  }
}

.thanks__content {
  text-align: center;
  max-width: 540px;
  position: relative;
  z-index: 1;
}

.thanks__icon-wrap {
  width: 80px;
  height: 80px;
  background: rgba(196,122,58,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
}

.thanks__icon {
  font-size: 2.5rem;
  color: var(--color-sand);
}

.thanks__heading {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-linen);
  margin-bottom: var(--space-md);
}

.thanks__sub {
  font-size: 1.1rem;
  color: rgba(244,237,227,0.7);
  margin-bottom: var(--space-xl);
}


.footer {
  background: var(--color-charcoal);
  color: rgba(244,237,227,0.7);
  padding: var(--space-2xl) 0 0;

  & .footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md) var(--space-xl);
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: var(--space-xl);
  }

  & .footer__brand {
    & .footer__logo {
      margin-bottom: var(--space-md);
      filter: brightness(0) invert(1) opacity(0.9);
    }

    & .footer__tagline {
      font-size: 0.9rem;
      color: rgba(244,237,227,0.55);
      margin-bottom: var(--space-md);
      line-height: 1.6;
    }
  }

  & .footer__address {
    font-size: 0.875rem;
    color: rgba(244,237,227,0.5);
    line-height: 1.8;

    & a {
      color: rgba(244,237,227,0.6);

      &:hover {
        color: var(--color-sand);
      }
    }
  }

  & .footer__nav {
    display: contents;
  }

  & .footer__col {
    & .footer__col-heading {
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--color-sand);
      margin-bottom: var(--space-md);
    }

    & ul {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    & a {
      font-size: 0.875rem;
      color: rgba(244,237,227,0.55);
      text-decoration: none;
      transition: color var(--transition);

      &:hover {
        color: var(--color-sand);
      }
    }
  }

  & .footer__bottom {
    border-top: 1px solid rgba(244,237,227,0.08);
    padding: var(--space-md);
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);

    & p {
      font-size: 0.8rem;
      color: rgba(244,237,227,0.35);
      margin: 0;
    }
  }
}

.footer--dark {
  background: rgba(20,16,12,0.95);
}


.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 150;

  &.visible {
    opacity: 1;
    transform: translateY(0);
  }

  &:hover {
    background: var(--color-accent-deep);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
  }
}


.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;

  &.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
  .section--pillars .pillars__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section--formats .formats__grid {
    grid-template-columns: 1fr 1fr;

    & .card--format:last-child {
      grid-column: span 2;
    }
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: var(--space-xl) var(--space-md);
    gap: var(--space-lg);

    & .hero__image-wrap {
      order: -1;
    }

    & .hero__image {
      height: 320px;
    }

    & .hero__scroll-hint {
      display: none;
    }
  }

  .section--intro .intro__grid,
  .section--image-break .image-break__grid,
  .image-text__grid,
  .section--who .who__grid,
  .offer-intro__grid,
  .tracking__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .image-text__grid.image-text__grid--reverse {
    & .image-text__img-wrap {
      order: 0;
    }

    & .image-text__content {
      order: 0;
    }
  }

  .section--habits .habits__grid,
  .section--how .how__cards {
    grid-template-columns: 1fr;
  }

  .section--shifts-grid .shifts__bento {
    grid-template-columns: 1fr 1fr;

    & .card--bento-wide {
      grid-column: span 2;
    }
  }

  .section--contact .contact__grid {
    grid-template-columns: 1fr;
  }

  .footer .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .footer .footer__brand {
    grid-column: span 2;
  }

  .intro__card.card--offset {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
    --space-2xl: 4rem;
    --space-xl: 3rem;
  }

  .nav .nav__inner {
    grid-template-columns: 1fr auto;
    padding: 0 var(--space-sm);
  }

  .nav .nav__links {
    display: none;
  }

  .nav .nav__logo {
    justify-content: flex-start;
  }

  .nav .nav__hamburger {
    display: flex;
  }

  .mobile-tab-bar {
    display: flex;
  }

  body {
    padding-bottom: 72px;
  }

  .back-to-top {
    bottom: 5.5rem;
    right: 1rem;
    width: 44px;
    height: 44px;
  }

  .section--how .how__cards {
    grid-template-columns: 1fr;
  }

  .card--expandable .card__front {
    grid-template-columns: auto 1fr auto;
  }

  .section--shifts-grid .shifts__bento {
    grid-template-columns: 1fr;

    & .card--bento-wide {
      grid-column: span 1;
    }
  }

  .section--formats .formats__grid {
    grid-template-columns: 1fr;

    & .card--format:last-child {
      grid-column: span 1;
    }
  }

  .section--pillars .pillars__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer .footer__inner {
    grid-template-columns: 1fr;
  }

  .footer .footer__brand {
    grid-column: span 1;
  }

  .footer .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }

  .hero__rotate-wrap {
    min-width: 160px;
  }

  .section--pull-quote .pull-quote {
    padding: var(--space-md);

    &::before {
      font-size: 4rem;
    }
  }

  .hero__image {
    height: 260px;
  }

  .who__image,
  .image-text__img,
  .image-break__img,
  .offer-intro__img,
  .tracking__img {
    height: 280px !important;
  }
}

@media (max-width: 480px) {
  :root {
    --space-md: 1.25rem;
  }

  .hero__actions {
    flex-direction: column;

    & .btn {
      width: 100%;
      justify-content: center;
    }
  }

  .section--pillars .pillars__grid {
    grid-template-columns: 1fr;
  }

  .section--minimal-cta .minimal-cta__heading {
    font-size: 1.4rem;
  }

  .cta-mid__heading {
    font-size: 1.4rem;
  }

  .timeline::before {
    left: 14px;
  }

  .timeline__item {
    grid-template-columns: 32px 1fr;
  }

  .timeline__marker {
    width: 16px;
    height: 16px;
  }
}