/* ============================================
   NIKKI GOLDMAN — Visual Identity v2.0
   ============================================ */

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

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Typography */
  --font-display: 'DM Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-data: 'JetBrains Mono', monospace;

  /* Type Scale */
  --text-xs:    0.75rem;
  --text-sm:    0.8125rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.375rem;
  --text-3xl:   1.75rem;
  --text-4xl:   2rem;
  --text-5xl:   2.5rem;
  --text-6xl:   3rem;
  --text-7xl:   4rem;

  /* Leading */
  --leading-none:     1.05;
  --leading-tight:    1.15;
  --leading-snug:     1.3;
  --leading-normal:   1.6;
  --leading-relaxed:  1.75;

  /* Tracking */
  --tracking-tighter: -0.035em;
  --tracking-tight:   -0.02em;
  --tracking-normal:  0;
  --tracking-wide:    0.04em;
  --tracking-wider:   0.1em;

  /* Foundation Colors */
  --color-bg-primary:       #FAFAF8;
  --color-bg-secondary:     #F2F0EC;
  --color-bg-tertiary:      #E8E5DF;
  --color-bg-inverse:       #1A1917;
  --color-bg-inverse-soft:  #2A2825;

  /* Text Colors */
  --color-text-primary:     #1A1917;
  --color-text-secondary:   #5C5A55;
  --color-text-tertiary:    #8A8780;
  --color-text-inverse:     #FAFAF8;
  --color-text-inverse-sec: #B5B2AB;
  --color-text-inverse-dim: #4A4845;

  /* Primary Action: Teal */
  --color-teal:             #2A8A7A;
  --color-teal-dark:        #1E6B5E;
  --color-teal-light:       #E6F5F2;

  /* Accent: Hot Coral */
  --color-coral:            #FF6154;
  --color-coral-dark:       #E04D42;
  --color-coral-light:      #FFF1F0;

  /* Borders */
  --color-border-light:     #E2DFD9;
  --color-border-medium:    #CCC9C2;
  --color-border-dark:      #3A3835;

  /* Functional */
  --color-success:          #2A8A7A;
  --color-error:            #C4453A;
  --color-focus:            #2A8A7A80;

  /* Spacing */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;
  --space-32:  8rem;

  /* Layout */
  --width-max:      1100px;
  --width-reading:  600px;
  --width-wide:     900px;
  --gutter:         16px;
  --page-margin:    32px;

  /* Radius */
  --radius-sm:    6px;
  --radius-md:    8px;
  --radius-lg:    12px;
  --radius-xl:    14px;
  --radius-2xl:   16px;
  --radius-full:  9999px;

  /* Motion */
  --ease-out:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:     cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast:   150ms;
  --duration-base:   200ms;
  --duration-slow:   400ms;
  --duration-reveal: 600ms;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration-base) ease;
}

/* ---------- DARK SECTION ---------- */
.dark-section {
  background: var(--color-bg-inverse);
  color: var(--color-text-inverse);
}

/* ---------- OVERLINES ---------- */
.overline {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  display: flex;
  align-items: center;
  gap: 12px;
}

.overline::before {
  content: '';
  width: 20px;
  height: 2px;
  background: currentColor;
  flex-shrink: 0;
}

.overline-coral { color: var(--color-coral); }
.overline-teal { color: var(--color-teal); }
.overline-muted { color: var(--color-text-tertiary); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  transition: background var(--duration-base) ease, border-color var(--duration-base) ease, color var(--duration-base) ease, transform 100ms ease;
  /* Default size */
  font-size: 13px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 11px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 14px;
}

.btn-primary {
  background: var(--color-teal);
  color: white;
  border: 2px solid var(--color-teal);
}

.btn-primary:hover {
  background: var(--color-teal-dark);
  border-color: var(--color-teal-dark);
}

.btn-accent {
  background: var(--color-coral);
  color: white;
  border: 2px solid var(--color-coral);
}

.btn-accent:hover {
  background: var(--color-coral-dark);
  border-color: var(--color-coral-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 1.5px solid var(--color-border-medium);
  font-weight: 500;
  border-radius: var(--radius-md);
}

.btn-secondary:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
}

.btn-dark {
  background: var(--color-bg-inverse);
  color: white;
  border: 2px solid var(--color-bg-inverse);
}

.btn-dark:hover {
  background: var(--color-bg-inverse-soft);
  border-color: var(--color-bg-inverse-soft);
}

/* ---------- CARDS ---------- */
.card {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color var(--duration-slow) ease, box-shadow var(--duration-slow) ease;
}

.card:hover {
  border-color: var(--color-border-medium);
  box-shadow: 0 4px 24px rgba(26, 25, 23, 0.06);
}

/* ---------- NAVIGATION (Floating Pill) ---------- */
.nav {
  position: fixed;
  top: 32px;
  left: 16px;
  right: 16px;
  z-index: 100;
  transition: all 500ms var(--ease-out);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 20px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 500ms var(--ease-out);
}

/* Scrolled state */
.nav.scrolled .nav-container {
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--color-border-light);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.nav.scrolled .nav-wordmark {
  color: var(--color-text-primary);
}

.nav.scrolled .nav-link {
  color: var(--color-text-tertiary);
}

.nav.scrolled .nav-link:hover {
  color: var(--color-text-primary);
}

.nav-wordmark {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-inverse);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-6);
  align-items: center;
}

.nav-link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.6);
  transition: color var(--duration-base) ease;
  padding: 6px 12px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text-inverse);
}

/* Nav CTA pill */
.nav .btn-sm {
  background: var(--color-teal);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 8px 16px;
  box-shadow: 0 2px 8px rgba(42, 138, 122, 0.2);
  transition: background var(--duration-base) ease, transform var(--duration-fast) ease, box-shadow var(--duration-base) ease;
}

.nav .btn-sm:hover {
  background: var(--color-teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 2px 12px rgba(42, 138, 122, 0.3);
}

.nav.scrolled .nav-toggle span {
  background: var(--color-text-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text-primary);
  transition: all var(--duration-base) ease;
}

/* ---------- HERO SECTION (Full Bleed) ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  max-height: 1100px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #000;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
}

.hero-bg-image {
  position: absolute;
  right: -5%;
  bottom: 0;
  width: 55%;
  height: 75%;
  object-fit: cover;
  object-position: center center;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 18%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 18%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to right,
      #000000 38%,
      rgba(0, 0, 0, 0.6) 48%,
      rgba(0, 0, 0, 0.15) 56%,
      transparent 64%
    ),
    linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, transparent 20%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--width-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--page-margin);
}

.hero .overline {
  margin-bottom: var(--space-6);
}

.hero-heading {
  font-family: var(--font-display);
  font-size: var(--text-7xl);
  font-weight: 800;
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-tighter);
  color: var(--color-text-inverse);
  margin-bottom: var(--space-6);
  max-width: 600px;
}

.hero-sub {
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: var(--leading-normal);
  color: var(--color-text-inverse-sec);
  max-width: 480px;
  margin-bottom: var(--space-10);
}

/* ---------- LOGO BAR ---------- */
.logo-bar {
  background: var(--color-bg-primary);
  padding: var(--space-12) var(--page-margin);
  border-bottom: 1px solid var(--color-border-light);
}

.logo-bar-container {
  max-width: var(--width-max);
  margin: 0 auto;
}

.logo-bar-label {
  margin-bottom: var(--space-8);
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-10);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-tertiary);
  letter-spacing: var(--tracking-tight);
  white-space: nowrap;
}

/* ---------- ABOUT SECTION ---------- */
.about {
  background: var(--color-bg-secondary);
  padding: var(--space-20) var(--page-margin);
}

.about-container {
  max-width: var(--width-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-image {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-2xl);
  object-fit: cover;
}

.about-text-col .overline {
  margin-bottom: var(--space-4);
}

.about-heading {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: 800;
  line-height: var(--leading-none);
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-8);
}

.about-body {
  font-size: 15px;
  font-weight: 400;
  line-height: var(--leading-normal);
  color: var(--color-text-secondary);
  max-width: var(--width-reading);
  margin-bottom: var(--space-4);
}

.about-body:last-of-type {
  margin-bottom: var(--space-8);
}

/* ---------- OFFERINGS SECTION ---------- */
.offerings {
  background: var(--color-bg-primary);
  padding: var(--space-20) var(--page-margin);
}

.offerings-container {
  max-width: var(--width-max);
  margin: 0 auto;
}

.offerings-overline {
  margin-bottom: var(--space-4);
}

.offerings-heading {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: var(--leading-none);
  color: var(--color-text-primary);
  margin-bottom: var(--space-12);
}

.offerings-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.offering-row {
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

.offering-row-reverse {
  flex-direction: row-reverse;
}

.offering-image-col {
  width: 50%;
  flex-shrink: 0;
}

.offering-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--color-bg-secondary);
}

.offering-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offering-text-col {
  width: 50%;
}

.offering-text-col .overline {
  margin-bottom: var(--space-5);
}

.offering-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-4);
}

.offering-desc {
  font-size: 15px;
  font-weight: 400;
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  max-width: var(--width-reading);
  margin-bottom: var(--space-8);
}

/* ---------- FOOTER ---------- */
.footer {
  padding: var(--space-20) var(--page-margin) var(--space-10);
}

.footer-container {
  max-width: var(--width-max);
  margin: 0 auto;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-inverse);
  margin-bottom: var(--space-2);
}

.footer-tagline {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-inverse-sec);
  margin-bottom: var(--space-10);
}

.footer-links {
  display: flex;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-inverse-sec);
  transition: color var(--duration-base) ease;
}

.footer-links a:hover {
  color: var(--color-text-inverse);
}

.footer-bottom {
  border-top: 1px solid var(--color-border-dark);
  padding-top: var(--space-6);
}

.footer-bottom p {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-inverse-dim);
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-reveal) var(--ease-out),
              transform var(--duration-reveal) var(--ease-out);
}

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

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- RESPONSIVE ---------- */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --page-margin: 24px;
  }

  .hero-heading {
    font-size: var(--text-6xl);
  }

  .about-container {
    gap: var(--space-10);
  }

  .offering-row,
  .offering-row-reverse {
    flex-direction: column;
    gap: var(--space-8);
  }

  .offering-image-col,
  .offering-text-col {
    width: 100%;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --page-margin: 20px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--color-bg-primary);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: var(--space-6);
    padding: var(--space-10) var(--page-margin);
    transition: right var(--duration-slow) var(--ease-out);
    border-left: 1px solid var(--color-border-light);
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-menu .nav-link {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text-primary);
  }

  .hero {
    min-height: 600px;
  }

  .hero-heading {
    font-size: 36px;
  }

  .hero-bg-image {
    width: 80%;
    object-position: center top;
  }

  .hero-overlay {
    background:
      linear-gradient(to right,
        var(--color-bg-inverse) 15%,
        rgba(26, 25, 23, 0.7) 35%,
        rgba(26, 25, 23, 0.2) 50%,
        transparent 65%
      ),
      linear-gradient(to top, rgba(26, 25, 23, 0.6) 0%, transparent 40%);
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .about-heading {
    font-size: var(--text-5xl);
  }

  .about-image {
    max-width: 360px;
  }

  .offerings-heading {
    font-size: var(--text-4xl);
  }

  .offerings-steps {
    gap: var(--space-12);
  }

  .logo-row {
    gap: var(--space-6) var(--space-8);
  }

  .footer-links {
    flex-direction: column;
    gap: var(--space-4);
  }
}

@media (max-width: 480px) {
  .hero-heading {
    font-size: var(--text-5xl);
  }

  .about-heading {
    font-size: var(--text-5xl);
  }

  .offering-image-wrap {
    aspect-ratio: 3 / 2;
  }
}
