/* ==========================================================================
   Geek On Wheelz — styles.css
   Mobile-first. Base font-size is intentionally large (older/low-vision
   audience). Color palette pulled from logocolors.png.
   ========================================================================== */

:root {
  --navy: #0a2b49;       /* primary text, header/footer/hero background — sampled directly from the logo file so backgrounds blend seamlessly with it */
  --navy-2: #0a2b49;     /* kept as a separate token for readability; same value as --navy on purpose */
  --navy-hover: #071d33; /* darker shade for hover/active states only, not used as a section background */
  --bronze: #8c7354;     /* borders, icon strokes, muted accents */
  --gold: #bfa07a;       /* buttons/accents on dark backgrounds */
  --offwhite: #f2f2f2;   /* alternating section background */
  --white: #ffffff;
  --focus: #2f6fed;      /* visible focus ring, distinct from brand colors */

  --font-heading: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --max-width: 1120px;
  --radius: 12px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px; /* keeps anchored sections clear of sticky header */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;   /* 18px base */
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 6vw, 3rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { max-width: 65ch; }

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

section { padding: 3.5rem 0; }
.section-alt { background: var(--offwhite); }

.section-head {
  max-width: 62ch;
  margin-bottom: 2rem;
}
.section-head p { color: var(--navy); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--bronze);
  margin-bottom: 0.5rem;
}

/* ---- Focus visibility (critical for accessibility) ---- */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 8px 0;
  font-weight: 700;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 56px;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }

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

.btn-secondary {
  background: var(--gold);
  color: var(--navy);
}
.btn-secondary:hover { background: #d4b98d; }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: rgba(9, 38, 64, 0.06); }

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

.btn-block { width: 100%; }

.btn-icon { width: 1.3em; height: 1.3em; flex-shrink: 0; }

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
@media (min-width: 560px) {
  .cta-row { flex-direction: row; flex-wrap: wrap; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.header-logo {
  height: 48px;
  width: auto;
  border-radius: 6px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-call {
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 48px;
  font-size: 0.95rem;
  white-space: nowrap;
}
.header-call:hover { background: #d4b98d; }
.header-call-icon { width: 1.2em; height: 1.2em; }
.header-call-text-full { display: none; }

@media (min-width: 480px) {
  .header-call-text-full { display: inline; }
  .header-call-text-short { display: none; }
}

/* Mobile nav: native <details>/<summary> disclosure, no JS required */
.nav-toggle { position: relative; }
.nav-toggle summary {
  list-style: none;
  cursor: pointer;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.6rem 0.75rem;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 8px;
}
.nav-toggle summary::-webkit-details-marker { display: none; }
.nav-toggle summary:hover { background: rgba(255,255,255,0.1); }
.menu-icon { width: 1.4em; height: 1.4em; }

.nav-toggle .mobile-nav {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  background: var(--navy);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 0.5rem;
  min-width: 220px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}
.nav-toggle .mobile-nav a {
  display: block;
  color: var(--white);
  text-decoration: none;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  min-height: 48px;
}
.nav-toggle .mobile-nav a:hover { background: rgba(255,255,255,0.1); }

.desktop-nav { display: none; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .desktop-nav {
    display: flex;
    gap: 1.5rem;
    margin-right: 1rem;
  }
  .desktop-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-heading);
    padding: 0.5rem 0.25rem;
    border-bottom: 2px solid transparent;
  }
  .desktop-nav a:hover { border-bottom-color: var(--gold); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 0 3.5rem;
  text-align: center;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.hero-logo {
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
}
.hero h1 { color: var(--white); max-width: 20ch; }
.hero-tagline {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--gold);
  max-width: 32ch;
}
.hero-sub {
  max-width: 48ch;
  font-size: 1.1rem;
  color: var(--white);
}
.hero .cta-row { justify-content: center; width: 100%; max-width: 420px; }
.hero .cta-row .btn { width: 100%; }
@media (min-width: 560px) {
  .hero .cta-row .btn { width: auto; flex: 1; }
}
.hero-area-note {
  font-size: 1rem;
  color: var(--white);
  opacity: 0.9;
  border-top: 1px solid rgba(255,255,255,0.25);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

/* ==========================================================================
   Services
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: var(--white);
  border: 2px solid #e2ded8;
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.service-icon {
  width: 3rem;
  height: 3rem;
  color: var(--navy);
  background: var(--offwhite);
  border: 2px solid var(--bronze);
  border-radius: 50%;
  padding: 0.6rem;
}
.service-card h3 { margin-top: 0.25rem; }
.service-card p { font-size: 1rem; }

/* ==========================================================================
   What I Don't Do
   ========================================================================== */
.dont-do-panel {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.dont-do-panel h2 { color: var(--white); }
.dont-do-list {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .dont-do-list { grid-template-columns: repeat(2, 1fr); }
}
.dont-do-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(191,160,122,0.5);
  border-radius: 10px;
  padding: 1.25rem;
}
.dont-do-item h3 {
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
}
.dont-do-item p { color: var(--white); font-size: 1rem; max-width: none; }
.dont-do-icon { width: 1.3em; height: 1.3em; flex-shrink: 0; }

/* ==========================================================================
   About
   ========================================================================== */
.about-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 780px) {
  .about-layout { flex-direction: row; align-items: flex-start; }
  .about-photo { flex: 0 0 380px; }
  .about-text { flex: 1; }
}

.about-photo-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid var(--bronze);
}

.placeholder-box {
  background: var(--offwhite);
  border: 2px dashed var(--bronze);
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 600;
}

.editable-note {
  display: inline-block;
  background: #fff4dc;
  border: 1px dashed var(--bronze);
  border-radius: 8px;
  padding: 0.15rem 0.5rem;
  font-style: italic;
  font-size: 0.95em;
}

/* ==========================================================================
   Service Area
   ========================================================================== */
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.area-chip {
  background: var(--white);
  border: 2px solid var(--navy);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-size: 1rem;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-section {
  background: var(--navy);
  color: var(--white);
}
.contact-section h2 { color: var(--white); }
.contact-section .section-head p { color: var(--white); }
.contact-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(191,160,122,0.5);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 560px) {
  .contact-methods { flex-direction: row; }
  .contact-methods .btn { flex: 1; }
}
.contact-plain {
  font-size: 1.05rem;
}
.contact-plain a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: underline;
}
.contact-note {
  font-size: 0.95rem;
  opacity: 0.9;
  border-top: 1px solid rgba(255,255,255,0.25);
  padding-top: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-2);
  color: var(--white);
  padding: 2.5rem 0 2rem;
  font-size: 0.95rem;
  border-top: 1px solid rgba(191, 160, 122, 0.35);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}
.footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-logo { height: 40px; width: auto; border-radius: 6px; }
.footer-tagline { color: var(--gold); font-weight: 600; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { text-decoration: none; color: var(--white); }
.footer-links a:hover { text-decoration: underline; }
.footer-copy { opacity: 0.8; margin-top: 1rem; }

/* ==========================================================================
   Utility
   ========================================================================== */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
