/* ==========================================================================
   Business Spizzicohome — Design tokens
   Source: DESIGN.md / .impeccable/design.json — "Lo Studio di Progettazione"
   ========================================================================== */

:root {
  /* Colors — navy/cobalt inherited from spizzicohome.it, bronze is new */
  --navy-primary: #00205c;
  --navy-primary-ink: #001040;
  --slate-cobalt: #5e8192;
  --slate-cobalt-light: #c8dae9;
  /* Darkened variant of slate-cobalt for small text (labels/tags): the base
     value measures 3.9-4.2:1 on our surfaces, short of the 4.5:1 small-text
     minimum. Same hue, kept separate so the brand-continuity value above
     stays an exact match to the parent site's --cobalt. */
  --slate-cobalt-text: #4e6b79;
  --brass-accent: #a9803f;
  /* Corrected from the tonal-ramp estimate (#8A6830): measured 4.37:1 on
     --brass-tint, just under the 4.5:1 small-text minimum. */
  --brass-accent-deep: #6c5125;
  --surface-cool: #f5f7f9;
  --surface-tint: #edf6fa;
  --surface-white: #ffffff;
  --brass-tint: #f6ecd9;
  --ink-body: #2e4550;
  --ink-muted: #5b6b73;
  --border-subtle: #d7e2e8;
  /* Only non-brand hue in the system: form validation needs the
     red-for-error convention regardless of palette. */
  --error-text: #b3261e;
  --error-border: #cc7972;
  /* Client-specified exact hex for the trust/numbers section background —
     not derived from the tonal ramp, a deliberate one-off dark surface. */
  --trust-bg: #15233f;

  /* Typography */
  --font-heading: "Catamaran", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Catamaran", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shape */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  /* Reserved exclusively for compact status indicators — never buttons/CTAs (No-Pill-Button Rule) */
  --radius-pill: 999px;

  /* Elevation — earned, never at rest */
  --shadow-hover: 0 4px 16px rgba(0, 32, 92, 0.14);
  --focus-ring: 0 0 0 3px rgba(169, 128, 63, 0.35);

  /* Motion */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-fast: 180ms;
  --duration-base: 280ms;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 6rem;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-body);
  background: var(--surface-cool);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { color: var(--navy-primary); margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.main-wrapper {
  width: 92%;
  max-width: 1280px;
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: -48px;
  background: var(--navy-primary);
  color: var(--surface-white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 100;
  transition: top var(--duration-fast) var(--ease-out-quart);
}
.skip-link:focus { top: var(--space-sm); }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

section { padding: var(--space-xl) 0; }

/* Alternating section backgrounds for vertical rhythm, instead of one flat
   page background throughout. */
#segmenti, #come-lavoriamo { background: var(--surface-white); }
#caso-studio { background: var(--surface-cool); }

/* ==========================================================================
   Typography scale
   ========================================================================== */

.display {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* Emphasis Italic Rule — reserved for a small set of named section
   headings, one or two key words each. Style + color, never a gradient.
   (Bug fix: this previously only targeted .display, so the case-study
   heading's <em> rendered browser-default italic without the bronze — the
   rule was written but never actually applied there.) */
.display em,
.headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--brass-accent);
}

.headline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
}

.title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
}

.lead {
  font-size: 1.125rem;
  color: var(--ink-muted);
  max-width: 62ch;
}

.body-text { max-width: 68ch; }

.label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--slate-cobalt-text);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border-radius: var(--radius-md);
  padding: 14px 32px;
  border: none;
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease-out-quart),
              color var(--duration-fast) var(--ease-out-quart),
              box-shadow var(--duration-fast) var(--ease-out-quart),
              transform var(--duration-fast) var(--ease-out-quart);
}

.btn-primary {
  background: var(--navy-primary);
  color: var(--surface-white);
}
.btn-primary:hover {
  background: var(--brass-accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--navy-primary);
  border: 1.5px solid var(--navy-primary);
  padding: 12px 30px;
}
.btn-secondary:hover { background: var(--surface-tint); }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  background: var(--surface-white);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 40;
}

.contact-bar {
  background: var(--surface-white);
  border-bottom: 1px solid var(--border-subtle);
}

.contact-bar-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: 0.75rem;
}

/* Recreated from the parent brand's own top bar: a light shape with a
   subtle diagonal cut on the trailing edge and a rounded corner — the
   parent's "diagonal-navbar" effect. Bled out to the true viewport edge
   (not just main-wrapper's edge) via the negative-margin/padding pair below,
   a standard technique for a full-bleed background inside a centered
   container without breaking the container's own content alignment. */
.contact-bar-diagonal {
  --inset: calc((100vw - min(92vw, 1280px)) / 2);
  display: flex;
  align-items: center;
  background: var(--border-subtle);
  clip-path: polygon(0 0, 100% 0, calc(100% - 24px) 100%, 0% 100%);
  border-bottom-right-radius: 20px;
  margin-left: calc(-1 * var(--inset));
  padding: 0.55rem 2.5rem 0.55rem var(--inset);
}

.contact-bar-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-bar-links li {
  display: flex;
  align-items: center;
}
.contact-bar-links a,
.contact-bar-hours {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 32px;
  color: var(--slate-cobalt-text);
  transition: color var(--duration-fast) var(--ease-out-quart);
}
.contact-bar-links a:hover { color: var(--brass-accent); }
.contact-bar-links svg { width: 14px; height: 14px; flex-shrink: 0; }
.contact-bar-links span { display: none; }
.contact-bar-links li.contact-bar-assistance { display: none; }
.contact-bar-assistance a { color: var(--navy-primary); font-weight: 700; }

.contact-bar-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-right: var(--space-md);
}
.contact-bar-follow { display: none; color: var(--navy-primary); font-weight: 600; }

.contact-bar-social {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-bar-social a {
  display: flex;
  color: var(--navy-primary);
  transition: color var(--duration-fast) var(--ease-out-quart);
}
.contact-bar-social a:hover { color: var(--brass-accent); }
.contact-bar-social svg { width: 16px; height: 16px; }

.contact-bar-lang {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: transparent;
  border: none;
  border-left: 1px solid var(--border-subtle);
  padding: 0 0 0 var(--space-sm);
  color: var(--navy-primary);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  cursor: pointer;
}
.contact-bar-lang svg { width: 12px; height: 12px; }

@media (min-width: 640px) {
  .contact-bar-links span { display: inline; }
}

@media (min-width: 1024px) {
  .contact-bar-links li.contact-bar-assistance { display: flex; }
  .contact-bar-follow { display: inline; }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}
.nav-logo img { height: 84px; width: auto; }

.nav-link-items {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link-item {
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--navy-primary);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color var(--duration-fast) var(--ease-out-quart);
}
.nav-link-item:hover, .nav-link-item.is-active { border-bottom-color: var(--brass-accent); }

.nav-cta { display: none; }

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy-primary);
  position: relative;
  transition: transform var(--duration-fast) var(--ease-out-quart), opacity var(--duration-fast) var(--ease-out-quart);
}
.nav-toggle-icon::before { content: ""; position: absolute; top: -6px; }
.nav-toggle-icon::after { content: ""; position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { transform: translateY(-6px) rotate(-45deg); }

.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 1px;
  background: var(--border-subtle);
  border-top: 1px solid var(--border-subtle);
}
.nav-drawer.is-open { display: flex; }
.nav-drawer .nav-link-item {
  background: var(--surface-white);
  padding: 1rem 5%;
  border-bottom: none;
}
.nav-drawer .btn { margin: 1rem 5%; }

@media (min-width: 1024px) {
  .nav-link-items { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle, .nav-drawer { display: none; }
}
@media (max-width: 1023px) {
  .nav-link-items { display: none; }
}

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

.hero {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: var(--surface-white);
  color: var(--slate-cobalt-text);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
}
.hero-badge svg { width: 14px; height: 14px; color: var(--brass-accent); }

.hero-columns {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.hero-business-logo {
  height: auto;
  width: 100%;
  max-width: 512px;
  margin-bottom: var(--space-md);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  aspect-ratio: 16 / 9;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 1024px) {
  .hero-columns { grid-template-columns: 1.1fr 1fr; align-items: end; }
}

/* ==========================================================================
   Section heading
   ========================================================================== */

.section-head { margin-bottom: var(--space-lg); max-width: 72ch; }
.section-head .label { display: block; margin-bottom: var(--space-xs); }

.section-head-split {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  align-items: end;
}
.section-head-split .label { display: block; margin-bottom: var(--space-xs); }
.section-head-split .body-text { color: var(--ink-muted); max-width: 46ch; }

@media (min-width: 1024px) {
  .section-head-split { grid-template-columns: 1.1fr 1fr; }
}

/* ==========================================================================
   Segments — equal-width grid with image overlay, per client reference
   (business.coertini.com "ecosistema di progetti" pattern)
   ========================================================================== */

.segments-grid {
  display: grid;
  gap: var(--space-md);
}

.segment-col {
  display: block;
}

.segment-col-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-sm);
}
.segment-col-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-base) var(--ease-out-quart);
}
.segment-col:hover .segment-col-media img { transform: scale(1.04); }

.segment-col-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0, 32, 92, 0.82), transparent);
}

.segment-col-label {
  position: absolute;
  left: var(--space-sm);
  bottom: var(--space-sm);
  right: var(--space-sm);
  z-index: 1;
  color: var(--surface-white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.0625rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.segment-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--slate-cobalt-text);
  margin-bottom: 0.75rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brass-accent-deep);
  background: var(--brass-tint);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  margin-top: 0.5rem;
}
.status-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brass-accent);
}

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

/* ==========================================================================
   Case study dossier
   ========================================================================== */

.dossier {
  display: grid;
  gap: var(--space-lg);
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: box-shadow var(--duration-base) var(--ease-out-quart);
}
.dossier:hover { box-shadow: var(--shadow-hover); }

.dossier-media { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4 / 3; }
.dossier-media img { width: 100%; height: 100%; object-fit: cover; }

.dossier-results {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}
.dossier-result-value {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 2rem;
  color: var(--brass-accent);
  line-height: 1;
}
.dossier-result-label {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin-top: 0.25rem;
}

.dossier-body-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm);
}
.dossier-index {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--border-subtle);
  line-height: 1;
}

.dossier--pending .dossier-media img { filter: grayscale(45%); opacity: 0.8; }

@media (min-width: 1024px) {
  .dossier { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
}

/* ==========================================================================
   Case study carousel — native scroll-snap, no JS dependency to function
   ========================================================================== */

.dossier-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.dossier-track {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 1rem;
  scrollbar-width: none;
}
.dossier-track::-webkit-scrollbar { display: none; }

.dossier-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-width: 0;
}

.carousel-arrow {
  flex-shrink: 0;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--surface-white);
  color: var(--navy-primary);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out-quart), color var(--duration-fast) var(--ease-out-quart);
}
.carousel-arrow svg { width: 18px; height: 18px; }
.carousel-arrow:hover:not(:disabled) { border-color: var(--brass-accent); color: var(--brass-accent); }
.carousel-arrow:disabled { opacity: 0.35; cursor: not-allowed; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-sm);
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--border-subtle);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out-quart), transform var(--duration-fast) var(--ease-out-quart);
}
.carousel-dot.is-active { background: var(--brass-accent); transform: scale(1.25); }

@media (min-width: 768px) {
  .dossier-slide { flex-basis: calc(85% - var(--space-md)); }
}

@media (min-width: 1024px) {
  .carousel-arrow { display: flex; }
  .dossier-slide { flex-basis: 100%; }
}

/* ==========================================================================
   Process — a real sequence, numbers earned
   ========================================================================== */

.process-list {
  display: grid;
  gap: var(--space-md);
  counter-reset: process;
}

.process-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
}
.process-item:last-child { border-bottom: none; padding-bottom: 0; }

.process-number {
  counter-increment: process;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--border-subtle);
}
.process-number::before { content: counter(process, decimal-leading-zero); }

@media (min-width: 768px) {
  .process-list { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg) var(--space-md); }
}

/* ==========================================================================
   Trust / numbers — dark section, client-specified exact background,
   per client reference for the two-column heading + stat-grid pattern.
   ========================================================================== */

.trust {
  background: var(--trust-bg);
  --trust-muted: color-mix(in srgb, var(--surface-white) 75%, transparent);
}

.trust-grid {
  display: grid;
  gap: var(--space-lg);
}

.trust-intro .headline { color: var(--surface-white); max-width: 18ch; }
.trust-intro .body-text { color: var(--trust-muted); max-width: 46ch; margin-top: var(--space-md); }

.trust-stats {
  display: grid;
  gap: var(--space-lg) var(--space-md);
}

.trust-stat-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--brass-accent);
  line-height: 1;
}
.trust-stat-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--surface-white);
  margin-top: 0.5rem;
}
.trust-stat-desc {
  color: var(--trust-muted);
  font-size: 0.9375rem;
  margin-top: 0.3rem;
}

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

@media (min-width: 1024px) {
  .trust-grid { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
}

/* ==========================================================================
   Contact form
   ========================================================================== */

.contact-panel {
  display: grid;
  gap: var(--space-lg);
  background: var(--surface-tint);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.contact-intro .lead { color: var(--ink-muted); margin-top: var(--space-sm); }
.contact-intro .body-text { color: var(--ink-muted); margin-top: var(--space-md); }

.contact-form {
  display: grid;
  gap: var(--space-md);
  align-content: start;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy-primary);
}
.field-input,
.field-select,
.field-textarea {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--ink-body);
  background: var(--surface-white);
  transition: border-color var(--duration-fast) var(--ease-out-quart), box-shadow var(--duration-fast) var(--ease-out-quart);
}
.field-input::placeholder, .field-textarea::placeholder { color: var(--ink-muted); }
.field-input:focus, .field-select:focus, .field-textarea:focus {
  outline: none;
  border-color: var(--brass-accent);
  box-shadow: var(--focus-ring);
}
.field-textarea { resize: vertical; min-height: 120px; }

.field-error {
  font-size: 0.8125rem;
  color: var(--error-text);
  display: none;
}
.field.has-error .field-error { display: block; }
.field.has-error .field-input,
.field.has-error .field-select,
.field.has-error .field-textarea {
  border-color: var(--error-border);
}

.form-row { display: grid; gap: var(--space-md); }
@media (min-width: 640px) {
  .form-row-2 { grid-template-columns: 1fr 1fr; }
}

.form-status {
  display: none;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9375rem;
  color: var(--ink-body);
}
.form-status.is-visible { display: flex; }

@media (min-width: 1024px) {
  .contact-panel { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
}

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

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-lg) 0;
}
.footer-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.9375rem;
  color: var(--ink-muted);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.footer-brand img { height: 56px; width: auto; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links a { text-decoration: none; font-weight: 600; color: var(--navy-primary); }
.footer-links a:hover { color: var(--brass-accent); }

@media (min-width: 768px) {
  .footer-grid { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ==========================================================================
   Hero entrance — pure CSS, no JS/observer dependency. Above-the-fold
   content is visible on load regardless; motion-enabled browsers layer a
   guaranteed-to-run keyframe animation on top (CSS animations still run in
   backgrounded/headless tabs, unlike IntersectionObserver callbacks).
   ========================================================================== */

.hero-enter { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .hero-enter {
    animation: hero-rise var(--duration-base) var(--ease-out-quart) both;
  }
  .hero-enter--delayed { animation-delay: 80ms; }
  .hero-enter--delayed-2 { animation-delay: 160ms; }
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   FAQ accordion — native <details>/<summary>, no JS dependency to function
   ========================================================================== */

.faq-list {
  display: grid;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--navy-primary);
  cursor: pointer;
  list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--navy-primary);
  border-bottom: 1.5px solid var(--navy-primary);
  transform: rotate(45deg);
  transition: transform var(--duration-fast) var(--ease-out-quart);
}
.faq-item[open] .faq-question::after { transform: rotate(-135deg); }

.faq-item:has(.faq-question:focus-visible) {
  box-shadow: var(--focus-ring);
}

.faq-answer {
  margin-top: var(--space-sm);
  color: var(--ink-muted);
}

/* ==========================================================================
   Reveal-on-scroll — enhances an already-visible default
   ========================================================================== */

.reveal {
  opacity: 1;
  transform: none;
}
/* Gated on html.js: if the bootstrap script never runs (JS disabled/blocked),
   content stays visible by default instead of hiding behind a class that
   would never flip. */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    transition: opacity var(--duration-base) var(--ease-out-quart), transform var(--duration-base) var(--ease-out-quart);
  }
  html.js .reveal[data-revealed="false"] {
    opacity: 0;
    transform: translateY(16px);
  }
}
