/* A Team Fencing - single stylesheet. No build step.
   Brand tokens match the main A Team site: navy + amber, Oswald headings, Open Sans body. */
:root {
  --navy: #182741;
  --navy-deep: #0f172a;
  --amber: #f59e0b;
  --amber-soft: #fbbf24;
  --ink: #1f2937;
  --muted: #5b6575;
  --line: #e3e7ee;
  --paper: #ffffff;
  --wash: #f4f6fa;
  --radius: 10px;
  --maxw: 1120px;
  --head: "Oswald", "Arial Narrow", Arial, sans-serif;
  --body: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 17px; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; color: var(--navy-deep); margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--amber); color: #000; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
section { padding: 56px 0; }
section.alt { background: var(--wash); }
.eyebrow { font-family: var(--head); text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; color: #b45309; margin: 0 0 .4em; font-weight: 600; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 48px; padding: 12px 22px; border-radius: var(--radius); border: 2px solid transparent; font: 700 1rem var(--body); text-decoration: none; cursor: pointer; text-align: center; }
.btn-primary { background: var(--amber); color: #1a1205; border-color: var(--amber); }
.btn-primary:hover { background: var(--amber-soft); border-color: var(--amber-soft); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-dark:hover { background: var(--navy-deep); }
.btn-line { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy-deep); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--head); font-size: 1.25rem; font-weight: 700; letter-spacing: .02em; }
.brand img { width: 40px; height: 40px; border-radius: 6px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text small { font-family: var(--head); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: #cbd5e5; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #e5e9f2; text-decoration: none; padding: 10px 12px; border-radius: 8px; font-weight: 600; font-size: .95rem; display: block; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.1); }
.nav-links .btn { color: #1a1205; padding: 8px 16px; min-height: 40px; }
.nav-toggle { display: none; background: none; border: 2px solid rgba(255,255,255,.5); color: #fff; border-radius: 8px; padding: 8px 12px; font: 700 .95rem var(--body); cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--navy-deep); flex-direction: column; align-items: stretch; padding: 10px 20px 18px; border-top: 1px solid rgba(255,255,255,.1); }
  .nav-links.open { display: flex; }
}

/* Hero */
.hero { position: relative; color: #fff; background: var(--navy-deep) center/cover no-repeat; padding: 84px 0 72px; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,23,42,.92) 0%, rgba(15,23,42,.72) 55%, rgba(15,23,42,.45) 100%); z-index: -1; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero p.sub { font-size: 1.15rem; max-width: 56ch; color: #e8edf6; }
.hero .eyebrow { color: var(--amber-soft); }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 22px 0 0; color: #e8edf6; font-weight: 600; font-size: .95rem; }
.hero-points li::before { content: "\2713\00a0"; color: var(--amber-soft); }
.hero.compact { padding: 56px 0 48px; }
.crumbs { font-size: .9rem; margin-bottom: 14px; color: #cbd5e5; }
.crumbs a { color: #fff; }

/* Trust strip */
.trust { background: var(--navy); color: #fff; padding: 16px 0; }
.trust ul { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; list-style: none; margin: 0; padding: 0; font-weight: 700; font-size: .95rem; }
.trust li::before { content: "\2605\00a0"; color: var(--amber-soft); }

/* Cards / grids */
.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card p { color: var(--muted); }
.card .more { margin-top: auto; font-weight: 700; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { padding: 6px 0 6px 28px; position: relative; }
.ticks li::before { content: "\2713"; position: absolute; left: 0; color: #b45309; font-weight: 800; }
.cross li::before { content: "\2715"; color: #9a3412; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pill-list li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; }
.pill-list a { text-decoration: none; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .25s; }
.gallery button:hover img { transform: scale(1.04); }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
dialog.lightbox::backdrop { background: rgba(7,10,20,.88); }
dialog.lightbox img { max-width: 96vw; max-height: 86vh; width: auto; height: auto; border-radius: 8px; margin: 0 auto; }
dialog.lightbox p { color: #fff; text-align: center; margin: 10px 0 0; }
dialog.lightbox .close { position: absolute; top: -6px; right: -6px; }

/* Reviews */
.review-row { display: grid; grid-auto-flow: column; grid-auto-columns: min(340px, 84%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.review { scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.review .stars { color: #d97706; letter-spacing: 2px; font-size: 1.1rem; }
.review blockquote { margin: 8px 0 12px; }
.review cite { font-style: normal; font-weight: 700; color: var(--navy); }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--navy-deep); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: #b45309; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 20px 16px; color: var(--ink); }

/* Estimate form */
.form-shell { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: start; }
@media (max-width: 860px) { .form-shell { grid-template-columns: 1fr; } }
form.estimate { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 8px 28px rgba(15,23,42,.08); }
form.estimate label { display: block; font-weight: 700; font-size: .92rem; margin: 14px 0 4px; }
form.estimate input, form.estimate select, form.estimate textarea { width: 100%; font: inherit; padding: 11px 12px; border: 1.5px solid #c5ccd8; border-radius: 8px; background: #fff; color: var(--ink); }
form.estimate input:focus, form.estimate select:focus, form.estimate textarea:focus { border-color: var(--navy); }
form.estimate .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { form.estimate .row { grid-template-columns: 1fr; } }
form.estimate .hint { font-size: .85rem; color: var(--muted); margin: 4px 0 0; }
form.estimate .consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin-top: 14px; }
form.estimate .consent input { width: auto; margin-top: 4px; }
form.estimate button[type=submit] { margin-top: 16px; width: 100%; }
.form-status { margin-top: 12px; font-weight: 700; min-height: 1.4em; }
.form-status.err { color: #b91c1c; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* CTA band + NAP */
.cta-band { background: var(--navy); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dbe3f0; max-width: 56ch; margin-left: auto; margin-right: auto; }
.cta-band .btn-row { justify-content: center; }
.nap { font-style: normal; line-height: 1.7; }
.nap strong { font-family: var(--head); font-size: 1.15rem; }

/* Prose (policy and AI pages) */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--wash); }
.table-scroll { overflow-x: auto; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #cdd6e6; padding: 48px 0 96px; font-size: .95rem; }
.site-footer h2 { color: #fff; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer a { color: #e8edf6; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 3px 0; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; font-size: .85rem; }

/* Mobile sticky CTA */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--navy-deep); box-shadow: 0 -4px 18px rgba(0,0,0,.25); }
  .sticky-cta .btn { min-height: 44px; padding: 8px; font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .gallery img { transition: none; } }

/* Long URLs (agents page link list, policy pages) must wrap on phones */
.prose a, .prose li, .prose td { overflow-wrap: anywhere; }
