.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--cyan);
  color: #1C2429;
  padding: 8px 16px;
  z-index: 10000;
  font-size: 14px;
  border-radius: 0 0 8px 0;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/*
  ═══════════════════════════════════════════════════════════════
  STYLE.CSS — Global styles for Kestrel & Vale website
  ═══════════════════════════════════════════════════════════════
  TABLE OF CONTENTS:
   1. :root variables      — colors, fonts (edit theme here)
   2. Base / reset         — body, html
   3. .nav                 — top navigation bar
   4. .landing             — hero section
   5. .about-brief         — intro paragraph block
   6. .about-grid/.block   — card grid
   7. .quick-nav           — button row (thank-you page)
   8. .footer              — bottom bar
   9. .cta                 — button styles
  10. .contact-form       — form inputs, selects, textarea
  11. .contact-info       — contact details grid
  12. @media (max-width)  — mobile responsive
  13. Accessibility       — a11y overrides
  14. Hamburger menu      — mobile nav
  ═══════════════════════════════════════════════════════════════
*/

:root {
  --bg: #1C2429;
  --bg-elev: #2A353D;
  --panel: #2A353D;
  --text: #F4F1EA;
  --muted: #B8BEC2;
  --line: rgba(255,255,255,0.10);
  --blue: #4F7A5A;
  --cyan: #4F7A5A;
  --pink: #C77B3B;
  --moss: #8FB39A;
  --chestnut: #C77B3B;
  --grid: rgba(255,255,255,0.05);
}

html {
  background: #1C2429;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: radial-gradient(1100px 560px at 20% 0%, #2A353D 0%, #1C2429 55%, #141a1e 100%);
  color: var(--text);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 24px 80px;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 26px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(28,36,41,0.85);
  backdrop-filter: blur(12px);
  z-index: 100;
  justify-content: center;
  min-height: 48px;
  padding-top: max(6px, env(safe-area-inset-top));
}

.nav .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav .logo img {
  height: 36px;
  width: auto;
  max-width: 100%;
}

.nav ul {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0 auto;
  justify-content: center;
  flex: 1;
}

.nav ul li a {
  display: block;
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s;
}

.nav ul li a:hover,
.nav ul li a.active {
  background: rgba(79,122,90,0.12);
  color: var(--text);
}

/* Hero */
.hero {
  margin-top: 48px;
  text-align: center;
}

.hero .kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--moss);
  text-shadow: 0 0 6px var(--moss);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
}

.hero .sub {
  margin-top: 18px;
  font-size: 15px;
  color: var(--muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Section headers */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--moss);
  text-transform: uppercase;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 4px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--chestnut);
  display: inline-block;
}

/* Grid / cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0.7;
}

.card .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan);
}

.card .icon { font-size: 22px; margin-bottom: 10px; }
.card .placeholder {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.card .placeholder .fill { color: var(--text); }

/* CTA */
.cta {
  display: inline-block;
  margin-top: 32px;
  padding: 14px 28px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s;
}

.cta:hover { background: rgba(79,122,90,0.08); }

/* ===== Confirmation screen (after sending a message) ===== */
.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  background: rgba(28,36,41,0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.confirm-overlay.open {
  display: flex;
}
.confirm-box {
  max-width: 540px;
  width: 100%;
  text-align: center;
  padding: 30px 26px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(42,53,61,0.94), rgba(28,36,41,0.98));
}
.confirm-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}
.confirm-sub {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 26px;
}
.confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.confirm-actions .cta {
  margin-top: 0 !important;
  padding: 12px 20px;
}
.confirm-actions .cta.btn-secondary {
  border-color: var(--line);
  color: var(--muted);
}
.confirm-actions .cta.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--text);
}

/* ===== Badges ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.badge-icon { font-size: 14px; }
/* ===== Footer ===== */
.footer {
  z-index: 1;
  margin-top: 64px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.about-grid > :nth-child(3):last-child {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: calc(50% - 12px);
}

.about-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}

.about-block h3 {
  font-size: 16px;
  color: var(--moss);
  margin-bottom: 8px;
}

.about-block p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* Services list */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.service-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
}

.service-item h3 {
  font-size: 16px;
  color: var(--moss);
  margin-bottom: 8px;
}

.service-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.testimonial {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}

.testimonial .quote {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 12px;
}

.testimonial .author {
  font-size: 13px;
  color: var(--muted);
  font-style: normal;
}

/* Contact */
.contact-form {
  max-width: 560px;
  margin: 28px auto 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
}

.contact-form label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.contact-form input {
  width: 100%;
  margin-top: 0;
  padding: 12px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  outline: none;
}

.contact-form textarea {
  width: 100%;
  margin-top: 0;
  padding: 12px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  outline: none;
  resize: vertical;
  min-height: 120px;
}

.contact-form select {
  width: 100%;
  margin-top: 6px;
  padding: 12px 36px 12px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--blue);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.contact-info .item {
  text-align: center;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-info .item .icon { font-size: 20px; margin-bottom: 6px; }
.contact-info .item .label { font-size: 11px; letter-spacing: 0.1em; color: var(--muted); }
.contact-info .item .value { font-size: 14px; color: var(--text); }

/* ===== Top fade overlay (prevents background showing during overscroll) ===== */
.top-fade {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, #1C2429 0%, #1C2429 40%, transparent 100%);
  z-index: 99;
  pointer-events: none;
}
/* ===== Terms checkbox ===== */
.terms-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 4px;
}
.terms-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--chestnut);
  cursor: pointer;
  flex-shrink: 0;
}
.terms-check label {
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  line-height: 1.4;
  margin: 0;
}
.terms-check label a {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}
.nav-phone {
  color: var(--cyan);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s;
  flex-shrink: 0;
}
.nav-phone:hover {
  color: var(--text);
}
/* Fixed-width container for right side to keep nav links centered */
.nav-right {
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .wrap { padding: 14px 16px 56px; }
  .hero { margin-top: 32px; }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-grid > :nth-child(3):last-child {
    grid-column: auto;
    max-width: none;
  }
  .nav { flex-direction: column; align-items: center; gap: 4px; padding: 12px 16px 12px; min-height: 56px; }
  .nav ul { display: none; }
  .nav ul li a { padding: 8px 12px; font-size: 12px; }
  .nav .logo img { height: 36px; max-width: 100%; }
  .nav-right { position: static; transform: none; min-width: auto; justify-content: center; gap: 4px; flex-direction: column; align-items: center; }
  .nav-phone { display: none; }
  .hamburger { display: flex !important; }
  /* Ensure accessibility buttons don't overflow */
  #a11y-toggle, #a11y-panel { max-width: calc(100vw - 32px); }
  .contact-form { padding: 20px 16px; }
  .contact-form input, .contact-form select, .contact-form textarea { font-size: 16px; }
}


/* ===== Accessibility overrides ===== */
.a11y-text-sm { font-size: 14px; }
.a11y-text-md { font-size: 16px; }
.a11y-text-lg { font-size: 19px; }

.a11y-font-inter { font-family: 'Inter', system-ui, sans-serif; }
.a11y-font-dyslexic { font-family: 'OpenDyslexic', 'Comic Sans MS', sans-serif; }
.a11y-font-serif { font-family: Georgia, 'Times New Roman', serif; }

.a11y-theme-light {
  --bg: #f5f5f7;
  --bg-elev: #ffffff;
  --panel: #ffffff;
  --text: #1a1a1a;
  --muted: #555;
  --line: rgba(0,0,0,0.12);
  --blue: #2a6fdb;
  --cyan: #0e9bb0;
  --pink: #d94f7a;
  --grid: rgba(0,0,0,0.04);
}
body.a11y-theme-light { background: #f5f5f7; color: #1a1a1a; }
body.a11y-theme-light::before {
  background-image: linear-gradient(rgba(0,0,0,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.06) 1px, transparent 1px);
  opacity: 0.6;
}
.a11y-theme-light .nav { background: rgba(245,245,247,0.92); }
.a11y-theme-light .cta:hover { background: rgba(42,111,219,0.08); }
.a11y-theme-light .confirm-overlay { background: rgba(245,245,247,0.92); }
.a11y-theme-light .confirm-box { background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,245,247,0.98)); }
.a11y-theme-light .hamburger { background: rgba(245,245,247,0.92); }
.a11y-theme-light .hamburger-menu { background: var(--bg-elev); }
.a11y-theme-light .card::before { opacity: 0.4; }
.a11y-theme-light .logo { text-shadow: none; }
.a11y-theme-light .kicker, .a11y-theme-light .card .label { text-shadow: none; }
.a11y-theme-light .section-label { color: var(--muted); }
/* Light mode scrollbar */
.a11y-theme-light ::-webkit-scrollbar-track { background: #f0f0f2; }
.a11y-theme-light ::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
/* Light mode selection */
.a11y-theme-light ::selection { background: rgba(42,111,219,0.2); color: var(--text); }

.a11y-theme-hc {
  --bg: #000000;
  --bg-elev: #000000;
  --panel: #000000;
  --text: #ffffff;
  --muted: #ffffff;
  --line: #ffffff;
  --blue: #ffff00;
  --cyan: #00ffff;
  --pink: #ff69b4;
  --grid: rgba(255,255,255,0.15);
}
body.a11y-theme-hc { background: #000; color: #fff; }
body.a11y-theme-hc * { border-color: #fff !important; }

@font-face {
  font-family: 'OpenDyslexic';
  src: url('https://cdn.jsdelivr.net/npm/open-dyslexic@1.0.3/woff/OpenDyslexic-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}


.hamburger {
  position: fixed;
  top: 10px;
  left: 16px;
  transform: none;
  z-index: 1102;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(28,36,41,0.85);
  backdrop-filter: blur(12px);
  cursor: pointer;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
}
.ham-line {
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.hamburger.open .ham-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger.open .ham-line:nth-child(2) {
  opacity: 0;
}
.hamburger.open .ham-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}


.hamburger-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, rgba(28,36,41,0.98) 0%, rgba(42,53,61,0.98) 100%);
  border-right: 1px solid var(--cyan);
  border-right-width: 2px;
  z-index: 1099;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  backdrop-filter: blur(20px);
  box-shadow: 4px 0 30px rgba(79,122,90,0.1);
}
.hamburger-menu.open { transform: translateX(0); }
.hamburger-menu::before {
  display: none;
}
.hamburger-menu a {
  display: block;
  padding: 14px 16px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  border-left: 3px solid transparent;
}
.hamburger-menu a:hover {
  background: rgba(79,122,90,0.08);
  color: var(--cyan);
  border-left-color: var(--cyan);
  transform: translateX(4px);
}
.hamburger-menu a.active {
  background: rgba(79,122,90,0.12);
  color: var(--cyan);
  border-left-color: var(--cyan);
}
.menu-search {
  position: relative;
  margin-bottom: 8px;
}
.menu-search input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(79,122,90,0.05);
  border: 1px solid var(--cyan);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: background 0.2s, box-shadow 0.2s;
}
.menu-search input::placeholder {
  color: var(--muted);
}
.menu-search input:focus {
  background: rgba(79,122,90,0.1);
  box-shadow: 0 0 12px rgba(79,122,90,0.2);
}
.hamburger-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1098;
  display: none;
}
.hamburger-overlay.open { display: block; }

/* Visible focus for keyboard users */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* Hide floating a11y button on mobile (controls live in hamburger menu) */
@media (max-width: 640px) {
  #a11y-toggle, #a11y-panel { display: none !important; }
}
