/* =========================================================================
   U.S. Certified Signers — site styles
   Palette — brand blue accents (from the original site's logo/feather):
     blue    #005bb7 (text/buttons)  #1668c4 (decorative)
     text    #463939 / #454545
     light   #f7f7f7 / #f5f5f5   border #d8d8d8
   Font: Source Sans Pro (Google Fonts) with a system fallback.
   ========================================================================= */

:root {
  --accent: #1668c4;        /* bright brand blue — DECORATIVE (icons, borders) */
  --accent-ink: #005bb7;    /* brand blue for TEXT + buttons (WCAG AA: 6.6:1 on white) */
  --accent-dark: #004a96;   /* hover / emphasis */
  --accent-light: #8fbdf0;  /* light blue for hovers on the dark footer band */
  --gold: #f9980d;
  --ink: #463939;
  --ink-soft: #5a5050;
  --grey: #6d6d6d;
  --line: #e2dede;
  --bg: #ffffff;
  --bg-soft: #f7f5f4;
  --bg-band: #2c2424;
  --max: 1120px;
  --radius: 6px;
  --shadow: 0 2px 10px rgba(40, 30, 30, .08);
  --font: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: 2.3rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent-ink);
  color: #fff;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 13px 30px;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--accent-dark); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn--ghost { background: transparent; border: 2px solid #fff; padding: 11px 28px; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--outline { background: transparent; color: var(--accent-ink); border: 2px solid var(--accent-ink); padding: 11px 28px; }
.btn--outline:hover { background: var(--accent-ink); color: #fff; }
.btn--lg { padding: 16px 38px; font-size: 1.1rem; }
.btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 22px; gap: 18px; }
.brand img { width: 200px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  color: var(--ink);
  font-weight: 600;
  padding: 9px 13px;
  border-radius: var(--radius);
  white-space: nowrap;
}
.site-nav a:hover { color: var(--accent-ink); background: var(--bg-soft); text-decoration: none; }
.site-nav a.active { color: var(--accent-ink); }
.site-nav .nav-cta { background: var(--accent-ink); color: #fff; margin-left: 6px; }
.site-nav .nav-cta:hover { background: var(--accent-dark); color: #fff; }

/* hamburger (CSS-only toggle) */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; padding: 10px; }
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block; width: 26px; height: 3px; background: var(--ink);
  border-radius: 2px; position: relative; transition: .2s;
}
.nav-toggle-label span::before, .nav-toggle-label span::after { content: ""; position: absolute; }
.nav-toggle-label span::before { top: -8px; }
.nav-toggle-label span::after { top: 8px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  background: linear-gradient(rgba(28,20,20,.55), rgba(28,20,20,.6)), url("/assets/img/hero.jpg") center/cover no-repeat;
  padding: 110px 22px;
}
.hero h1 { color: #fff; font-size: 2.9rem; text-shadow: 0 2px 14px rgba(0,0,0,.4); margin-bottom: .3em; }
.hero p { font-size: 1.25rem; max-width: 720px; margin: 0 auto 1.6em; color: #f3eeee; text-shadow: 0 1px 8px rgba(0,0,0,.4); }

/* compact banner for inner pages */
.page-banner {
  color: #fff; text-align: center;
  background: linear-gradient(rgba(28,20,20,.62), rgba(28,20,20,.68)), url("/assets/img/hero.jpg") center/cover no-repeat;
  padding: 56px 22px;
}
.page-banner h1 { color: #fff; margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,.4); }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 44px 0; }
.section h2 { margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.narrow { max-width: 820px; }
.center { text-align: center; }

.prose h2 { font-size: 1.4rem; margin-top: 1.6em; color: var(--accent-dark); }
.prose h3 { margin-top: 1.3em; color: var(--accent-dark); }
.prose p { color: var(--ink-soft); }

/* ---------- feature grid (Why Choose Us) ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.feature, .contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.feature { padding: 28px 24px; text-align: center; }
.feature:hover, .contact-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(40,30,30,.12); }
.feature .icon {
  width: 56px; height: 56px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(22,104,196,.1); border-radius: 50%; color: var(--accent);
}
.feature .icon svg { width: 28px; height: 28px; }
.feature h3 { margin: 0; font-size: 1.1rem; }

/* ---------- benefits list (Services) ---------- */
.benefits { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; }
.benefits li { position: relative; padding-left: 32px; color: var(--ink-soft); }
.benefits li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--bg-band); color: #fff; text-align: center; padding: 56px 22px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #ded6d6; max-width: 640px; margin: 0 auto 1.4em; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- two-column (contact) ---------- */
.cols { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.contact-card { padding: 28px 28px; }
.contact-card h2 { margin-top: 0; font-size: 1.3rem; }
.contact-card dl { margin: 0; }
.contact-card dt { font-weight: 700; margin-top: 14px; color: var(--ink); }
.contact-card dd { margin: 0; color: var(--ink-soft); }

/* ---------- forms ---------- */
.form-success {
  margin: 0 0 20px; padding: 13px 16px;
  background: #e8f6ee; border: 1px solid #9ed6b3; border-left: 4px solid #1c7c43;
  border-radius: var(--radius); color: #14622c; font-weight: 600;
}
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.form-field textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -5000px; }  /* honeypot */
.embed-wrap { padding: 0; }  /* borderless — let the embedded form sit flush in the page */

/* ---------- footer ---------- */
.site-footer { background: var(--accent-ink); color: #fff; }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 24px; padding-top: 18px; padding-bottom: 18px; }
.site-footer p { margin: 0; font-size: .92rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .features { grid-template-columns: 1fr 1fr; }
  .benefits { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  h1 { font-size: 1.9rem; }
  .hero h1 { font-size: 2.1rem; }
  .hero { padding: 80px 20px; }
  .nav-toggle-label { display: inline-flex; }
  /* keyboard-focusable, screen-reader-operable toggle (visually hidden box) */
  .nav-toggle { display: block; position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; overflow: hidden; }
  .nav-toggle:focus-visible + .nav-toggle-label { outline: 3px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 16px rgba(0,0,0,.08); padding: 8px 0;
  }
  .site-header { position: relative; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav a { padding: 13px 22px; border-radius: 0; }
  .site-nav .nav-cta { margin: 8px 22px; text-align: center; border-radius: var(--radius); }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
}

/* ---------- accessibility ---------- */
/* Skip link — first focusable element; slides into view on focus */
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: #fff; color: var(--accent-ink);
  padding: 10px 16px; border: 2px solid var(--accent-ink); border-radius: 6px;
  font-weight: 700; transition: top .15s ease;
}
.skip-link:focus { top: 8px; }

/* Visually-hidden text exposed only to assistive tech */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Visible keyboard focus indicator (WCAG 2.4.7) */
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible, .nav-cta:focus-visible { outline-color: var(--ink); }
main:focus { outline: none; }

/* Honor reduced-motion preference (WCAG 2.3.3 / vestibular safety) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
