/* ==========================================================================
   The Cabinet Harbor — Landing Page
   Design system: warm cabinetry cream + deep navy + wood-tone amber accent
   ========================================================================== */

:root,
[data-theme='light'] {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);

  /* Spacing (4px base) */
  --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;

  /* Surfaces — warm cabinetry cream */
  --color-bg: #faf6ee;
  --color-surface: #ffffff;
  --color-surface-2: #f4efe2;
  --color-surface-offset: #efe7d5;
  --color-surface-offset-2: #e8ded0;
  --color-divider: #e6ddc9;
  --color-border: #ddd0b6;

  /* Text — deep navy-charcoal */
  --color-text: #1c2431;
  --color-text-muted: #6c6656;
  --color-text-faint: #a89e88;
  --color-text-inverse: #faf6ee;

  /* Primary — deep cabinet navy */
  --color-primary: #16233d;
  --color-primary-hover: #0e1830;
  --color-primary-active: #0a1120;
  --color-primary-highlight: #dbe1ea;

  /* Accent — warm wood tone */
  --color-accent: #b8703c;
  --color-accent-hover: #9c5c2e;
  --color-accent-active: #7a4722;
  --color-accent-highlight: #f0ddc8;

  /* Success (in-stock, confirmations) */
  --color-success: #4f7a45;
  --color-success-highlight: #dbe6d5;

  /* Error */
  --color-error: #a13544;
  --color-error-highlight: #f0d7da;

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px oklch(0.2 0.03 60 / 0.08);
  --shadow-md: 0 8px 24px oklch(0.2 0.03 60 / 0.10);
  --shadow-lg: 0 20px 48px oklch(0.15 0.03 60 / 0.16);

  --content-narrow: 640px;
  --content-default: 1080px;
  --content-wide: 1280px;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'General Sans', 'Inter', sans-serif;
}

[data-theme='dark'] {
  --color-bg: #12151c;
  --color-surface: #181c25;
  --color-surface-2: #1e222c;
  --color-surface-offset: #22262f;
  --color-surface-offset-2: #2a2e38;
  --color-divider: #2c303a;
  --color-border: #363a45;

  --color-text: #ece7d9;
  --color-text-muted: #a29c8b;
  --color-text-faint: #6b6759;
  --color-text-inverse: #171b23;

  --color-primary: #8fa5c9;
  --color-primary-hover: #a9bcda;
  --color-primary-active: #c2d0e5;
  --color-primary-highlight: #26344a;

  --color-accent: #dd9c62;
  --color-accent-hover: #e8b17f;
  --color-accent-active: #f0c49b;
  --color-accent-highlight: #40311f;

  --color-success: #8fb682;
  --color-success-highlight: #263524;

  --color-error: #d17b8a;
  --color-error-highlight: #402029;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 8px 24px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 20px 48px oklch(0 0 0 / 0.45);
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.wrap {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.wrap--narrow {
  max-width: var(--content-narrow);
}
.wrap--default {
  max-width: var(--content-default);
}

section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

.section-head {
  max-width: 44rem;
  margin-bottom: var(--space-12);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--color-text);
}

h2 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.section-head p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  max-width: 60ch;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.header--hidden {
  transform: translateY(-100%);
}
.header--scrolled {
  box-shadow: var(--shadow-sm);
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}
.brand-logo {
  height: 2.5rem;
  width: auto;
  display: block;
  filter: var(--logo-filter, none);
}
[data-theme='dark'] .brand-logo,
[data-theme='dark'] .footer-logo {
  filter: invert(1) brightness(1.6) saturate(0.6);
}
.brand-tagline {
  display: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.65rem;
  line-height: 1.25;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  border-left: 1px solid var(--color-divider);
  padding-left: var(--space-3);
}
@media (min-width: 560px) {
  .brand-tagline {
    display: block;
  }
}
.footer-logo {
  height: 5.5rem;
  width: auto;
  display: block;
  margin-bottom: var(--space-3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--color-text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
}
.icon-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.icon-btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

.nav-toggle {
  display: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  border: 1px solid transparent;
}
.btn svg {
  width: 1rem;
  height: 1rem;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff8f0;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-md);
}
.btn-dark {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn-dark:hover {
  background: var(--color-primary-hover);
}
.btn-outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn-outline:hover {
  border-color: var(--color-text);
}
.btn-ghost-inverse {
  background: oklch(1 0 0 / 0.12);
  color: #fff;
  border-color: oklch(1 0 0 / 0.35);
}
.btn-ghost-inverse:hover {
  background: oklch(1 0 0 / 0.2);
}
.btn-block {
  width: 100%;
}
.btn-lg {
  padding: 1.05rem 1.75rem;
  font-size: var(--text-base);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-block: clamp(var(--space-20), 12vw, var(--space-32)) clamp(var(--space-12), 6vw, var(--space-20));
  overflow: hidden;
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('./assets/hero-navy-kitchen.webp');
  background-size: cover;
  background-position: center 65%;
  z-index: -2;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    oklch(0.15 0.03 260 / 0.92) 0%,
    oklch(0.15 0.03 260 / 0.74) 42%,
    oklch(0.15 0.03 260 / 0.28) 75%
  );
  z-index: -1;
}
.hero-inner {
  max-width: 40rem;
}
.hero .eyebrow {
  color: #e3b688;
}
.hero h1 {
  color: #ffffff;
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: 1.04;
  margin-bottom: var(--space-6);
  max-width: 16ch;
}
.hero-inner p {
  font-size: var(--text-lg);
  color: oklch(0.95 0.02 90 / 0.92);
  max-width: 46ch;
  margin-bottom: var(--space-8);
  font-weight: 400;
}
.hero-note {
  margin-top: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: oklch(0.95 0.02 90 / 0.8);
}
.hero-note svg {
  width: 1.1rem;
  height: 1.1rem;
  color: #e3b688;
  flex-shrink: 0;
}

/* Trust bar */
.trust-bar {
  position: relative;
  margin-top: clamp(var(--space-12), 6vw, var(--space-20));
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  box-shadow: var(--shadow-lg);
  padding: var(--space-8) var(--space-6);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-6);
  color: var(--color-text);
}
.trust-stat {
  text-align: center;
}
.trust-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}
.trust-stat span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Cabinetry options cards
   ========================================================================== */

.options-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}
.option-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}
.option-card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  margin-bottom: var(--space-5);
}
.option-card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.option-card p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}
.option-card p a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--transition-interactive);
}
.option-card p a:hover {
  text-decoration-color: currentColor;
}

/* ==========================================================================
   Trust badges strip
   ========================================================================== */

.trust-badges-section {
  padding-block: var(--space-8);
}
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}
.badge-pill svg {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* ==========================================================================
   Contractor trust badge
   ========================================================================== */

.trade-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-primary-highlight);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 600;
}
.trade-badge svg {
  width: 1rem;
  height: 1rem;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* ==========================================================================
   RTA definition + myth-busting
   ========================================================================== */

.rta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}
.rta-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}
.rta-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}
.rta-card-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}
.rta-card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.rta-card p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}
.rta-card--myth {
  border-color: var(--color-accent-highlight);
  background: linear-gradient(180deg, var(--color-accent-highlight) 0%, var(--color-surface) 42%);
}
.rta-card--myth .rta-card-icon {
  background: var(--color-accent-highlight);
  color: var(--color-accent-active);
}
.rta-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.rta-label--fact {
  color: var(--color-accent-active);
  margin-top: var(--space-5);
}
.rta-myth {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 0;
}

/* ==========================================================================
   Style gallery
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}
.gallery-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-md);
  display: block;
  text-decoration: none;
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-card:hover img {
  transform: scale(1.06);
}
.gallery-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, oklch(0.1 0.02 260 / 0.82) 0%, oklch(0.1 0.02 260 / 0) 55%);
}
.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-6);
  color: #fff;
  z-index: 1;
}
.gallery-caption span {
  display: block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #e3b688;
  margin-bottom: var(--space-1);
}
.gallery-caption strong {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
}

/* ==========================================================================
   Process steps
   ========================================================================== */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-6);
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: var(--space-8);
  border-top: 2px solid var(--color-border);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -0.9rem;
  left: 0;
  background: var(--color-bg);
  padding-right: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-accent);
  font-weight: 600;
}
.step h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ==========================================================================
   Contractor / trade section
   ========================================================================== */

.trade-section {
  position: relative;
  color: #fff;
  overflow: hidden;
}
.trade-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('./assets/warehouse-stock.webp');
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.trade-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, oklch(0.14 0.03 260 / 0.94) 0%, oklch(0.14 0.03 260 / 0.86) 55%, oklch(0.14 0.03 260 / 0.72) 100%);
  z-index: -1;
}
.trade-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-16);
  align-items: start;
}
.trade-section .eyebrow {
  color: #e3b688;
}
.trade-section h2 {
  color: #fff;
  font-size: var(--text-xl);
}
.trade-section > .wrap > p,
.trade-copy > p {
  color: oklch(0.95 0.02 90 / 0.85);
  max-width: 50ch;
  margin-bottom: var(--space-6);
}
.trade-list {
  display: grid;
  gap: var(--space-4);
}
.trade-list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-base);
  color: oklch(0.97 0.01 90 / 0.95);
}
.trade-list svg {
  width: 1.35rem;
  height: 1.35rem;
  color: #e3b688;
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.trade-card {
  background: oklch(1 0 0 / 0.08);
  border: 1px solid oklch(1 0 0 / 0.18);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.trade-card h3 {
  color: #fff;
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.trade-card p {
  color: oklch(0.95 0.02 90 / 0.8);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}
.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.stars {
  display: flex;
  gap: 0.2rem;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}
.stars svg {
  width: 1.05rem;
  height: 1.05rem;
}
.testimonial-card p {
  font-size: var(--text-base);
  color: var(--color-text);
  margin-bottom: var(--space-5);
  flex-grow: 1;
}
.testimonial-who {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  flex-shrink: 0;
}
.testimonial-who span {
  display: block;
  font-weight: 600;
  font-size: var(--text-sm);
}
.testimonial-who small {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list {
  border-top: 1px solid var(--color-divider);
}
.faq-item {
  border-bottom: 1px solid var(--color-divider);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  text-align: left;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}
.faq-q svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform var(--transition-interactive);
}
.faq-item[open] .faq-q svg {
  transform: rotate(45deg);
}
.faq-a {
  padding-bottom: var(--space-6);
  color: var(--color-text-muted);
  max-width: 68ch;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}

/* ==========================================================================
   Lead form
   ========================================================================== */

.form-section {
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.form-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-16);
  align-items: start;
}
.form-side h2 {
  font-size: var(--text-xl);
}
.form-side p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  max-width: 40ch;
}
.contact-line {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-size: var(--text-base);
}
.contact-line svg {
  width: 1.3rem;
  height: 1.3rem;
  color: var(--color-accent);
  flex-shrink: 0;
}
.contact-line a {
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
}
.contact-line a:hover {
  color: var(--color-accent);
}

.lead-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.field {
  margin-bottom: var(--space-5);
}
.field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.field .hint {
  display: block;
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  margin-top: var(--space-1);
}
.field input[type='text'],
.field input[type='tel'],
.field input[type='email'],
.field textarea,
.field select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: var(--text-base);
  color: var(--color-text);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 3px oklch(from var(--color-accent) l c h / 0.18);
}
.field textarea {
  resize: vertical;
  min-height: 6rem;
}
.file-drop {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  text-align: center;
  cursor: pointer;
  position: relative;
}
.file-drop:hover {
  border-color: var(--color-accent);
}
.file-drop svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--color-accent);
  margin-inline: auto;
  margin-bottom: var(--space-2);
}
.file-drop span {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.file-drop input[type='file'] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.file-drop.has-file {
  border-style: solid;
  border-color: var(--color-success);
  background: var(--color-success-highlight);
}
.radio-row {
  display: flex;
  gap: var(--space-3);
}
.radio-pill {
  flex: 1;
  position: relative;
}
.radio-pill input {
  position: absolute;
  opacity: 0;
}
.radio-pill label {
  display: block;
  text-align: center;
  padding: 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
}
.radio-pill input:checked + label {
  border-color: var(--color-accent);
  background: var(--color-accent-highlight);
  color: var(--color-accent-active);
}
.form-status {
  margin-top: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  display: none;
}
.form-status.visible {
  display: block;
}
.form-status.success {
  background: var(--color-success-highlight);
  color: var(--color-success);
}
.form-status.error {
  background: var(--color-error-highlight);
  color: var(--color-error);
}
.form-disclaimer {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-4);
}

/* ==========================================================================
   Final CTA banner
   ========================================================================== */

.cta-banner {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-10), 6vw, var(--space-16));
  margin-inline: auto;
  text-align: center;
  max-width: var(--content-default);
}
.cta-banner h2 {
  color: #fff;
  font-size: var(--text-xl);
  max-width: 30ch;
  margin-inline: auto;
}
.cta-banner p {
  color: oklch(0.95 0.02 90 / 0.82);
  max-width: 42ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}
.cta-banner .cta-row {
  justify-content: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-16) var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
.footer-brand p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  max-width: 32ch;
  margin-top: var(--space-4);
}
.footer h4 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
}
.footer-links {
  display: grid;
  gap: var(--space-3);
}
.footer-links a {
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--text-sm);
}
.footer-links a:hover {
  color: var(--color-accent);
}
.footer-bottom {
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Sticky mobile call bar
   ========================================================================== */

.mobile-callbar {
  display: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .trust-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .options-grid,
  .gallery-grid,
  .testimonial-grid,
  .rta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: var(--space-10);
  }
  .trade-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links,
  .header-actions .btn-dark {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .hero h1 {
    max-width: 100%;
  }
  .trust-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: var(--space-6);
  }
  .options-grid,
  .gallery-grid,
  .testimonial-grid,
  .steps-grid,
  .rta-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .cta-banner {
    border-radius: var(--radius-lg);
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .mobile-callbar {
    display: flex;
    position: fixed;
    left: var(--space-4);
    right: var(--space-4);
    bottom: var(--space-4);
    z-index: 90;
    gap: var(--space-3);
  }
  .mobile-callbar .btn {
    flex: 1;
  }
  body {
    padding-bottom: 4.5rem;
  }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--color-bg);
  padding: var(--space-6);
  display: none;
  flex-direction: column;
}
.mobile-nav.is-open {
  display: flex;
}
.mobile-nav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-10);
}
.mobile-nav-links {
  display: grid;
  gap: var(--space-6);
  list-style: none;
}
.mobile-nav-links a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  text-decoration: none;
  color: var(--color-text);
}
.mobile-nav-actions {
  margin-top: auto;
  display: grid;
  gap: var(--space-4);
}
