/* ============================================
   E.A Appliance Repair — Custom Styles
   Burgundy + Blush | Clean Minimalist
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --burgundy: #7B2D3B;
    --burgundy-deep: #5A1F2B;
    --burgundy-light: #9A3D4F;
    --blush: #F5E6E0;
    --blush-light: #FBF5F3;
    --blush-mid: #F0D5CC;
    --cream: #FDF8F6;
    --white: #FFFFFF;
    --text-dark: #2A1F22;
    --text-mid: #5C4A4F;
    --text-light: #8A757A;
    --line: rgba(123, 45, 59, 0.12);
    --line-strong: rgba(123, 45, 59, 0.25);
    
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(42, 31, 34, 0.04);
    --shadow-md: 0 4px 20px rgba(42, 31, 34, 0.06);
    --shadow-lg: 0 8px 40px rgba(42, 31, 34, 0.08);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 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);
    font-weight: 300;
    color: var(--text-dark);
    background-color: var(--cream);
    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;
    transition: color 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-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p {
    color: var(--text-mid);
    font-size: 1rem;
}

/* --- Section Tags --- */
.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 16px;
    position: relative;
    padding-left: 28px;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 20px;
    height: 1px;
    background: var(--burgundy);
    transform: translateY(-50%);
}

.section-title {
    margin-bottom: 20px;
}

.section-desc {
    max-width: 560px;
    font-size: 1.05rem;
    line-height: 1.8;
}

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

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all var(--transition);
    border: 1.5px solid transparent;
}

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

.btn-primary:hover {
    background: var(--burgundy-deep);
    border-color: var(--burgundy-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(123, 45, 59, 0.25);
}

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

.btn-outline:hover {
    background: var(--white);
    color: var(--burgundy);
    border-color: var(--white);
}

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

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

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

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

.navbar.scrolled {
    background: rgba(253, 248, 246, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--line);
}

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

.logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.02em;
    transition: color var(--transition);
}

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

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

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

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

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

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

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

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

.nav-cta {
    background: var(--white);
    color: var(--burgundy) !important;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 500 !important;
    letter-spacing: 0.04em !important;
    transition: all var(--transition) !important;
}

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

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

.navbar.scrolled .nav-cta {
    background: var(--burgundy);
    color: var(--white) !important;
}

.navbar.scrolled .nav-cta:hover {
    background: var(--burgundy-deep);
}

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

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--white);
    transition: all var(--transition);
}

.navbar.scrolled .mobile-menu-btn span {
    background: var(--burgundy);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--burgundy);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 8px;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.9);
    transition: color var(--transition);
}

.mobile-link:hover {
    color: var(--white);
}

.mobile-cta {
    margin-top: 16px;
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
    background: var(--white);
    color: var(--burgundy) !important;
    padding: 14px 36px;
    border-radius: 100px;
    font-weight: 500;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/30237909/pexels-photo-30237909.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center/cover no-repeat;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(90, 31, 43, 0.92) 0%,
        rgba(123, 45, 59, 0.85) 50%,
        rgba(90, 31, 43, 0.88) 100%
    );
}

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

.hero-tagline {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blush);
    margin-bottom: 28px;
}

.hero-headline {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    font-weight: 300;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}

.hero-headline em {
    font-style: italic;
    color: var(--blush);
}

.hero-sub {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    max-width: 540px;
    margin: 0 auto 44px;
}

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

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

.scroll-line {
    width: 1px;
    height: 40px;
    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.6); }
}

/* --- 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(--line);
    transition: all var(--transition);
}

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

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--blush-light);
    color: var(--burgundy);
    margin-bottom: 24px;
    transition: all var(--transition);
}

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

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

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

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

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

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

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

.about-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    border: 1px solid var(--blush-mid);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-content {
    padding: 20px 0;
}

.about-text {
    font-size: 1.02rem;
    line-height: 1.9;
    color: var(--text-mid);
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    gap: 48px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--burgundy);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --- Process --- */
.process {
    padding: 120px 0;
    background: var(--blush-light);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.process-step {
    text-align: center;
    padding: 32px 20px;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 52px;
    right: -16px;
    width: 32px;
    height: 1px;
    background: var(--line-strong);
}

.step-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 300;
    color: var(--blush-mid);
    line-height: 1;
    margin-bottom: 20px;
}

.process-step h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.process-step p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-light);
}

/* --- CTA Section --- */
.cta-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: var(--burgundy);
}

.cta-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.testimonial {
    position: relative;
    padding-left: 60px;
}

.testimonial svg {
    position: absolute;
    left: 0;
    top: 0;
}

.testimonial p {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-style: italic;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 24px;
}

.testimonial footer {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-style: normal;
    color: var(--blush);
    letter-spacing: 0.05em;
}

.cta-divider {
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0;
}

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

.cta-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 36px;
}

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

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

.contact-info {
    padding: 20px 0;
}

.contact-desc {
    font-size: 1.02rem;
    line-height: 1.8;
    margin-bottom: 48px;
    color: var(--text-mid);
}

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

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

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--blush-light);
    color: var(--burgundy);
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 4px;
}

.contact-item a {
    color: var(--text-dark);
    font-size: 1rem;
    transition: color var(--transition);
}

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

.contact-item span {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
}

/* --- Contact Form --- */
.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin-bottom: 32px;
    color: var(--text-dark);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-dark);
    background: var(--cream);
    transition: all var(--transition);
    outline: none;
}

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--burgundy);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.08);
}

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

.form-success {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--blush-light);
    border: 1px solid var(--blush-mid);
    border-radius: var(--radius-sm);
    color: var(--burgundy);
    font-size: 0.9rem;
    margin-top: 16px;
}

.form-success svg {
    flex-shrink: 0;
}

/* --- Map --- */
.map-section {
    border-top: 1px solid var(--line);
}

.map-section iframe {
    filter: saturate(0.4) contrast(1.1);
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
}

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

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

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
}

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

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

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

.footer-contact p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.5);
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-step:not(:last-child)::after {
        display: none;
    }
    
    .about-grid {
        gap: 48px;
    }
    
    .cta-content {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-content {
        padding: 100px 20px 60px;
    }
    
    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image img {
        height: 400px;
    }
    
    .about-image::after {
        display: none;
    }
    
    .about-stats {
        gap: 32px;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .cta-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .cta-divider {
        margin: 0 auto;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-form-wrapper {
        padding: 32px 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .services,
    .about,
    .process,
    .contact {
        padding: 80px 0;
    }
    
    .section-header {
        margin-bottom: 48px;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 24px;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-line {
        animation: none;
    }
    
    * {
        transition: none !important;
    }
}
