/* Vicon Mechanical — site styles. Tokens match the Vicon Mechanical design system. */
:root {
  --vicon-indigo: #262262;
  --indigo-night: #12102d;
  --indigo-bright: #443cae;
  --indigo-soft: #b6b3e5;
  --indigo-mist: #e2e1f4;
  --indigo-wash: #f0f0fa;
  --ink: #1b1a23;
  --ink-heading: #262262;
  --ink-muted: #5e5c7a;
  --line: #d7d6e0;
  --field-border: #7e7c9c;
  --action: #bb501b;
  --action-hover: #9a4116;
  --action-on-brand: #f2955a;
  --action-soft: #fbede4;
  --action-text: #9a4116;
  --success: #1e7a46;
  --error: #b3261e;
  --white: #ffffff;

  --font-display: Barlow, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-text: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 32px;
  --space-6: 48px; --space-8: 64px; --space-12: 96px;
  --radius-control: 8px; --radius-card: 12px;
  --radius-signature: 48px; --radius-signature-sm: 32px;
  --shadow-card: 0 1px 2px rgba(18, 16, 45, 0.06), 0 8px 24px rgba(18, 16, 45, 0.06);
  --shadow-sticky: 0 -4px 16px rgba(18, 16, 45, 0.12);
  --content: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-text); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo-bright); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--indigo-bright); outline-offset: 2px; }
.on-brand a:focus-visible, .on-brand button:focus-visible { outline-color: var(--white); }
.skip { position: absolute; left: var(--space-2); top: -100px; background: var(--white); color: var(--ink-heading); padding: var(--space-1) var(--space-2); border-radius: var(--radius-control); z-index: 100; font-weight: 500; }
.skip:focus { top: var(--space-1); }
.wrap { max-width: var(--content); margin: 0 auto; padding: 0 var(--space-3); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink-heading); margin: 0; }
h1 { font-size: 56px; line-height: 1.05; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 40px; line-height: 1.1; font-weight: 600; }
h3 { font-size: 28px; line-height: 1.2; font-weight: 600; }
h4 { font-size: 20px; line-height: 1.3; font-weight: 600; }
p { margin: 0; }
.h3 { font-size: 28px; line-height: 1.2; }
.h4 { font-size: 20px; line-height: 1.3; }
.card h3 { font-size: 22px; line-height: 1.25; }
.lead { font-size: 20px; line-height: 1.5; }
.small { font-size: 14px; line-height: 1.4; font-weight: 500; color: var(--ink-muted); }
.section-head { max-width: 720px; display: grid; gap: var(--space-2); margin-bottom: var(--space-6); }
.prose { max-width: 680px; display: grid; gap: var(--space-2); }

/* Buttons */
.btn { font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1; min-height: 48px; padding: 0 var(--space-3); border-radius: var(--radius-control); border: 2px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--action); color: var(--white); }
.btn-primary:hover { background: var(--action-hover); }
.btn-secondary { background: transparent; border-color: var(--ink-heading); color: var(--ink-heading); }
.btn-secondary:hover { background: var(--indigo-mist); }
.btn-brand { background: var(--action-on-brand); color: var(--indigo-night); }
.btn-brand:hover { background: #f59e66; }
.btn-outline-light { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: var(--space-4); min-height: 80px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: var(--space-3); margin-left: auto; }
.nav a { color: var(--ink-heading); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 17px; padding: var(--space-1) 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--action); }
.header-phone { display: inline-flex; align-items: center; gap: var(--space-1); font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink-heading); text-decoration: none; white-space: nowrap; }
.header-phone svg { width: 20px; height: 20px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 2px solid var(--ink-heading); border-radius: var(--radius-control); color: var(--ink-heading); height: 44px; padding: 0 var(--space-2); font-family: var(--font-display); font-weight: 600; font-size: 16px; align-items: center; gap: var(--space-1); cursor: pointer; }
.menu-toggle svg { width: 20px; height: 20px; }

/* Sections */
.section { padding: var(--space-12) 0; }
.section-alt { background: var(--indigo-wash); }
.section-brand { background: var(--vicon-indigo); color: var(--white); }
.section-brand h2, .section-brand h3 { color: var(--white); }
.section-brand .muted { color: var(--indigo-soft); }

/* Hero */
.hero { padding: var(--space-8) 0 var(--space-12); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--space-6); align-items: start; }
.hero-copy { display: grid; gap: var(--space-3); padding-top: var(--space-3); }
.trust { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); list-style: none; margin: 0; padding: 0; }
.trust li { display: inline-flex; align-items: center; gap: var(--space-1); font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--ink-heading); }
.trust svg { width: 18px; height: 18px; flex: none; }
.on-brand .trust li { color: var(--white); }

/* Photo hero: real Vicon project photo under an Indigo Night overlay */
.hero-photo { position: relative; isolation: isolate; overflow: hidden; color: var(--white); padding: var(--space-12) 0; }
.hero-photo .hero-bg, .band-photo .band-bg { position: absolute; inset: 0; z-index: -2; }
.hero-photo .hero-bg img, .band-photo .band-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18, 16, 45, 0.92) 0%, rgba(18, 16, 45, 0.78) 45%, rgba(18, 16, 45, 0.4) 100%); }
.hero-photo h1, .hero-photo .lead { color: var(--white); }
.hero-photo .trust li, .hero-photo .trust svg { color: var(--white); }
.hero-photo .panel { box-shadow: var(--shadow-card); color: var(--ink); }
.band-photo { position: relative; isolation: isolate; overflow: hidden; }
.band-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(38, 34, 98, 0.95) 0%, rgba(38, 34, 98, 0.86) 60%, rgba(38, 34, 98, 0.7) 100%); }
.band-photo .muted { color: #e2e1f4; }

/* Photos */
.photo { border-radius: 0 var(--radius-signature) 0 0; overflow: hidden; background: var(--indigo-wash); }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.story { align-items: center; }
.projects { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.project { margin: 0; display: grid; gap: var(--space-1); }
.project img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-card); }
.project:first-child img { border-radius: var(--radius-card) var(--radius-signature-sm) var(--radius-card) var(--radius-card); }
.points-photo { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--space-8); align-items: center; }
.points-photo .photo img { aspect-ratio: 4 / 5; }
.points.points-stack { grid-template-columns: 1fr; gap: var(--space-3); }

/* Team: real Vicon staff photos */
.team { display: grid; grid-template-columns: 1fr 1.35fr; gap: var(--space-8); align-items: center; }
.team .actions { margin-top: var(--space-1); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; gap: var(--space-2); }
.tile { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-card); background: var(--indigo-wash); }
.tile picture, .tile img { display: block; width: 100%; height: 100%; }
.tile img { object-fit: cover; }
.tile-tall { grid-row: span 2; }
.tile-wide { grid-column: span 2; }
.team-grid .tile:nth-child(3) { border-top-right-radius: var(--radius-signature); }
.tile figcaption { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: var(--radius-control); background: rgba(18, 16, 45, 0.82); color: var(--white); font-size: 14px; font-weight: 600; line-height: 1.4; }

/* Cookie choices */
.consent { position: fixed; left: var(--space-2); bottom: var(--space-2); z-index: 70; width: 440px; max-width: calc(100% - 2 * var(--space-2)); background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 0 var(--radius-signature-sm) var(--radius-card) var(--radius-card); box-shadow: 0 12px 36px rgba(18, 16, 45, 0.18); padding: var(--space-3); font-size: 15px; line-height: 1.5; }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 var(--space-2); }
.consent .consent-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink-heading); margin-bottom: var(--space-1); }
.consent .consent-gpc { font-size: 14px; color: var(--ink-muted); }
.consent-actions { display: flex; gap: var(--space-1); }
.consent-actions .btn { flex: 1 1 0; min-height: 44px; font-size: 16px; }
.link-button { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* Forms */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 0 var(--radius-signature) var(--radius-card) var(--radius-card); padding: var(--space-4); box-shadow: var(--shadow-card); display: grid; gap: var(--space-3); }
.form-card .form-intro { display: grid; gap: var(--space-1); }
.form-card h2 { font-size: 28px; line-height: 1.2; }
.field { display: grid; gap: var(--space-1); }
.field label { font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--ink); }
.field .optional { color: var(--ink-muted); font-weight: 400; }
.input { font: inherit; font-size: 17px; min-height: 48px; padding: 0 var(--space-2); border: 1.5px solid var(--field-border); border-radius: var(--radius-control); background: var(--white); color: var(--ink); width: 100%; }
textarea.input { padding: 12px var(--space-2); min-height: 120px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.form-grid .full { grid-column: 1 / -1; }
.hp { display: none; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; display: flex; flex-direction: column; }
.card-art { aspect-ratio: 16 / 10; background: var(--indigo-wash); border-radius: 0 var(--radius-signature-sm) 0 0; display: grid; place-items: center; color: var(--vicon-indigo); }
.section-alt .card-art { background: var(--indigo-mist); }
.card-art svg { width: 96px; height: 96px; }
.card-body { padding: var(--space-3); display: grid; gap: var(--space-1); align-content: start; flex: 1; }
.card-body .link { margin-top: var(--space-1); font-weight: 500; }
.more { margin-top: var(--space-4); }

/* Proof points */
.points { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4) var(--space-6); }
.point { display: grid; grid-template-columns: 48px 1fr; gap: var(--space-2); align-items: start; }
.point-icon { width: 48px; height: 48px; border-radius: 0 var(--radius-card) 0 0; background: var(--indigo-mist); color: var(--vicon-indigo); display: grid; place-items: center; }
.point-icon svg { width: 24px; height: 24px; }
.point div { display: grid; gap: 4px; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.review { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--space-4); display: grid; gap: var(--space-2); align-content: start; }
.stars { display: flex; gap: 4px; color: var(--vicon-indigo); }
.stars svg { width: 18px; height: 18px; }
.review blockquote { margin: 0; font-size: 20px; line-height: 1.5; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { display: grid; gap: var(--space-1); align-content: start; }
.steps li::before { counter-increment: step; content: counter(step); font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--white); background: var(--vicon-indigo); width: 44px; height: 44px; border-radius: 0 var(--radius-card) 0 0; display: grid; place-items: center; margin-bottom: var(--space-1); }

/* Split blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: start; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: var(--space-1); align-items: start; }
.checklist svg { width: 22px; height: 22px; color: var(--vicon-indigo); margin-top: 3px; }

/* Bands */
.band { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.band-copy { display: grid; gap: var(--space-1); max-width: 640px; }
.panel { background: var(--white); border-radius: 0 var(--radius-signature) var(--radius-card) var(--radius-card); padding: var(--space-6); border: 1px solid var(--line); }
.note { border-left: 0; background: var(--action-soft); border-radius: 0 var(--radius-card) var(--radius-card) var(--radius-card); padding: var(--space-3); display: grid; gap: var(--space-1); }
.note h3 { font-size: 22px; }

/* FAQ */
.faq { display: grid; gap: var(--space-2); max-width: 820px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 0 var(--space-3); }
.faq summary { cursor: pointer; list-style: none; padding: var(--space-3) 0; font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--ink-heading); display: flex; justify-content: space-between; gap: var(--space-2); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--ink-heading); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding-bottom: var(--space-3); }

/* Contact details */
.details { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.details li { display: grid; grid-template-columns: 24px 1fr; gap: var(--space-2); }
.details svg { width: 24px; height: 24px; color: var(--vicon-indigo); }
.details strong { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--ink-heading); display: block; }

/* Footer */
.site-footer { background: var(--indigo-night); color: var(--white); padding: var(--space-8) 0 var(--space-4); }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-6); }
.footer-grid img { height: 40px; width: auto; margin-bottom: var(--space-2); }
.footer-grid h2 { font-size: 17px; color: var(--indigo-soft); font-family: var(--font-display); font-weight: 600; margin-bottom: var(--space-2); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.footer-grid ul a { text-decoration: none; }
.footer-grid ul a:hover { text-decoration: underline; }
.footer-note { color: var(--indigo-soft); }
.footer-base { margin-top: var(--space-6); padding-top: var(--space-3); border-top: 1px solid #2c2960; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); font-size: 14px; color: var(--indigo-soft); }

/* Mobile call bar */
.callbar { display: none; }

@media (max-width: 1120px) {
  .nav { display: none; }
  .header-phone { margin-left: auto; font-size: 18px; }
  .menu-toggle { display: inline-flex; margin-left: 0; }
  .site-header.open .nav { display: grid; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); padding: var(--space-2) var(--space-3) var(--space-3); gap: var(--space-1); margin: 0; }
  .site-header.open .nav a { font-size: 20px; padding: var(--space-1) 0; justify-self: start; }
}

@media (max-width: 960px) {
  .hero .wrap, .split, .points-photo, .team { grid-template-columns: 1fr; gap: var(--space-6); }
  .team-grid { grid-auto-rows: 240px; }
  .projects { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .points-photo .photo img { aspect-ratio: 16 / 10; }
  .hero-photo::before { background: linear-gradient(180deg, rgba(18, 16, 45, 0.9) 0%, rgba(18, 16, 45, 0.82) 60%, rgba(18, 16, 45, 0.7) 100%); }
  .cards { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-footer { padding-bottom: calc(var(--space-4) + 72px); }
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }
  h4, .h4 { font-size: 18px; }
  .h3 { font-size: 22px; }
  .card h3 { font-size: 20px; }
  .lead { font-size: 18px; }
  .wrap { padding: 0 var(--space-2); }
  .site-header .wrap { min-height: 68px; gap: var(--space-2); }
  .brand img { height: 32px; }
  .header-phone { display: none; }
  .menu-toggle { margin-left: auto; }
  .section { padding: var(--space-8) 0; }
  .hero { padding: var(--space-4) 0 var(--space-8); }
  .hero-copy { padding-top: 0; }
  .section-head { margin-bottom: var(--space-4); }
  .cards, .reviews, .steps, .points, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .projects, .gallery { grid-template-columns: 1fr 1fr; gap: var(--space-2); }
  .team-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; gap: var(--space-1); }
  .team-grid .tile:nth-child(3) { border-top-right-radius: var(--radius-card); }
  .team-grid .tile:nth-child(2) { border-top-right-radius: var(--radius-signature-sm); }
  .tile figcaption { left: 8px; bottom: 8px; font-size: 13px; }
  .hero-photo { padding: var(--space-6) 0 var(--space-8); }
  .photo { border-radius: 0 var(--radius-signature-sm) 0 0; }
  .form-card { padding: var(--space-3); border-radius: 0 var(--radius-signature-sm) var(--radius-card) var(--radius-card); }
  .form-card h2 { font-size: 22px; }
  .panel { padding: var(--space-3); border-radius: 0 var(--radius-signature-sm) var(--radius-card) var(--radius-card); }
  .review blockquote { font-size: 18px; }
  .callbar { display: flex; gap: var(--space-1); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: var(--space-1) var(--space-2) calc(var(--space-1) + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); box-shadow: var(--shadow-sticky); }
  .callbar .btn { flex: 1 1 auto; min-width: 0; padding: 0 var(--space-2); }
  .consent { left: var(--space-1); right: var(--space-1); width: auto; max-width: none; bottom: calc(76px + env(safe-area-inset-bottom)); padding: var(--space-2); }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
