/**
 * Galveston Deck Builder — main stylesheet (desktop-first; see responsive.css)
 */

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--gdb-font-body);
    font-size: 1rem;
    color: var(--gdb-text);
    background: var(--gdb-white);
    line-height: 1.7;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gdb-gold); transition: var(--gdb-transition); }
a:hover { color: var(--gdb-brown); }
ul, ol { list-style: none; }
button { font: inherit; }

/* ── Accessibility utilities ─────────────────────────────────── */
.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;
}
.skip-link {
    position: absolute; left: 8px; top: -100px; z-index: 2000;
    background: var(--gdb-navy); color: var(--gdb-white);
    padding: 12px 18px; border-radius: var(--gdb-radius-sm); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 8px; color: var(--gdb-white); }
:focus-visible { outline: 3px solid var(--gdb-gold); outline-offset: 2px; }
.gdb-hero :focus-visible, .gdb-page-hero :focus-visible, .gdb-cta :focus-visible,
.gdb-footer :focus-visible, .gdb-location-card:focus-visible, .gdb-callbar :focus-visible {
    outline-color: var(--gdb-sun);
}
.gdb-form-panel :focus-visible { outline-color: var(--gdb-gold); }
main:focus { outline: none; }

/* Honeypot: off-screen, not display:none (Form-Security-Playbook §3) */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: var(--gdb-font-display);
    color: var(--gdb-navy);
    line-height: 1.2;
    font-weight: 700;
}
h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.5em; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.35rem); margin-bottom: 0.4em; }
p  { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ── Layout ─────────────────────────────────────────────────── */
.gdb-container { max-width: var(--gdb-max-width); margin: 0 auto; padding: 0 var(--gdb-space-md); }
.gdb-section { padding: var(--gdb-space-xl) 0; }
.gdb-section--sand { background: var(--gdb-sand); }
.gdb-section-head { text-align: center; max-width: 760px; margin: 0 auto var(--gdb-space-lg); }
.gdb-eyebrow {
    display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--gdb-gold); margin-bottom: var(--gdb-space-xs);
}
.gdb-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gdb-space-lg); align-items: center; }
.gdb-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gdb-space-md); }
.gdb-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gdb-space-md); }
.gdb-center { text-align: center; margin-top: var(--gdb-space-lg); }

/* ── Buttons (48px minimum tap height) ─────────────────────────── */
.gdb-btn-primary, .gdb-btn-outline, .gdb-btn-nav {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 12px 28px;
    font-family: var(--gdb-font-display); font-weight: 700; font-size: 1rem;
    letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; text-align: center;
    border-radius: var(--gdb-radius-sm); border: 2px solid transparent; cursor: pointer;
    transition: var(--gdb-transition);
}
.gdb-btn-primary { background: var(--gdb-gold); border-color: var(--gdb-gold); color: var(--gdb-white); }
.gdb-btn-primary:hover { background: var(--gdb-brown); border-color: var(--gdb-brown); color: var(--gdb-white); }
.gdb-btn-outline { background: transparent; border-color: var(--gdb-white); color: var(--gdb-white); }
.gdb-btn-outline:hover { background: var(--gdb-white); color: var(--gdb-navy); }
.gdb-btn-nav { background: var(--gdb-gold); color: var(--gdb-white); padding: 10px 18px; font-size: 0.95rem; white-space: nowrap; }
.gdb-btn-nav:hover { background: var(--gdb-brown); color: var(--gdb-white); }

/* ── Header ─────────────────────────────────────────────────── */
.gdb-header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--gdb-white); box-shadow: var(--gdb-shadow-sm);
}
.gdb-header.scrolled { box-shadow: var(--gdb-shadow-md); }
.gdb-header__inner {
    max-width: var(--gdb-max-width); margin: 0 auto; padding: 0 var(--gdb-space-md);
    min-height: var(--gdb-header-h);
    display: flex; align-items: center; justify-content: space-between; gap: var(--gdb-space-md);
}
.gdb-header__logo { flex-shrink: 0; display: block; }
.gdb-header__logo img { height: 64px; width: auto; }

/* ── Navigation (desktop) ─────────────────────────────────────── */
.gdb-nav__hamburger { display: none; }
.gdb-nav { display: flex; align-items: center; gap: var(--gdb-space-md); flex: 1; justify-content: flex-end; }
.gdb-nav__list { display: flex; align-items: center; gap: 2px; }
.gdb-nav__item { position: relative; }
.gdb-nav__item--dropdown { display: flex; align-items: center; }
.gdb-nav__link {
    display: block; padding: 10px 10px;
    font-size: 0.95rem; font-weight: 600; color: var(--gdb-navy);
    text-decoration: none; white-space: nowrap; border-radius: var(--gdb-radius-sm);
}
.gdb-nav__link:hover, .gdb-nav__link[aria-current="page"] { color: var(--gdb-gold); }
.gdb-nav__link[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gdb-gold); }
.gdb-nav__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 40px; margin-left: -6px;
    background: none; border: 0; border-radius: var(--gdb-radius-sm); cursor: pointer; color: var(--gdb-navy);
}
.gdb-nav__arrow {
    width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px); transition: transform 0.2s ease;
}
.gdb-nav__item--dropdown.open .gdb-nav__arrow { transform: rotate(-135deg) translateY(-2px); }

.gdb-nav__dropdown {
    display: none; position: absolute; top: 100%; left: 0; z-index: 200;
    min-width: 240px; padding: 8px 0;
    background: var(--gdb-white); border: 1px solid var(--gdb-border);
    border-radius: var(--gdb-radius-md); box-shadow: var(--gdb-shadow-md);
}
.gdb-nav__item--dropdown:hover > .gdb-nav__dropdown,
.gdb-nav__item--dropdown:focus-within > .gdb-nav__dropdown,
.gdb-nav__item--dropdown.open > .gdb-nav__dropdown { display: block; }
.gdb-nav__dropdown--wide { columns: 2; column-gap: 0; min-width: 420px; }
.gdb-nav__dropdown a {
    display: block; padding: 8px 18px; font-size: 0.92rem; color: var(--gdb-text);
    text-decoration: none; white-space: nowrap; break-inside: avoid;
}
.gdb-nav__dropdown a:hover { color: var(--gdb-gold); background: var(--gdb-light); }
.gdb-nav__dropdown-group-label {
    padding: 10px 18px 4px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--gdb-slate); break-inside: avoid; break-after: avoid;
}
.gdb-nav__cta { display: flex; align-items: center; gap: var(--gdb-space-sm); }
.gdb-nav__phone { font-weight: 700; color: var(--gdb-navy); white-space: nowrap; text-decoration: none; padding: 10px 0; }
.gdb-nav__phone:hover { color: var(--gdb-gold); }

/* ── Breadcrumb ─────────────────────────────────────────────── */
.gdb-breadcrumb { background: var(--gdb-sand); padding: 10px 0; font-size: 0.875rem; }
.gdb-breadcrumb__inner {
    max-width: var(--gdb-max-width); margin: 0 auto; padding: 0 var(--gdb-space-md);
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
}
.gdb-breadcrumb li { display: inline-flex; align-items: center; color: var(--gdb-text-light); }
.gdb-breadcrumb li + li::before { content: "\203A" / ""; margin: 0 8px; color: var(--gdb-slate); }
.gdb-breadcrumb a { color: var(--gdb-gold); }
.gdb-breadcrumb [aria-current="page"] { color: var(--gdb-text); font-weight: 600; }

/* ── Heroes ─────────────────────────────────────────────────── */
.gdb-hero, .gdb-page-hero { background: var(--gdb-navy); color: var(--gdb-white); }
.gdb-hero { padding: var(--gdb-space-xl) 0; }
.gdb-page-hero { padding: var(--gdb-space-lg) 0; }
.gdb-hero__inner, .gdb-page-hero__inner {
    max-width: var(--gdb-max-width); margin: 0 auto; padding: 0 var(--gdb-space-md);
    display: grid; grid-template-columns: 1fr 420px; gap: var(--gdb-space-lg); align-items: start;
}
.gdb-page-hero--single .gdb-page-hero__inner { grid-template-columns: 1fr; max-width: 900px; }
.gdb-hero h1, .gdb-page-hero h1 { color: var(--gdb-white); margin-bottom: var(--gdb-space-sm); }
.gdb-hero h1 span { color: var(--gdb-sun); }
.gdb-hero__eyebrow {
    display: inline-block; background: var(--gdb-gold); color: var(--gdb-white);
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    padding: 6px 14px; border-radius: var(--gdb-radius-sm); margin-bottom: var(--gdb-space-sm);
}
.gdb-hero__sub { font-size: 1.1rem; color: rgba(255, 255, 255, 0.85); margin-bottom: var(--gdb-space-md); }
.gdb-hero__phone {
    display: inline-block; font-family: var(--gdb-font-display); font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700; color: var(--gdb-sun); text-decoration: none; margin-bottom: var(--gdb-space-sm);
}
.gdb-hero__phone:hover { color: var(--gdb-white); }
.gdb-hero__service-area { color: rgba(255, 255, 255, 0.85); margin-bottom: var(--gdb-space-md); }
.gdb-hero__btns { display: flex; gap: var(--gdb-space-sm); flex-wrap: wrap; margin-top: var(--gdb-space-sm); }

/* ── Form ───────────────────────────────────────────────────── */
.gdb-form-panel {
    background: var(--gdb-white); color: var(--gdb-text);
    border-radius: var(--gdb-radius-md); padding: var(--gdb-space-md); box-shadow: var(--gdb-shadow-lg);
    scroll-margin-top: calc(var(--gdb-header-h) + 16px);
}
.gdb-form-title { font-size: 1.5rem; margin-bottom: 4px; }
.gdb-form-sub { color: var(--gdb-text-light); margin-bottom: var(--gdb-space-sm); }
.gdb-form { display: flex; flex-direction: column; gap: 14px; }
.gdb-form-group { display: flex; flex-direction: column; gap: 4px; }
.gdb-form-group label { font-size: 0.95rem; font-weight: 700; color: var(--gdb-navy); }
.gdb-form-group .req { font-weight: 400; color: var(--gdb-text-light); font-size: 0.875rem; }
.gdb-form-group input, .gdb-form-group select, .gdb-form-group textarea {
    width: 100%; min-height: 48px; padding: 10px 12px;
    font-family: var(--gdb-font-body); font-size: 1rem; /* 16px: no iOS zoom on focus */
    color: var(--gdb-text); background: var(--gdb-white);
    border: 1px solid var(--gdb-field); border-radius: var(--gdb-radius-sm);
    transition: var(--gdb-transition);
}
.gdb-form-group textarea { resize: vertical; min-height: 110px; }
.gdb-form-group input:focus, .gdb-form-group select:focus, .gdb-form-group textarea:focus {
    border-color: var(--gdb-gold); box-shadow: 0 0 0 3px rgba(112, 64, 16, 0.2);
}
.gdb-form-group [aria-invalid="true"] { border: 2px solid var(--gdb-error); }
.gdb-field-error { color: var(--gdb-error); font-size: 0.9rem; font-weight: 600; }
.gdb-field-error::before { content: "Error: "; }
.gdb-field-hint { color: var(--gdb-text-light); font-size: 0.875rem; }
.gdb-form-alert {
    background: var(--gdb-error-bg); color: var(--gdb-error); border-left: 4px solid var(--gdb-error);
    padding: 12px 14px; border-radius: var(--gdb-radius-sm); margin-bottom: var(--gdb-space-sm); font-weight: 600;
}
.gdb-form-alert a { color: var(--gdb-error); }
.gdb-btn-submit {
    min-height: 52px; width: 100%; padding: 14px;
    background: var(--gdb-gold); color: var(--gdb-white); border: 0; border-radius: var(--gdb-radius-sm);
    font-family: var(--gdb-font-display); font-size: 1.1rem; font-weight: 700; letter-spacing: 0.05em;
    text-transform: uppercase; cursor: pointer; transition: var(--gdb-transition);
}
.gdb-btn-submit:hover { background: var(--gdb-brown); }
.gdb-btn-submit[aria-disabled="true"] { opacity: 0.75; cursor: progress; }
.gdb-form-note, .gdb-form-alt { font-size: 0.9rem; color: var(--gdb-text-light); text-align: center; }
.gdb-form-alt a { font-weight: 700; }

/* ── Content column ─────────────────────────────────────────── */
.gdb-content-wrap { max-width: var(--gdb-max-width); margin: 0 auto; padding: var(--gdb-space-xl) var(--gdb-space-md); }
.gdb-content-body { max-width: var(--gdb-content-width); font-size: 1.0625rem; }
.gdb-content-body h2 { margin-top: var(--gdb-space-lg); margin-bottom: var(--gdb-space-sm); }
.gdb-content-body h2:first-child { margin-top: 0; }
.gdb-content-body h3 { margin-top: var(--gdb-space-md); }
.gdb-content-body ul, .gdb-content-body ol { padding-left: 22px; margin-bottom: 1em; }
.gdb-content-body ul { list-style: disc; }
.gdb-content-body ol { list-style: decimal; }
.gdb-content-body li { margin-bottom: 6px; }
.gdb-content-body a:not([class]) { text-decoration: underline; text-underline-offset: 2px; }
.gdb-link-list { columns: 2; column-gap: var(--gdb-space-md); }

.gdb-figure { margin: var(--gdb-space-md) 0; }
.gdb-figure img { width: 100%; border-radius: var(--gdb-radius-md); }
.gdb-figure figcaption { font-size: 0.9rem; color: var(--gdb-text-light); margin-top: 8px; }

/* ── Gallery ────────────────────────────────────────────────── */
.gdb-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gdb-space-md); margin-bottom: var(--gdb-space-lg); }
.gdb-gallery figure { margin: 0; }
.gdb-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--gdb-radius-md); }
.gdb-gallery figcaption { font-size: 0.95rem; color: var(--gdb-text-light); margin-top: 8px; }
.gdb-media { border-radius: var(--gdb-radius-md); overflow: hidden; }
.gdb-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ── Cards ──────────────────────────────────────────────────── */
.gdb-service-card {
    background: var(--gdb-white); border: 1px solid var(--gdb-border); border-radius: var(--gdb-radius-md);
    padding: var(--gdb-space-md); transition: var(--gdb-transition);
}
.gdb-service-card:hover { box-shadow: var(--gdb-shadow-md); border-color: var(--gdb-gold); }
.gdb-service-card h3, .gdb-service-card .h3 { font-size: 1.25rem; margin-bottom: 0.4em; }
.gdb-service-card h3 a, .gdb-service-card .h3 a { color: var(--gdb-navy); text-decoration: none; }
.gdb-service-card h3 a:hover, .gdb-service-card .h3 a:hover { color: var(--gdb-gold); text-decoration: underline; }
.gdb-service-card p { color: var(--gdb-text-light); margin-bottom: 0; }

.gdb-location-card {
    display: block; background: var(--gdb-navy); color: var(--gdb-white); text-decoration: none;
    border-radius: var(--gdb-radius-md); padding: var(--gdb-space-sm) var(--gdb-space-md); min-height: 48px;
}
.gdb-location-card:hover { background: var(--gdb-gold); color: var(--gdb-white); }
.gdb-location-card strong { display: block; font-family: var(--gdb-font-display); font-size: 1.1rem; }
.gdb-location-card span { font-size: 0.9rem; color: rgba(255, 255, 255, 0.85); }
.gdb-area-group { margin-bottom: var(--gdb-space-lg); }
.gdb-area-group h2, .gdb-area-group h3 { margin-bottom: var(--gdb-space-sm); }

/* ── FAQ ────────────────────────────────────────────────────── */
.gdb-faq { border-top: 1px solid var(--gdb-border); }
.gdb-faq-item { border-bottom: 1px solid var(--gdb-border); padding: var(--gdb-space-sm) 0; }
.gdb-faq-item h3 { font-size: 1.15rem; margin-top: 0; margin-bottom: 8px; }
.gdb-faq-item p { margin: 0; }

/* ── CTA strip ──────────────────────────────────────────────── */
.gdb-cta { background: var(--gdb-navy); padding: var(--gdb-space-xl) 0; text-align: center; }
.gdb-cta h2 { color: var(--gdb-white); margin-bottom: var(--gdb-space-sm); }
.gdb-cta p { color: rgba(255, 255, 255, 0.85); max-width: 620px; margin: 0 auto var(--gdb-space-md); }

/* ── Sources ────────────────────────────────────────────────── */
.gdb-citations { border-top: 1px solid var(--gdb-border); margin-top: var(--gdb-space-lg); padding-top: var(--gdb-space-sm); font-size: 0.9rem; }
.gdb-content-body .gdb-citations__heading { font-size: 1rem; margin: 0 0 8px; }
.gdb-content-body .gdb-citations ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }

/* ── Footer ─────────────────────────────────────────────────── */
.gdb-footer { background: var(--gdb-navy); color: rgba(255, 255, 255, 0.85); padding: var(--gdb-space-xl) 0 0; }
.gdb-footer__inner {
    max-width: var(--gdb-max-width); margin: 0 auto; padding: 0 var(--gdb-space-md) var(--gdb-space-lg);
    display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: var(--gdb-space-md);
}
/* The logo file has an opaque white background, so it sits on a deliberate white card. */
.gdb-footer__logo { display: inline-block; background: var(--gdb-white); border-radius: var(--gdb-radius-md); padding: 6px 10px; margin-bottom: var(--gdb-space-sm); }
.gdb-footer__logo img { height: 64px; width: auto; }
.gdb-footer__desc { font-size: 0.95rem; }
.gdb-footer__phone { font-family: var(--gdb-font-display); font-size: 1.35rem; font-weight: 700; color: var(--gdb-sun); text-decoration: none; }
.gdb-footer__phone:hover { color: var(--gdb-white); }
.gdb-footer__heading {
    font-family: var(--gdb-font-body); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--gdb-sun); margin-bottom: 12px;
}
.gdb-footer__list li { margin-bottom: 4px; }
.gdb-footer__list a, .gdb-footer__legal a {
    display: inline-block; padding: 4px 0; font-size: 0.95rem; color: rgba(255, 255, 255, 0.85); text-decoration: none;
}
.gdb-footer__list a:hover, .gdb-footer__legal a:hover { color: var(--gdb-white); text-decoration: underline; }
.gdb-footer__bottom {
    max-width: var(--gdb-max-width); margin: 0 auto; padding: var(--gdb-space-sm) var(--gdb-space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex; justify-content: space-between; align-items: center; gap: var(--gdb-space-sm); flex-wrap: wrap;
    font-size: 0.9rem; color: rgba(255, 255, 255, 0.85);
}
.gdb-footer__legal { display: flex; gap: var(--gdb-space-md); flex-wrap: wrap; }

/* ── Mobile call bar (shown in responsive.css) ─────────────────── */
.gdb-callbar { display: none; }

/* ── Stats strip ────────────────────────────────────────────── */
.gdb-stats { background: var(--gdb-gold); padding: var(--gdb-space-md) 0; }
.gdb-stats__inner {
    max-width: var(--gdb-max-width); margin: 0 auto; padding: 0 var(--gdb-space-md);
    display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gdb-space-md); text-align: center;
}
.gdb-stat__num { display: block; font-family: var(--gdb-font-display); font-size: 2rem; font-weight: 700; color: var(--gdb-white); }
.gdb-stat__label { font-size: 0.9rem; color: rgba(255, 255, 255, 0.9); text-transform: uppercase; letter-spacing: 0.08em; }

/* ── Checklist, definition list ─────────────────────────────── */
.gdb-checklist { list-style: disc; padding-left: 22px; margin-bottom: var(--gdb-space-md); }
.gdb-checklist li { margin-bottom: 6px; }
.gdb-details { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin-bottom: var(--gdb-space-md); }
.gdb-details dt { font-weight: 700; color: var(--gdb-navy); }

/* ── Search ─────────────────────────────────────────────────── */
.gdb-nav__search {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-width: 44px; min-height: 44px; color: var(--gdb-navy); text-decoration: none; border-radius: var(--gdb-radius-sm);
}
.gdb-nav__search:hover { color: var(--gdb-gold); }
.gdb-nav__search-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gdb-search { margin: var(--gdb-space-md) 0 var(--gdb-space-lg); }
.gdb-search label { display: block; font-weight: 700; color: var(--gdb-navy); margin-bottom: 6px; }
.gdb-search__row { display: flex; gap: 12px; }
.gdb-search input {
    flex: 1; min-height: 48px; padding: 10px 12px; font: inherit; font-size: 1rem;
    border: 1px solid var(--gdb-field); border-radius: var(--gdb-radius-sm);
}

/* ── HTML sitemap ───────────────────────────────────────────── */
.gdb-sitemap-section { margin-bottom: var(--gdb-space-lg); }
