/* ============================================================
   SHARED STYLES — All in the Details Mobile Detailing
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Montserrat:ital,wght@0,600;0,700;0,800;1,700&family=Playfair+Display:ital,wght@0,600;0,700;1,600;1,700&display=swap');

:root {
    --bg-panel: #070f1d;
    --bg-card: #f8fafc;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
    --accent-blue: #2f7fbe;
    --accent-blue-soft: rgba(47, 127, 190, 0.24);
    --accent-blue-light: #93c5fd;
    --accent-orange: #ca8a04;
    --overlay: rgba(0, 0, 0, 0.92);
    --font-heading: "Montserrat", "Futura", "Avenir Next", "Century Gothic", "Trebuchet MS", sans-serif;
    --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

html {
    scroll-behavior: smooth;
    background-color: #060d1a;
    color-scheme: dark;
}

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    overflow-x: hidden;
    background-color: #060d1a;
    background-image:
        radial-gradient(circle at top right, rgba(202, 138, 4, 0.07), transparent 34%),
        radial-gradient(circle at top left, rgba(47, 127, 190, 0.06), transparent 26%),
        linear-gradient(180deg, #060d1a 0%, #0a1628 30%, #0d1e38 65%, #0f2040 100%);
    color: var(--text-main);
}

/* ----------------------------------------------------------
   Skip navigation (accessibility)
   ---------------------------------------------------------- */
.skip-nav {
    position: absolute;
    top: -999px;
    left: 0;
    padding: 10px 18px;
    background: var(--bg-panel);
    color: white;
    font-weight: bold;
    font-family: Arial, sans-serif;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    z-index: 9999;
}

.skip-nav:focus {
    top: 0;
}

/* ----------------------------------------------------------
   Focus ring (keyboard navigation)
   ---------------------------------------------------------- */
:focus-visible {
    outline: 2px solid var(--accent-blue-light);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ----------------------------------------------------------
   Hidden attribute override
   ---------------------------------------------------------- */
[hidden] { display: none !important; }

/* ----------------------------------------------------------
   Reveal / float animations
   ---------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

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

.float-card.is-visible {
    animation: floatCard 6s ease-in-out infinite;
    will-change: translate;
}

/* Stagger each card into a different phase of the cycle */
.float-card.is-visible:nth-child(2) { animation-delay: -1.2s; }
.float-card.is-visible:nth-child(3) { animation-delay: -2.4s; }
.float-card.is-visible:nth-child(4) { animation-delay: -3.6s; }
.float-card.is-visible:nth-child(5) { animation-delay: -4.8s; }

/* ----------------------------------------------------------
   Typography
   ---------------------------------------------------------- */
h1,
h2 {
    font-family: var(--font-serif);
    letter-spacing: 0.01em;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-orange);
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent-orange);
    flex-shrink: 0;
}

/* ----------------------------------------------------------
   Menu toggle button
   ---------------------------------------------------------- */
.menu-toggle {
    position: fixed;
    top: 24px;
    left: 16px;
    width: 48px;
    height: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0 12px;
    border: 0;
    cursor: pointer;
    z-index: 1002;
    background: var(--bg-panel);
    border-radius: 10px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 999px;
}

/* ----------------------------------------------------------
   Menu overlay + side nav
   ---------------------------------------------------------- */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background: var(--bg-panel);
    padding: 92px 24px 24px;
    box-sizing: border-box;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
}

nav.open {
    transform: translateX(0);
}

nav a {
    display: block;
    color: white;
    text-decoration: none;
    margin-bottom: 18px;
    font-weight: bold;
    letter-spacing: 1px;
}

nav a:hover {
    color: var(--accent-blue-light);
}

nav a.active {
    color: var(--accent-blue-light);
}

nav a.active::after {
    content: "";
    display: block;
    width: 34px;
    height: 2px;
    margin-top: 8px;
    border-radius: 999px;
    background: var(--accent-orange);
}

/* Close button inside nav drawer */
.nav-close {
    position: absolute;
    top: 20px;
    right: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 0;
    color: white;
    font-size: 22px;
    line-height: 1;
    padding: 7px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.nav-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* ----------------------------------------------------------
   Header
   ---------------------------------------------------------- */
header,
main,
section {
    background: transparent;
}

header {
    text-align: center;
    padding: 28px 20px 12px;
}

header img {
    width: 220px;
    height: auto;
    max-width: 100%;
    animation: logoDrop 0.9s ease-out both;
}

/* ----------------------------------------------------------
   Hero (inner pages — index overrides below)
   ---------------------------------------------------------- */
.hero {
    background: transparent;
    color: white;
    text-align: center;
    padding: 92px 20px 70px;
    box-shadow: none;
}

.hero h1 {
    margin: 0;
    font-size: 40px;
    color: #f1f5f9;
}

.hero p {
    margin: 0 auto;
    max-width: 720px;
    line-height: 1.7;
    color: #94a3b8;
}

/* ----------------------------------------------------------
   Hero CTA buttons
   ---------------------------------------------------------- */
.hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 34px;
}

.hero-btn-primary {
    display: inline-block;
    padding: 15px 36px;
    background: #ca8a04;
    color: white;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 6px;
    transition: background 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(202, 138, 4, 0.35);
}

.hero-btn-primary:hover {
    background: #a16207;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(202, 138, 4, 0.4);
}

.hero-btn-secondary {
    display: inline-block;
    padding: 13px 34px;
    background: transparent;
    color: #f1f5f9;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 6px;
    border: 2px solid rgba(241, 245, 249, 0.45);
    transition: background 0.2s ease, transform 0.18s ease;
}

.hero-btn-secondary:hover {
    background: rgba(241, 245, 249, 0.08);
    transform: translateY(-2px);
}

/* ----------------------------------------------------------
   Premium testimonial cards
   ---------------------------------------------------------- */
.testimonial {
    padding: 28px 24px 24px;
    border-radius: 12px;
    background: white;
    border: 1px solid rgba(47, 127, 190, 0.14);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    position: relative;
}

.testimonial-stars {
    display: block;
    color: var(--accent-orange);
    font-size: 17px;
    letter-spacing: 3px;
    margin-bottom: 14px;
}

.testimonial p {
    margin: 0 0 18px;
    line-height: 1.75;
    font-size: 15px;
    color: #2d3d50;
    font-style: italic;
    flex: 1;
}

.testimonial-author {
    display: block;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-blue);
    font-weight: 700;
    font-style: normal;
    padding-top: 14px;
    border-top: 1px solid rgba(47, 127, 190, 0.12);
}

.testimonial-cta {
    text-align: center;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(47, 127, 190, 0.14);
}

.testimonial-cta a {
    display: inline-block;
    padding: 11px 26px;
    background: transparent;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    border: 1px solid var(--accent-blue);
    border-radius: 6px;
    letter-spacing: 0.04em;
    transition: background 0.2s ease;
}

.testimonial-cta a:hover {
    background: rgba(47, 127, 190, 0.07);
}

/* ----------------------------------------------------------
   Service includes list
   ---------------------------------------------------------- */
.includes-list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0;
}

.includes-list li {
    padding: 7px 8px 7px 26px;
    position: relative;
    font-size: 14px;
    line-height: 1.5;
    color: #2d3d50;
    border-bottom: 1px solid rgba(47, 127, 190, 0.08);
}

.includes-list li:last-child {
    border-bottom: none;
}

.includes-list li::before {
    content: "✓";
    position: absolute;
    left: 6px;
    color: var(--accent-blue);
    font-weight: 800;
    font-size: 13px;
}

/* ----------------------------------------------------------
   Section wrapper
   ---------------------------------------------------------- */
.section-inner {
    max-width: 980px;
    margin: 0 auto;
}

/* ----------------------------------------------------------
   Shared button standards
   ---------------------------------------------------------- */

/* Primary action — orange fill (book, schedule, purchase) */
.btn-primary,
.contact-button,
.button,
.gift-button {
    display: inline-block;
    padding: 13px 28px;
    background: var(--accent-orange);
    color: white;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
    box-shadow: 0 3px 10px rgba(242, 140, 24, 0.3);
}

.btn-primary:hover,
.contact-button:hover,
.button:hover,
.gift-button:hover {
    background: #d97a10;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(242, 140, 24, 0.38);
}

/* Dark fill — social links (Facebook, Instagram) */
.facebook-button,
.instagram-button {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 24px;
    background: var(--bg-panel);
    color: white;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.2s ease, transform 0.18s ease;
}

.facebook-button { margin-left: 0; margin-right: 10px; }
.instagram-button { margin-left: 0; }

.facebook-button:hover,
.instagram-button:hover {
    background: #1e3554;
    transform: translateY(-1px);
}

/* Outline — secondary actions (reviews, load more, outlined CTA) */
.review-button,
.gallery-more-button,
.btn-outline {
    display: inline-block;
    padding: 12px 26px;
    background: transparent;
    color: var(--accent-blue);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border-radius: 6px;
    border: 2px solid var(--accent-blue);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.18s ease;
}

.review-button:hover,
.gallery-more-button:hover,
.btn-outline:hover {
    background: rgba(47, 127, 190, 0.08);
    transform: translateY(-1px);
}

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */
footer {
    background: var(--bg-panel);
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 56px 28px 40px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.2fr;
    gap: 48px;
}

.footer-brand {
    display: block;
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: white;
    margin-bottom: 10px;
}

.footer-tagline {
    font-size: 13px;
    line-height: 1.75;
    color: var(--text-muted);
    margin: 0;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-blue-light);
    margin: 0 0 18px;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
    margin-bottom: 13px;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.footer-social a {
    margin-bottom: 0;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-size: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: background 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 18px 28px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 24px 28px;
    }

    .facebook-button { margin-right: 0; margin-bottom: 10px; }
}

/* ----------------------------------------------------------
   Back to top button
   ---------------------------------------------------------- */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-panel);
    color: white;
    border: 1px solid var(--accent-blue-soft);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999;
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--accent-blue);
}

/* ----------------------------------------------------------
   Keyframe animations
   ---------------------------------------------------------- */
@keyframes floatCard {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -6px; }
}

@keyframes logoDrop {
    0% { opacity: 0; transform: translateY(-42px); }
    70% { opacity: 1; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------------------
   Reduced motion (accessibility)
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .float-card.is-visible {
        animation: none;
    }

    header img {
        animation: none;
    }
}

/* ----------------------------------------------------------
   Mobile
   ---------------------------------------------------------- */
@media (max-width: 768px) {
    body {
        background-color: #0d1e38;
        background-image: none;
    }

    .menu-toggle {
        top: 16px;
        left: 12px;
    }

    nav {
        width: 220px;
        padding-top: 84px;
    }

    .reveal {
        transform: translateY(14px);
        transition: opacity 0.45s ease, transform 0.45s ease;
    }

    .float-card.is-visible {
        animation: none;
    }

    .back-to-top {
        bottom: 18px;
        right: 14px;
    }
}
