/* ============================================
   GEORGIA MOTORSPORTS MEDIA - THEME
   Light editorial system based on the Southern Pullers
   photo-driven flyer guide: deep navy structure, steel-blue
   accents, off-white ground, charcoal text, condensed type.

   Loaded after style.min.css on every page. It remaps the
   design tokens the base stylesheet already uses, then
   re-scopes the dark tokens inside the navy framing areas
   (header, heroes, CTA bands, footer).
   ============================================ */

:root {
    /* Brand palette */
    --navy: #183247;
    --navy-deep: #10243a;
    --steel: #5A86AC;
    --steel-ink: #3D6A91;      /* steel blue dark enough for text on light */
    --steel-light: #8DB2D3;    /* steel blue for text on navy */
    --offwhite: #F1F2F1;
    --charcoal: #20252A;
    --paper: #FFFFFF;
    --rule: #DCE2E7;

    /* Base token remap (light context) */
    --color-primary: #183247;
    --color-primary-dark: #10243a;
    --color-secondary: #5A86AC;
    --color-accent: #5A86AC;

    --color-dark: #F1F2F1;
    --color-dark-light: #E8EBED;
    --color-dark-lighter: #FFFFFF;
    --color-gray-900: #EEF1F3;
    --color-gray-800: #DCE2E7;
    --color-gray-700: #C9D2D9;
    --color-gray-600: #98A5B1;
    --color-gray-500: #66727E;
    --color-gray-400: #4B5561;
    --color-gray-300: #353D46;
    --color-gray-200: #20252A;
    --color-gray-100: #20252A;
    --color-white: #183247;   /* "heading" color on light surfaces */

    --font-heading: 'Roboto Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --shadow-sm: 0 1px 2px rgba(24, 50, 71, 0.08);
    --shadow-md: 0 4px 14px rgba(24, 50, 71, 0.10);
    --shadow-lg: 0 10px 28px rgba(24, 50, 71, 0.12);
    --shadow-xl: 0 18px 48px rgba(24, 50, 71, 0.18);

    --radius-sm: 3px;
    --radius-md: 4px;
    --radius-lg: 6px;
    --radius-xl: 8px;
}

/* Navy framing areas get the dark token set back, recolored to the palette */
.header,
.nav__menu,
.hero,
.page-hero,
.cta,
.footer,
.lightbox {
    --color-primary: #5A86AC;
    --color-primary-dark: #4A7398;
    --color-white: #FFFFFF;
    --color-gray-100: #F1F2F1;
    --color-gray-200: #E4E9ED;
    --color-gray-300: #C9D5DF;
    --color-gray-400: #A9BACA;
    --color-gray-500: #8CA0B3;
    --color-gray-600: #6F87A0;
    --color-gray-700: #2E4A63;
    --color-gray-800: #243F57;
    --color-gray-900: #1D374E;
    --color-dark: #10243a;
    --color-dark-light: #183247;
    --color-dark-lighter: #1F3A52;
}

/* ---------- Base ---------- */
body {
    background-color: var(--offwhite);
    color: var(--charcoal);
}

/* Very faint paper grain, per the guide's "subtle texture" */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--steel); color: #fff; }

/* Condensed, all-caps headline system */
h1, h2, h3, h4, h5, h6,
[class*="__title"],
.stat__number,
.timeline__year,
.error-code {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.05;
}

/* ---------- Sections ---------- */
.section--dark {
    background-color: var(--paper);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    --color-dark-lighter: #F1F2F1;   /* cards sit on off-white inside white panels */
}

.section__title {
    color: var(--navy);
    letter-spacing: 1px;
}
.section__title::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    margin: 0.9rem auto 0;
    background: var(--steel);
}
.cta .section__title::after,
.page-hero .section__title::after { background: var(--steel-light); }

.section__subtitle {
    color: var(--color-gray-500);
}

/* ---------- Header / nav ---------- */
.header.scrolled,
.header--solid {
    background-color: rgba(24, 50, 71, 0.97);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 20px rgba(16, 36, 58, 0.25);
    border-bottom: 3px solid var(--steel);
}

.nav__link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1.5px;
}
.nav__link::after { background-color: var(--steel-light); }

.nav__social-link { background-color: rgba(255, 255, 255, 0.08); }

@media screen and (max-width: 768px) {
    .nav__menu { border-left: 3px solid var(--steel); }
}

/* ---------- Home hero ---------- */
.hero__overlay {
    background: linear-gradient(
        to bottom,
        rgba(16, 36, 58, 0.72) 0%,
        rgba(24, 50, 71, 0.45) 50%,
        rgba(16, 36, 58, 0.93) 100%
    );
}
.hero__title { font-size: clamp(3rem, 9vw, 7rem); line-height: 0.95; }
.hero__title-line { letter-spacing: 3px; }
.hero__title-line.accent { color: var(--steel-light); }
.hero__subtitle { color: #D9E3EC; }

@media screen and (max-width: 480px) {
    .hero__title { font-size: 2.4rem; }
    .hero__title-line { letter-spacing: 1px; }
    .hero__title-line.accent { font-size: 1.15em; }
}

/* Highlight bar under the hero (flyer "blue highlight bar") */
.highlight-bar {
    background: var(--steel);
    color: #fff;
    text-align: center;
    padding: 0.85rem 0;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(0.85rem, 1.6vw, 1.05rem);
    letter-spacing: 4px;
    text-transform: uppercase;
}
.highlight-bar span { opacity: 0.7; margin: 0 0.3rem; }

/* ---------- Inner page hero ---------- */
.page-hero {
    background: linear-gradient(135deg, #183247 0%, #10243a 100%);
    border-bottom: 4px solid var(--steel);
}
.page-hero__title { letter-spacing: 2px; }
.page-hero__subtitle { color: #C9D5DF; }

/* ---------- Buttons ---------- */
.btn {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1.5px;
    border-radius: var(--radius-md);
}
.btn--primary {
    background: var(--color-primary);
    color: #fff;
}
.btn--primary:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 8px 22px rgba(24, 50, 71, 0.28);
}
.btn--outline {
    color: var(--color-white);
    border-color: var(--color-white);
}
.btn--outline:hover {
    background: var(--color-white);
    border-color: var(--color-white);
    color: var(--navy);
}
.hero .btn--outline:hover,
.cta .btn--outline:hover,
.page-hero .btn--outline:hover { color: var(--navy); }

/* White text on accent backgrounds must stay white */
.nav__social-link:hover,
.btn--primary,
.service-card__icon,
.featured__tag,
.service-detail__icon,
.pricing__badge,
.filter__btn.active,
.gallery__btn,
.browser-frame__visit,
.web-project__tag,
.credential-card__icon,
.about-project__icon,
.timeline__year,
.contact__social-link:hover,
.footer__social-link:hover {
    color: #fff;
}

/* ---------- Cards ---------- */
.service-card,
.pricing__card,
.credential-card,
.value-card,
.about-project,
.contact__info-card,
.faq__item {
    border-radius: var(--radius-lg);
}

.service-card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-top: 3px solid var(--steel);
    box-shadow: var(--shadow-sm);
}
.service-card:hover {
    border-color: var(--rule);
    border-top-color: var(--navy);
    box-shadow: var(--shadow-lg);
}
.service-card__icon {
    border-radius: var(--radius-md);
    background: var(--navy);
}
.service-card__link { color: var(--steel-ink); }

/* Softer hover/float shadows on light surfaces */
.service-detail__image,
.service-detail__video,
.browser-frame,
.about-intro__photo,
.featured__browser {
    box-shadow: var(--shadow-lg);
}

.featured__tag,
.web-project__tag {
    background-color: var(--steel);
    border-radius: 2px;
    letter-spacing: 2px;
}

.pricing__card--featured {
    border-color: var(--steel);
    background: linear-gradient(to bottom, rgba(90, 134, 172, 0.12) 0%, var(--color-dark-lighter) 100%);
}

/* Card grids: let columns shrink below their minimum on very small phones */
.pricing__grid        { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.youtube-grid         { grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr)); }
.gallery__grid        { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.gallery__grid--photos { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.credentials__grid,
.values__grid         { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.about-projects__grid { grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); }
.about-project,
.pricing__card { min-width: 0; overflow-wrap: anywhere; }

@media screen and (max-width: 480px) {
    .highlight-bar { letter-spacing: 2px; }
}

/* Long emails / URLs must wrap instead of widening the page on phones */
.contact__info-card,
.contact__social-card,
.contact__projects-card { min-width: 0; }
.contact__info-card *,
.contact__projects-card *,
p a,
li a { overflow-wrap: anywhere; }

/* Links inside body copy */
.legal-content a,
.section__text a,
.about-intro a,
.faq__answer a {
    color: var(--steel-ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---------- Portfolio: mobile apps ---------- */
.apps__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-top: 3px solid var(--steel);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-sm);
    min-width: 0;
}
.app-card__phone {
    width: 100%;
    max-width: 230px;
    margin-bottom: 1.5rem;
    border: 8px solid var(--navy-deep);
    border-radius: 30px;
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-lg);
}
.app-card__phone img,
.app-card__tablet img { display: block; width: 100%; height: auto; }
.app-card__title {
    font-size: 1.35rem;
    color: var(--navy);
    letter-spacing: 1px;
    margin: 0.5rem 0 0.75rem;
}
.app-card__desc {
    color: var(--color-gray-400);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}
.app-card__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-top: auto;
}
.app-card--wide {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
    text-align: left;
}
.app-card__tablet {
    flex: 1 1 58%;
    border: 8px solid var(--navy-deep);
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-lg);
    min-width: 0;
}
.app-card__body { flex: 1 1 42%; min-width: 0; }
.app-card--wide .web-project__features { margin-top: 0.25rem; }
@media screen and (max-width: 900px) {
    .apps__grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
    .app-card--wide { flex-direction: column; text-align: center; }
    .app-card--wide .web-project__features { display: inline-block; text-align: left; }
}

/* ---------- Stats (flyer date/time panel feel) ---------- */
.stats {
    background: var(--paper);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}
.stat__number { color: var(--navy); }
.stat__label {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--steel-ink);
    letter-spacing: 3px;
}
@media screen and (min-width: 900px) {
    .stat + .stat { border-left: 1px solid var(--rule); }
}

/* ---------- CTA band ---------- */
.cta {
    background: var(--navy);
    border-top: 4px solid var(--steel);
}
.cta__text { color: #C9D5DF; }

/* ---------- Forms ---------- */
.form__input,
.form__select,
.form__textarea {
    background-color: var(--paper);
    border: 1px solid var(--color-gray-700);
    color: var(--charcoal);
}
.form__input::placeholder,
.form__textarea::placeholder { color: var(--color-gray-600); }
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
    border-color: var(--steel);
    box-shadow: 0 0 0 3px rgba(90, 134, 172, 0.25);
}

/* ---------- Footer ---------- */
.footer {
    background-color: var(--navy);
    border-top: 4px solid var(--steel);
}
.footer__title { letter-spacing: 1.5px; }
.footer__list a:hover,
.footer__legal a:hover { color: var(--steel-light); }
.footer__bottom { border-top-color: rgba(255, 255, 255, 0.1); }
