/* ==========================================================================
   Automagnet - premium dark design system
   ========================================================================== */
:root {
    --bg: #07090d;
    --bg-2: #0c1016;
    --surface: #11161f;
    --surface-2: #161d28;
    --line: rgba(255, 255, 255, 0.08);
    --text: #f3f5f8;
    --muted: #9aa6b6;
    /* Brand red — primary accent (dominant color from logo) */
    --gold: #CC2229;
    --gold-deep: #A31B21;
    --gold-soft: rgba(204, 34, 41, 0.14);
    /* Brand gold — secondary detail (from border/stars in logo) */
    --cyan: #D4A843;
    --cyan-deep: #B08A2E;
    --cyan-soft: rgba(212, 168, 67, 0.10);
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    --maxw: 1200px;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
    --display: "Space Grotesk", "Plus Jakarta Sans", "Segoe UI", sans-serif;
    --display-condensed: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }

.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

section { padding: 96px 0; position: relative; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #ff4d55;
    font-weight: 700;
    margin-bottom: 18px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: linear-gradient(90deg, #ff4d55, #cc111a); border-radius: 2px; display: inline-block; }

.section-head { max-width: 640px; margin-bottom: 54px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }

.text-gold { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
    --pad: 14px 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: var(--pad);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
    will-change: transform;
}
.btn:hover { transform: translateY(-3px); }
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    color: #ffffff;
    box-shadow: 0 14px 34px rgba(204, 34, 41, 0.28);
}
.btn-gold:hover { box-shadow: 0 18px 44px rgba(204, 34, 41, 0.4); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-wa { background: #25d366; color: #04210f; }
.btn-wa:hover { box-shadow: 0 16px 36px rgba(37, 211, 102, 0.32); }
.btn-block { width: 100%; }

/* ---------- Navigation ---------- */
.site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), border-color 0.35s var(--ease);
    border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
    background: rgba(7, 9, 13, 0.82);
    backdrop-filter: blur(14px);
    border-color: var(--line);
}
.nav-inner {
    width: 100%;
    padding-inline: clamp(20px, 4vw, 48px);
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-left {
    display: flex;
    align-items: center;
    gap: clamp(24px, 4vw, 48px);
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo {
    height: 54px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s var(--ease);
}
.brand:hover .brand-logo {
    transform: scale(1.04);
}
.brand-name {
    font-family: var(--display);
    font-size: 1.28rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-left: 12px;
    display: inline-block;
}
.footer-brand .brand-logo {
    height: 72px;
}

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { font-size: 0.95rem; color: var(--muted); font-weight: 500; position: relative; transition: color 0.25s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:not(.nav-cta)::after {
    content: ""; position: absolute; left: 0; bottom: -6px;
    width: 0; height: 2px; background: var(--gold); transition: width 0.3s var(--ease);
}
.nav-links a:not(.nav-cta):hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
    padding: 10px 22px; border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    color: #ffffff !important; font-weight: 600;
    box-shadow: 0 10px 26px rgba(204, 34, 41, 0.26);
}
.nav-cta:hover { transform: translateY(-2px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); transition: 0.3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Generic page header (interior pages) ---------- */
.page-hero {
    padding: 160px 0 80px;
    text-align: center;
    background:
        radial-gradient(900px 380px at 50% -10%, rgba(204, 34, 41, 0.12), transparent 70%),
        var(--bg);
}
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.page-hero p { color: var(--muted); max-width: 620px; margin: 18px auto 0; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Services / locations: centered wrap so incomplete last rows stay balanced */
.services-grid,
.locations-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 26px;
}
.services-grid > .card,
.locations-grid > .card {
    flex: 0 1 calc((100% - 52px) / 3); /* 3 cols, 2 gaps */
    max-width: calc((100% - 52px) / 3);
    min-width: 0;
}
.services-grid > .card:only-child,
.locations-grid > .card:only-child {
    flex-basis: 100%;
    max-width: 420px;
}

.card {
    background: linear-gradient(180deg, var(--surface), var(--bg-2));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover { transform: translateY(-8px); border-color: rgba(204, 34, 41, 0.4); box-shadow: var(--shadow); }

.card-media { aspect-ratio: 16 / 11; overflow: hidden; position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card-media img { transform: scale(1.07); }
.card-body { padding: 26px; }
.card-body h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card-body p { color: var(--muted); font-size: 0.96rem; }

.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--gold); font-weight: 600; font-size: 0.92rem; }
.card-link span { transition: transform 0.3s var(--ease); }
.card:hover .card-link span { transform: translateX(6px); }

/* Coming Soon card state */
.card--coming-soon { cursor: default; opacity: 0.75; }
.card--coming-soon:hover { transform: none; border-color: var(--line); box-shadow: none; }
.card--coming-soon .card-media::after {
    content: ""; position: absolute; inset: 0;
    background: rgba(7, 9, 13, 0.45); z-index: 1;
}
.coming-soon-badge {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    color: #fff; font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    padding: 6px 14px; border-radius: 999px;
    box-shadow: 0 4px 16px rgba(204, 34, 41, 0.35);
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 30px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.stat .num { font-family: var(--display); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--gold); }
.stat .label { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.split-media { border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- About story ---------- */
.story-section {
    position: relative;
    overflow: hidden;
}
.story-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 420px at 50% 0%, rgba(204, 34, 41, 0.10), transparent 60%),
        radial-gradient(700px 360px at 80% 80%, rgba(212, 168, 67, 0.05), transparent 55%);
    pointer-events: none;
}
.story-prose {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}
.story-prose p {
    color: var(--muted);
    font-size: clamp(1.05rem, 2.1vw, 1.2rem);
    line-height: 1.75;
    margin: 0 0 28px;
}
.story-prose p strong {
    color: var(--text);
    font-weight: 700;
}
.story-prose-close {
    font-family: var(--display);
    font-size: clamp(1.2rem, 2.6vw, 1.55rem) !important;
    line-height: 1.45 !important;
    color: var(--text) !important;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0 !important;
    padding-top: 8px;
}

/* ---------- Packages ---------- */
.pkg {
    display: flex; flex-direction: column;
    background: linear-gradient(180deg, var(--surface), var(--bg-2));
    border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; position: relative;
    transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.pkg:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.pkg.popular { border-color: var(--gold); box-shadow: 0 24px 60px rgba(204, 34, 41, 0.18); }
.pkg-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #16120a;
    font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    padding: 6px 16px; border-radius: 999px;
}
.pkg h3 { font-size: 1.4rem; }
.pkg .price { font-family: var(--display); font-size: 2.4rem; color: var(--gold); margin: 14px 0 2px; }
.pkg .duration { color: var(--muted); font-size: 0.86rem; }
.pkg .desc { color: var(--muted); font-size: 0.95rem; margin: 16px 0 20px; }
.pkg ul { list-style: none; display: grid; gap: 12px; margin-bottom: 26px; }
.pkg ul li { display: flex; gap: 10px; font-size: 0.93rem; color: #d7deea; }
.pkg ul li::before { content: "\2713"; color: var(--gold); font-weight: 700; }
.pkg .btn { margin-top: auto; }

/* ---------- Branch / location cards ---------- */
.branch-card { display: flex; flex-direction: column; }
.branch-card .map { aspect-ratio: 16 / 9; border: 0; width: 100%; filter: grayscale(0.3) contrast(1.05); }
.branch-card .branch-body { padding: 24px; display: grid; gap: 8px; }
.branch-card h3 { font-size: 1.25rem; }
.branch-card .addr { color: var(--muted); font-size: 0.92rem; }
.branch-actions { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.branch-actions .btn { --pad: 11px 18px; font-size: 0.88rem; }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.field input, .field select, .field textarea {
    width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
    background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
    font-family: inherit; font-size: 0.96rem; transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft);
}
.field textarea { resize: vertical; min-height: 120px; }

.consent-box {
    margin: 8px 0 20px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.02);
}
.consent-notice {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0 0 14px;
}
.consent-notice a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.consent-check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.45;
}
.consent-check input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--gold);
}
.consent-check .req { color: var(--gold); }

/* Native select popup: OS often uses a light menu — keep option text dark & readable */
.field select option,
.field select optgroup {
    background-color: #ffffff;
    color: #11161f;
}

/* Custom dark select (used on book/contact form) */
.am-select {
    position: relative;
}
.am-select-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-2);
    border: 1px solid var(--line);
    color: var(--text);
    font-family: inherit;
    font-size: 0.96rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.am-select-trigger:hover,
.am-select.is-open .am-select-trigger {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft);
}
.am-select-value {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.am-select-caret {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 0.2s ease;
    opacity: 0.9;
}
.am-select.is-open .am-select-caret {
    transform: rotate(225deg) translate(-1px, -1px);
}
.am-select-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 40;
    margin: 0;
    padding: 8px;
    list-style: none;
    max-height: 260px;
    overflow-y: auto;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(12, 16, 24, 0.98);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(16px);
}
.am-select-menu[hidden] {
    display: none !important;
}
.am-select-option {
    padding: 12px 14px;
    border-radius: 10px;
    color: var(--text);
    font-size: 0.94rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.am-select-option:hover,
.am-select-option:focus {
    background: rgba(204, 34, 41, 0.16);
    color: #fff;
    outline: none;
}
.am-select-option.is-selected {
    background: rgba(204, 34, 41, 0.22);
    color: #fff;
    font-weight: 600;
}

/* Branch chooser chips */
.branch-chooser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
.branch-chip {
    cursor: pointer; text-align: center; padding: 18px 12px; border-radius: var(--radius-sm);
    border: 1px solid var(--line); background: var(--bg-2); transition: 0.25s var(--ease);
}
.branch-chip:hover { border-color: var(--gold); }
.branch-chip.selected { border-color: var(--gold); background: var(--gold-soft); }
.branch-chip .chip-city { font-family: var(--display); font-size: 1.1rem; }
.branch-chip .chip-name { color: var(--muted); font-size: 0.82rem; }
.branch-chip .chip-addr { color: var(--muted); font-size: 0.75rem; margin-top: 4px; line-height: 1.35; opacity: 0.85; }

.form-note { font-size: 0.88rem; margin-top: 8px; min-height: 20px; }
.form-note.error { color: #ff8b8b; }
.form-note.success { color: #7ee2a8; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; background:
        radial-gradient(700px 300px at 50% 0%, rgba(204, 34, 41, 0.14), transparent 70%), var(--bg-2);
    border-block: 1px solid var(--line); }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta-band p { color: var(--muted); max-width: 560px; margin: 16px auto 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-top: 70px; }
.footer-inner { width: min(100% - 40px, var(--maxw)); margin-inline: auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-tagline { color: var(--muted); margin: 18px 0; font-size: 0.95rem; max-width: 320px; }
.footer-col h4 { font-size: 0.95rem; margin-bottom: 18px; letter-spacing: 0.04em; }
.footer-col a { display: block; color: var(--muted); font-size: 0.92rem; margin-bottom: 12px; transition: color 0.25s; }
.footer-col a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 14px; align-items: center; }
.footer-social a {
    width: auto;
    height: auto;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 0;
    margin: 0;
    padding: 2px;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.footer-social a svg { display: block; width: 22px; height: 22px; }
.footer-social a:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    color: inherit;
}
.footer-social a[aria-label="Facebook"] { color: #1877F2; }
.footer-social a[aria-label="Instagram"] { color: #E1306C; }
.footer-social a[aria-label="WhatsApp"] { color: #25D366; }
.footer-all { color: var(--gold) !important; }

/* Floating WhatsApp CTA — same green glyph as footer; keep hover lift */
.wa-float {
    position: fixed;
    right: max(18px, env(safe-area-inset-right, 0px));
    bottom: max(18px, env(safe-area-inset-bottom, 0px));
    z-index: 1200;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(18, 22, 30, 0.92);
    border: 1px solid var(--line);
    color: #25d366;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.wa-float:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 14px 34px rgba(37, 211, 102, 0.55);
    color: #25d366;
}
.wa-float svg {
    display: block;
    width: 28px;
    height: 28px;
}
.footer-bottom {
    width: min(100% - 40px, var(--maxw)); margin: 50px auto 0; padding: 24px 0 30px;
    border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    color: var(--muted); font-size: 0.85rem;
}
.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.footer-bottom-links a {
    color: var(--muted);
    transition: color 0.25s ease;
}
.footer-bottom-links a:hover { color: var(--gold); }
.footer-bottom-links p { margin: 0; }

/* ---------- Legal / Privacy ---------- */
.legal-hero { padding-bottom: 48px; }
.legal-section { padding-bottom: 80px; }
.legal-doc {
    max-width: 780px;
    margin: 0 auto;
    padding: clamp(28px, 4vw, 40px);
    border-radius: 24px;
    border: 1px solid var(--line);
    background:
        radial-gradient(700px 280px at 0% 0%, rgba(204, 34, 41, 0.08), transparent 55%),
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}
.legal-updated {
    color: var(--cyan);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 22px;
}
.legal-doc > p {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 18px;
}
.legal-doc h2 {
    font-size: clamp(1.15rem, 2.2vw, 1.35rem);
    margin: 32px 0 12px;
    color: var(--text);
}
.legal-doc ul {
    margin: 0 0 18px;
    padding-left: 1.15rem;
    color: var(--muted);
    display: grid;
    gap: 10px;
}
.legal-doc li { line-height: 1.6; }
.legal-doc li strong { color: var(--text); }
.legal-contact { list-style: none; padding-left: 0 !important; }
.legal-contact a { color: var(--gold); }
.legal-contact a:hover { text-decoration: underline; }

/* ---------- Service detail ---------- */
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.service-detail .media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.feature-list { list-style: none; display: grid; gap: 14px; margin: 26px 0; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list li .tick { color: var(--gold); font-weight: 700; }

.service-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}

/* ---------- Service gallery page (grid + lightbox) ---------- */
.gallery-page-hero {
    padding-bottom: 36px;
    text-align: left;
}
.gallery-hero-top {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 28px;
}
.gallery-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 8px 14px 8px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.gallery-back:hover {
    color: var(--gold);
    border-color: rgba(204, 34, 41, 0.45);
    background: rgba(204, 34, 41, 0.08);
}
.gallery-hero-copy {
    text-align: center;
    max-width: 720px;
    margin-inline: auto;
}
.gallery-hero-copy .eyebrow {
    justify-content: center;
}
.gallery-hero-copy h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
}
.gallery-hero-copy p {
    color: var(--muted);
    max-width: 560px;
    margin: 16px auto 0;
}

.gallery-page-section { padding-top: 0; padding-bottom: 80px; }

.gallery-empty { display: flex; justify-content: center; padding: 20px 0 40px; }
.gallery-empty-card {
    width: min(560px, 100%);
    text-align: center;
    padding: 48px 32px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at top, rgba(204, 34, 41, 0.12), transparent 55%),
        rgba(255, 255, 255, 0.02);
}
.gallery-empty-card h2 { margin-bottom: 10px; }
.gallery-empty-card p { color: var(--muted); margin-bottom: 24px; }

.sg-masonry {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}
.sg-card {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: #0a0a0c;
    isolation: isolate;
    aspect-ratio: 4 / 3;
    opacity: 0;
    transform: translateY(28px) scale(0.96);
    transition:
        opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.3s ease;
    transition-delay: var(--sg-delay, 0ms);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.sg-card.is-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.sg-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
}
.sg-card img,
.sg-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.sg-card:hover img,
.sg-card:hover video {
    transform: scale(1.05);
}
.sg-card-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.12) 48%, transparent 62%);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
    pointer-events: none;
}
.sg-card:hover .sg-card-shine {
    transform: translateX(120%);
}
.sg-card-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

/* Lightbox viewer (opens only on card click) */
.sg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 5, 8, 0.88);
    backdrop-filter: blur(14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}
.sg-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}
.sg-lightbox[hidden] { display: none !important; }

.sg-lb-stage {
    width: min(1100px, 100%);
    height: min(78vh, 820px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.sg-lb-media {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sg-lb-media.is-swap {
    animation: sgFadeUp 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes sgFadeUp {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.sg-lb-media img,
.sg-lb-media video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 16px;
    object-fit: contain;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.sg-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.sg-nav:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(0, 0, 0, 0.65);
}
.sg-prev { left: 18px; }
.sg-next { right: 18px; }

.sg-lb-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 4;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}
.sg-lb-close:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.sg-counter {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    z-index: 3;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

@media (max-width: 900px) {
    .sg-masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 560px) {
    .gallery-hero-top { margin-bottom: 22px; }
    .sg-masonry { grid-template-columns: 1fr; gap: 12px; }
    .sg-card { border-radius: 14px; }
    .sg-nav { width: 40px; height: 40px; font-size: 1.45rem; }
    .sg-prev { left: 10px; }
    .sg-next { right: 10px; }
    .sg-lb-stage { height: min(70vh, 640px); }
}

/* ---------- Loading / empty ---------- */
.loading, .empty { color: var(--muted); text-align: center; padding: 40px 0; }
.hidden { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .split, .service-detail { grid-template-columns: 1fr; gap: 36px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .services-grid > .card,
    .locations-grid > .card {
        flex-basis: calc((100% - 26px) / 2);
        max-width: calc((100% - 26px) / 2);
    }
    .services-grid > .card:only-child,
    .locations-grid > .card:only-child {
        max-width: 420px;
    }
}
@media (max-width: 760px) {
    section { padding: 70px 0; }
    .brand-name { display: none !important; }
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 4px;
        background: rgba(7, 9, 13, 0.97); backdrop-filter: blur(16px);
        padding: 20px; border-bottom: 1px solid var(--line);
        clip-path: inset(0 0 100% 0); transition: clip-path 0.35s var(--ease);
    }
    .nav-links.open { clip-path: inset(0 0 0 0); }
    .nav-links a { width: 100%; padding: 12px 4px; }
    .nav-links .nav-cta { text-align: center; margin-top: 8px; }
    .grid-3, .grid-4, .grid-2, .branch-chooser { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .services-grid > .card,
    .locations-grid > .card {
        flex-basis: 100%;
        max-width: 100%;
    }
}
@media (max-width: 480px) {
    .footer-inner { grid-template-columns: 1fr; }
}

/* ---------- Alternating Service Layout (services.html) ---------- */
@media (min-width: 769px) {
    .order-desktop-1 { order: 1 !important; }
    .order-desktop-2 { order: 2 !important; }
}
@media (max-width: 768px) {
    .service-detail {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
    }
    .service-detail .media {
        order: 1 !important;
    }
    .service-detail .service-desc-content {
        order: 2 !important;
    }
}
