/* ========================================
   Randy's Auto Repair — Brand Styles
   Burgundy + Blush Editorial Palette
   ======================================== */

:root {
    --burgundy-900: #1a0a0e;
    --burgundy-800: #2d0f15;
    --burgundy-700: #4a1522;
    --burgundy-600: #6b1d30;
    --burgundy-500: #8b2540;
    --burgundy-400: #a83252;
    --burgundy-300: #c44d6e;
    --burgundy-200: #d97490;
    --burgundy-100: #eab0ad;
    --burgundy-50:  #f5d5d3;
    
    --blush-500:  #f4a0a8;
    --blush-400:  #f7b8be;
    --blush-300:  #fad3d7;
    --blush-200:  #fce8ea;
    --blush-100:  #fef3f4;
    --blush-50:   #fef9f9;
    
    --cream:      #fdf8f7;
    --warm-white: #fffbf9;
    --sand:       #f5efee;
    
    --text-dark:   #1a0a0e;
    --text-body:   #3d1f28;
    --text-muted:  #7a4a56;
    --text-light:  #a8727e;
    
    --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --shadow-sm:  0 1px 3px rgba(26, 10, 14, 0.06), 0 1px 2px rgba(26, 10, 14, 0.04);
    --shadow-md:  0 4px 16px rgba(26, 10, 14, 0.08), 0 2px 6px rgba(26, 10, 14, 0.04);
    --shadow-lg:  0 12px 40px rgba(26, 10, 14, 0.12), 0 4px 12px rgba(26, 10, 14, 0.06);
    --shadow-xl:  0 24px 60px rgba(26, 10, 14, 0.16), 0 8px 20px rgba(26, 10, 14, 0.08);
    
    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-xl:  28px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-body);
    background: var(--warm-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 248, 247, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 37, 64, 0.08);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(253, 248, 247, 0.95);
    box-shadow: var(--shadow-sm);
}

.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-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--burgundy-700);
}

.logo-light {
    color: white;
}

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

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-body);
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--burgundy-500);
    transition: width 0.3s ease;
}

.nav-links a:not(.nav-cta):hover {
    color: var(--burgundy-600);
}

.nav-links a:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--burgundy-600);
    color: white !important;
    padding: 10px 22px;
    border-radius: 100px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-cta:hover {
    background: var(--burgundy-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

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

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--burgundy-700);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.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
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--burgundy-800) 0%,
        var(--burgundy-600) 30%,
        var(--burgundy-400) 55%,
        var(--blush-400) 75%,
        var(--blush-200) 100%
    );
    padding: 120px 24px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--burgundy-500);
    top: -200px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--blush-300);
    bottom: -100px;
    left: -50px;
    animation: float 15s ease-in-out infinite reverse;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--burgundy-300);
    top: 40%;
    left: 30%;
    animation: float 18s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 32px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 900;
    color: white;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-primary {
    background: white;
    color: var(--burgundy-700);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-light {
    background: var(--burgundy-600);
    color: white;
}

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

.btn-large {
    padding: 18px 36px;
    font-size: 1.05rem;
}

.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-item svg {
    opacity: 0.8;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* ========================================
   SECTION COMMON
   ======================================== */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

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

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--burgundy-500);
    background: var(--burgundy-50);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
}

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

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ========================================
   SERVICES
   ======================================== */
.services {
    padding: 100px 0;
    background: var(--warm-white);
}

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

.service-card {
    background: white;
    border: 1px solid rgba(139, 37, 64, 0.08);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--burgundy-500), var(--blush-400));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

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

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--burgundy-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy-600);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

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

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

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

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

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

.about-image {
    position: relative;
}

.image-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

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

.image-accent {
    position: absolute;
    bottom: -40px;
    right: -30px;
    width: 220px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--cream);
}

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

.experience-badge {
    position: absolute;
    top: -20px;
    left: -20px;
    background: var(--burgundy-600);
    color: white;
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.experience-badge .exp-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
}

.experience-badge .exp-text {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.85;
    line-height: 1.4;
    margin-top: 4px;
}

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

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

.about-values {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 36px;
}

.value-item {
    display: flex;
    gap: 16px;
}

.value-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--burgundy-50);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy-600);
}

.value-item h4 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.value-item p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========================================
   WHY US / STATS
   ======================================== */
.why-us {
    padding: 100px 0;
    background: var(--warm-white);
}

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

.stat-card {
    background: white;
    border: 1px solid rgba(139, 37, 64, 0.08);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

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

.stat-number {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--burgundy-600);
    line-height: 1;
    margin-bottom: 8px;
}

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

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials {
    padding: 100px 0;
    background: linear-gradient(
        180deg,
        var(--cream) 0%,
        var(--warm-white) 100%
    );
}

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

.testimonial-card {
    background: white;
    border: 1px solid rgba(139, 37, 64, 0.08);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all 0.3s ease;
}

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

.testimonial-stars {
    display: flex;
    gap: 4px;
    color: var(--burgundy-400);
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.75;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--burgundy-400), var(--blush-300));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-dark);
}

.author-location {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ========================================
   CTA
   ======================================== */
.cta {
    padding: 100px 0;
    background: var(--warm-white);
}

.cta-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: linear-gradient(
        135deg,
        var(--burgundy-800) 0%,
        var(--burgundy-600) 50%,
        var(--burgundy-400) 100%
    );
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.cta-content {
    padding: 64px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-content .section-tag {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    align-self: flex-start;
}

.cta-content .section-title {
    color: white;
    margin-bottom: 16px;
}

.cta-text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 40px;
}

.cta-contacts {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 36px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: white;
    transition: opacity 0.2s ease;
}

.contact-item:hover {
    opacity: 0.8;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
    margin-bottom: 2px;
}

.contact-value {
    font-size: 0.95rem;
    font-weight: 500;
}

.contact-value a {
    color: white;
}

.cta-image {
    position: relative;
    min-height: 400px;
}

.cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--burgundy-900);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
}

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

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

.footer-links h4,
.footer-hours h4,
.footer-contact h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

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

.footer-links a {
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

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

.footer-hours li {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    gap: 16px;
}

.footer-hours li span:last-child {
    color: rgba(255, 255, 255, 0.5);
}

.footer-contact p {
    font-size: 0.88rem;
    margin-bottom: 8px;
}

.footer-contact a {
    transition: color 0.2s ease;
}

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

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

/* ========================================
   REVEAL ANIMATIONS
   ======================================== */
[data-reveal] {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid .testimonial-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
    
    .cta-card {
        grid-template-columns: 1fr;
    }
    
    .cta-image {
        min-height: 300px;
        max-height: 300px;
    }
    
    .cta-content {
        padding: 48px 36px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(253, 248, 247, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(139, 37, 64, 0.08);
        transform: translateY(-120%);
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-trust {
        gap: 16px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .image-accent {
        right: 10px;
        bottom: -20px;
        width: 180px;
    }
    
    .experience-badge {
        left: 10px;
        top: -10px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .stat-card {
        padding: 28px 16px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid .testimonial-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }
    
    .cta-content {
        padding: 36px 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .services, .about, .why-us, .testimonials, .cta {
        padding: 72px 0;
    }
    
    .section-header {
        margin-bottom: 48px;
    }
    
    .hero-trust {
        flex-direction: column;
        gap: 12px;
    }
}
