/* =========================================================
   SAFO LLC — shared stylesheet
   Brand: navy / white / light gray + amber accent
   Fonts: Space Grotesk (headings), Inter (body/UI)
   ========================================================= */

:root {
  --navy: #0F2C4C;
  --navy-deep: #0B2237;
  --navy-mid: #1C3F63;
  --white: #FFFFFF;
  --gray-light: #F3F5F7;
  --gray-border: #E2E7EC;
  --text-body: #3B4657;
  --text-muted: #6B7688;
  --accent: #C17A2F;       /* decorative use: icons, large graphics, highlights */
  --accent-strong: #9C5A19; /* text/button use: AA-compliant on white */
  --accent-soft: #F3E4D2;

  --font-head: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --max-width: 1160px;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 44, 76, 0.06), 0 1px 1px rgba(15, 44, 76, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 44, 76, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

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

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

ul { padding-left: 1.2em; }
li { margin-bottom: 0.4em; }

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

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

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand-logo { display: flex; align-items: center; gap: 10px; }
.brand-logo img { height: 34px; width: auto; }
.brand-logo .brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: 0.2px;
}
.brand-logo .brand-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.55rem;
  letter-spacing: 3px;
  color: var(--text-muted);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.97rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  text-decoration: none;
  border-bottom-color: var(--accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  position: relative;
  transition: 0.2s;
}
.nav-toggle span::before { content: ""; position: absolute; top: -6px; }
.nav-toggle span::after { content: ""; position: absolute; top: 6px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-mid); }

.btn-accent {
  background: var(--accent-strong);
  color: var(--white);
}
.btn-accent:hover { background: #7f4813; }

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }

/* ---------------- Hero ---------------- */
.hero {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 88px 0 76px;
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #E9C79A;
  margin-bottom: 18px;
}
.hero h1 { color: var(--white); margin-bottom: 0.5em; }
.hero p.lead {
  font-size: 1.1rem;
  color: #D7E0EA;
  max-width: 46ch;
  margin-bottom: 1.6em;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-graphic {
  justify-self: end;
}
.hero-graphic svg { width: 100%; max-width: 340px; height: auto; }

/* subtle connection-line background motif */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(193,122,47,0.18) 0, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(255,255,255,0.06) 0, transparent 40%);
  z-index: 1;
}

/* ---------------- Sections ---------------- */
.section { padding: 72px 0; }
.section-alt { background: var(--gray-light); }
.section-header { max-width: 680px; margin: 0 0 44px; }
.section-header.centered { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 10px;
}

/* ---------------- Cards / Grids ---------------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card .icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card .icon-wrap svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card p.note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ---------------- Process steps ---------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 14px;
  border-top: 3px solid var(--accent);
}
.step .step-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--navy);
  opacity: 0.35;
  display: block;
  margin-bottom: 6px;
}
.step h3 { font-size: 1rem; margin-bottom: 0.4em; }
.step p { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 0; }

/* ---------------- Coverage banner ---------------- */
.coverage-banner {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.coverage-banner h3 { color: var(--white); margin-bottom: 0.3em; }
.coverage-banner p { color: #D7E0EA; margin-bottom: 0; max-width: 52ch; }

/* ---------------- CTA band ---------------- */
.cta-band {
  background: var(--gray-light);
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { margin-bottom: 0.4em; }
.cta-band p { max-width: 56ch; margin-left: auto; margin-right: auto; color: var(--text-muted); }

/* ---------------- Forms ---------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.info-list { list-style: none; padding: 0; margin: 24px 0; }
.info-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-border);
}
.info-list .info-icon {
  width: 22px; height: 22px; flex: none; color: var(--accent-strong);
}
.info-list strong { display: block; color: var(--navy); font-size: 0.85rem; letter-spacing: 0.3px; text-transform: uppercase; }
.info-list span, .info-list p { color: var(--text-body); margin: 2px 0 0; }

form.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-row .required { color: var(--accent-strong); }
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--text-body);
  background: var(--white);
}
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--navy);
  outline: none;
  box-shadow: 0 0 0 3px rgba(15,44,76,0.12);
}
.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 14px;
}
.form-status {
  font-size: 0.9rem;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--navy-deep);
  display: none;
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--navy-deep);
  color: #C7D2DE;
  padding: 52px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-brand .brand-logo .brand-text,
.footer-brand .brand-logo .brand-text small { color: var(--white); }
.footer-brand p { color: #A9B7C7; max-width: 40ch; margin-top: 14px; }
.site-footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: #C7D2DE; }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: #8FA0B3;
}

/* ---------------- Page header (About/Services/Contact) ---------------- */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0 48px;
}
.page-header h1 { color: var(--white); margin-bottom: 0.35em; }
.page-header p { color: #D7E0EA; max-width: 60ch; margin-bottom: 0; }
.breadcrumb {
  font-size: 0.85rem;
  color: #A9B7C7;
  margin-bottom: 14px;
}
.breadcrumb a { color: #C7D2DE; }

/* ---------------- Misc ---------------- */
.divider-line {
  height: 1px;
  background: var(--gray-border);
  margin: 56px 0 0;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.small-print {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-graphic { justify-self: start; max-width: 220px; margin-top: 12px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .main-nav { position: fixed; inset: 64px 0 0 0; background: var(--white); padding: 20px 24px; display: none; overflow-y: auto; border-top: 1px solid var(--gray-border); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--gray-border); }
  .nav-toggle { display: block; }
  .nav-cta.desktop-only { display: none; }
  .hero { padding: 56px 0 48px; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 52px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps .step { border-top: none; border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .coverage-banner { flex-direction: column; align-items: flex-start; text-align: left; }
  form.contact-form { padding: 22px; }
}
