/* ==========================================================
   Amelia Island Locksmiths — site styles
   One file for every page. Colors live in the block below;
   change a color here and every page follows.
   ========================================================== */

:root {
  --navy: #002860;       /* headings, footer, trust bar (from the logo) */
  --blue: #0060B8;       /* buttons and call bar (from the logo) */
  --blue-dark: #004C94;  /* button hover */
  --text: #222222;       /* body text */
  --muted: #555555;      /* small print */
  --light: #F5F5F5;      /* light gray section background */
  --line: #E3E3E3;       /* thin borders */
  --white: #FFFFFF;
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  padding-bottom: 64px; /* room for the mobile call bar */
}

@media (min-width: 900px) {
  body { font-size: 18px; padding-bottom: 0; }
}

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

a { color: var(--blue-dark); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 0.5em; }
h1 { font-size: 2rem; font-weight: 800; }
h2 { font-size: 1.6rem; font-weight: 800; margin-top: 0; }
h3 { font-size: 1.15rem; font-weight: 700; margin-top: 1.4em; }

@media (min-width: 900px) {
  h1 { font-size: 2.9rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.3rem; }
}

p { margin: 0 0 1em; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

section { padding: 48px 0; }
@media (min-width: 900px) { section { padding: 64px 0; } }

.light { background: var(--light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 6px;
  border: 0;
  font-size: 1.05rem;
}
.btn:hover { background: var(--blue-dark); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-dark { background: var(--navy); }
.btn-dark:hover { background: #001a40; }

/* ---------- Address strip (top of page, scrolls away) ---------- */
.address-strip {
  background: var(--light);
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  padding: 8px 12px;
}
.address-strip a { color: var(--navy); font-weight: 700; text-decoration: none; }
.address-strip span { margin: 0 6px; }
.strip-inner { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.strip-keywords { font-weight: 700; color: var(--navy); }
@media (min-width: 900px) {
  .strip-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ---------- Sticky header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 2px solid var(--navy);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}
.logo img { width: 190px; height: auto; }
@media (min-width: 900px) { .logo img { width: 240px; } }

.nav-toggle { display: none; }
.nav-label {
  display: inline-block;
  font-weight: 700;
  border: 2px solid var(--navy);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  user-select: none;
}
.site-nav {
  display: none;
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: var(--white);
  border-bottom: 2px solid var(--navy);
}
.nav-toggle:checked ~ .site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 8px 20px; }
.site-nav li a {
  display: block;
  padding: 12px 0;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.header-call { display: none; }

@media (min-width: 900px) {
  .nav-label { display: none; }
  .site-nav { display: block; position: static; border: 0; background: none; }
  .site-nav ul { display: flex; gap: 22px; padding: 0; }
  .site-nav li a { border: 0; padding: 6px 0; }
  .header-call { display: inline-block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  padding: 56px 0;
  background: var(--navy) center / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.62);
}
.hero .wrap { position: relative; }
.hero h1 { color: var(--white); }
.hero p { font-size: 1.05rem; max-width: 720px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.hero .tagline { font-weight: 700; margin-top: 18px; }
@media (min-width: 900px) { .hero { padding: 88px 0; } .hero p { font-size: 1.15rem; } }

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 16px;
  margin-bottom: 10px;
  background: var(--white);
}
.faq summary {
  font-weight: 700;
  padding: 14px 0;
  cursor: pointer;
  color: var(--navy);
}
.faq details p { padding-bottom: 14px; }

/* ---------- Quote block ---------- */
.quote-block h2 { font-size: 1.35rem; margin-top: 1.6em; }
.quote-block h2:first-of-type { margin-top: 0; }
@media (min-width: 900px) { .quote-block h2 { font-size: 1.5rem; } }
.quote-block .lead { font-size: 1.1rem; font-weight: 700; color: var(--navy); }

/* ---------- Service sections ---------- */
.service-block { display: grid; gap: 28px; align-items: start; }
.service-block figure { margin: 0; }
.service-block figure img { border-radius: 6px; width: 100%; max-height: 560px; object-fit: cover; }
.service-block figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }
@media (min-width: 900px) {
  .service-block { grid-template-columns: 340px 1fr; }
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--navy);
  color: var(--white);
  padding: 22px 0;
}
.trust-bar ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 10px;
  grid-template-columns: 1fr 1fr;
  font-weight: 700;
  text-align: center;
}
@media (min-width: 900px) { .trust-bar ul { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Why choose us ---------- */
.reasons { display: grid; gap: 20px; }
.reasons div { border-left: 4px solid var(--blue); padding-left: 16px; }
.reasons h3 { margin-top: 0; }
@media (min-width: 900px) { .reasons { grid-template-columns: repeat(2, 1fr); gap: 28px; } }

/* ---------- Services grid ---------- */
.services-grid { display: grid; gap: 22px; }
.services-grid a {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
}
.services-grid img { width: 100%; height: 220px; object-fit: cover; }
.services-grid .card-body { padding: 16px; }
.services-grid h3 { margin-top: 0; color: var(--blue-dark); }
@media (min-width: 900px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Service area and map ---------- */
.map-frame { position: relative; width: 100%; padding-top: 56%; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.area-list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 700; }

/* ---------- Call band ---------- */
.call-band { background: var(--blue); color: var(--white); text-align: center; }
.call-band h2 { color: var(--white); }
.call-band .phone { font-size: 2rem; font-weight: 800; color: var(--white); text-decoration: none; display: inline-block; margin: 8px 0 16px; }
@media (min-width: 900px) { .call-band .phone { font-size: 2.6rem; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #DDDDDD; padding: 40px 0 24px; font-size: 0.95rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1.4fr; } }
.site-footer h3 { color: var(--white); font-size: 1rem; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-map { position: relative; width: 100%; padding-top: 66%; border-radius: 6px; overflow: hidden; }
.footer-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.copyright { border-top: 1px solid #333; margin-top: 28px; padding-top: 16px; color: #AAAAAA; font-size: 0.85rem; }

/* ---------- Mobile call bar ---------- */
.call-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--blue);
  color: var(--white);
  text-align: center;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
}
@media (min-width: 900px) { .call-bar { display: none; } }
