/* ============================================
   Davis Fuels Of Epsom - Auto Repair Website
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --color-emerald-900: #064e3b;
    --color-emerald-800: #065f46;
    --color-emerald-700: #047857;
    --color-emerald-600: #059669;
    --color-emerald-500: #10b981;
    --color-emerald-400: #34d399;
    --color-emerald-300: #6ee7b7;
    --color-emerald-200: #a7f3d0;
    --color-emerald-100: #d1fae5;
    --color-emerald-50: #ecfdf5;

    --color-cream-900: #faf6f0;
    --color-cream-800: #f5f0e8;
    --color-cream-700: #ede5d8;
    --color-cream-600: #e8dfc8;
    --color-cream-500: #f0e8d8;
    --color-cream-400: #f8f3eb;
    --color-cream-300: #faf8f4;
    --color-cream-200: #fdfcfa;
    --color-cream-100: #ffffff;

    --color-dark: #0a1f17;
    --color-dark-soft: #1a3a2d;
    --color-text: #1a2e27;
    --color-text-light: #4a6b5e;
    --color-text-muted: #7a9b8e;
    --color-white: #ffffff;
    --color-accent: #f59e0b;
    --color-accent-light: #fbbf24;
    --color-border: rgba(6, 95, 70, 0.12);
    --color-border-light: rgba(6, 95, 70, 0.06);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --shadow-sm: 0 1px 3px rgba(6, 78, 59, 0.08);
    --shadow-md: 0 4px 16px rgba(6, 78, 59, 0.1);
    --shadow-lg: 0 8px 32px rgba(6, 78, 59, 0.14);
    --shadow-xl: 0 16px 48px rgba(6, 78, 59, 0.18);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 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-body);
    background-color: var(--color-cream-400);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-dark);
}

.text-accent {
    color: var(--color-emerald-600);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-large {
    padding: 18px 36px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

.btn-primary {
    background: var(--color-emerald-700);
    color: var(--color-white);
    border-color: var(--color-emerald-700);
}

.btn-primary:hover {
    background: var(--color-emerald-800);
    border-color: var(--color-emerald-800);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--color-emerald-800);
    border-color: var(--color-emerald-700);
}

.btn-secondary:hover {
    background: var(--color-emerald-50);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--color-accent);
    color: var(--color-dark);
    border-color: var(--color-accent);
}

.btn-accent:hover {
    background: var(--color-accent-light);
    border-color: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    background: transparent;
    color: var(--color-emerald-800);
    border-color: var(--color-emerald-600);
}

.btn-outline-light:hover {
    background: var(--color-emerald-50);
    transform: translateY(-2px);
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 252, 250, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border-light);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--color-emerald-700);
    color: var(--color-white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: -0.5px;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    color: var(--color-dark);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 15px;
    color: var(--color-text-light);
}

.nav-links a:hover {
    color: var(--color-emerald-700);
}

.nav-links .btn-primary {
    padding: 10px 22px;
    font-size: 14px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: var(--transition);
}

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

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
    padding-top: 76px;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--color-cream-300) 0%, var(--color-cream-100) 50%, var(--color-emerald-50) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 40px;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-emerald-100);
    color: var(--color-emerald-800);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 28px;
    border: 1px solid var(--color-emerald-200);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-emerald-500);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
    font-size: clamp(42px, 5.5vw, 72px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    color: var(--color-dark);
    margin-bottom: 24px;
}

.hero-title .text-accent {
    color: var(--color-emerald-600);
}

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-trust {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-light);
}

.trust-item svg {
    color: var(--color-emerald-600);
    flex-shrink: 0;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    z-index: 2;
}

.hero-image-main {
    width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.hero-image-main img {
    width: 100%;
    height: 700px;
    object-fit: cover;
}

.hero-image-accent {
    position: absolute;
    bottom: -30px;
    left: -40px;
    width: 200px;
    height: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--color-cream-300);
}

.hero-image-accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shape-1 {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0.15;
    z-index: -1;
}

.hero-shape-2 {
    position: absolute;
    bottom: 60px;
    right: -30px;
    width: 80px;
    height: 80px;
    background: var(--color-emerald-400);
    border-radius: var(--radius-md);
    transform: rotate(45deg);
    opacity: 0.2;
    z-index: -1;
}

.hero-stats {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.stat-card {
    flex: 1;
    background: var(--color-white);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid var(--color-border-light);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--color-emerald-700);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* --- Section Header --- */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    background: var(--color-emerald-100);
    color: var(--color-emerald-800);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid var(--color-emerald-200);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
    color: var(--color-dark);
}

.section-description {
    font-size: 17px;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* --- Services --- */
.services {
    padding: 100px 0;
    background: var(--color-white);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-emerald-600), var(--color-emerald-400), var(--color-accent));
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--color-cream-300);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
    border: 1px solid var(--color-border-light);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-emerald-500);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-emerald-200);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--color-emerald-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-emerald-700);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--color-emerald-700);
    color: var(--color-white);
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-dark);
}

.service-card p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.65;
}

/* --- About --- */
.about {
    padding: 100px 0;
    background: var(--color-cream-400);
    position: relative;
    overflow: hidden;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.about-pattern {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, var(--color-emerald-300) 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: 0.5;
    z-index: -1;
}

.about-floating-card {
    position: absolute;
    bottom: -24px;
    right: -24px;
    background: var(--color-emerald-700);
    color: var(--color-white);
    padding: 24px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.floating-stat {
    text-align: center;
}

.floating-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.floating-label {
    font-size: 13px;
    opacity: 0.85;
    font-weight: 500;
}

.about-content .section-tag {
    margin-bottom: 16px;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-text {
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.75;
    margin-bottom: 16px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 32px 0 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-dark);
}

.feature-check {
    width: 24px;
    height: 24px;
    background: var(--color-emerald-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-emerald-700);
    flex-shrink: 0;
}

.about-content .btn {
    margin-top: 8px;
}

/* --- CTA Section --- */
.cta-section {
    padding: 100px 0;
    background: var(--color-emerald-800);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-card {
    position: relative;
    z-index: 2;
}

.cta-pattern {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.cta-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
}

.cta-circle-1 {
    width: 300px;
    height: 300px;
    top: -80px;
    left: -80px;
}

.cta-circle-2 {
    width: 200px;
    height: 200px;
    bottom: -60px;
    right: 10%;
}

.cta-circle-3 {
    width: 120px;
    height: 120px;
    top: 20%;
    right: -30px;
    background: rgba(255,255,255,0.03);
}

.cta-content {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    letter-spacing: -1.5px;
    color: var(--color-white);
    margin-bottom: 20px;
    line-height: 1.1;
}

.cta-title .text-accent {
    color: var(--color-accent-light);
}

.cta-description {
    font-size: 18px;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline-light {
    border-color: rgba(255,255,255,0.3);
    color: var(--color-white);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    color: var(--color-white);
}

/* --- Location --- */
.location {
    padding: 100px 0;
    background: var(--color-cream-400);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--color-white);
    padding: 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    transition: var(--transition);
}

.info-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.info-icon {
    width: 56px;
    height: 56px;
    background: var(--color-emerald-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-emerald-700);
    flex-shrink: 0;
}

.info-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--color-dark);
}

.info-card p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
}

.info-card a {
    color: var(--color-emerald-700);
    font-weight: 500;
}

.info-card a:hover {
    color: var(--color-emerald-500);
    text-decoration: underline;
}

.location-map {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 400px;
    border: 4px solid var(--color-white);
}

.location-map iframe {
    width: 100%;
    height: 400px;
}

/* --- Footer --- */
.footer {
    background: var(--color-dark);
    color: rgba(255,255,255,0.7);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo-text {
    color: var(--color-white);
}

.footer-brand p {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--color-white);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.footer-contact a {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--color-emerald-400);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 14px;
    color: rgba(255,255,255,0.4);
}

/* --- Scroll Reveal (Progressive Enhancement) --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-image-main img {
        height: 500px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-content .section-title {
        text-align: center;
    }

    .about-content .section-tag {
        display: block;
        text-align: center;
    }

    .about-text {
        text-align: center;
    }

    .about-content .btn {
        margin: 8px auto 0;
        display: inline-flex;
    }

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

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background: rgba(250, 252, 250, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 20px;
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-120%);
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .mobile-toggle {
        display: flex;
    }

    .hero {
        padding-top: 76px;
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero-title {
        letter-spacing: -1px;
    }

    .hero-image-accent {
        width: 140px;
        height: 140px;
        left: -10px;
        bottom: -20px;
    }

    .hero-stats {
        flex-direction: column;
    }

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

    .about-features {
        grid-template-columns: 1fr;
    }

    .about-floating-card {
        right: 0;
        bottom: -16px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-large {
        justify-content: center;
    }

    .hero-image-main img {
        height: 360px;
    }

    .info-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}
