/* ============================================
   Ultra Shine Car Wash — Custom Styles
   ============================================ */

/* --- Custom Properties --- */
:root {
    --emerald-950: #022c22;
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-100: #d1fae5;
    --cream-50: #fefdf8;
    --cream-200: #fef9ef;
    --cream-100: #faf6f0;
    --amber-400: #f5c54b;
    --amber-500: #d4a853;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--cream-100);
    color: #1a1a1a;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Utility --- */
.text-cream-50 { color: var(--cream-50); }
.text-cream-200 { color: var(--cream-200); }
.bg-cream-100 { background-color: var(--cream-100); }
.bg-cream-50 { background-color: var(--cream-50); }
.bg-emerald-800 { background-color: var(--emerald-800); }
.bg-emerald-900 { background-color: var(--emerald-900); }
.bg-emerald-950 { background-color: var(--emerald-950); }
.text-emerald-900 { color: var(--emerald-900); }
.text-emerald-700 { color: var(--emerald-700); }
.text-emerald-600 { color: var(--emerald-600); }
.text-emerald-400 { color: var(--emerald-400); }
.text-amber-400 { color: var(--amber-400); }
.text-amber-500 { color: var(--amber-500); }

/* --- Navigation --- */
.nav {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

.nav.scrolled {
    background: rgba(6, 78, 59, 0.97);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.nav-logo-text {
    color: var(--cream-50);
}

.nav.scrolled .nav-logo-text {
    color: var(--cream-50);
}

.nav-link {
    color: rgba(254, 253, 248, 0.8);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amber-400);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--amber-400);
}

.nav-link:hover::after {
    width: 100%;
}

/* --- Hamburger --- */
.nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--cream-50);
}

.hamburger-line {
    transition: all 0.3s ease;
}

.nav-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 6px;
}

/* --- Mobile Menu --- */
.mobile-menu {
    transition: opacity 0.5s ease, pointer-events 0.5s ease;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-link {
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-menu-link:hover {
    transform: scale(1.05);
}

/* --- Hero --- */
.hero {
    position: relative;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-img {
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.12); }
}

.hero-overlay {
    background: linear-gradient(
        180deg,
        rgba(2, 44, 34, 0.55) 0%,
        rgba(6, 78, 59, 0.7) 50%,
        rgba(2, 44, 34, 0.85) 100%
    );
}

.hero-title {
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.3s;
}

.hero-eyebrow {
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.1s;
}

.hero-subtitle {
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.5s;
}

.hero-ctas {
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.7s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- CTA Buttons --- */
.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--amber-400);
    color: var(--emerald-950);
    font-weight: 600;
    font-size: 15px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(245, 197, 75, 0.3);
}

.cta-primary:hover {
    background: var(--amber-500);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 197, 75, 0.4);
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: transparent;
    color: var(--cream-50);
    font-weight: 600;
    font-size: 15px;
    border-radius: 50px;
    border: 2px solid rgba(254, 253, 248, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    border-color: var(--cream-50);
    background: rgba(254, 253, 248, 0.1);
    transform: translateY(-2px);
}

.cta-lg {
    padding: 20px 40px;
    font-size: 17px;
}

/* --- Scroll Indicator --- */
.hero-scroll {
    display: flex;
    justify-content: center;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-line {
    height: 48px;
    width: 1px;
    background: rgba(254, 253, 248, 0.2);
}

.scroll-line-fill {
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* --- Marquee --- */
.marquee-track {
    animation: marquee 30s linear infinite;
}

.marquee-item {
    font-family: var(--font-serif);
}

.marquee-dot {
    font-size: 8px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Section Layout --- */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: left;
}

.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-serif);
}

.section-desc {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: var(--cream-50);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(6, 78, 59, 0.1);
    border-color: var(--emerald-100);
}

.service-icon-wrap {
    width: 56px;
    height: 56px;
    background: var(--emerald-100);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-700);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon-wrap {
    background: var(--emerald-800);
    color: var(--amber-400);
}

/* --- About --- */
.about-img-wrap {
    position: relative;
}

.about-img {
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.about-img-accent {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* --- Why Us --- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

@media (min-width: 1024px) {
    .why-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.why-card {
    padding: 32px;
    background: var(--cream-50);
    border-radius: 16px;
    border: 1px solid var(--emerald-100);
    transition: all 0.4s ease;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(6, 78, 59, 0.08);
}

.why-number {
    line-height: 1;
}

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    cursor: pointer;
}

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

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 44, 34, 0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* --- CTA Banner --- */
.cta-banner {
    position: relative;
}

/* --- Contact --- */
.contact-icon-wrap {
    width: 44px;
    height: 44px;
    background: var(--emerald-100);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* --- Form --- */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--emerald-900);
    letter-spacing: 0.02em;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 15px;
    color: #1a1a1a;
    background: var(--cream-50);
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--emerald-600);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
    background: white;
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

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

.form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--emerald-800);
    color: var(--cream-50);
    font-weight: 600;
    font-size: 15px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
}

.form-submit:hover {
    background: var(--emerald-700);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(6, 78, 59, 0.25);
}

.form-success {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Map --- */
.map-section {
    position: relative;
}

.map-overlay {
    animation: fadeIn 0.8s ease 0.5s both;
}

/* --- Footer --- */
.footer {
    font-size: 14px;
    line-height: 1.7;
}

/* --- Scroll Animations --- */
[data-anim] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-anim="fade-right"] {
    transform: translateX(-30px);
}

[data-anim="fade-left"] {
    transform: translateX(30px);
}

[data-anim].visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-title br {
        display: none;
    }

    .hero-title span {
        display: block;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .about-img {
        height: 350px !important;
    }

    .about-img-accent {
        width: 24px;
        height: 24px;
        bottom: -4px;
        right: -4px;
    }

    .about-img-accent .block {
        font-size: 14px;
    }

    .about-img-accent span:last-child {
        display: none;
    }
}
