/* ---------- Variables ---------- */
:root {
  --navy: #1E3A5F;
  --navy-dark: #142841;
  --navy-light: #2D4F7E;
  --terracotta: #D97441;
  --terracotta-dark: #B85E32;
  --terracotta-light: #E89A75;
  --cream: #FAF7F2;
  --cream-dark: #F2EBDD;
  --white: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #5A6470;
  --border: #E5DED2;

  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1160px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 2px rgba(30, 58, 95, 0.04), 0 2px 6px rgba(30, 58, 95, 0.04);
  --shadow-md: 0 4px 12px rgba(30, 58, 95, 0.08), 0 2px 4px rgba(30, 58, 95, 0.04);
  --shadow-lg: 0 12px 32px rgba(30, 58, 95, 0.12), 0 4px 8px rgba(30, 58, 95, 0.06);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--terracotta);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0 0 1em;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--navy);
  letter-spacing: -0.01em;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--terracotta);
  margin-bottom: 16px;
}

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

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
}

.section-lede {
  font-size: 18px;
  color: var(--text-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}

.btn-primary:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-ghost:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-ghost-light {
  color: var(--cream);
  border-color: var(--cream);
}

.btn-ghost-light:hover {
  background: var(--cream);
  color: var(--navy);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--terracotta);
  font-size: 15px;
}

.link-arrow:hover {
  color: var(--terracotta-dark);
  gap: 10px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(250, 247, 242, 0.96);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 18px rgba(30, 58, 95, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  transition: padding 0.25s ease;
}

.site-header.is-scrolled .header-inner {
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--navy);
}

.brand:hover {
  color: var(--navy);
}

.logo-img {
  height: 60px;
  width: auto;
  display: block;
  transition: height 0.25s ease;
}

@media (min-width: 768px) {
  .logo-img {
    height: 68px;
  }
}

.site-header.is-scrolled .logo-img {
  height: 48px;
}

@media (min-width: 768px) {
  .site-header.is-scrolled .logo-img {
    height: 52px;
  }
}

.primary-nav {
  display: none;
  align-items: center;
  gap: 32px;
}

.primary-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.primary-nav a:hover {
  color: var(--terracotta);
}

.primary-nav .nav-cta {
  background: var(--navy);
  color: var(--cream);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
}

.primary-nav .nav-cta:hover {
  background: var(--terracotta);
  color: var(--white);
}

@media (min-width: 768px) {
  .primary-nav {
    display: flex;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--cream) 0%, #F5EFE6 100%);
  padding: 80px 0 96px;
  overflow: hidden;
}

.hero-inner {
  max-width: 720px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  color: var(--terracotta);
  font-style: italic;
  font-weight: 500;
}

.hero-sub {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 400;
  font-style: italic;
  color: var(--navy-light);
  margin-bottom: 24px;
  line-height: 1.4;
}

.hero-body {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-points .dot {
  width: 6px;
  height: 6px;
  background: var(--terracotta);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-decoration {
  display: none;
  position: absolute;
  top: 50%;
  right: -40px;
  transform: translateY(-50%);
  width: 360px;
  height: 460px;
  opacity: 0.85;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .hero-decoration {
    display: block;
    right: 40px;
  }
  .hero-inner {
    max-width: 640px;
  }
}

/* ---------- Band (about) ---------- */
.band {
  background: var(--navy);
  color: var(--cream);
  padding: 96px 0;
}

.band h2 {
  color: var(--cream);
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 24px;
}

.band-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .band-inner {
    grid-template-columns: 1.4fr 1fr;
    gap: 80px;
  }
}

.band-text p {
  color: rgba(250, 247, 242, 0.85);
  font-size: 17px;
  margin-bottom: 1.2em;
  max-width: 580px;
}

.band-text .link-arrow {
  color: var(--terracotta-light);
}

.band-text .link-arrow:hover {
  color: var(--cream);
}

.quote-card {
  background: var(--navy-light);
  border-left: 3px solid var(--terracotta);
  padding: 32px 28px;
  border-radius: var(--radius-md);
}

.quote {
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: var(--cream);
  margin-bottom: 20px;
}

.quote-attr {
  font-size: 13px;
  font-weight: 500;
  color: var(--terracotta-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

/* ---------- Services ---------- */
.services {
  padding: 96px 0;
  background: var(--cream);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 700px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--terracotta);
}

.card-num {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.card-lede {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
}

.card-list {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 24px;
}

.card-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 2px;
  background: var(--terracotta);
}

.card-deliverable {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0;
}

/* ---------- Process ---------- */
.process {
  background: var(--navy-dark);
  color: var(--cream);
  padding: 96px 0;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(217, 116, 65, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(217, 116, 65, 0.06) 0%, transparent 40%);
}

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

.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  counter-reset: step;
}

@media (min-width: 700px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process-step {
  position: relative;
  padding: 24px 0 0;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--terracotta);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 20px;
  background: var(--navy-dark);
}

.process-step h3 {
  color: var(--cream);
  font-size: 20px;
  margin-bottom: 10px;
}

.process-step p {
  color: rgba(250, 247, 242, 0.78);
  font-size: 15px;
  margin: 0;
}

/* ---------- Why ---------- */
.why {
  background: var(--cream);
  padding: 96px 0;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 48px;
}

@media (min-width: 700px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why-item {
  padding-top: 20px;
  border-top: 2px solid var(--terracotta);
}

.why-item h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.why-item p {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0;
}

/* ---------- CTA ---------- */
.cta {
  background: var(--navy);
  color: var(--cream);
  padding: 96px 0 104px;
  text-align: center;
  background-image:
    linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
}

.cta-inner {
  max-width: 720px;
}

.cta h2 {
  color: var(--cream);
  font-size: clamp(30px, 4.5vw, 44px);
  margin-bottom: 20px;
}

.cta-sub {
  color: rgba(250, 247, 242, 0.85);
  font-size: 18px;
  margin-bottom: 36px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.cta-meta {
  font-size: 13px;
  color: rgba(250, 247, 242, 0.6);
  letter-spacing: 0.05em;
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(250, 247, 242, 0.78);
  padding: 56px 0 40px;
  font-size: 14px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-logo {
  height: 80px;
  width: auto;
  display: block;
  margin-left: -16px;
}

.footer-tag {
  font-size: 13px;
  color: rgba(250, 247, 242, 0.6);
  margin: 0;
  max-width: 320px;
  line-height: 1.5;
}

.footer-contact p {
  margin: 0 0 6px;
}

.footer-contact strong {
  color: var(--cream);
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 12px;
  text-transform: uppercase;
}

.footer-contact a {
  color: rgba(250, 247, 242, 0.78);
}

.footer-contact a:hover {
  color: var(--terracotta-light);
}

.footer-meta {
  font-size: 13px;
  color: rgba(250, 247, 242, 0.5);
}

.footer-meta p {
  margin: 0 0 4px;
}

.footer-fineprint {
  font-style: italic;
}

/* ---------- Animations ---------- */

@keyframes fd-fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fd-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fd-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes fd-float-badge {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-3deg); }
}

@keyframes fd-ring-draw {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 16; }
}

/* Hero load cascade */
.hero .eyebrow { animation: fd-fade-up 0.7s 0.05s both ease-out; }
.hero h1       { animation: fd-fade-up 0.8s 0.15s both ease-out; }
.hero-sub      { animation: fd-fade-up 0.8s 0.25s both ease-out; }
.hero-body     { animation: fd-fade-up 0.8s 0.35s both ease-out; }
.hero-cta      { animation: fd-fade-up 0.8s 0.45s both ease-out; }
.hero-points   { animation: fd-fade-up 0.8s 0.55s both ease-out; }

.hero-decoration {
  animation: fd-fade-in 1.1s 0.4s both ease-out;
}

.hero-illust__window {
  animation: fd-float 7s 1.4s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}

.hero-illust__badge {
  animation: fd-float-badge 5s 1.6s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}

.hero-illust__ring {
  transform: rotate(-90deg);
  transform-origin: center;
  transform-box: fill-box;
  animation: fd-ring-draw 1.6s 1s ease-out forwards;
}

/* Reveal-on-scroll (only when JS is enabled, to avoid hiding content for no-JS users) */
.js [data-reveal]:not(.stagger) {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

.js [data-reveal]:not(.stagger).is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.js .stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

.js .stagger.is-revealed > * {
  opacity: 1;
  transform: translateY(0);
}

.js .stagger.is-revealed > *:nth-child(1) { transition-delay: 0ms; }
.js .stagger.is-revealed > *:nth-child(2) { transition-delay: 90ms; }
.js .stagger.is-revealed > *:nth-child(3) { transition-delay: 180ms; }
.js .stagger.is-revealed > *:nth-child(4) { transition-delay: 270ms; }
.js .stagger.is-revealed > *:nth-child(5) { transition-delay: 360ms; }
.js .stagger.is-revealed > *:nth-child(6) { transition-delay: 450ms; }

/* Subtle micro-interactions */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-primary:hover::after {
  transform: translateX(100%);
}

.brand .logo-img {
  transition: height 0.25s ease, transform 0.25s ease;
}

.brand:hover .logo-img {
  transform: translateY(-1px);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .js [data-reveal]:not(.stagger),
  .js .stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
}
