/* ===== Design Tokens ===== */
:root {
  --navy-900: #15130d;
  --navy-800: #211e14;
  --navy-700: #2d291b;
  --navy-600: #3c3624;
  --ink: #17160f;
  --paper: #fafaf7;
  --paper-2: #f7f2e3;
  --white: #ffffff;
  --muted: #5c5a4f;
  --accent: #ffc700;
  --accent-dark: #b8860b;
  --line: #ece5cf;

  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-head: 'Space Grotesk', 'Inter', system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(21, 19, 13, 0.08);
  --shadow-md: 0 12px 32px rgba(21, 19, 13, 0.14);
  --container: 1180px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.5em; font-weight: 600; }
p { margin: 0 0 1em; color: var(--muted); }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--navy-900);
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.text-accent { color: var(--accent); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 999px;
  border: 1.5px solid transparent;
  padding: 12px 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--navy-900); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-ghost { border-color: rgba(255,255,255,0.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-large { padding: 14px 28px; font-size: 1.02rem; }
.btn-small { padding: 9px 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 22, 32, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.brand-mark { color: var(--white); display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--white); }
.brand-sub { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }

.main-nav { display: flex; gap: 28px; }
.main-nav a {
  color: rgba(255,255,255,0.82); font-weight: 500; font-size: 0.95rem; position: relative; padding: 6px 0;
}
.main-nav a:hover { color: var(--white); }
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transition: transform 0.2s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.phone-link { display: flex; align-items: center; gap: 8px; color: var(--white); font-weight: 600; font-size: 0.92rem; }
.phone-link svg { color: var(--accent); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; padding: 0;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); margin: 0 auto; transition: transform .2s ease, opacity .2s ease; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(255,199,0,0.16), transparent 60%), linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: var(--white);
  overflow: hidden;
  padding-top: 96px;
}
.hero-bg { position: absolute; inset: 0; color: var(--navy-700); z-index: 0; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 75%);
}
.hero-waves { position: absolute; bottom: -2px; left: 0; width: 100%; height: auto; opacity: 0.5; }
.hero-inner { position: relative; z-index: 1; padding: 72px 24px 120px; text-align: center; max-width: 880px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.8rem; font-weight: 700;
  color: var(--accent); margin-bottom: 14px;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--white); margin-bottom: 20px; }
.hero-lede { color: rgba(255,255,255,0.78); font-size: 1.12rem; max-width: 640px; margin: 0 auto 24px; }

.specialty-badge {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1.5px solid var(--accent);
  background: rgba(255,199,0,0.14);
  color: var(--accent);
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  margin: 0 auto 34px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }

.hero-stats {
  display: flex; justify-content: center; gap: 56px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 36px;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num, .stat-suffix { font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; color: var(--white); }
.stat-suffix { color: var(--accent); }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-top: 4px; }

/* ===== Trust strip ===== */
.trust-strip { background: var(--navy-700); color: rgba(255,255,255,0.85); padding: 16px 0; }
.trust-inner {
  display: flex; justify-content: center; align-items: center; gap: 14px;
  flex-wrap: wrap; font-size: 0.86rem; font-weight: 500;
}
.trust-inner span[aria-hidden] { color: var(--accent); }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--paper); }
.section-dark { background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); color: var(--white); }
.section-dark .section-lede { color: rgba(255,255,255,0.72); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2, .why-content h2, .contact-info h2, .about-content h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.section-lede { font-size: 1.05rem; }

/* ===== Card grid / services ===== */
.card-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; background: rgba(255,199,0,0.14); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card p { font-size: 0.93rem; margin: 0; }
.card-brand-line {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-size: 0.78rem; font-weight: 600; color: var(--muted);
}
.card-brand-line img {
  height: 16px; width: auto; aspect-ratio: 2500 / 618; object-fit: contain; display: block;
}

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.about-media-frame {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-700));
  border-radius: var(--radius); color: rgba(255,255,255,0.9); aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center; padding: 30px;
}
.check-list { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink); font-weight: 500; font-size: 0.96rem; }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317160f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 12px;
}

/* ===== Process ===== */
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.process-step {
  position: relative; padding: 30px 22px; background: var(--paper); border-radius: var(--radius);
  border: 1px solid var(--line);
}
.process-num {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem;
  color: var(--accent-dark); margin-bottom: 14px;
}
.process-step h3 { font-size: 1.05rem; }
.process-step p { font-size: 0.92rem; margin: 0; }

/* ===== Why us ===== */
.why-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.why-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.why-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius);
  padding: 24px;
}
.why-card h3 { color: var(--white); font-size: 1.02rem; }
.why-card p { color: rgba(255,255,255,0.68); font-size: 0.92rem; margin: 0; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; }
.info-cards { display: grid; gap: 16px; margin-top: 28px; }
.info-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 4px;
}
.info-label { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.info-card a, .info-card span { overflow-wrap: anywhere; }
.info-card a { font-weight: 600; color: var(--navy-800); }
.info-card a:hover { color: var(--accent-dark); }

.contact-form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 0; }
.form-row-split > div { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-row label { font-size: 0.85rem; font-weight: 600; color: var(--navy-800); }
.form-row input, .form-row select, .form-row textarea, .form-row-split input, .form-row-split select {
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 11px 14px; background: var(--paper);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,199,0,0.28); background: var(--white);
}
.form-row textarea { resize: vertical; }
.form-note { margin: 14px 0 0; font-size: 0.9rem; min-height: 1.2em; }
.form-note.success { color: #0ea36b; }
.form-note.error { color: #d64545; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.7); padding: 44px 0; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.footer-brand .brand-name { color: var(--white); display: block; font-family: var(--font-head); font-weight: 700; }
.footer-brand p { margin: 4px 0 0; font-size: 0.88rem; color: rgba(255,255,255,0.55); }
.footer-nav { display: flex; gap: 22px; }
.footer-nav a { font-size: 0.9rem; color: rgba(255,255,255,0.72); }
.footer-nav a:hover { color: var(--accent); }
.footer-copy { font-size: 0.82rem; color: rgba(255,255,255,0.45); width: 100%; text-align: center; margin-top: 8px; }

/* Grid/flex children default to min-width:auto, which lets long unbreakable
   content (long words, emails) force the whole track/row wider than the
   viewport instead of wrapping. Force them shrinkable everywhere it matters. */
.header-inner > *,
.brand > *,
.hero-stats > .stat,
.card-grid > .card,
.process-list > .process-step,
.about-grid > *,
.why-grid > *,
.why-cards > .why-card,
.contact-grid > *,
.info-cards > .info-card,
.form-row-split > div {
  min-width: 0;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { order: 2; }
  .about-media-frame { max-width: 320px; margin: 0 auto; }
  .why-cards { grid-template-columns: 1fr; }
}

@media (max-width: 840px) {
  .main-nav, .header-actions .phone-link { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: 76px; left: 0; right: 0; background: var(--navy-900);
    flex-direction: column; padding: 20px 24px; gap: 4px; border-bottom: 1px solid rgba(255,255,255,0.1);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .2s ease;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
}

@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .hero-stats { gap: 32px; }
  .form-row-split { grid-template-columns: 1fr; }
  .header-actions .btn-small { padding: 8px 14px; font-size: 0.85rem; }
}

@media (max-width: 400px) {
  .header-actions { display: none; }
}
