/* ==========================================================================
   Zaro Global LLC - site styles
   Mobile first. Dark, photo-led. Barlow Condensed for display, Barlow for body.
   ========================================================================== */

:root {
  --bg: #0b0b0c;
  --bg-2: #141416;
  --bg-3: #1c1c1f;
  --ink: #f3f2ee;
  --ink-2: #c9c8c2;
  --muted: #8f8e88;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #b3261e;
  --accent-2: #d12e24;
  --success: #2f8f4e;
  --display: "Barlow Condensed", "Oswald", "Arial Narrow", sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
  --max: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(38px, 9.4vw, 96px); font-weight: 800; letter-spacing: 0; }
h2 { font-size: clamp(34px, 6.5vw, 64px); }
h3 { font-size: clamp(24px, 4vw, 34px); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-2); max-width: 640px; }
.muted { color: var(--muted); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip-link {
  position: absolute; left: 8px; top: -60px;
  background: var(--accent); color: #fff; padding: 10px 14px; z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { top: 8px; }

/* Kicker: small red label above headings */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-size: 15px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.kicker::before { content: ""; width: 28px; height: 3px; background: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display);
  font-size: 19px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 16px 30px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
  min-height: 52px;
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.5); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: #fff; }
.btn-lg { font-size: 22px; padding: 20px 40px; }
.btn-block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(11, 11, 12, 0.96);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: block; line-height: 0; }
.brand img { height: 30px; width: auto; }

.header-phone { display: none; }

.nav-toggle {
  appearance: none; background: none; border: 0; padding: 10px; margin: -10px;
  cursor: pointer; color: #fff;
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative; z-index: 120;
}
.nav-toggle .bars { position: relative; width: 26px; height: 2px; background: currentColor; transition: background 0.2s; }
.nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; position: absolute; left: 0; width: 26px; height: 2px; background: currentColor;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}
.nav-toggle .bars::before { top: -8px; }
.nav-toggle .bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }

/* Mobile nav: full-screen panel */
.site-nav {
  position: fixed; inset: 0; z-index: 110;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 20px) var(--gutter) 40px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
}
.site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li + li { border-top: 1px solid var(--line); }
.site-nav a {
  display: block; padding: 16px 0;
  font-family: var(--display); font-size: 34px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--ink-2);
}
.site-nav a:hover, .site-nav a.is-current { color: #fff; }
.site-nav a.is-current { box-shadow: inset 4px 0 0 var(--accent); padding-left: 16px; }
.site-nav .nav-cta { margin-top: 28px; }
.site-nav .nav-cta .btn { width: 100%; }

@media (min-width: 900px) {
  :root { --header-h: 84px; }
  .brand img { height: 36px; }
  .nav-toggle { display: none; }
  .site-nav {
    position: static; inset: auto; background: none; padding: 0;
    opacity: 1; visibility: visible; transform: none; transition: none;
    flex-direction: row; align-items: center; gap: 28px;
  }
  .site-nav ul { display: flex; gap: 4px; }
  .site-nav li + li { border: 0; }
  .site-nav a {
    font-size: 17px; letter-spacing: 0.1em; padding: 10px 12px;
    position: relative;
  }
  .site-nav a::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
    background: var(--accent); transform: scaleX(0); transform-origin: left;
    transition: transform 0.2s var(--ease);
  }
  .site-nav a:hover::after, .site-nav a.is-current::after { transform: scaleX(1); }
  .site-nav a.is-current { box-shadow: none; padding-left: 12px; }
  .site-nav .nav-cta { margin: 0; }
  .site-nav .nav-cta .btn { width: auto; padding: 12px 22px; font-size: 17px; min-height: 44px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  display: flex; align-items: flex-end;
  min-height: 70vh;
  padding: calc(var(--header-h) + 48px) 0 56px;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  /* Fallback texture when no photo loads: dark diagonal grain + vignette */
  background-color: var(--bg-2);
  background-image:
    radial-gradient(ellipse at 50% 110%, rgba(179, 38, 30, 0.18), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 9px);
}
.hero-photo {
  /* photo layer; js/main.js sets background-image once the file is confirmed to load */
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 0.8s var(--ease), transform 7s linear;
  transform: scale(1.05);
}
.hero.has-photo .hero-photo { opacity: 1; transform: scale(1); }
.hero::after {
  /* dark overlay */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(8, 8, 9, 0.96) 0%, rgba(8, 8, 9, 0.55) 45%, rgba(8, 8, 9, 0.35) 100%),
    linear-gradient(to right, rgba(8, 8, 9, 0.4), rgba(8, 8, 9, 0));
}
.hero-home {
  min-height: 100svh;
  align-items: center; text-align: center;
  padding-top: calc(var(--header-h) + 24px);
}
.hero-home::after {
  background:
    linear-gradient(to top, rgba(8, 8, 9, 0.95) 0%, rgba(8, 8, 9, 0.45) 40%, rgba(8, 8, 9, 0.5) 100%);
}
.hero-content { position: relative; max-width: 1000px; }
.hero-home .hero-content { margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: min(240px, 60vw); margin: 0 auto 28px; }
.hero h1 { margin-bottom: 18px; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5); }
.hero h1 span { display: block; }
.hero .lede { color: rgba(255, 255, 255, 0.86); margin: 0 auto 28px; }
.hero-home .lede { max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero:not(.hero-home) .hero-actions { justify-content: flex-start; }
.hero-strip {
  margin-top: 36px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
  font-family: var(--display); font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.hero-strip span::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--accent); margin-right: 10px; vertical-align: middle; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  width: 1px; height: 44px; background: rgba(255, 255, 255, 0.35);
}

@media (min-width: 900px) {
  .hero { min-height: 60vh; padding-bottom: 72px; }
  .hero-home { min-height: 100svh; }
  .hero-logo { width: 300px; margin-bottom: 36px; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-2); }
.section-head { margin-bottom: 36px; max-width: 760px; }
.section-head p { color: var(--ink-2); }

@media (min-width: 900px) {
  .section { padding: 96px 0; }
  .section-head { margin-bottom: 48px; }
}

/* Service tiles */
.tiles {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.tile {
  background: var(--bg);
  padding: 24px 18px 22px;
  display: flex; flex-direction: column; gap: 14px;
  transition: background 0.2s var(--ease);
}
.tile:hover { background: var(--bg-3); }
.tile svg { width: 36px; height: 36px; stroke: var(--accent-2); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { font-size: 22px; margin: 0; }
.tile p { font-size: 15px; color: var(--muted); margin: 0; }
/* Odd tile count in the two-column layout: let the last one span the row instead of leaving a gap. */
@media (max-width: 639px) { .tile:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, 1fr); } .tile { padding: 30px 24px; } }
@media (min-width: 1100px) { .tile { padding: 36px 30px; } .tile h3 { font-size: 24px; } .tile p { font-size: 16px; } }

/* About strip: photo + text */
.split { display: grid; gap: 28px; align-items: center; }
.split-photo {
  position: relative; min-height: 260px; overflow: hidden;
  background: var(--bg-3) center / cover no-repeat;
  /* background-image is set inline in the HTML so the path resolves against the page, not this file */
}
.split-photo::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--line); }
.split-photo .tag {
  position: absolute; left: 0; bottom: 0;
  background: var(--accent); color: #fff; padding: 10px 16px;
  font-family: var(--display); font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase;
}
.split-text h2 { margin-bottom: 18px; }
.split-text p { color: var(--ink-2); }
.facts { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.facts li { display: flex; gap: 12px; align-items: baseline; color: var(--ink-2); }
.facts li::before { content: ""; flex: 0 0 10px; width: 10px; height: 10px; background: var(--accent); transform: translateY(-1px); }
.facts strong { color: #fff; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split-photo { min-height: 460px; }
  .split-reverse .split-photo { order: 2; }
}

/* Photo cards */
.cards { display: grid; gap: 14px; }
.card {
  position: relative; display: flex; align-items: flex-end;
  min-height: 300px; padding: 24px;
  color: #fff; overflow: hidden; isolation: isolate;
  background: var(--bg-3) center / cover no-repeat;
  border: 1px solid var(--line);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(8, 8, 9, 0.95) 0%, rgba(8, 8, 9, 0.45) 55%, rgba(8, 8, 9, 0.15) 100%);
  transition: background 0.3s var(--ease);
}
.card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.card:hover::after, .card:focus-visible::after { transform: scaleX(1); }
.card-body { position: relative; }
.card .kicker { color: rgba(255, 255, 255, 0.75); margin-bottom: 8px; }
.card h3 { font-size: clamp(30px, 5vw, 40px); margin-bottom: 8px; }
.card p { color: rgba(255, 255, 255, 0.82); margin-bottom: 14px; max-width: 420px; }
.card .link {
  font-family: var(--display); font-size: 17px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
}
.card .link::after { content: "\2192"; transition: transform 0.2s var(--ease); }
.card:hover .link::after { transform: translateX(4px); }
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .card { min-height: 460px; padding: 32px; }
}
.cards-2 { grid-template-columns: 1fr; }
@media (min-width: 900px) { .cards-2 { grid-template-columns: repeat(2, 1fr); } .cards-2 .card { min-height: 380px; } }

/* Checklist / details grid */
.grid-2 { display: grid; gap: 28px; }
.grid-3 { display: grid; gap: 28px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 40px; } .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

.block { border-top: 3px solid var(--accent); padding-top: 18px; }
.block h3 { margin-bottom: 10px; }
.block p, .block li { color: var(--ink-2); }
.block ul { margin: 0; padding-left: 18px; }
.block li + li { margin-top: 6px; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 22px; }
.steps li { position: relative; padding-left: 64px; counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -4px;
  font-family: var(--display); font-size: 40px; font-weight: 800; line-height: 1; color: var(--accent-2);
}
.steps h3 { font-size: 24px; margin-bottom: 6px; }
.steps p { color: var(--ink-2); margin: 0; }
@media (min-width: 760px) { .steps { grid-template-columns: 1fr 1fr; gap: 32px 40px; } }

/* Registration strip */
.reg-strip {
  display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line);
  grid-template-columns: 1fr 1fr;
}
.reg-strip div { background: var(--bg-2); padding: 18px 16px; }
.reg-strip dt { font-family: var(--display); font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.reg-strip dd { margin: 0; font-family: var(--display); font-size: 24px; font-weight: 700; color: #fff; letter-spacing: 0.02em; word-break: break-all; }
@media (min-width: 760px) { .reg-strip { grid-template-columns: repeat(4, 1fr); } .reg-strip div { padding: 24px; } }

/* People */
.people { display: grid; gap: 18px; }
.person { border: 1px solid var(--line); padding: 24px; background: var(--bg-2); }
.person h3 { font-size: 28px; margin-bottom: 4px; }
.person .role { color: var(--accent-2); font-family: var(--display); letter-spacing: 0.12em; text-transform: uppercase; font-size: 15px; margin-bottom: 12px; }
.person p { color: var(--ink-2); font-size: 16px; }
@media (min-width: 760px) { .people { grid-template-columns: 1fr 1fr; gap: 24px; } .person { padding: 32px; } }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-panel {
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 28px 20px;
}
@media (min-width: 760px) { .form-panel { padding: 40px; } }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }

.field label {
  display: block; margin-bottom: 8px;
  font-family: var(--display); font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2);
}
.field label .req { color: var(--accent-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px;
  background: var(--bg); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 12px 14px;
  font: inherit; font-size: 17px;
  border-radius: 0;
  transition: border-color 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
  padding-right: 40px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: #fff; outline: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--accent-2); }
.field-error { display: block; min-height: 0; margin-top: 6px; font-size: 14px; color: #ff6b61; }
.field-error:empty { display: none; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  margin-top: 18px; padding: 14px 16px; font-weight: 500;
  border-left: 4px solid;
}
.form-status.is-success { background: rgba(47, 143, 78, 0.15); border-color: var(--success); color: #cfead8; }
.form-status.is-error { background: rgba(179, 38, 30, 0.15); border-color: var(--accent-2); color: #ffd0cb; }
.form-note { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* Quote band on home */
.quote-band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quote-band .split { align-items: start; }
.quote-band .form-panel { background: var(--bg); }

/* ==========================================================================
   Contact band + footer
   ========================================================================== */
.contact-band {
  position: relative; isolation: isolate; color: #fff;
  padding: 72px 0;
  background: var(--bg-3) center / cover no-repeat;
}
.contact-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(8, 8, 9, 0.82); }
.contact-band h2 { margin-bottom: 20px; }
.contact-lines { display: grid; gap: 18px; margin: 28px 0; }
.contact-lines a, .contact-lines span {
  display: block; font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(26px, 6vw, 44px); line-height: 1.05; color: #fff;
}
.contact-lines a:hover { color: var(--accent-2); }
.contact-lines small { display: block; font-family: var(--body); font-weight: 400; text-transform: none; font-size: 15px; color: var(--muted); margin-bottom: 4px; }
@media (min-width: 900px) { .contact-band { padding: 110px 0; } .contact-lines { grid-template-columns: 1fr 1fr; gap: 32px; } }

.site-footer { border-top: 1px solid var(--line); padding: 48px 0 28px; color: var(--muted); font-size: 15px; }
.footer-grid { display: grid; gap: 32px; }
.footer-brand img { height: 28px; width: auto; margin-bottom: 14px; }
.footer-brand p { max-width: 360px; }
.footer-col h4 { font-size: 16px; letter-spacing: 0.16em; color: #fff; margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li + li { margin-top: 8px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ==========================================================================
   Motion
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

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