/* ── Design tokens ────────────────────────────────── */
:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;
  --bg-dark-alt: #1e293b;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-light: #f0f4fc;
  --text-light-muted: #94a3b8;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --accent: #ea580c;
  --accent-hover: #c2410c;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --transition: 200ms ease;
  --container: min(1120px, 90%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 50px -12px rgba(0, 0, 0, 0.12);
}

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

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

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
  padding: 0;
}

h1, h2, h3, h4 {
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

p {
  color: var(--text-muted);
}

/* ── Utilities ───────────────────────────────────── */
.container {
  width: var(--container);
  margin-inline: auto;
}

/* ── Header / Navbar ─────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.site-header.on-hero {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

.site-header.on-hero .nav-links a {
  color: var(--text-light-muted);
}

.site-header.on-hero .nav-links a:hover,
.site-header.on-hero .nav-links a:focus-visible {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.08);
}

.site-header.on-hero .brand-text {
  filter: brightness(0) invert(1);
}

.site-header.on-hero .nav-toggle span {
  background: var(--text-light);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-icon {
  height: 2.6rem;
  width: auto;
}

.brand-text {
  height: 1.2rem;
  width: auto;
  transition: filter var(--transition);
}

/* Navigation */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: var(--bg-alt);
}

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition) !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
  background: var(--accent-hover) !important;
  color: #fff !important;
}

/* Language switch */
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin-right: 0.5rem;
  padding: 0.15rem;
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.site-header.on-hero .language-switch {
  background: rgba(255, 255, 255, 0.08);
}

.language-switch a {
  padding: 0.2rem 0.45rem !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  border-radius: 0.3rem;
  letter-spacing: 0.04em;
}

.language-switch a[aria-current="page"] {
  color: var(--primary) !important;
  background: var(--bg) !important;
  box-shadow: var(--shadow-sm);
}

.site-header.on-hero .language-switch a[aria-current="page"] {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  padding: 0;
  cursor: pointer;
  align-items: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero (dark section with image) ──────────────── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: 4rem;
  background: var(--bg-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(15, 23, 42, 0.93) 0%, rgba(15, 23, 42, 0.7) 45%, rgba(15, 23, 42, 0.3) 100%),
    linear-gradient(to top, rgba(15, 23, 42, 1) 0%, transparent 20%);
}

.hero-split {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: center;
  padding-block: clamp(2rem, 5vh, 4rem);
}

.hero-text {
  max-width: 560px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--text-light);
  margin-bottom: 0.75rem;
  max-width: 600px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-tagline {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.hero-usp-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero-usp-list li {
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text-light-muted);
  padding-left: 1.4rem;
  position: relative;
}

.hero-usp-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero calculator card */
.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.calc-row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

.calc-row--qty {
  max-width: 120px;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.calc-field input {
  width: 100%;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
  border: 1px solid transparent;
  -moz-appearance: textfield;
}

.calc-field input::-webkit-inner-spin-button,
.calc-field input::-webkit-outer-spin-button {
  opacity: 1;
}

.calc-volume,
.calc-price {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.calc-result-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.calc-result-value {
  font-weight: 700;
}

.hero-calc-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.hero-calc-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light);
  margin: 0;
  letter-spacing: -0.01em;
}

.hero-calc-card .calc-field label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-light-muted);
}

.hero-calc-card .calc-field input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-light);
  font-size: 0.85rem;
  padding: 0.4rem 0.5rem;
  line-height: 1.2;
  box-sizing: border-box;
}

.hero-calc-card .calc-field input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  background: rgba(255, 255, 255, 0.12);
}

.calc-field--full {
  flex: 1 1 100%;
}

.calc-select {
  width: 100%;
  padding: 0.4rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 600;
  line-height: 1.2;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ccc' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
}

.calc-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  background-color: rgba(255, 255, 255, 0.12);
  outline: none;
}

.calc-select option {
  background: var(--bg-dark);
  color: var(--text-light);
}

.hero-calc-card .calc-times {
  color: var(--text-light-muted);
  font-size: 1rem;
}

.hero-calc-output {
  display: flex;
  gap: 1.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-calc-card .calc-result-label {
  font-size: 0.65rem;
  color: var(--text-light-muted);
}

.hero-calc-card .calc-result-value {
  font-size: 1rem;
  color: var(--text-light);
}

.hero-calc-card .calc-result-value--price {
  font-size: 1.25rem;
  color: #60a5fa;
}

.hero-calc-card .calc-disclaimer {
  font-size: 0.68rem;
  color: var(--text-light-muted);
  opacity: 0.7;
  line-height: 1.4;
}

/* Delivery options */
.calc-delivery {
  border: none;
  padding: 0;
  margin: 0.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.calc-delivery legend {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.2rem;
}

.calc-radio {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  color: var(--text-light-muted);
  cursor: pointer;
  line-height: 1.25;
}

.calc-radio input[type="radio"] {
  accent-color: var(--accent);
  margin: 0;
  flex-shrink: 0;
}

.calc-delivery-note {
  font-size: 0.65rem;
  color: var(--text-light-muted);
  opacity: 0.65;
  margin-top: 0.25rem;
  line-height: 1.35;
  font-style: italic;
}

.hero-calc-card .btn {
  align-self: stretch;
  text-align: center;
}

.btn--sm {
  font-size: 0.82rem;
  padding: 0.55rem 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.2);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.section .btn-outline {
  border-color: var(--border);
  color: var(--text);
}

.section .btn-outline:hover {
  border-color: var(--border-hover);
  background: var(--bg-alt);
}

/* ── Sections (light theme) ──────────────────────── */
.section {
  padding-block: clamp(4rem, 10vw, 6rem);
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-label {
  display: inline-block;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--text);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.section-header p {
  font-size: 1rem;
  max-width: 500px;
  margin-inline: auto;
  line-height: 1.7;
}

/* ── Benefits Grid (Why Choose Us?) ───────────────── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.benefits-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.benefits-grid.cols-2 .benefit-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 560px;
  justify-self: center;
}

.benefit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.benefit-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.benefit-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1rem;
}

.benefit-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.benefit-card h3 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.benefit-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Comparison table (Resin vs Filament) ────────── */
.compare-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.compare-header {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  font-weight: 700;
  font-size: 0.9rem;
}

.compare-header .compare-feature {
  background: var(--bg-alt);
  padding: 1rem 1.25rem;
}

.compare-header .compare-col--resin {
  background: var(--primary);
  color: #fff;
  padding: 1rem 1.25rem;
  text-align: center;
}

.compare-header .compare-col--filament {
  background: var(--bg-dark-alt);
  color: var(--text-light-muted);
  padding: 1rem 1.25rem;
  text-align: center;
}

.compare-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  border-top: 1px solid var(--border);
  transition: background var(--transition);
}

.compare-row:hover {
  background: rgba(37, 99, 235, 0.03);
}

.compare-row .compare-feature {
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
  display: flex;
  align-items: center;
}

.compare-row .compare-col {
  padding: 0.85rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  text-align: center;
}

.compare-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.compare-cross {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ── Process section ─────────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.process-grid::before {
  content: "";
  position: absolute;
  top: 1.75rem;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-number {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.process-step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.process-step p {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 260px;
  margin-inline: auto;
}

/* ── Cards grid (Applications) ───────────────────── */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

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

.card-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  background: #fff7ed;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent);
}

.card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.card h3 {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.card p {
  font-size: 0.875rem;
  line-height: 1.65;
}

/* ── Contact section ─────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--text);
  margin-bottom: 1rem;
  font-weight: 700;
}

.contact-info > p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.contact-features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.contact-features li::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #eff6ff;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Form */
.form-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
}

.quote-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-lg);
}

.section-alt .quote-form {
  box-shadow: var(--shadow-xl);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  background: var(--bg);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-optional {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.file-input {
  font-size: 0.85rem;
  color: var(--text);
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  cursor: pointer;
}

.file-input::file-selector-button {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border: none;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  margin-right: 0.75rem;
}

.file-input::file-selector-button:hover {
  background: var(--primary-hover);
}

.quote-form .btn {
  align-self: flex-start;
  margin-top: 0.25rem;
}

/* ── Footer ──────────────────────────────────────── */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-light-muted);
  padding: 3rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.5rem;
}

.footer-about p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-light-muted);
  margin-top: 1rem;
  max-width: 320px;
}

.footer-col h4 {
  color: var(--text-light);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--text-light-muted);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--text-light);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand img {
  height: 1.2rem;
  filter: brightness(0) invert(1);
  opacity: 0.6;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.6);
}

/* ── Scroll reveal ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Focus states ────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 1024px) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .compare-header,
  .compare-row {
    grid-template-columns: 1.6fr 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-split {
    grid-template-columns: 1fr 340px;
    gap: 2rem;
  }

  .process-grid::before {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

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

  .nav-links {
    position: fixed;
    inset: 0;
    top: 4rem;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 250ms ease, transform 250ms ease, visibility 250ms ease;
  }

  .site-header.on-hero .nav-links {
    background: rgba(15, 23, 42, 0.97);
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 0.75rem 1rem;
    color: var(--text);
  }

  .site-header.on-hero .nav-links a {
    color: var(--text-light-muted);
  }

  .site-header.on-hero .nav-toggle {
    border-color: rgba(255, 255, 255, 0.2);
  }

  .language-switch {
    margin-right: 0;
    margin-bottom: 0.5rem;
    align-self: flex-start;
  }

  .card-grid.cols-3,
  .card-grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .compare-header,
  .compare-row {
    grid-template-columns: 1fr;
  }

  .compare-header .compare-feature {
    display: none;
  }

  .compare-row {
    gap: 0;
    padding: 0.75rem 1rem;
  }

  .compare-row .compare-feature {
    padding: 0 0 0.25rem;
    font-size: 0.82rem;
  }

  .compare-row .compare-col {
    padding: 0.25rem 0;
    justify-content: flex-start;
    text-align: left;
    font-size: 0.8rem;
  }

  .calc-row {
    flex-wrap: wrap;
  }

  .calc-field {
    min-width: 70px;
  }

  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    max-width: none;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-calc-card {
    max-width: 400px;
    margin-inline: auto;
  }

  .hero-bg::after {
    background:
      linear-gradient(to bottom, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.65) 40%, rgba(15, 23, 42, 0.5) 60%, rgba(15, 23, 42, 1) 100%);
  }

  .hero h1 {
    font-size: clamp(1.8rem, 6vw, 2.6rem);
    max-width: none;
  }

  .hero-tagline {
    max-width: none;
  }

  .hero-desc {
    max-width: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .brand-text {
    height: 1rem;
  }

  .brand-icon {
    height: 2rem;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .section-header h2 {
    font-size: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
