/* =========================================================
   Apogee Grafix — Main Stylesheet
   ========================================================= */

/* ----- Design Tokens ----- */
:root {
    /* Colors */
    --bg:            #303033;
    --bg-dark:       #252528;
    --bg-darker:     #1c1c1f;
    --surface:       #3a3a3e;
    --surface-hover: #454549;
    --border:        #4a4a4f;
    --text:          #f5f5f5;
    --text-muted:    #a8a8ad;
    --text-dim:      #7a7a80;
    --accent:        #C2DE18;
    --accent-hover:  #d4ec3f;
    --accent-dark:   #9cb00e;
    --black:         #0d0d0f;

    /* Typography */
    --font-heading: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    --font-body:    'Open Sans', system-ui, -apple-system, sans-serif;

    /* Layout */
    --max-width:     2000px;
    --header-height: 80px;
    --radius:        6px;
    --radius-lg:     12px;

    /* Transitions */
    --transition: 0.2s ease;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ----- Base ----- */
body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ----- Layout Helpers ----- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section--tight {
    padding: 3rem 0;
}

.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-bold { font-weight: 700; }

/* ----- Header ----- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    background-color: var(--bg-dark);
    background-image:
        linear-gradient(135deg, rgba(28, 28, 31, 0.7), rgba(48, 48, 51, 0.8)),
        url('/assets/images/AG_bg.jpg');
    background-size: cover;
    background-position: center;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.site-header__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 48px;
}

.site-header__logo img {
    height: 48px;
    width: auto;
}

.site-nav ul {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.site-nav a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    color: var(--text);
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition);
}

.site-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.site-nav a:hover::before {
    transform: scaleX(1);
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--accent);
}

.site-nav a.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--accent);
}

/* Hamburger toggle button (hidden on desktop) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.nav-toggle__bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.is-open .nav-toggle__bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open .nav-toggle__bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* ----- Mobile Navigation ----- */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--bg-dark);
        background-image:
            linear-gradient(rgba(28, 28, 31, 0.95), rgba(28, 28, 31, 0.95)),
            url('/assets/images/AG_bg.jpg');
        background-size: cover;
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .site-nav.is-open {
        max-height: 400px;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
    }

    .site-nav li {
        width: 100%;
    }

    .site-nav a {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .site-nav li:last-child a {
        border-bottom: none;
    }

    .site-nav a.is-active::after {
        display: none;
    }

    .site-nav a.is-active {
        border-left: 3px solid var(--accent);
        padding-left: calc(1.5rem - 3px);
    }
}

/* ----- Hero ----- */
.hero {
    position: relative;
    padding: 1.5rem 0;
    overflow: hidden;
    background-color: var(--bg-darker);
}

.hero__logo img {
    height: 200px;
    width: auto;
}

.hero__logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.75rem;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(135deg, rgba(28, 28, 31, 0.35), rgba(48, 48, 51, 0.55)),
        url('/assets/images/AG_bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.95;
    z-index: 0;
}

.hero__inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero__eyebrow {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(1.3rem, 2.6vw, 2rem);
    margin-bottom: 1.25rem;
    line-height: 1.3;
    font-weight: 600;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 1);
}

.hero h1 .highlight {
    color: var(--accent);
}

.hero__sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 640px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

/* ----- Intro Section ----- */
.intro {
    padding: 6rem 0;
}

.intro__grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 5rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.intro__aside {
    text-align: right;
    padding-top: 0.5rem;
    position: relative;
}

.intro__badge-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin: 0;
}

.intro__badge-number {
    font-family: var(--font-heading);
    font-size: 6rem;
    font-weight: 700;
    line-height: 0.95;
    color: var(--text);
    margin: 0.5rem 0;
    letter-spacing: -0.04em;
}

.intro__badge-number span {
    color: var(--accent);
}

.intro__accent-bar {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin-top: 1.5rem;
    margin-left: auto;
}

.intro__body {
    padding-top: 0.5rem;
}

.intro__lead {
    font-size: 1.5rem;
    line-height: 1.4;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.intro__body p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.intro__body p:last-child {
    margin-bottom: 0;
}

.intro__closer {
    font-family: var(--font-heading) !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    color: var(--text) !important;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    margin-top: 1.75rem !important;
    text-align: center;
}

/* Intro responsive */
@media (max-width: 768px) {
    .intro {
        padding: 4rem 0;
    }

    .intro__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .intro__aside {
        text-align: center;
        display: flex;
        align-items: baseline;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .intro__badge-label {
        order: 1;
    }

    .intro__badge-number {
        order: 2;
        font-size: 3.5rem;
        margin: 0;
    }

    .intro__badge-label:last-of-type {
    order: 3;
    }


    .intro__accent-bar {
    order: 5;
    flex-basis: 100%;
    width: 40px;
    height: 3px;
    margin: 0.75rem 0 0 0;
    margin-left: 0;
    align-self: center;
    }

    .intro__lead {
        font-size: 1.25rem;
    }

    .intro__body p {
        font-size: 1rem;
    }
}

/* ----- Brands Strip ----- */
.brands {
    padding: 3rem 0 4rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background-color: var(--bg-dark);
}

.brands__title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text);
    margin-bottom: 2.5rem;
}

.brands__title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin: 0.9rem auto 0;
}

.brands__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: stretch;
    max-width: 900px;
    margin: 0 auto;
}

.brands__item {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 0;
    background: #f2f2f2;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition);
    text-decoration: none;
    color: inherit;
}

.brands__item:hover {
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.brands__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
    opacity: 1;
    display: block;
}

/* Tablet: 2 across */
@media (max-width: 900px) and (min-width: 641px) {
    .brands__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 560px;
    }
    
}

/* Phone: 1 stacked, larger tiles */
@media (max-width: 640px) {
     .brands__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 70vw;
    }
  
}

/* ----- Footer ----- */
.site-footer {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.site-footer h4 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.site-footer a {
    color: var(--text-muted);
    transition: color var(--transition);
}

.site-footer a:hover {
    color: var(--accent);
}

.site-footer__logo {
    height: 42px;
    width: auto;
    margin-bottom: 1rem;
}

.site-footer__social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.site-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 50%;
    transition: border-color var(--transition), color var(--transition);
}

.site-footer__social a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.site-footer__social svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.site-footer__contact li,
.site-footer__hours li {
    margin-bottom: 0.5rem;
}

.site-footer__bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-dim);
}

@media (max-width: 768px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .site-footer__bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

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

/* ----- Forms ----- */
.quote-form {
    display: grid;
    gap: 1.25rem;
}

.quote-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.quote-form input[type="text"],
.quote-form input[type="tel"],
.quote-form input[type="email"],
.quote-form textarea,
.quote-form input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition);
}

.quote-form input:focus,
.quote-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.quote-form textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row--two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 560px) {
    .form-row--two {
        grid-template-columns: 1fr;
    }
}

.form-fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.form-fieldset legend {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.75rem;
    display: block;
    padding: 0;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

@media (max-width: 560px) {
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.9rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
    font-size: 0.95rem;
}

.checkbox-item:hover,
.radio-item:hover {
    border-color: var(--accent-dark);
}

.checkbox-item:has(input:checked),
.radio-item:has(input:checked) {
    border-color: var(--accent);
    background: rgba(194, 222, 24, 0.08);
}

.checkbox-item input,
.radio-item input {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
}

.radio-row {
    display: flex;
    gap: 0.75rem;
}

.radio-row .radio-item {
    flex: 1;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: background var(--transition), color var(--transition);
    text-align: center;
}

.btn--primary {
    background: var(--accent);
    color: var(--black);
}

.btn--primary:hover {
    background: var(--accent-hover);
}

/* =========================================================
   Quote Tab + Side Panel
   ========================================================= */

/* ----- Fixed vertical tab on the right edge ----- */
.quote-tab {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    background: var(--accent);
    color: var(--black);
    border: none;
    padding: 1.5rem 0.85rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    writing-mode: vertical-rl;
    border-top-left-radius: var(--radius);
    border-bottom-left-radius: var(--radius);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.35);
    transition: background var(--transition), transform var(--transition);
}

.quote-tab:hover {
    background: var(--accent-hover);
    transform: translateY(-50%) translateX(-2px);
}

.quote-tab span {
    display: inline-block;
    writing-mode: vertical-rl;
}

/* ----- Backdrop ----- */
.quote-backdrop {
    position: fixed;
    inset: 0;
    z-index: 190;
    background: rgba(0, 0, 0, 0.65);
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.quote-backdrop.is-visible {
    opacity: 1;
}

/* ----- Slide-out Panel ----- */
.quote-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    width: min(560px, 100vw);
    background-color: var(--bg-dark);
    background-image:
        linear-gradient(135deg, rgba(28, 28, 31, 0.75), rgba(48, 48, 51, 0.85)),
        url('/assets/images/AG_bg.jpg');
    background-size: cover;
    background-position: center;
    border-left: 1px solid var(--border);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.quote-panel.is-open {
    transform: translateX(0);
}

.quote-panel__inner {
    position: relative;
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.quote-panel__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.4);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.quote-panel__close:hover {
    background: var(--accent);
    color: var(--black);
}

.quote-panel__body {
    padding: 3.5rem 2.25rem 2.5rem;
    max-width: 100%;
}

.quote-panel__body h2 {
    font-size: 1.65rem;
    margin-bottom: 0.5rem;
    padding-right: 3rem;
}

.quote-panel__lede {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
}

.quote-panel__message {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
}

.quote-panel__message--success {
    background: var(--accent);
    color: var(--black);
    font-weight: 600;
}

.quote-panel__message--error {
    background: #c81e1e;
    color: #fff;
}

/* Prevent body scroll while panel is open */
body.quote-open {
    overflow: hidden;
}

/* Label hint (small muted "(optional)") */
.label-hint {
    color: var(--text-dim);
    font-weight: 400;
}

/* ----- Mobile adjustments ----- */
@media (max-width: 768px) {
    .quote-tab {
        font-size: 0.75rem;
        padding: 1.15rem 0.65rem;
        letter-spacing: 0.12em;
    }

    .quote-panel {
        width: 100vw;
        border-left: none;
    }

    .quote-panel__body {
        padding: 3rem 1.5rem 2rem;
    }

    .quote-panel__body h2 {
        font-size: 1.4rem;
    }

    /* On very small screens, hide the tab label and use a compact icon-like pill */
    .quote-tab {
        padding: 1rem 0.5rem;
    }
}

/* Hide tab when panel is open to avoid overlap */
body.quote-open .quote-tab {
    opacity: 0;
    pointer-events: none;
}

/* ----- CTA Band ----- */
.cta-band {
    background-color: var(--bg-darker);
    background-image:
        linear-gradient(135deg, rgba(28, 28, 31, 0.85), rgba(48, 48, 51, 0.92)),
        url('/assets/images/AG_bg.jpg');
    background-size: cover;
    background-position: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 4rem 0;
}

.cta-band__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.cta-band__text h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
}

.cta-band__text p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 540px;
}

.btn--cta {
    flex-shrink: 0;
    padding: 1.1rem 2.25rem;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .cta-band {
        padding: 3rem 0;
    }
    .cta-band__inner {
        flex-direction: column;
        text-align: center;
        gap: 1.75rem;
    }
    .cta-band__text p {
        margin: 0 auto;
    }
}
/* ----- Footer additions ----- */
.site-footer__brand p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    max-width: 340px;
}

.site-footer__brand p strong {
    color: var(--text);
    font-weight: 600;
}

.site-footer__install-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    transition: color var(--transition);
}

.site-footer__install-link:hover {
    color: var(--accent-hover);
}

.site-footer__hours-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(194, 222, 24, 0.08);
    border: 1px solid rgba(194, 222, 24, 0.25);
    border-radius: 999px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
}

.site-footer__hours-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(194, 222, 24, 0.2);
    flex-shrink: 0;
}

/* ----- Scroll fade-in ----- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ----- Success checkmark ----- */
.quote-panel__message--success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.quote-panel__success-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--black);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: pop-in 0.4s ease-out 0.15s both;
}

.quote-panel__success-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--accent);
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
    animation: draw-check 0.5s ease-out 0.45s forwards;
}

@keyframes pop-in {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

@keyframes draw-check {
    to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .quote-panel__success-icon,
    .quote-panel__success-icon svg {
        animation: none;
        stroke-dashoffset: 0;
    }
}

/* ----- Tab attention pulse ----- */
@keyframes tab-glow {
    0%, 90%, 100% {
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(194, 222, 24, 0);
    }
    95% {
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.35), 0 0 0 8px rgba(194, 222, 24, 0.25);
    }
}

.quote-tab {
    animation: tab-glow 5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .quote-tab { animation: none; }
}

/* =========================================================
   Contact Page — Light Section
   ========================================================= */

/* ----- Contact Hero ----- */
.contact-hero {
    background: #f5f5f3;
    color: #1a1a1c;
    padding: 5rem 0;
}

.contact-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-hero__image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-hero__image img {
    max-width: 100%;
    height: auto;
    max-height: 480px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.15));
}

.contact-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    line-height: 1.2;
    color: #1a1a1c;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.contact-hero__title .text-accent-dark {
    color: #8aa500; /* darker lime for readability on light */
}

.contact-hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

/* Button styles */
.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
}

.contact-btn svg {
    flex-shrink: 0;
}

.contact-btn--primary {
    background: #303033;
    color: #f5f5f3;
    border-color: #303033;
}

.contact-btn--primary:hover {
    background: #C2DE18;
    color: #1a1a1c;
    border-color: #C2DE18;
}

.contact-btn--secondary {
    background: transparent;
    color: #303033;
    border-color: #b8b8b0;
    font-size: 0.9rem;
    padding: 0.65rem 1.15rem;
}

.contact-btn--secondary:hover {
    border-color: #303033;
    background: #ebebe7;
    color: #1a1a1c;
}

/* ----- Contact Socials ----- */
.contact-socials {
    background: #f5f5f3;
    color: #1a1a1c;
    padding: 4rem 0 5rem;
    border-top: 1px solid #e0e0dc;
}

.contact-socials__title {
    font-family: var(--font-heading);
    text-align: center;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 600;
    color: #1a1a1c;
    margin-bottom: 3rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.01em;
}

.contact-socials__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.contact-social-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid #e0e0dc;
    border-radius: var(--radius-lg);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.contact-social-tile:hover {
    transform: translateY(-3px);
    border-color: #C2DE18;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.contact-social-tile img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ----- Contact responsive ----- */
@media (max-width: 900px) {
    .contact-hero {
        padding: 3.5rem 0;
    }
    .contact-hero__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .contact-hero__image {
        order: -1;
    }
    .contact-hero__image img {
        max-height: 320px;
    }
    .contact-hero__title {
        text-align: center;
    }
    .contact-hero__buttons {
        justify-content: center;
    }

    /* Socials: 2 across on tablet */
    .contact-socials__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        max-width: 560px;
    }

    .contact-socials__title {
        margin-bottom: 2.25rem;
    }
}

@media (max-width: 640px) {
    .contact-hero {
        padding: 1.5rem 0 2rem; /* Significantly reduced from 2.5rem */
    }

    /* Make the image smaller so it doesn't push the text down */
    .contact-hero__image img {
        max-height: 220px; /* Reduced from 320px */
    }

    .contact-hero__title {
        margin-bottom: 1.25rem; /* Tighter spacing under headline */
        font-size: 1.4rem; /* Slightly smaller text to fit more on screen */
    }

    .contact-hero__buttons {
        flex-direction: row; /* Put buttons side-by-side */
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* Make Call Us and Email Us share the space 50/50 */
    .contact-btn--primary {
        flex: 1;
        min-width: 45%;
        justify-content: center;
        padding: 0.85rem 1rem;
    }

    /* Make Add to Contacts full width on its own row */
    .contact-btn--secondary {
        width: 100%;
        justify-content: center;
        margin-top: 0.25rem;
    }

    /* Tighten up the review section so it peeks up higher */
    .contact-review {
        padding: 1.5rem 0 1rem;
    }

    /* Socials: 1 stacked, 55% width */
    .contact-socials__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 55vw;
    }

    .contact-socials {
        padding: 2rem 0 2.5rem;
    }
}
/* =========================================================
   Ready-Print Page
   ========================================================= */

/* ----- Hero ----- */
.rp-hero {
    background-color: var(--bg-darker);
    background-image:
        linear-gradient(135deg, rgba(28,28,31,0.6), rgba(48,48,51,0.75)),
        url('/assets/images/AG_bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 4rem 0 3.5rem;
    text-align: center;
}

.rp-hero__inner { max-width: 720px; margin: 0 auto; }

.rp-hero__logo {
    height: 140px;
    width: auto;
    max-width: 100%;
    margin: 0 auto 1.5rem;
    display: block;
}

.rp-hero__sub {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.6vw, 2rem);
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* ----- Multi-banner strip (top of page) ----- */
.rp-strip {
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    padding: 1.15rem 0;
}

.rp-strip__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.rp-strip__text {
    color: var(--text);
    font-size: 0.95rem;
}

.rp-strip__text strong {
    color: var(--accent);
    font-weight: 700;
}

.rp-strip__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rp-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    background: var(--accent);
    color: var(--black);
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--transition);
    white-space: nowrap;
}

.rp-banner-btn:hover { background: var(--accent-hover); }

/* ----- Body / form ----- */
.rp-body {
    padding: 3rem 0 5rem;
}

.rp-body .container {
    max-width: 800px;
}

.rp-form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ----- Running total corner ----- */
.rp-total-corner {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0.6rem 1rem;
    background: var(--bg-darker);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    z-index: 5;
}

.rp-total-corner__label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-dim);
}

.rp-total-corner__value {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
}

/* ----- Sections ----- */
.rp-section {
    position: relative;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

/* First section only needs the padding-right to accommodate the badge */
.rp-section:first-of-type .rp-section__title {
    padding-right: 140px;
}

/* Remove the padding-right from the generic rule that applied to all sections */

.rp-section__title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
}

.rp-section__hint {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.rp-field {
    margin-bottom: 1rem;
}

.rp-field:last-child { margin-bottom: 0; }

.rp-field label,
.rp-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.rp-form input[type="text"],
.rp-form input[type="tel"],
.rp-form input[type="email"],
.rp-form input[type="number"],
.rp-form textarea {
    width: 100%;
    height: 54px;
    padding: 0 1.15rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    transition: border-color var(--transition), background var(--transition);
}

.rp-form input[type="text"]:hover,
.rp-form input[type="tel"]:hover,
.rp-form input[type="email"]:hover,
.rp-form input[type="number"]:hover,
.rp-form textarea:hover {
    border-color: var(--border-strong);
}

.rp-form input[type="text"]:focus,
.rp-form input[type="tel"]:focus,
.rp-form input[type="email"]:focus,
.rp-form input[type="number"]:focus,
.rp-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.rp-form textarea {
    height: auto;
    min-height: 100px;
    padding: 0.85rem 1.15rem;
    font-family: var(--font-body);
}

.rp-form input:focus,
.rp-form select:focus,
.rp-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* ----- Refined selects and number inputs ----- */
/* ----- Refined select ----- */
.rp-form select,
.rp-section select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    height: 54px;
    padding: 0 3rem 0 1.15rem;
    background-color: var(--surface);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path fill='none' stroke='%23C2DE18' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l6 6 6-6'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1.15rem center;
    background-size: 14px 9px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--transition), background-color var(--transition);
}

.rp-form select:hover,
.rp-section select:hover {
    border-color: var(--border-strong);
    background-color: var(--surface-hover);
}

.rp-form select:focus,
.rp-section select:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--surface);
}

/* When the select shows the empty placeholder, dim it */
.rp-form select.is-empty,
.rp-section select.is-empty {
    color: var(--text);
    font-weight: 700;
}

/* Style the native dropdown options (limited browser support but helps in Chrome/Edge) */
.rp-form select option,
.rp-section select option {
    background: var(--bg-dark);
    color: var(--text);
    padding: 0.75rem;
    font-family: var(--font-body);
}

.rp-form select option:disabled,
.rp-section select option:disabled {
    color: var(--text-dim);
}

/* Number input with stepper buttons */
.rp-form input[type="number"],
.rp-section input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
    padding-right: 0.75rem;
}

.rp-form input[type="number"]::-webkit-outer-spin-button,
.rp-form input[type="number"]::-webkit-inner-spin-button,
.rp-section input[type="number"]::-webkit-outer-spin-button,
.rp-section input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Custom stepper wrap - see HTML change below */
.rp-qty-stepper {
    display: inline-flex;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition);
}

.rp-qty-stepper:focus-within {
    border-color: var(--accent);
}

.rp-qty-stepper button {
    width: 40px;
    background: transparent;
    border: none;
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.rp-qty-stepper button:hover {
    background: rgba(194, 222, 24, 0.1);
}

.rp-qty-stepper button:disabled {
    color: var(--text-dim);
    cursor: not-allowed;
    background: transparent;
}

.rp-qty-stepper input {
    width: 60px;
    background: transparent;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    padding: 0.65rem 0;
}

.rp-qty-stepper input:focus {
    outline: none;
}

/* Hide default number spinners inside the stepper */
.rp-qty-stepper input[type="number"]::-webkit-outer-spin-button,
.rp-qty-stepper input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.rp-qty-stepper input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.rp-qty-stepper input[type="number"] {
    height: auto;
    padding: 0.85rem 0;
    border: none;
    background: transparent;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-radius: 0;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
}

.rp-hint {
    color: var(--text-dim);
    font-weight: 400;
}

/* ----- Price per banner ----- */
.rp-price-display {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.rp-price-display__label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}

.rp-price-display__value {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

/* ----- Option choices ----- */
.rp-options {
    margin-bottom: 1rem;
}

.rp-choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.rp-choice {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem; /* Space between radio and text */
    padding: 0.7rem 1.15rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.95rem;
    transition: border-color var(--transition), background var(--transition);
    margin: 0 !important;
    font-weight: 500 !important;
    line-height: 1.2;
}

.rp-choice:hover { 
    border-color: var(--border-strong); 
}

.rp-choice input {
    accent-color: var(--accent);
    margin: 0;
    width: 18px; /* Slightly larger radio */
    height: 18px;
}

.rp-choice span {
    display: inline-block;
    margin-top: 2px; /* Optically center the text with the larger radio */
}

.rp-choice:has(input:checked) {
    border-color: var(--accent);
    background: rgba(194, 222, 24, 0.08);
}

/* ----- Subtotal row (inside first section) ----- */
.rp-subtotal-row {
    display: flex;
    justify-content: space-between;
    padding-top: 0.85rem;
    margin-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ----- Dropzone ----- */
.rp-dropzone {
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
    background: var(--surface);
}

.rp-dropzone:hover {
    border-color: var(--accent);
    background: rgba(194, 222, 24, 0.05);
    transform: translateY(-1px);
}

.rp-dropzone.is-dragover {
    border-color: var(--accent);
    background: rgba(194, 222, 24, 0.1);
    transform: scale(1.01);
}

.rp-dropzone__inner svg {
    color: var(--text-dim);
    margin: 0 auto 0.75rem;
    display: block;
    transition: color 0.2s ease;
}

.rp-dropzone:hover .rp-dropzone__inner svg,
.rp-dropzone.is-dragover .rp-dropzone__inner svg {
    color: var(--accent);
}

.rp-dropzone__inner p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.rp-link {
    color: var(--accent);
    text-decoration: underline;
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
    padding: 0;
}

.rp-file-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rp-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.65rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.rp-file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rp-file-remove {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    transition: border-color var(--transition), color var(--transition);
    flex-shrink: 0;
}

.rp-file-remove:hover {
    border-color: #ff8888;
    color: #ff8888;
}

/* ----- Inline multi-banner (triggered by qty/files) ----- */
.rp-multi-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1.15rem 1.5rem;
    background: rgba(194, 222, 24, 0.08);
    border: 1px solid rgba(194, 222, 24, 0.3);
    border-radius: var(--radius-lg);
    color: var(--text);
    font-size: 0.95rem;
}

/* ----- Submit button ----- */
.rp-submit {
    display: block;
    width: 100%;
    padding: 1.1rem 2rem;
    background: var(--accent);
    color: var(--black);
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    margin-top: 0.5rem;
}

.rp-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* ----- Alerts ----- */
.rp-alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.rp-alert--error {
    background: rgba(200, 30, 30, 0.15);
    border: 1px solid #c81e1e;
    color: #ff8888;
}

/* ----- Confirmation page (unchanged) ----- */
.rp-confirm { padding: 4rem 0 5rem; }
.rp-confirm__inner { max-width: 640px; margin: 0 auto; text-align: center; }
.rp-confirm__icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem; /* Centers it horizontally and gives it space below */
    background: rgba(194, 222, 24, 0.1); /* Soft lime background circle */
    border-radius: 50%;
    color: var(--accent);
}

.rp-confirm__icon svg {
    width: 32px;
    height: 32px;
}
.rp-confirm__lede { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; }

.rp-confirm__summary,
.rp-confirm__payment {
    text-align: left;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.rp-confirm__summary h2,
.rp-confirm__payment h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.rp-confirm__summary dl {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.5rem 1rem;
    margin: 0;
    font-size: 0.95rem;
}

.rp-confirm__summary dt {
    color: var(--text-dim);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rp-confirm__summary dd { margin: 0; color: var(--text); }
.rp-confirm__payment p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.rp-confirm__payment a { color: var(--accent); }
.rp-confirm__hint { font-size: 0.85rem !important; margin-top: 1rem !important; }
.rp-confirm__back { display: inline-block; margin-top: 1.5rem; color: var(--text-muted); font-size: 0.9rem; }
.rp-confirm__back:hover { color: var(--accent); }

/* ----- Responsive ----- */
@media (max-width: 700px) {
    .rp-hero { padding: 2.5rem 0 2rem; }
    .rp-hero__logo { height: 80px; }
    .rp-hero__sub { font-size: 1.1rem; }

    .rp-strip__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

    .rp-body { padding: 2rem 0 3rem; }
    .rp-section { padding: 1.25rem; }

    .rp-total-corner {
        position: static;
        align-self: flex-end;
        margin-bottom: 0.5rem;
    }

    .rp-section__title {
        padding-right: 0;
    }

    .rp-confirm__summary dl {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    .rp-confirm__summary dd { margin-bottom: 0.75rem; }

    .rp-multi-banner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ----- Print-Ready tooltip ----- */
.rp-tip {
    position: relative;
    display: inline-block;
    vertical-align: baseline;
}

.rp-tip__trigger {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    cursor: help;
}

.rp-tip__trigger:hover,
.rp-tip__trigger:focus {
    color: var(--accent);
}

.rp-tip__content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 340px;
    max-width: 80vw;
    padding: 0.85rem 1rem;
    background: var(--bg-darker);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 100;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    pointer-events: none;
}

.rp-tip__content::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 20px;
    border: 6px solid transparent;
    border-bottom-color: var(--accent);
}

.rp-tip:hover .rp-tip__content,
.rp-tip:focus-within .rp-tip__content {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 500px) {
    .rp-tip__content {
        width: 280px;
        left: auto;
        right: 0;
    }
    .rp-tip__content::before {
        left: auto;
        right: 20px;
    }
}

/* =========================================================
   Stickers — Tag Us Discount Page
   ========================================================= */

/* ----- Hero ----- */
.stickers-hero {
    background-color: var(--bg-darker);
    background-image:
        linear-gradient(135deg, rgba(28,28,31,0.6), rgba(48,48,51,0.75)),
        url('/assets/images/AG_bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 5rem 0 4rem;
    text-align: center;
}

.stickers-hero__inner { max-width: 860px; margin: 0 auto; }

.stickers-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 2rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.stickers-hero__socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.stickers-hero__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    padding: 0.4rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.stickers-hero__socials a:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    background: rgba(194, 222, 24, 0.08);
}

.stickers-hero__socials img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transform: scale(1.15); /* enlarges the icon within the tile */
}

/* ----- Steps ----- */
.stickers-steps {
    padding: 4rem 0 5rem;
    background: var(--bg);
}

.stickers-steps .container {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.stickers-steps__title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 3.5rem;
    text-align: center;
    letter-spacing: -0.01em;
}

.stickers-steps__list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.stickers-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.stickers-step:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.stickers-step__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--accent);
    color: var(--black);
    border-radius: 50%;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.stickers-step__body h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.stickers-step__sub {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

/* ----- Character pills ----- */
.stickers-chars {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
    margin-bottom: 1.5rem;
}

.stickers-char {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.stickers-char:hover {
    border-color: var(--accent);
    background: rgba(194, 222, 24, 0.08);
    color: var(--accent);
}

/* ----- Character image ----- */
.stickers-step__image {
    margin-top: 0.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
}

.stickers-step__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ----- Restrictions ----- */
.stickers-restrictions {
    font-size: 0.95rem;
    color: var(--text-dim);
    text-align: center;
    margin-top: 3rem;
    line-height: 1.6;
}

/* ----- Responsive ----- */
@media (max-width: 640px) {
    .stickers-hero {
        padding: 3.5rem 0 3rem;
    }
    .stickers-hero__socials a {
        width: 52px;
        height: 52px;
        padding: 0.6rem;
    }

    .stickers-steps {
        padding: 3rem 0;
    }

    .stickers-step {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: left;
    }

    .stickers-step__num {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
    }

    .stickers-step__body h3 {
        font-size: 1.15rem;
    }
}

.stickers-step--with-image {
    flex-wrap: wrap;
}

.stickers-step--with-image .stickers-step__image {
    flex-basis: 100%;
    margin-top: 1.5rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 520px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
}

.stickers-step--with-image .stickers-step__image img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* =========================================================
   TX Grit Cart Page
   ========================================================= */

.rp-section-head {
    position: relative;
    margin-bottom: 1rem;
}

.rp-section-head .rp-section__title {
    margin-bottom: 0;
    padding-right: 0;
}

.rp-section-head {
    position: relative;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.rp-section-head .rp-total-corner {
    position: static; /* Remove absolute positioning */
    margin: 0;
}

/* Style the optgroup headers */
.rp-form select optgroup,
.rp-section select optgroup {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent);
    background: var(--bg-darker);
    padding: 0.5rem 0;
}

.rp-form select optgroup option,
.rp-section select optgroup option {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text);
    padding-left: 1rem;
    background: var(--bg-dark);
}

/* Success alert */
.rp-alert--success {
    background: rgba(194, 222, 24, 0.12);
    border: 1px solid var(--accent);
    color: var(--accent);
}

/* Add-to-order button */
.rp-add-to-order {
    display: block;
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.9rem 2rem;
    background: var(--surface);
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.rp-add-to-order:hover {
    background: var(--accent);
    color: var(--black);
}

/* Cart list */
.tg-cart {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.tg-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition);
}

.tg-cart-item:hover {
    border-color: var(--accent);
}

.tg-cart-item__body {
    flex: 1;
    min-width: 0;
}

.tg-cart-item__title {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.tg-cart-item__qty {
    color: var(--accent);
    font-weight: 700;
}

.tg-cart-item__opts {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tg-cart-item__opts li {
    padding: 0.1rem 0;
}

.tg-cart-item__file {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-top: 0.4rem;
    border-top: 1px solid var(--border);
    margin-top: 0.4rem;
}

.tg-cart-item__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}

.tg-cart-item__price {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
}

/* Disabled submit */
.rp-submit:disabled {
    background: var(--surface);
    color: var(--text-dim);
    cursor: not-allowed;
    opacity: 0.6;
}

.rp-submit:disabled:hover {
    background: var(--surface);
    transform: none;
}

/* Responsive */
@media (max-width: 640px) {
    .rp-section-head .rp-section__title {
        padding-right: 0;
        margin-bottom: 0.75rem;
    }

    .rp-section-head .rp-total-corner {
        position: static;
        align-self: flex-end;
        margin-bottom: 0.5rem;
    }

    .tg-cart-item {
        flex-direction: column;
        gap: 0.75rem;
    }

    .tg-cart-item__right {
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: space-between;
    }
}

/* ----- Confirmation page items list ----- */
.rp-confirm__items {
    text-align: left;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.rp-confirm__items h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

/* ----- Contact Review Section ----- */
.contact-review {
    background: #f5f5f3; /* Continues the light theme */
    padding: 3rem 0 1rem;
    border-top: 1px solid #e0e0dc;
}

.contact-review__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-review__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #ffffff;
    color: #1a1a1c;
    border: 1px solid #d0d0cc;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.contact-review__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: #b0b0ac;
}

.contact-review__btn svg {
    flex-shrink: 0;
}

.contact-review__text {
    font-size: 0.95rem;
    color: #5a5a60;
    margin: 0;
}

/* ----- Product Descriptions ----- */
.rp-product-desc {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(194, 222, 24, 0.05); /* Subtle lime tint */
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ----- Group Order Number input (Step 1) ----- */
#group_number_input {
    width: 100%;
    height: 54px;
    padding: 0 1.15rem;
    background-color: var(--surface) !important; /* Force dark background */
    border: 1px solid var(--border) !important;
    border-radius: var(--radius);
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: border-color var(--transition), background var(--transition);
    -webkit-appearance: none; /* Removes Safari default styling */
    appearance: none;
}

#group_number_input:hover {
    border-color: var(--border-strong) !important;
}

#group_number_input:focus {
    outline: none;
    border-color: var(--accent) !important;
    background-color: var(--surface) !important;
    box-shadow: 0 0 0 1px var(--accent); /* Subtle glow */
}

#group_number_input::placeholder {
    color: var(--text-dim);
    text-transform: none; /* Keep the placeholder "e.g." lowercase */
    letter-spacing: normal;
    font-family: var(--font-body);
}

/* =========================================================
   Materials Reference Page
   ========================================================= */

.materials-hero {
    background-color: var(--bg-darker);
    background-image:
        linear-gradient(135deg, rgba(28,28,31,0.6), rgba(48,48,51,0.75)),
        url('/assets/images/AG_bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 4rem 0 3rem;
    text-align: center;
}

.materials-hero__inner { max-width: 720px; margin: 0 auto; }

.materials-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    color: var(--accent);
}

.materials-hero__sub {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.6;
}

.materials-body {
    padding: 3rem 0 5rem;
}

/* Filters */
.materials-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    padding: 1.5rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.materials-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
    min-width: 150px;
}

.materials-filter-group label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin: 0;
}

.materials-filter-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--surface);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path fill='none' stroke='%23C2DE18' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l6 6 6-6'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 12px 8px;
    padding: 0.65rem 2rem 0.65rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color var(--transition);
    width: 100%;
}

.materials-filter-select:hover { border-color: var(--border-strong); }
.materials-filter-select:focus { outline: none; border-color: var(--accent); }

.materials-filter-reset {
    padding: 0.65rem 1.15rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition);
}

.materials-filter-reset:hover { border-color: var(--accent); color: var(--accent); }

.materials-count {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

/* Grid */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

/* Tablet: 2 across */
@media (max-width: 1300px) {
    .materials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 stacked */
@media (max-width: 640px) {
    .materials-grid {
        grid-template-columns: 1fr;
    }
}

.material-card {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.material-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.material-card__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--surface);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.material-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.material-card__thumb--placeholder {
    color: var(--text-dim);
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.material-card__body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.material-card__title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    letter-spacing: -0.01em;
}

.material-card__meta {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin: 0;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.material-card__desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0.25rem 0 0.5rem;
}

.material-card__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
}

/* Attribute pills */
.material-pill {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
    border: 1px solid transparent;
}

.material-pill--finish {
    background: rgba(194, 222, 24, 0.1);
    color: var(--accent);
    border-color: rgba(194, 222, 24, 0.3);
}

.material-pill--contour {
    background: rgba(100, 180, 255, 0.1);
    color: #64b4ff;
    border-color: rgba(100, 180, 255, 0.3);
}

.material-pill--durability {
    background: rgba(255, 140, 0, 0.1);
    color: #ffaa44;
    border-color: rgba(255, 140, 0, 0.3);
}

.material-pill--adhesive {
    background: rgba(180, 100, 255, 0.1);
    color: #b464ff;
    border-color: rgba(180, 100, 255, 0.3);
}

.material-pill--io {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border-color: var(--border);
}

/* Empty state */
.materials-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.materials-filter-reset-inline {
    background: none;
    border: none;
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

/* Responsive */
@media (max-width: 640px) {
    .materials-filters {
        flex-direction: column;
        align-items: stretch;
    }
    .materials-filter-group { min-width: 0; }
    .materials-filter-reset { width: 100%; }
}

/* ----- Stickers Character Row ----- */
.stickers-sprites {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 1.5rem 0;
    background: transparent;
}

.stickers-sprites img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

/* Tablet: shrink slightly */
@media (max-width: 900px) {
    .stickers-sprites img {
        height: 65px;
    }
}

/* Mobile: allow them to wrap but keep them readable */
@media (max-width: 600px) {
    .stickers-sprites {
        gap: 0.75rem;
    }
    .stickers-sprites img {
        height: 60px; /* Increased back from 40px */
    }
}

/* ----- Print Styles for Policies ----- */
@media print {
    /* Hide everything except the content */
    body {
        background: white !important;
        color: black !important;
    }
    
    /* Hide the site header, footer, quote tab, and the anchor buttons */
    .site-header,
    .site-footer,
    .quote-tab,
    .quote-backdrop,
    .quote-panel,
    .cta-band,
    .policy-nav-buttons, /* <-- ADD THIS */
    button {
        display: none !important;
    }

    /* Force the main content to be full width */
    .section,
    .container {
        background: none !important;
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }

    /* Make sure links are visible but not blue */
    a {
        color: black !important;
        text-decoration: none !important;
    }

    /* Show the last updated date clearly */
    .print-date {
        display: block !important;
        margin-bottom: 2rem;
        font-weight: bold;
    }

    /* Ensure headers break cleanly across pages */
    h2 {
        page-break-after: avoid;
    }

/* =========================================================
   Schools Page
   ========================================================= */

/* --- Hero Fix --- */
.schools-hero-img {
    max-width: 550px; 
    width: 100%;
    height: auto;
    max-height: 120px; 
    object-fit: contain;
    margin: 0 auto 1.5rem;
    display: block;
}

.schools-body {
    padding: 4rem 0 5rem;
}

/* --- Restored "Who We Help" Strip --- */
.who-we-help {
    background: var(--bg-darker) !important;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    border-top: 1px solid var(--border);
}

.who-we-help__inner {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--text-muted) !important;
}

/* --- Filter Pills --- */
.schools-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.schools-filter-btn {
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    background: transparent;
    color: var(--text) !important;
    border: 1px solid var(--border);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition);
}

.schools-filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent) !important;
}

.schools-filter-btn.active {
    background: var(--accent) !important;
    color: var(--black) !important;
    border-color: var(--accent) !important;
}

/* --- Gallery Grid --- */
.schools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1300px) {
    .schools-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .schools-grid { grid-template-columns: 1fr; }
}

.gallery-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 4/3;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: opacity 0.3s ease, border-color var(--transition);
}

.gallery-item:hover {
    border-color: var(--accent);
}

.gallery-item.hidden {
    display: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 13, 15, 0.95) 0%, rgba(13, 13, 15, 0) 80%);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.2rem;
    color: #fff;
}

.gallery-overlay p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 700;
    font-family: var(--font-heading);
}

/* --- TikTok Carousel --- */
.schools-tiktok-section {
    padding: 5rem 0;
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
}

.tiktok-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.tiktok-carousel::-webkit-scrollbar { height: 8px; }
.tiktok-carousel::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 4px; }
.tiktok-carousel::-webkit-scrollbar-thumb { background: var(--surface); border-radius: 4px; }

.tiktok-video-wrapper {
    min-width: 325px;
    flex: 0 0 auto;
    scroll-snap-align: center;
}

/* --- Fixed Vanta Sprite --- */
.schools-sprite-wrapper {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 0; /* Allows the image to overlap */
}

.schools-sprite-wrapper img {
    position: absolute;
    bottom: -20px;
    right: 5vw;
    width: 100px;       /* Forces the sprite to be small */
    max-width: 150px;   /* Caps it */
    height: auto;
    z-index: 10;
    pointer-events: none;
}

/* --- Fixed Bright Lime CTA --- */
.schools-cta {
    background: var(--accent);
    color: var(--black);
    padding: 5rem 0;
}

.schools-cta h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--black) !important;
    font-family: var(--font-heading);
}

.schools-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--black) !important;
    opacity: 0.8;
    font-weight: 500;
}

.btn--dark {
    background: var(--black);
    color: #fff !important;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 700;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: background var(--transition);
}

.btn--dark:hover {
    background: #333;
}
}