:root {
  color-scheme: dark;
  --bg: #0f0f0f;
  --card: #1a1a1a;
  --accent: #FFD166;
  --accent-ink: #2a2000;
  --ink: #ffffff;
  --muted: #b7b7b7;
  --focus: #D62828;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

/* Native smooth scroll for non-JS jumps (JS handles sticky-offset for nav clicks) */
html { scroll-behavior: smooth; }

/* Make anchor targets not hide under sticky header */
.hero, .page-hero, .section { scroll-margin-top: 80px; }

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, #0f0f0f 0%, #1a1a1a 100%);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessible focus ring */
:focus-visible { outline: 3px solid rgba(124, 196, 255, .9); outline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { border-radius: 8px; }

/* Responsive media */
img, picture, video { max-width: 100%; height: auto; }

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

/* ================= HEADER ================= */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: rgba(15,15,15,0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,209,102,0.25);
}

/* BRAND */
.brand {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--accent);
  font-weight: 800; letter-spacing: .3px;
}
.brand-logo {
  display: inline-block; width: 28px; height: 28px;
  background: url("/assets/img/logo.png") center/contain no-repeat;
}
/* Defensive: support pages that used <img class="brand-logo"> */
img.brand-logo { width: 28px; height: 28px; object-fit: contain; display: inline-block; }
.brand-text { font-size: 18px; }

/* HAMBURGER */
.hamburger {
  width: 42px; height: 38px;
  background: transparent;
  border: 1px solid rgba(255,209,102,0.3);
  border-radius: 10px;
  display: grid; place-items: center;
  cursor: pointer; position: relative; z-index: 1002;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.hamburger:hover { border-color: var(--accent); }
.hamburger:focus-visible { box-shadow: 0 0 0 3px rgba(255,209,102,.2); }
.hamburger .bar {
  display: block; width: 20px; height: 2px;
  background: var(--accent); margin: 3px 0; border-radius: 2px;
}

/* ================= DRAWER ================= */
.nav-drawer {
  position: fixed; inset: 0 auto 0 0; width: 280px;
  background: var(--card) !important;
  box-shadow: var(--shadow);
  transform: translateX(-100%);
  transition: transform .28s ease;
  padding: 20px; z-index: 1001;
  border-right: 1px solid rgba(255,209,102,0.25);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-drawer.open { transform: translateX(0); }

.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-title { font-weight: 700; color: var(--accent); }
.close-btn {
  background: none; border: none; color: var(--accent);
  font-size: 24px; cursor: pointer; line-height: 1;
}
.close-btn:hover { color: var(--focus); }

.nav-drawer ul { list-style: none; padding: 0; margin: 12px 0 0; }
.nav-drawer li { margin: 8px 0; }
.nav-drawer .nav-link {
  color: var(--ink); text-decoration: none; font-weight: 600;
  display: inline-block; padding: 6px 2px;
  border-radius: 6px; transition: color .15s ease, background .15s ease;
}
.nav-drawer .nav-link:hover { color: var(--focus); background: rgba(255,255,255,.04); }
.nav-drawer .nav-cta { margin-top: 16px; }

/* ================= BACKDROP ================= */
.backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  z-index: 1000; opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.backdrop.show { opacity: 1; pointer-events: auto; }
.backdrop[hidden] { display: none; }

/* ================= BUTTONS ================= */
.btn {
  display: inline-block; padding: 12px 16px; border-radius: 10px;
  text-decoration: none; font-weight: 700;
  border: 1px solid transparent; transition: all .2s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: var(--focus); color: #fff; border-color: var(--focus); }
.btn-primary:focus-visible { box-shadow: 0 0 0 3px rgba(255,209,102,.25); }

.btn-outline { border-color: var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--accent-ink); }
.btn-outline:focus-visible { box-shadow: 0 0 0 3px rgba(255,209,102,.25); }

.btn-ghost { border-color: rgba(255,209,102,0.3); color: var(--accent); }
.btn-ghost:hover { background: rgba(255,209,102,0.15); }

/* ================= HERO (Home) ================= */
.hero {
  position: relative; overflow: hidden; padding: 80px 18px 48px;
  text-align: center; min-height: 420px;
  background:
    radial-gradient(800px 300px at 50% -50%, rgba(255,209,102,.25), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("/assets/img/tampa-bay.jpg") center/cover no-repeat;
  opacity: .55; z-index: 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.2) 40%, rgba(0,0,0,0));
  z-index: 0;
}
.hero .hero-content { position: relative; z-index: 1; }

/* two-line heading structure */
.hero h1 {
  margin: 0 0 12px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.hero h1 .brand-head {
  font-family: 'Montserrat', Inter, system-ui, sans-serif;
  font-weight: 800; font-size: 72px; line-height: 1.05; text-transform: uppercase;
  background: linear-gradient(45deg, #FFD166, #E6B800);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero h1 .tagline {
  font-family: 'Montserrat', Inter, system-ui, sans-serif;
  font-weight: 700; font-size: 28px; text-transform: uppercase;
  color: var(--accent); text-shadow: 0 2px 6px rgba(0,0,0,.45);
}

.hero .sub {
  font-family: 'Montserrat', Inter, system-ui, sans-serif;
  font-weight: 500; font-size: 22px; letter-spacing: .5px;
  color: var(--ink); margin: 0 auto 16px; max-width: 680px;
  text-shadow: 0 2px 6px rgba(0,0,0,.6);
}
.hero-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

/* ================= REUSABLE PAGE HERO (All subpages) ================= */
.page-hero{
  position:relative; overflow:hidden; padding:84px 18px 56px;
  text-align:center; min-height:340px;
  background:
    radial-gradient(800px 300px at 50% -50%, rgba(255,209,102,.25), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
}
.page-hero::before{
  content:""; position:absolute; inset:0;
  background: url("/assets/img/tampa-bay.jpg") center/cover no-repeat; /* default */
  opacity:.55; z-index:0;
}
.page-hero::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.2) 40%, rgba(0,0,0,0));
  z-index:0;
}
.page-hero .inner{ position:relative; z-index:1; max-width:1100px; margin:0 auto; }
.page-hero h1{
  margin:0 0 10px;
  font-family:'Montserrat', Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight:800; font-size:56px; line-height:1.05; letter-spacing:.8px; text-transform:uppercase;
  background: linear-gradient(45deg, #FFD166, #E6B800);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
}
.page-hero .sub{
  font-family:'Montserrat', Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight:500; font-size:20px; color:var(--ink);
  max-width:820px; margin:0 auto; text-shadow:0 2px 6px rgba(0,0,0,.6);
}
/* shorter variant if needed */
.page-hero--sm{ min-height:260px; padding:72px 18px 40px; }

/* About page: swap background image */
.page-hero--about::before {
  background-image: url("/assets/img/about-hero.jpg?v=1");
}

/* ================= SECTIONS ================= */
.section { padding: 56px 18px; max-width: 1100px; margin: 0 auto; }
.section h2 { font-size: 28px; margin: 0 0 14px; color: var(--accent); }
.section-accent { background: linear-gradient(180deg, rgba(255,209,102,0.06), transparent); }

/* Cards */
.cards { display: grid; gap: 14px; }
.card {
  background: var(--card); padding: 18px; border-radius: 14px;
  border: 1px solid rgba(255,209,102,0.25);
}
.card h3 { margin: 0 0 6px; color: var(--accent); }

/* ================= FORM ================= */
.quote-form {
  width: 100%; max-width: 720px; margin: 18px auto 8px;
  padding: 20px 22px; background: var(--card);
  border: 1px solid rgba(255,209,102,0.25); border-radius: 14px; box-shadow: var(--shadow);
}
.form-row { display: grid; gap: 6px; margin-bottom: 14px; }
.quote-form label { font-weight: 600; color: var(--ink); letter-spacing: .2px; }

.quote-form input[type="text"],
.quote-form input[type="email"],
.quote-form input[type="tel"],
.quote-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid rgba(255,209,102,.22); background: #0f0f0f; color: var(--ink);
  outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.quote-form textarea { min-height: 110px; resize: vertical; }

.quote-form input::placeholder, .quote-form textarea::placeholder { color: #a8a8a8; }

.quote-form input:focus, .quote-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,209,102,.15);
}

/* File input */
.quote-form input[type="file"] {
  display: block; width: 100%; padding: 10px 12px; border-radius: 10px;
  border: 1px solid rgba(255,209,102,.22); background: #0f0f0f; color: #cfcfcf; cursor: pointer;
}
.quote-form .help { color: var(--muted); font-size: 13px; }

.quote-form .btn.btn-primary {
  width: fit-content; padding: 12px 18px; border-radius: 10px;
  border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  font-weight: 800; letter-spacing: .2px; transition: transform .06s ease;
}
.quote-form .btn.btn-primary:active { transform: translateY(1px); }

.error { color: #ff8484; font-size: 13px; min-height: 16px; }
.form-msg { margin-top: 10px; min-height: 18px; color: var(--muted); }

.alt-contact { margin-top: 14px; color: var(--muted); }

/* ================= CONTACT ================= */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list a { color: var(--accent); text-decoration: none; }
.contact-list a:hover { color: var(--focus); }

/* ================= ABOUT PAGE ================= */
.about-wrap { max-width: 1100px; margin: 0 auto; }
.about-hero {
  display: grid; gap: 22px; align-items: center;
  grid-template-columns: 1.1fr .9fr;
  background: linear-gradient(180deg, rgba(255,209,102,0.06), transparent);
  padding: 18px; border-radius: 16px; border: 1px solid rgba(255,209,102,.18);
}
.about-hero .logo {
  max-width: 180px; height: auto; display: block; margin-bottom: 12px;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.35));
}
.about-hero h1 {
  font-family: 'Montserrat', Inter, system-ui, sans-serif;
  margin: 10px 0 8px; font-size: 36px; color: var(--accent);
  letter-spacing: .3px;
}
.about-hero .lead { margin: 8px 0 12px; color: var(--ink); font-size: 18px; line-height: 1.6; }
.about-hero .bullets { display: grid; gap: 8px; margin: 12px 0 16px; padding-left: 18px; }
.about-hero .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

.about-hero .map-card {
  background: var(--card); border: 1px solid rgba(255,209,102,.22);
  border-radius: 16px; padding: 12px; box-shadow: var(--shadow);
}
.about-hero .map-card img { width: 100%; height: auto; display: block; border-radius: 12px; }
.about-hero .map-caption { font-size: 14px; color: var(--muted); margin-top: 6px; text-align: center; }

.about-grid {
  display: grid; gap: 16px; margin-top: 28px;
  grid-template-columns: repeat(3, 1fr);
}
.about-card {
  background: var(--card); border: 1px solid rgba(255,209,102,.22);
  border-radius: 14px; padding: 16px; box-shadow: var(--shadow);
}
.about-card h3 { margin: 0 0 6px; color: var(--accent); }
.about-card p { margin: 6px 0 0; color: var(--ink); }

.about-fineprint { margin-top: 24px; color: var(--muted); font-size: 14px; }

/* ================= FOOTER ================= */
.site-footer {
  padding: 28px 18px; text-align: center; color: var(--muted);
  border-top: 1px solid rgba(255,209,102,0.25); margin-top: 40px;
}

/* ================= RESPONSIVE ================= */
@media (min-width: 720px) {
  .hero h1 .brand-head { font-size: 78px; }
  .hero h1 .tagline { font-size: 30px; }
  .page-hero h1 { font-size: 64px; }
  .page-hero .sub { font-size: 22px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) { /* About grid collapse */
  .about-hero { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-hero h1 { font-size: 28px; }
  .about-hero .lead { font-size: 17px; }
}
@media (max-width: 520px) {
  .hero { min-height: 55vh; }
  .hero::before { background-position: 60% center; }
  .hero h1 .brand-head { font-size: 44px; letter-spacing: .6px; }
  .hero h1 .tagline { font-size: 18px; }
  .hero .sub { font-size: 18px; }

  .page-hero { min-height: 55vh; }
  .page-hero h1 { font-size: 40px; letter-spacing: .6px; }
  .page-hero .sub { font-size: 18px; }

  .brand-logo { width: 24px; height: 24px; }
  .quote-form { padding: 16px; margin-left: 8px; margin-right: 8px; }
}

/* ================= REDUCED MOTION ================= */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
