/* ========================================
   Backroads Food and Fuel — Styles
   Classic & Elegant · Emerald + Cream
======================================== */

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

:root {
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --cream-50: #faf8f5;
    --cream-100: #f5f0e8;
    --cream-200: #ebe3d5;
    --cream-300: #d4c4a8;
    --gold: #b8860b;
    --gold-light: #d4a574;
    --text-dark: #1a1a1a;
    --text-body: #3d3d3d;
    --text-muted: #6b6b6b;
    --text-light: #f5f0e8;
    --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--sans);
    color: var(--text-body);
    background-color: var(--cream-50);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

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

/* ── Typography ── */
.section-eyebrow {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--emerald-900);
    margin-bottom: 20px;
}

.section-title--light {
    color: var(--cream-100);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 520px;
    line-height: 1.7;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn--primary {
    background: var(--emerald-800);
    color: var(--cream-50);
    box-shadow: 0 4px 14px rgba(6, 78, 59, 0.3);
}

.btn--primary:hover {
    background: var(--emerald-700);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 78, 59, 0.4);
}

.btn--ghost {
    background: rgba(255,255,255,0.12);
    color: var(--cream-50);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
}

.btn--ghost:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: all var(--transition);
}

.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    transition: all var(--transition);
}

.nav.scrolled .nav__inner {
    padding: 12px 0;
    background: rgba(250, 248, 245, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    z-index: 1001;
}

.nav__logo-mark {
    width: 40px;
    height: 40px;
    background: var(--emerald-800);
    color: var(--cream-50);
    font-family: var(--serif);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
    transition: all var(--transition);
}

.nav.scrolled .nav__logo-mark {
    background: var(--emerald-800);
}

.nav__logo-text {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--cream-50);
    line-height: 1.2;
    transition: color var(--transition);
}

.nav.scrolled .nav__logo-text {
    color: var(--emerald-900);
}

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

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(250, 248, 245, 0.85);
    letter-spacing: 0.03em;
    transition: color var(--transition);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gold-light);
    transition: width var(--transition);
}

.nav__link:hover::after {
    width: 100%;
}

.nav.scrolled .nav__link {
    color: var(--text-body);
}

.nav.scrolled .nav__link:hover {
    color: var(--emerald-800);
}

.nav__link--cta {
    padding: 10px 20px;
    background: var(--emerald-800);
    color: var(--cream-50) !important;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    background: var(--emerald-700);
    transform: translateY(-1px);
}

/* Mobile Toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav__toggle-line {
    width: 22px;
    height: 2px;
    background: var(--cream-50);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav.scrolled .nav__toggle-line {
    background: var(--emerald-900);
}

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

.nav__toggle.active .nav__toggle-line:nth-child(2) {
    opacity: 0;
}

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--emerald-900);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-menu__link {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 500;
    color: var(--cream-100);
    transition: color var(--transition);
}

.mobile-menu__link:hover {
    color: var(--gold-light);
}

.mobile-menu__contact {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu__contact a {
    font-family: var(--sans);
    font-size: 0.9rem;
    color: var(--cream-200);
    transition: color var(--transition);
}

.mobile-menu__contact a:hover {
    color: var(--gold-light);
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__gradient {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(135deg, 
            rgba(6, 78, 59, 0.92) 0%, 
            rgba(4, 120, 87, 0.85) 35%,
            rgba(5, 150, 105, 0.78) 60%,
            rgba(180, 130, 60, 0.7) 100%);
    z-index: 1;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(6, 78, 59, 0.3) 100%);
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 720px;
    padding: 0 24px;
}

.hero__eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 20px;
}

.hero__title {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--cream-50);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.hero__subtitle {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: rgba(250, 248, 245, 0.8);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero__trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__trust span {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(250, 248, 245, 0.65);
    letter-spacing: 0.05em;
}

.hero__trust-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold-light);
    opacity: 0.6;
}

.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(250, 248, 245, 0.5);
    transition: color var(--transition);
    animation: float 2.5s ease-in-out infinite;
}

.hero__scroll:hover {
    color: var(--cream-50);
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Services ── */
.services {
    padding: 100px 0;
    background: var(--cream-50);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

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

.service-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 36px 28px;
    border: 1px solid var(--cream-200);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--emerald-800), var(--gold-light));
    opacity: 0;
    transition: opacity var(--transition);
}

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

.service-card:hover::before {
    opacity: 1;
}

.service-card__icon {
    width: 52px;
    height: 52px;
    background: var(--cream-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-800);
    margin-bottom: 20px;
    transition: all var(--transition);
}

.service-card:hover .service-card__icon {
    background: var(--emerald-800);
    color: var(--cream-50);
}

.service-card h3 {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--emerald-900);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ── About ── */
.about {
    padding: 100px 0;
    background: var(--cream-100);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about__image-wrap {
    position: relative;
}

.about__image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about__image-accent {
    position: absolute;
    top: -16px;
    left: -16px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--emerald-700);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.3;
}

.about__image-secondary {
    position: absolute;
    bottom: -32px;
    right: -32px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--cream-100);
}

.about__image-sm {
    width: 240px;
    height: 170px;
    object-fit: cover;
}

.about__content .section-title {
    margin-bottom: 24px;
}

.about__body {
    font-size: 0.95rem;
    color: var(--text-body);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about__values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.about__value {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

.about__value-icon {
    width: 28px;
    height: 28px;
    background: var(--emerald-800);
    color: var(--cream-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Why Us ── */
.why-us {
    padding: 100px 0;
    background: var(--emerald-900);
}

.why-us__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.why-us__content .section-eyebrow {
    color: var(--gold-light);
}

.why-us__text {
    font-size: 0.95rem;
    color: rgba(250, 248, 245, 0.7);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 480px;
}

.why-us__stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stat {
    text-align: center;
}

.stat__number {
    display: block;
    font-family: var(--serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1;
    margin-bottom: 8px;
}

.stat__label {
    font-size: 0.8rem;
    color: rgba(250, 248, 245, 0.6);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.4;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(250, 248, 245, 0.15);
}

.why-us__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.why-us__img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.why-us__image:hover .why-us__img {
    transform: scale(1.03);
}

/* ── Contact ── */
.contact {
    padding: 100px 0;
    background: var(--cream-50);
}

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

.contact__text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact__detail {
    display: flex;
    gap: 16px;
}

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

.contact__detail-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.contact__detail-value {
    display: block;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

.contact__detail-value a {
    color: var(--emerald-800);
    transition: color var(--transition);
}

.contact__detail-value a:hover {
    color: var(--emerald-600);
}

/* Form */
.contact__form-wrap {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--cream-200);
}

.contact__form-title {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--emerald-900);
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--sans);
    font-size: 0.9rem;
    color: var(--text-dark);
    background: var(--cream-50);
    border: 1px solid var(--cream-200);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--emerald-700);
    background: white;
    box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.1);
}

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

.form-success {
    display: none;
    margin-top: 16px;
    padding: 14px 18px;
    background: var(--cream-100);
    border: 1px solid var(--emerald-700);
    border-radius: var(--radius-sm);
    color: var(--emerald-800);
    font-size: 0.9rem;
    text-align: center;
}

.form-success.show {
    display: block;
}

/* ── Map ── */
.map-section {
    background: var(--cream-200);
}

.map-section__inner {
    border-radius: 0;
    overflow: hidden;
    filter: saturate(0.8) contrast(1.05);
}

/* ── Footer ── */
.footer {
    background: var(--emerald-900);
    color: var(--cream-200);
    padding: 64px 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(250, 248, 245, 0.1);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    text-decoration: none;
}

.footer__logo-mark {
    width: 40px;
    height: 40px;
    background: var(--emerald-700);
    color: var(--cream-50);
    font-family: var(--serif);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
}

.footer__logo-text {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--cream-100);
    line-height: 1.2;
}

.footer__tagline {
    font-size: 0.875rem;
    color: rgba(250, 248, 245, 0.55);
    line-height: 1.7;
    max-width: 260px;
}

.footer__heading {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--cream-100);
    margin-bottom: 20px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__links a {
    font-size: 0.875rem;
    color: rgba(250, 248, 245, 0.55);
    transition: color var(--transition);
}

.footer__links a:hover {
    color: var(--gold-light);
}

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.875rem;
    color: rgba(250, 248, 245, 0.55);
    line-height: 1.7;
}

.footer__contact a {
    color: rgba(250, 248, 245, 0.55);
    transition: color var(--transition);
}

.footer__contact a:hover {
    color: var(--gold-light);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 0.8rem;
    color: rgba(250, 248, 245, 0.35);
}

/* ── Scroll Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ── Responsive ── */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about__grid,
    .why-us__inner,
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about__image-secondary {
        right: 16px;
        bottom: -24px;
    }
    
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav__links {
        display: none;
    }
    
    .nav__toggle {
        display: flex;
    }
    
    .hero__title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero__actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .services__grid {
        grid-template-columns: 1fr;
    }
    
    .about__image {
        height: 360px;
    }
    
    .about__image-secondary {
        width: 180px;
        height: 130px;
        bottom: -16px;
        right: -8px;
    }
    
    .about__values {
        grid-template-columns: 1fr;
    }
    
    .why-us__img {
        height: 360px;
    }
    
    .why-us__stats {
        justify-content: center;
    }
    
    .contact__form-wrap {
        padding: 28px;
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero__trust {
        flex-direction: column;
        gap: 8px;
    }
    
    .hero__trust-dot {
        display: none;
    }
    
    .stat__number {
        font-size: 2rem;
    }
}
