/* ============================================
   M and S Auto Electric — Custom Styles
   ============================================ */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* --- Navbar --- */
.nav-scrolled {
    background: rgba(253, 244, 246, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(143, 32, 63, 0.07);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-scrolled .nav-logo-text {
    color: #8f2034;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #420b14;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    transition: opacity 0.2s;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-logo-text {
    color: #420b14;
    transition: color 0.3s;
}

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

.nav-link {
    text-decoration: none;
    color: #8f2034;
    font-weight: 500;
    font-size: 0.938rem;
    transition: opacity 0.2s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffb810;
    transition: width 0.3s ease;
    border-radius: 1px;
}

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

.nav-link:hover {
    opacity: 0.75;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #8f2034;
    color: #fce7eb;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
    background: #ad263f;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(143, 32, 63, 0.3);
}

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #8f2034;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(253, 244, 246, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid rgba(143, 32, 63, 0.1);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    z-index: 999;
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
}

.mobile-link {
    text-decoration: none;
    color: #8f2034;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 12px 16px;
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-link:hover {
    background: rgba(143, 32, 63, 0.06);
}

.mobile-cta {
    background: #8f2034;
    color: #fce7eb;
    text-align: center;
    margin-top: 8px;
    border-radius: 50px;
}

.mobile-cta:hover {
    background: #ad263f;
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fdf4f6 0%, #fce7eb 50%, #fff3cd 100%);
    padding-top: 72px;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.4;
    background-image: radial-gradient(circle at 2px 2px, rgba(143, 32, 63, 0.08) 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(143, 32, 63, 0.08);
    border: 1px solid rgba(143, 32, 63, 0.15);
    color: #8f2034;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: #ffb810;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-headline {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    color: #420b14;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-subheadline {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #771d30;
    margin-bottom: 36px;
    max-width: 500px;
    opacity: 0.85;
}

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

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #8f2034;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    font-family: 'DM Sans', sans-serif;
}

.btn-primary {
    background: #8f2034;
    color: #fce7eb;
    box-shadow: 0 4px 20px rgba(143, 32, 63, 0.25);
}

.btn-primary:hover {
    background: #ad263f;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(143, 32, 63, 0.35);
    color: #fce7eb;
}

.btn-secondary {
    background: transparent;
    color: #8f2034;
    border: 2px solid rgba(143, 32, 63, 0.3);
}

.btn-secondary:hover {
    border-color: #8f2034;
    background: rgba(143, 32, 63, 0.06);
    transform: translateY(-2px);
}

.btn-light {
    background: #fce7eb;
    color: #8f2034;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-light:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
    color: #8f2034;
}

.btn-outline-light {
    background: transparent;
    color: #fce7eb;
    border: 2px solid rgba(252, 231, 235, 0.6);
}

.btn-outline-light:hover {
    background: rgba(252, 231, 235, 0.15);
    transform: translateY(-2px);
    color: #fce7eb;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

/* Hero Image */
.hero-image-wrapper {
    position: relative;
}

.hero-image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 184, 16, 0.3);
    border-radius: 24px;
    z-index: -1;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(143, 32, 63, 0.15);
    object-fit: cover;
    display: block;
}

.hero-image-card {
    position: absolute;
    bottom: -16px;
    left: -16px;
    background: white;
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 8px 32px rgba(143, 32, 63, 0.12);
}

.hero-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #8f2034, #ad263f);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fce7eb;
    flex-shrink: 0;
}

.hero-card-label {
    font-size: 0.75rem;
    color: #8f2034;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-card-value {
    font-size: 0.9rem;
    color: #420b14;
    font-weight: 600;
    line-height: 1.3;
}

/* --- Section Shared --- */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffb810;
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: #420b14;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.063rem;
    line-height: 1.7;
    color: #771d30;
    opacity: 0.8;
}

/* --- Services --- */
.services {
    padding: 100px 0;
    background: white;
}

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

.service-card {
    background: #fdf4f6;
    border-radius: 20px;
    padding: 36px 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(143, 32, 63, 0.1);
    border-color: rgba(143, 32, 63, 0.1);
    background: white;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #8f2034, #ad263f);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fce7eb;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.05) rotate(-3deg);
}

.service-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #420b14;
    margin-bottom: 10px;
}

.service-desc {
    font-size: 0.938rem;
    line-height: 1.65;
    color: #771d30;
    opacity: 0.85;
}

/* --- About --- */
.about {
    padding: 100px 0;
    background: linear-gradient(180deg, #fdf4f6 0%, #fffbeb 100%);
}

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

.about-image-group {
    position: relative;
}

.about-image-main {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(143, 32, 63, 0.12);
}

.about-image-main img {
    width: 100%;
    height: auto;
    display: block;
}

.about-image-secondary {
    position: absolute;
    bottom: -30px;
    right: -30px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(143, 32, 63, 0.15);
    border: 4px solid white;
}

.about-image-secondary img {
    width: 100%;
    height: auto;
    display: block;
}

.about-experience-badge {
    position: absolute;
    top: -20px;
    right: 40px;
    background: linear-gradient(135deg, #8f2034, #ad263f);
    border-radius: 20px;
    padding: 20px 24px;
    text-align: center;
    box-shadow: 0 12px 32px rgba(143, 32, 63, 0.3);
    z-index: 2;
}

.about-exp-number {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #ffe69c;
    line-height: 1;
}

.about-exp-text {
    font-size: 0.8rem;
    color: #fce7eb;
    font-weight: 500;
    line-height: 1.4;
    margin-top: 4px;
}

.about-content .section-tag {
    text-align: left;
}

.about-content .section-title {
    text-align: left;
}

.about-text {
    font-size: 1rem;
    line-height: 1.75;
    color: #771d30;
    opacity: 0.85;
    margin-bottom: 16px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 28px 0 36px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #420b14;
}

.about-feature-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 184, 16, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d97706;
    flex-shrink: 0;
}

.about-content .btn {
    margin-top: 8px;
}

/* --- Why Us --- */
.why-us {
    padding: 100px 0;
    background: white;
}

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

.why-card {
    background: linear-gradient(135deg, #fdf4f6, #fce7eb);
    border-radius: 24px;
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(143, 32, 63, 0.1);
}

.why-card-number {
    font-family: 'Syne', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(143, 32, 63, 0.07);
    line-height: 1;
    margin-bottom: 12px;
}

.why-card-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #420b14;
    margin-bottom: 12px;
}

.why-card-desc {
    font-size: 0.938rem;
    line-height: 1.7;
    color: #771d30;
    opacity: 0.85;
}

/* --- CTA Section --- */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #420b14 0%, #8f2034 50%, #ad263f 100%);
    position: relative;
    overflow: hidden;
}

.cta-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.5) 1px, transparent 0);
    background-size: 28px 28px;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: #fce7eb;
    line-height: 1.15;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(252, 231, 235, 0.8);
    margin-bottom: 36px;
}

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

/* --- Location --- */
.location {
    padding: 100px 0;
    background: linear-gradient(180deg, #fffbeb 0%, #fdf4f6 100%);
}

.location-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: stretch;
}

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

.location-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(143, 32, 63, 0.06);
    transition: transform 0.2s ease;
}

.location-card:hover {
    transform: translateX(4px);
}

.location-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #8f2034, #ad263f);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fce7eb;
    flex-shrink: 0;
}

.location-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ffb810;
    margin-bottom: 4px;
}

.location-value {
    font-size: 0.95rem;
    color: #420b14;
    line-height: 1.6;
    font-weight: 500;
}

.location-value a {
    color: #8f2034;
    text-decoration: none;
    transition: color 0.2s;
}

.location-value a:hover {
    color: #ad263f;
    text-decoration: underline;
}

.map-btn {
    align-self: flex-start;
    margin-top: 8px;
}

.location-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(143, 32, 63, 0.1);
    min-height: 380px;
}

/* --- Footer --- */
.footer {
    background: #420b14;
    padding: 60px 0 0;
    color: #fce7eb;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fce7eb;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 14px;
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.65;
    color: rgba(252, 231, 235, 0.65);
    max-width: 280px;
}

.footer-heading {
    font-family: 'Syne', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffe69c;
    margin-bottom: 16px;
}

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

.footer-link {
    color: rgba(252, 231, 235, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-link:hover {
    color: #ffe69c;
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(252, 231, 235, 0.7);
    margin-bottom: 10px;
    line-height: 1.5;
}

.footer-contact-link {
    color: rgba(252, 231, 235, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact-link:hover {
    color: #ffe69c;
}

.footer-bottom {
    border-top: 1px solid rgba(252, 231, 235, 0.1);
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(252, 231, 235, 0.45);
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-container {
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-layout {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding-top: 72px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 24px;
    }

    .hero-image-wrapper {
        max-width: 480px;
        margin: 0 auto;
    }

    .hero-image-accent {
        top: -12px;
        right: -12px;
    }

    .hero-image-card {
        bottom: -12px;
        left: -8px;
        padding: 12px 16px;
    }

    .hero-trust {
        gap: 16px;
    }

    .services {
        padding: 70px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 28px 24px;
    }

    .about {
        padding: 70px 0;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image-secondary {
        right: -10px;
        bottom: -20px;
    }

    .about-experience-badge {
        top: -12px;
        right: 20px;
    }

    .about-content .section-tag,
    .about-content .section-title {
        text-align: center;
    }

    .about-content .section-header {
        text-align: center;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

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

    .about-content .btn {
        margin: 0 auto;
    }

    .why-us {
        padding: 70px 0;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .why-card {
        padding: 32px 24px;
    }

    .cta-section {
        padding: 70px 0;
    }

    .location {
        padding: 70px 0;
    }

    .location-layout {
        grid-template-columns: 1fr;
    }

    .location-map {
        min-height: 280px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

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

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

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

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