/* ========================================
   Flinthills Farm and Auto Repair
   Custom Styles
======================================== */

/* --- CSS Variables --- */
:root {
    --color-charcoal: #2D2D2D;
    --color-charcoal-light: #3D3D3D;
    --color-charcoal-dark: #1A1A1A;
    --color-coral: #C05A45;
    --color-coral-light: #D47865;
    --color-coral-dark: #A84A38;
    --color-cream: #FDF8F5;
    --color-warm-gray: #F5F0EC;
    --color-text: #2D2D2D;
    --color-text-light: #6B6B6B;
    --color-white: #FFFFFF;
    --color-border: #E8E0D8;
    
    --font-heading: 'Quicksand', sans-serif;
    --font-body: 'Lato', sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(45, 45, 45, 0.08);
    --shadow-md: 0 4px 20px rgba(45, 45, 45, 0.12);
    --shadow-lg: 0 8px 40px rgba(45, 45, 45, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --transition: all 0.3s ease;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-cream);
    line-height: 1.7;
    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.2;
    color: var(--color-charcoal);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p {
    color: var(--color-text-light);
    font-size: 1.05rem;
}

.text-coral {
    color: var(--color-coral);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-xl);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-primary:hover {
    background: var(--color-charcoal-light);
}

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

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

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

.btn-outline-light:hover {
    background: var(--color-white);
    color: var(--color-charcoal);
}

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

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

/* --- Section Tags --- */
.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-coral);
    margin-bottom: 12px;
}

.section-tag.light {
    color: rgba(255, 255, 255, 0.8);
}

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

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

.section-header.light h2,
.section-header.light .section-tag {
    color: var(--color-white);
}

.section-header.light p {
    color: rgba(255, 255, 255, 0.85);
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(45, 45, 45, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0 24px;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(26, 26, 26, 0.98);
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-white);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--color-coral);
    border-radius: var(--radius-sm);
    color: var(--color-white);
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--color-coral-light);
}

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

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

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

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

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

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://images.pexels.com/photos/8985457/pexels-photo-8985457.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center center / cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.85) 0%,
        rgba(45, 45, 45, 0.75) 50%,
        rgba(192, 90, 69, 0.4) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 120px 24px 80px;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    background: rgba(192, 90, 69, 0.2);
    border: 1px solid rgba(192, 90, 69, 0.5);
    color: var(--color-coral-light);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 20px;
    border-radius: var(--radius-xl);
    margin-bottom: 24px;
}

.hero h1 {
    color: var(--color-white);
    margin-bottom: 24px;
    line-height: 1.15;
}

.hero h1 p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 36px;
    max-width: 560px;
}

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

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-8px); }
    60% { transform: translateX(-50%) translateY(-4px); }
}

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

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

.service-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

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

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-coral), var(--color-coral-dark));
    border-radius: var(--radius-md);
    color: var(--color-white);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 12px;
    color: var(--color-charcoal);
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

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

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

.about-image {
    position: relative;
}

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

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: var(--color-coral);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.3;
}

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

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

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

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

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--color-charcoal);
}

.about-feature svg {
    color: var(--color-coral);
    flex-shrink: 0;
}

/* --- Why Us Section --- */
.why-us {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-charcoal-dark) 0%, var(--color-charcoal) 100%);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.why-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: var(--transition);
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.why-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-coral);
    line-height: 1;
    margin-bottom: 16px;
}

.why-card h3 {
    color: var(--color-white);
    margin-bottom: 12px;
}

.why-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

/* --- CTA Section --- */
.cta {
    padding: 80px 0;
    background: var(--color-coral);
}

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

.cta h2 {
    color: var(--color-white);
    margin-bottom: 20px;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 36px;
    font-size: 1.1rem;
}

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

/* --- Contact Section --- */
.contact {
    padding: 100px 0;
    background: var(--color-warm-gray);
}

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

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

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

.contact-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-coral);
    border-radius: var(--radius-sm);
    color: var(--color-white);
    flex-shrink: 0;
}

.contact-card h4 {
    margin-bottom: 4px;
    color: var(--color-charcoal);
}

.contact-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-card a {
    color: var(--color-coral);
    font-weight: 700;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-form-wrapper {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.contact-form h3 {
    margin-bottom: 8px;
    color: var(--color-charcoal);
}

.form-note {
    font-size: 0.9rem;
    margin-bottom: 28px;
    color: var(--color-text-light);
}

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

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-charcoal);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-cream);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-coral);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(192, 90, 69, 0.15);
}

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

.form-success {
    display: none;
    text-align: center;
    padding: 40px;
}

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

.form-success h3 {
    color: var(--color-charcoal);
    margin-bottom: 8px;
}

.form-success p {
    color: var(--color-text-light);
}

/* --- Map Section --- */
.map-section {
    background: var(--color-charcoal);
}

.map-section iframe {
    filter: grayscale(30%);
}

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

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

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--color-white);
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

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

.footer-contact p {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-contact a {
    color: var(--color-coral-light);
}

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

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image img {
        height: 400px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(26, 26, 26, 0.98);
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-form-wrapper {
        padding: 28px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .services, .about, .why-us, .contact {
        padding: 60px 0;
    }
    
    .service-card {
        padding: 28px 24px;
    }
    
    .hero-content {
        padding: 100px 16px 60px;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .hero-scroll {
        animation: none;
    }
}
