/* ==========================================================================
   shared.css — growwithelevon.com
   ========================================================================== */

/* 01 Custom Properties
   ========================================================================== */
:root {
  --terracotta: #C4673A;
  --ink:        #1A1410;
  --cream:      #FAF7F2;
  --sage:       #7A8C6E;
  --gold:       #C9963A;

  --font-display: 'Lora', Georgia, serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;

  --max-width:   1216px;
  --gutter:      clamp(24px, 5vw, 80px);
  --radius-card: 12px;
  --radius-pill: 999px;
  --nav-height:  72px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { font-family: var(--font-body); }

/* 03 Typography
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: inherit;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.625rem); font-weight: 700; }
h3 { font-size: clamp(1.0625rem, 1.75vw, 1.25rem); font-weight: 600; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
}

.lead {
  font-size: clamp(1rem, 1.8vw, 1.1875rem);
  line-height: 1.75;
  color: rgba(26, 20, 16, 0.72);
}

/* 04 Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section {
  padding-block: clamp(64px, 8vw, 112px);
}

.section-header {
  max-width: 680px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

/* 05 Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease,
              color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--cream);
  border-color: var(--terracotta);
}
.btn-primary:hover {
  background: #a85530;
  border-color: #a85530;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 103, 58, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(26, 20, 16, 0.35);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn-ghost-light {
  background: transparent;
  color: var(--cream);
  border-color: rgba(250, 247, 242, 0.45);
}
.btn-ghost-light:hover {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
  transform: translateY(-2px);
}

/* 06 Navigation
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background 0.35s ease, box-shadow 0.35s ease,
              backdrop-filter 0.35s ease;
}

.navbar.scrolled {
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(26, 20, 16, 0.07);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nav-logo {
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.8; }

.nav-logo-img {
  height: 64px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.65;
  transition: opacity 0.2s;
  position: relative;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:not(.nav-cta):hover,
.nav-links a:not(.nav-cta).active {
  opacity: 1;
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta).active::after {
  transform: scaleX(1);
}
.nav-links a.active { opacity: 1; }

.nav-cta {
  opacity: 1 !important;
  background: var(--terracotta);
  color: var(--cream) !important;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s !important;
}
.nav-cta:hover {
  background: #a85530 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(196, 103, 58, 0.3);
}
.nav-cta::after { display: none !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  border-radius: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--cream);
  padding: 28px var(--gutter) 36px;
  border-top: 1px solid rgba(26, 20, 16, 0.07);
  box-shadow: 0 12px 32px rgba(26, 20, 16, 0.12);
  flex-direction: column;
  gap: 4px;
  z-index: 99;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 1.0625rem;
  font-weight: 500;
  color: rgba(26, 20, 16, 0.75);
  padding: 10px 0;
  border-bottom: 1px solid rgba(26, 20, 16, 0.06);
  transition: color 0.2s;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--ink); }
.nav-mobile .nav-cta-mobile {
  margin-top: 16px;
  display: inline-flex;
  width: fit-content;
  background: var(--terracotta);
  color: var(--cream) !important;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9375rem;
  border-bottom: none !important;
}

/* 07 Hero
   ========================================================================== */
.hero {
  background: var(--cream);
  padding-top: calc(var(--nav-height) + clamp(72px, 10vw, 108px));
  padding-bottom: 0;
}

.hero-content {
  max-width: 860px;
  padding-bottom: clamp(56px, 8vw, 88px);
}

.hero-content .eyebrow { margin-bottom: 28px; }

.hero-headline {
  margin-bottom: 28px;
  color: var(--ink);
  font-size: clamp(2.5rem, 6vw, 4.75rem);
}

.hero-headline .cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--terracotta);
  margin-left: 6px;
  vertical-align: middle;
  border-radius: 2px;
  animation: cursor-blink 1.1s step-end infinite;
  position: relative;
  top: -0.05em;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-content .lead {
  max-width: 600px;
  margin-bottom: 44px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-stats {
  border-top: 1px solid rgba(26, 20, 16, 0.1);
  padding-block: clamp(36px, 5vw, 52px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.875rem);
  font-weight: 700;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  display: block;
  font-size: 0.9375rem;
  color: rgba(26, 20, 16, 0.58);
  font-weight: 400;
  line-height: 1.4;
}

/* 08 What I Do
   ========================================================================== */
.what-i-do {
  background: var(--ink);
  color: var(--cream);
}

.what-i-do .section-header h2 {
  color: var(--cream);
}

.what-i-do .opening {
  margin-top: 20px;
  font-size: clamp(1rem, 1.75vw, 1.125rem);
  line-height: 1.8;
  color: rgba(250, 247, 242, 0.65);
}

.services-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3.5vw, 40px);
  margin-bottom: clamp(40px, 6vw, 60px);
}

.service-col {
  background: rgba(250, 247, 242, 0.04);
  border: 1px solid rgba(250, 247, 242, 0.09);
  border-radius: var(--radius-card);
  padding: clamp(24px, 3vw, 36px);
  transition: background 0.25s, border-color 0.25s;
}
.service-col:hover {
  background: rgba(250, 247, 242, 0.07);
  border-color: rgba(250, 247, 242, 0.15);
}

.service-col-icon {
  font-size: 1.625rem;
  margin-bottom: 14px;
  line-height: 1;
}

.service-col h3 {
  color: var(--cream);
  margin-bottom: 12px;
}

.service-col p {
  color: rgba(250, 247, 242, 0.65);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.proof-line {
  font-size: 0.875rem;
  color: var(--gold);
  font-weight: 500;
  border-top: 1px solid rgba(250, 247, 242, 0.08);
  padding-top: 16px;
  line-height: 1.55;
}

.capability-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(250, 247, 242, 0.05);
  border: 1px solid rgba(250, 247, 242, 0.1);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  cursor: default;
  transition: background 0.2s, border-color 0.2s;
}
.chip:hover {
  background: rgba(250, 247, 242, 0.09);
  border-color: rgba(250, 247, 242, 0.18);
}

.chip-icon { font-size: 0.9375rem; line-height: 1; }

.chip-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(250, 247, 242, 0.9);
}

.chip-sub {
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(250, 247, 242, 0.45);
}

.what-i-do .section-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--terracotta);
  transition: gap 0.2s, opacity 0.2s;
  letter-spacing: 0.01em;
}
.what-i-do .section-cta:hover {
  gap: 13px;
  opacity: 0.85;
}

/* 09 Numbers
   ========================================================================== */
.numbers-section {
  background: var(--terracotta);
  color: var(--cream);
}

.numbers-section h2 { color: var(--cream); }

.numbers-section .section-sub {
  margin-top: 12px;
  font-size: 1rem;
  color: rgba(250, 247, 242, 0.72);
  margin-bottom: clamp(44px, 6vw, 68px);
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 40px);
  margin-bottom: 32px;
}

.number-card {
  border-top: 1px solid rgba(250, 247, 242, 0.25);
  padding-top: 24px;
}

.number-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.375rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.number-label {
  display: block;
  font-size: 0.9375rem;
  color: rgba(250, 247, 242, 0.72);
  line-height: 1.45;
}

.numbers-note {
  font-size: 0.8125rem;
  color: rgba(250, 247, 242, 0.5);
  margin-bottom: 36px;
  font-style: italic;
}

/* 10 How Niv Works
   ========================================================================== */
.how-it-works { background: var(--cream); }

.process-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
}

.process-card {
  background: #fff;
  border: 1px solid rgba(26, 20, 16, 0.07);
  border-radius: var(--radius-card);
  padding: clamp(24px, 3vw, 36px);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.process-card:hover {
  box-shadow: 0 8px 36px rgba(26, 20, 16, 0.09);
  transform: translateY(-3px);
  border-color: rgba(196, 103, 58, 0.15);
}

.process-card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(196, 103, 58, 0.1);
  color: var(--terracotta);
  border-radius: 50%;
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: var(--font-display);
  margin-bottom: 20px;
}

.process-card h3 {
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.35;
}

.process-card p {
  font-size: 0.9375rem;
  color: rgba(26, 20, 16, 0.65);
  line-height: 1.75;
}

/* 11 Credibility Strip
   ========================================================================== */
.credibility {
  background: var(--ink);
  color: var(--cream);
  padding-block: clamp(36px, 5vw, 56px);
}

.credibility-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  align-items: center;
  justify-content: center;
}

.cred-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: rgba(250, 247, 242, 0.68);
  white-space: nowrap;
}
.cred-icon  { font-size: 1.0625rem; line-height: 1; }
.cred-label { font-weight: 500; }

.cred-divider {
  width: 1px;
  height: 18px;
  background: rgba(250, 247, 242, 0.12);
  flex-shrink: 0;
}

/* 12 CTA Band
   ========================================================================== */
.cta-band {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  padding-block: clamp(72px, 9vw, 112px);
  border-top: 1px solid rgba(250, 247, 242, 0.05);
}

.cta-band h2 {
  color: var(--cream);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta-band p {
  max-width: 440px;
  margin-inline: auto;
  margin-bottom: 40px;
  color: rgba(250, 247, 242, 0.58);
  font-size: 1rem;
  line-height: 1.75;
}

/* 13 Footer
   ========================================================================== */
.footer {
  background: var(--ink);
  border-top: 1px solid rgba(250, 247, 242, 0.07);
  padding-block: clamp(28px, 4vw, 40px);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer-name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  color: rgba(250, 247, 242, 0.65);
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(250, 247, 242, 0.45);
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(250, 247, 242, 0.85); }

.footer-right {
  text-align: right;
  font-size: 0.8125rem;
  color: rgba(250, 247, 242, 0.38);
  line-height: 1.65;
}
.footer-right a { transition: color 0.2s; }
.footer-right a:hover { color: rgba(250, 247, 242, 0.75); }

/* 14 Animations
   ========================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 15 Cookie Banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(26, 18, 12, 0.93);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(196, 103, 58, 0.18);
  padding: 16px var(--gutter);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  opacity: 0;
}
.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner.hiding {
  transform: translateY(100%);
  opacity: 0;
}
.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max-width);
  margin-inline: auto;
  flex-wrap: wrap;
}
.cookie-text {
  font-size: 0.8125rem;
  color: rgba(250, 247, 242, 0.62);
  line-height: 1.6;
  max-width: 680px;
}
.cookie-text a {
  color: var(--terracotta);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s;
}
.cookie-text a:hover { opacity: 0.8; }
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  align-items: center;
}
.cookie-btn {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 8px 20px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  line-height: 1;
}
.cookie-accept {
  background: var(--terracotta);
  color: var(--cream);
  border-color: var(--terracotta);
}
.cookie-accept:hover { background: #a85530; border-color: #a85530; }
.cookie-options-btn {
  background: transparent;
  color: rgba(250, 247, 242, 0.55);
  border-color: rgba(250, 247, 242, 0.18);
}
.cookie-options-btn:hover {
  color: rgba(250, 247, 242, 0.85);
  border-color: rgba(250, 247, 242, 0.38);
}
/* Options panel */
.cookie-options-panel {
  display: none;
  border-top: 1px solid rgba(196, 103, 58, 0.15);
  padding-top: 16px;
  margin-top: 14px;
  max-width: var(--max-width);
  margin-inline: auto;
  width: 100%;
}
.cookie-options-panel.open { display: block; }
.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(250, 247, 242, 0.06);
  gap: 16px;
}
.cookie-option-info { flex: 1; }
.cookie-option-name {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(250, 247, 242, 0.85);
}
.cookie-option-desc {
  display: block;
  font-size: 0.75rem;
  color: rgba(250, 247, 242, 0.4);
  margin-top: 2px;
}
.cookie-always-on {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--terracotta);
  white-space: nowrap;
  flex-shrink: 0;
}
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  cursor: pointer;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cookie-toggle-slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(250, 247, 242, 0.15);
  border-radius: 22px;
  transition: background 0.2s;
}
.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: rgba(250, 247, 242, 0.55);
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}
.cookie-toggle input:checked + .cookie-toggle-slider { background: var(--terracotta); }
.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(18px);
  background: var(--cream);
}
.cookie-save-row {
  display: flex;
  justify-content: flex-end;
  padding-top: 14px;
}

@media (max-width: 640px) {
  .cookie-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
  .cookie-save-row { justify-content: stretch; }
  .cookie-save-row .cookie-btn { width: 100%; }
}

/* 16 Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
  .numbers-grid  { grid-template-columns: repeat(3, 1fr); }
  .process-cards { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-links  { display: none; }
  .nav-toggle { display: flex; }

  .services-cols { grid-template-columns: 1fr; }
  .numbers-grid  { grid-template-columns: repeat(2, 1fr); }
  .process-cards { grid-template-columns: 1fr; gap: 16px; }
  .stats-grid    { grid-template-columns: repeat(3, 1fr); }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 14px;
  }
  .footer-links { justify-content: center; }
  .footer-right { text-align: center; }

  .credibility-inner { gap: 16px 24px; }
}

@media (max-width: 640px) {
  .hero-headline br { display: none; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .stats-grid   { grid-template-columns: 1fr; gap: 24px; }
  .numbers-grid { grid-template-columns: 1fr; }
  .cred-divider { display: none; }
  .credibility-inner { flex-direction: column; align-items: flex-start; }
}
