/* ============================================
   Butlers Southland Auto Service — Styles
   Forest Green + Off-White | Confident Corporate
   ============================================ */

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

:root {
    --forest: #1E3D2F;
    --forest-dark: #152B22;
    --forest-light: #2A5240;
    --forest-muted: #3D6B54;
    --cream: #F7F5F0;
    --cream-dark: #EDE9E2;
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-mid: #4A4A4A;
    --text-light: #7A7A7A;
    --accent: #C8A961;
    --accent-light: #D4BA7A;
    --border: rgba(30, 61, 47, 0.12);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.01em;
    text-transform: none;
}

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

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

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.938rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--forest-dark);
    border-color: var(--forest-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    background: var(--white);
    color: var(--forest);
    border-color: var(--white);
    transform: translateY(-2px);
}

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

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

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

.btn-lg {
    padding: 18px 36px;
    font-size: 1rem;
}

/* ---------- Section Headers ---------- */
.section-tag {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-size: 0.813rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--forest-muted);
    margin-bottom: 12px;
}

.section-tag.light {
    color: rgba(30, 61, 47, 0.6);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--forest);
    margin-bottom: 16px;
}

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

.section-desc {
    font-size: 1.063rem;
    color: var(--text-mid);
    max-width: 560px;
    line-height: 1.7;
}

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

.section-header.light {
    text-align: center;
}

.section-header.light .section-desc {
    margin: 0 auto;
}

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

.navbar.scrolled {
    background: rgba(247, 245, 240, 0.97);
    backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: 0 1px 0 var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--white);
    letter-spacing: 0.04em;
}

.navbar.scrolled .logo {
    color: var(--forest);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.2);
}

.navbar.scrolled .logo-icon {
    background: var(--forest);
    border-color: var(--forest);
}

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

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.03em;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

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

.navbar.scrolled .nav-links a {
    color: var(--text-mid);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--forest);
}

.nav-cta {
    background: var(--accent) !important;
    color: var(--forest-dark) !important;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
}

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

.nav-cta:hover {
    background: var(--accent-light) !important;
    transform: translateY(-1px);
}

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

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

.navbar.scrolled .mobile-toggle span {
    background: var(--forest);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--forest);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.mobile-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--white);
    padding: 8px;
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
}

.mobile-link {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--white);
    padding: 12px 24px;
    letter-spacing: 0.04em;
    opacity: 0.9;
}

.mobile-link:hover {
    opacity: 1;
    color: var(--accent);
}

.mobile-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    background: var(--accent);
    color: var(--forest-dark);
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(21, 43, 34, 0.92) 0%,
        rgba(30, 61, 47, 0.85) 40%,
        rgba(42, 82, 64, 0.75) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 100px;
    padding-bottom: 80px;
    max-width: 720px;
}

.hero-badge {
    display: inline-block;
    background: rgba(200, 169, 97, 0.2);
    border: 1px solid rgba(200, 169, 97, 0.4);
    color: var(--accent-light);
    font-family: 'Oswald', sans-serif;
    font-size: 0.813rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 28px;
}

.hero-title {
    font-size: clamp(2.75rem, 6vw, 5rem);
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.05;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.188rem);
    color: rgba(255,255,255,0.78);
    line-height: 1.75;
    margin-bottom: 40px;
    max-width: 540px;
}

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

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.7); }
}

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

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

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

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

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

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 61, 47, 0.08);
    border-radius: var(--radius-sm);
    color: var(--forest);
    margin-bottom: 24px;
    transition: var(--transition);
}

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

.service-card h3 {
    font-size: 1.25rem;
    color: var(--forest);
    margin-bottom: 12px;
}

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

/* ---------- About ---------- */
.about {
    padding: 120px 0;
    background: var(--white);
}

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

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-main img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 6px solid var(--white);
}

.about-img-secondary img {
    width: 280px;
    height: 200px;
    object-fit: cover;
}

.about-stats {
    position: absolute;
    top: -24px;
    left: -24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat {
    background: var(--forest);
    color: var(--white);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

.stat-number {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.813rem;
    opacity: 0.8;
}

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

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

.about-text {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 16px;
}

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

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

.check-icon {
    color: var(--forest);
    flex-shrink: 0;
}

/* ---------- Why Us ---------- */
.why-us {
    padding: 120px 0;
    background: var(--cream);
}

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

.why-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 40px 28px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

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

.why-number {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(30, 61, 47, 0.08);
    line-height: 1;
    margin-bottom: 20px;
}

.why-card h3 {
    font-size: 1.188rem;
    color: var(--forest);
    margin-bottom: 12px;
}

.why-card p {
    font-size: 0.938rem;
    color: var(--text-mid);
    line-height: 1.7;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

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

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(21, 43, 34, 0.93) 0%,
        rgba(30, 61, 47, 0.88) 100%
    );
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 40px;
}

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

/* ---------- Contact ---------- */
.contact {
    padding: 120px 0;
    background: var(--white);
}

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

.contact-info .section-title {
    margin-bottom: 16px;
}

.contact-desc {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 61, 47, 0.08);
    border-radius: var(--radius-sm);
    color: var(--forest);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--forest);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.938rem;
    color: var(--text-mid);
    line-height: 1.6;
}

.contact-item a {
    color: var(--text-mid);
}

.contact-item a:hover {
    color: var(--forest);
}

/* Contact Form */
.contact-form-wrap {
    position: sticky;
    top: 100px;
}

.contact-form-card {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    border: 1px solid var(--border);
}

.contact-form-card h3 {
    font-size: 1.5rem;
    color: var(--forest);
    margin-bottom: 8px;
}

.contact-form-card > p {
    font-size: 0.938rem;
    color: var(--text-light);
    margin-bottom: 32px;
}

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 0.938rem;
    color: var(--text-dark);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--forest);
    box-shadow: 0 0 0 3px rgba(30, 61, 47, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

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

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

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

.form-success svg {
    color: var(--forest);
    margin-bottom: 16px;
}

.form-success h4 {
    font-size: 1.375rem;
    color: var(--forest);
    margin-bottom: 8px;
}

.form-success p {
    font-size: 0.938rem;
    color: var(--text-mid);
}

/* ---------- Map ---------- */
.map-section {
    height: 380px;
    filter: grayscale(30%);
}

.map-section iframe {
    width: 100%;
    height: 100%;
}

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

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

.footer .logo {
    color: var(--white);
    margin-bottom: 16px;
}

.footer .logo-icon {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.15);
}

.footer-brand p {
    font-size: 0.938rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.938rem;
    color: rgba(255,255,255,0.6);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-contact p {
    font-size: 0.938rem;
    line-height: 1.7;
    margin-bottom: 4px;
}

.footer-contact a {
    color: rgba(255,255,255,0.6);
}

.footer-contact a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.813rem;
    color: rgba(255,255,255,0.4);
}

.footer-bottom a {
    color: rgba(255,255,255,0.4);
}

.footer-bottom a:hover {
    color: var(--accent);
}

/* ---------- Animations ---------- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        gap: 48px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-content {
        padding-top: 80px;
    }
    
    .hero-title {
        font-size: clamp(2.25rem, 8vw, 3.5rem);
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        justify-content: center;
    }
    
    .services {
        padding: 80px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about {
        padding: 80px 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about-img-secondary {
        right: 0;
        bottom: -30px;
    }
    
    .about-stats {
        left: 0;
        top: -20px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .why-us {
        padding: 80px 0;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-banner {
        padding: 80px 0;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .contact {
        padding: 80px 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-form-wrap {
        position: static;
    }
    
    .contact-form-card {
        padding: 32px 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer {
        padding: 60px 0 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-badge {
        font-size: 0.688rem;
    }
    
    .service-card {
        padding: 28px 24px;
    }
}
