@import url('fonts/brand.css');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: var(--header-height); }

:root {
  --header-height: 88px;

  /* Spacing */
  --s-xs: 4px;
  --s-sm: 8px;
  --s-md: 16px;
  --s-lg: 24px;
  --s-xl: 32px;
  --s-2xl: 48px;
  --s-3xl: 64px;
  --s-4xl: 80px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(31,41,55,0.04);
  --shadow-md: 0 4px 12px rgba(31,41,55,0.06);
  --shadow-lg: 0 12px 32px rgba(31,41,55,0.08);
  --shadow-xl: 0 20px 48px rgba(31,41,55,0.10);

  /* Radius */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 var(--s-lg); }

section { padding: var(--s-4xl) 0; }
.section-card { background: var(--c-bg-card); }
.section-alt { background: var(--c-bg-alt); }

/* Typography */
h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-lg);
}
h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: var(--s-lg);
}
h3 {
  font-family: var(--font-display);
  font-weight: 600;
}
h1, h2, h3 { text-wrap: balance; }
[id] { scroll-margin-top: var(--s-lg); }
p { margin-bottom: var(--s-lg); color: var(--c-text-soft); }

/* Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--c-cream);
  border-bottom: 1px solid var(--c-border-light);
  box-shadow: 0 4px 24px rgba(31,41,55,0.06);
}
@supports ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
  .site-header {
    background: rgba(248,247,244,0.92);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
}
.header-layout { display: flex; align-items: center; justify-content: space-between; gap: var(--s-lg); min-height: var(--header-height); padding-block: 12px; }
.brand-wordmark { display: block; flex-shrink: 0; border-radius: var(--r-sm); }
.brand-logo { display: block; width: 64px; height: auto; mix-blend-mode: multiply; }
.site-nav { display: flex; align-items: center; gap: var(--s-lg); }
.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-block: var(--s-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="location"] { text-decoration: underline; text-underline-offset: 6px; }

/* Hero */
.hero {
  background: var(--c-cream);
  color: var(--c-navy);
  padding: var(--s-4xl) 0 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--c-cream) 0%, rgba(248,247,244,0.97) 33%, rgba(248,247,244,0.9) 48%, rgba(248,247,244,0.2) 74%, transparent 100%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-layout {
  display: block;
}
.hero-copy { max-width: 640px; padding-bottom: var(--s-4xl); }
.hero-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
}
.hero h1 { color: var(--c-navy); max-width: 720px; }
.hero h1::after { content: ''; display: block; width: 56px; height: 3px; background: var(--c-lake); margin-top: var(--s-lg); }
.hero p { color: var(--c-text-soft); font-size: 1.0625rem; max-width: 620px; line-height: 1.75; }
.hero .hero-brand { color: var(--c-navy); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: var(--s-lg); }
.hero .btn { margin-top: var(--s-sm); }
.hero .hero-note { font-size: 0.875rem; margin: var(--s-md) 0 0; }
.eyebrow { color: var(--c-text-soft); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: var(--s-md); }
.work-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: var(--s-2xl); align-items: center; }
.work-intro { max-width: 560px; }
.work-gallery-column { min-width: 0; }
.work-gallery-title { margin-bottom: var(--s-md); font-size: 1.125rem; }
.work-gallery-viewport { position: relative; overflow: hidden; }
.work-gallery-track { display: flex; align-items: flex-start; }
.work-gallery-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.work-gallery-link { display: block; cursor: zoom-in; }
.work-gallery-slide img { display: block; width: 100%; height: clamp(220px, 28vw, 360px); object-fit: contain; border: 1px solid var(--c-border); border-radius: var(--r-md); box-shadow: var(--shadow-md); }
.work-gallery-controls { position: absolute; inset: 50% 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--s-sm); transform: translateY(-50%); pointer-events: none; }
.work-gallery-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--c-border); border-radius: 50%; background: var(--c-white); color: var(--c-navy); font-size: 1.5rem; box-shadow: var(--shadow-md); cursor: pointer; pointer-events: auto; }
.work-gallery-status { margin: var(--s-sm) 0 0; text-align: center; color: var(--c-text-soft); font-size: 0.875rem; }
.work-gallery-ready .work-gallery-track { display: block; }
.text-link { font-weight: 600; text-underline-offset: 4px; }
.section-intro { max-width: 640px; }
.process-note { border-left: 3px solid var(--c-primary); padding: var(--s-lg); background: var(--c-bg); max-width: 680px; margin-top: var(--s-xl); }
.process-note p:last-child { margin-bottom: 0; }
.about-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s-2xl); }
.about-aside { border-left: 1px solid var(--c-border); padding-left: var(--s-xl); }
.pricing-details { text-align: left; border-top: 1px solid var(--c-border); padding-top: var(--s-lg); }
.pricing-details p { font-size: 0.9375rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-sm);
  background: var(--c-navy);
  color: var(--c-white);
  text-decoration: none;
  padding: 14px 32px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  border: none;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 14px rgba(31,41,55,0.12);
}
.btn:hover {
  background: var(--c-dark-alt);
  color: var(--c-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(31,41,55,0.18);
}
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn:disabled {
  background: var(--c-text-muted);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-sm);
  background: transparent;
  color: var(--c-navy);
  border: 2px solid var(--c-primary);
  text-decoration: none;
  padding: 12px 30px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-outline:hover {
  background: var(--c-navy);
  color: var(--c-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline:active { transform: translateY(0); }

/* Grid and cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-lg);
  margin: var(--s-xl) 0;
}
.card {
  border-top: 2px solid var(--c-sky);
  padding: var(--s-lg) 0 0;
}
.card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--s-sm);
  color: var(--c-text);
  letter-spacing: -0.01em;
}
.card p {
  font-size: 0.9375rem;
  margin-bottom: 0;
  color: var(--c-text-soft);
  line-height: 1.65;
}

/* Pricing */
.price-large {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--c-dark);
  letter-spacing: -0.02em;
}
.price-sub {
  color: var(--c-text-muted);
  font-size: 0.9375rem;
}
.pricing-grid {
  display: flex;
  flex-direction: column;
  gap: var(--s-lg);
  margin: var(--s-xl) 0;
}
.pricing-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-xl) var(--s-xl);
  text-align: left;
  box-shadow: var(--shadow-sm);
}
.pricing-card h3 { text-align: center; }
.pricing-summary { text-align: center; border-top: 1px solid var(--c-border); padding-top: 20px; margin-top: var(--s-sm); }
.pricing-card .price-large { margin: var(--s-md) 0 var(--s-xs); }
.pricing-card ul {
  list-style: none;
  text-align: left;
  margin: var(--s-lg) 0;
  padding: 0;
  font-size: 0.9375rem;
  color: var(--c-text-soft);
  line-height: 1.7;
}
.pricing-card ul li {
  padding: 8px 0;
  display: flex;
  align-items: flex-start;
  gap: var(--s-sm);
}
.pricing-card ul li::before {
  content: "✓";
  color: var(--c-success);
  font-weight: 700;
  flex-shrink: 0;
  display: inline-block;
}
.pricing-card .btn { margin-top: var(--s-md); }

.featured {
  border-color: var(--c-primary);
  border-width: 2px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

/* Bonus box (pricing) */
.bonus-box {
  background: var(--c-primary-light);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--s-md);
  font-size: 0.8rem;
  color: var(--c-text-soft);
  line-height: 1.6;
}
.bonus-box strong { color: var(--c-dark); }
.limited-badge {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--c-navy);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: var(--s-xs);
}
.scarcity-text {
  font-size: 0.875rem;
  color: var(--c-navy);
  font-weight: 700;
  margin: var(--s-md) 0 var(--s-xs);
}
.scarcity-sub {
  font-size: 0.8rem;
  color: var(--c-text-muted);
  margin-bottom: var(--s-md);
}

/* Lists */
section ul {
  margin: var(--s-sm) 0 var(--s-lg) 0;
  padding-left: 0;
  list-style: none;
}
section ul li {
  padding: 6px 0;
  color: var(--c-text-soft);
  line-height: 1.7;
}
/* Who-it's-for list: custom check bullets (global reset kills list-style) */
.who-list {
  list-style: none;
  padding-left: 0;
  margin: 12px 0 24px 0;
  color: var(--c-text-muted);
  line-height: 2;
}
.who-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-sm);
}
.who-list li::before {
  content: "✓";
  color: var(--c-success);
  font-weight: 700;
  flex-shrink: 0;
}

/* FAQ */
.faq-item {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-md);
  padding: var(--s-lg) var(--s-lg);
  margin-bottom: var(--s-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.faq-item:hover {
  border-color: var(--c-border);
  box-shadow: var(--shadow-md);
}
.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--c-text);
}
.faq-item p {
  font-size: 0.9375rem;
  margin-bottom: 0;
  color: var(--c-text-soft);
}

/* Collapsible FAQ */
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-md);
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: '+'; font-size: 1.25rem; font-weight: 400; color: var(--c-text-muted); transition: transform 0.2s ease; }
details.faq-item[open] summary::after { content: '−'; }
details.faq-item[open] summary { margin-bottom: 6px; }
details.faq-item[open] { border-color: var(--c-border); box-shadow: var(--shadow-md); }

/* Form */
.form-section {
  background: var(--c-bg-card);
  text-align: center;
}
.form-section .section-intro { margin-inline: auto; }
.brief-form { width: 100%; max-width: 640px; margin: var(--s-xl) auto 0; text-align: left; }
.brief-fields { display: block; }
.brief-fields[hidden] { display: none; }
.form-field { margin-bottom: var(--s-lg); }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--c-text);
  margin-bottom: var(--s-sm);
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-bg);
  border: 1px solid var(--c-text-muted);
  border-radius: var(--r-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field textarea { min-height: 90px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(59,130,160,0.18);
}
.form-hint { font-size: 0.8rem; color: var(--c-text-muted); margin-top: var(--s-xs); }
.form-response-note { text-align: center; margin-top: var(--s-md); }
.brief-form .btn { width: 100%; margin-top: var(--s-sm); }
.form-status { display: none; text-align: center; padding: var(--s-lg); border-radius: var(--r-md); margin-top: var(--s-lg); font-weight: 600; }
.form-status.ok { display: block; background: var(--c-success-light); color: var(--c-success); border: 1px solid var(--c-lake); }
.form-status.err { display: block; background: var(--c-beige); color: var(--c-navy); border: 1px solid var(--c-navy); }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--c-darker) 0%, var(--c-dark) 50%, var(--c-dark-alt) 100%);
  color: var(--c-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(147,181,207,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { color: var(--c-white); }
.cta-section p { color: rgba(255,255,255,0.7); }
.cta-section .btn { font-size: 1.125rem; padding: 16px 40px; }

/* Footer */
footer {
  text-align: center;
  padding: var(--s-xl) 0;
  font-size: 0.875rem;
  color: var(--c-text-muted);
  border-top: 1px solid var(--c-border-light);
  margin-top: var(--s-lg);
}
.consent-dialog {
  margin: auto;
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: var(--s-lg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  color: var(--c-text);
  background: var(--c-bg);
}
.consent-dialog::backdrop { background: rgba(31,41,55,0.6); }
.consent-dialog label { display: block; margin-bottom: var(--s-md); }
.consent-actions { display: flex; flex-wrap: wrap; gap: var(--s-sm); }
.consent-actions button { flex: 1 1 180px; }
.consent-link { background: none; border: none; color: var(--c-navy); font: inherit; text-decoration: underline; cursor: pointer; }
.consent-banner {
  position: fixed;
  inset: auto 0 0;
  z-index: 4;
  max-height: 100dvh;
  overflow-y: auto;
  background: var(--c-bg-alt);
  border-top: 1px solid var(--c-border);
  padding: var(--s-md) 0 calc(var(--s-md) + env(safe-area-inset-bottom, 0px));
}
.consent-banner p { font-size: 0.875rem; margin-bottom: var(--s-sm); }
.consent-banner .consent-actions { align-items: center; }
.consent-banner .consent-actions button { flex: 0 1 auto; font-size: 0.8125rem; padding: 10px 16px; }
.consent-banner .consent-link { min-height: 40px; }
.skip-link { position: absolute; top: 8px; left: 8px; transform: translateY(-160%); z-index: 5; background: var(--c-white); padding: 8px 16px; }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 4px; }

/* Links */
a {
  color: var(--c-navy);
  transition: color 0.2s ease;
}
a:hover { color: var(--c-dark-alt); }

/* Work image */
.work-image {
  width: 100%;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s ease;
}
.work-image:hover { box-shadow: var(--shadow-xl); }
.image-caption {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  margin-top: var(--s-sm);
  margin-bottom: 0;
}

/* Responsive */
@media (min-width: 769px) and (max-width: 1100px) {
  .hero::before { background: rgba(248,247,244,0.92); }
}
@media (max-width: 768px) {
  :root { --header-height: 128px; }
  .header-layout { flex-direction: column; justify-content: center; gap: var(--s-sm); }
  .brand-logo { width: 48px; }
  .site-nav { justify-content: center; gap: var(--s-md); }
  h1 { font-size: clamp(2.25rem, 6vw, 3rem); }
  h2 { font-size: 1.625rem; }
  section { padding: var(--s-2xl) 0; }
  .hero { display: flex; flex-direction: column; padding: var(--s-2xl) 0 0; }
  .hero::before { display: none; }
  .hero-layout { width: 100%; }
  .hero-copy { max-width: none; padding-bottom: var(--s-xl); }
  .hero-photo { position: static; order: 1; height: clamp(220px, 42vw, 320px); object-position: center; }
  .hero h1 { max-width: 100%; }
  .hero p { font-size: 1rem; max-width: 100%; }
  .container { padding-inline: var(--s-md); }
  .btn, .btn-outline { width: 100%; text-align: center; }
  .pricing-card { padding: var(--s-lg) var(--s-md); }
  .grid-3 { gap: var(--s-md); }
  .card { padding: var(--s-lg) 0 0; }
  .about-layout { grid-template-columns: 1fr; gap: var(--s-xl); }
  .work-layout { grid-template-columns: 1fr; gap: var(--s-xl); }
  .work-gallery-slide img { height: clamp(220px, 58vw, 340px); }
  .about-aside { border-left: 0; border-top: 1px solid var(--c-border); padding: var(--s-xl) 0 0; }
  .consent-banner .consent-actions button { flex: 1 1 auto; width: auto; }
  .contact-form { max-width: 100%; }
  .pricing-card.featured { padding: var(--s-lg) var(--s-md); }
}

@media (max-width: 480px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: var(--s-2xl) 0 0; }
  .hero .btn { padding: 14px 24px; }
  .btn, .btn-outline { padding: 14px 24px; }
  .grid-3 { grid-template-columns: 1fr; }
  .hero h1 br { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .btn:hover, .btn-outline:hover { transform: none; }
}
