/* ========================================
   Don's Muffler Clinic — Stylesheet
   Colors: Plum (#7B2D8E) + Amber (#F5A623)
   Fonts: Space Grotesk + Inter
======================================== */

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

:root {
    --plum: #7B2D8E;
    --plum-dark: #5A1F68;
    --plum-deeper: #3D1548;
    --plum-light: #A844B8;
    --amber: #F5A623;
    --amber-light: #FFC060;
    --amber-dark: #D4891A;
    --cream: #FFF8F0;
    --white: #FFFFFF;
    --dark: #1A0A1E;
    --gray-900: #2D1F36;
    --gray-700: #4A3F52;
    --gray-500: #7B6F82;
    --gray-300: #C4B8C9;
    --gray-100: #F0EBF3;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 2px 8px rgba(123, 45, 142, 0.08);
    --shadow-md: 0 8px 30px rgba(123, 45, 142, 0.12);
    --shadow-lg: 0 16px 50px rgba(123, 45, 142, 0.16);
    --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(--gray-900);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

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;
}

/* --- Background Shapes --- */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.04;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--plum);
    top: -200px;
    right: -150px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--amber);
    bottom: 20%;
    left: -100px;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--plum-light);
    top: 50%;
    right: 10%;
    opacity: 0.03;
}

.shape-4 {
    width: 150px;
    height: 150px;
    background: var(--amber);
    top: 30%;
    left: 5%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.shape-5 {
    width: 100px;
    height: 100px;
    background: var(--plum);
    bottom: 10%;
    right: 5%;
    border-radius: 20% 80% 40% 60% / 50% 30% 70% 50%;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 248, 240, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(123, 45, 142, 0.08);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--plum-dark);
}

.logo-light {
    color: var(--white);
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.nav-link {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--gray-700);
    position: relative;
}

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

.nav-link:hover {
    color: var(--plum);
}

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--plum);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
}

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

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

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

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

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

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

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--plum-deeper);
    z-index: 999;
    padding: 100px 32px 40px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav-link {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.mobile-nav-cta {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--amber);
    color: var(--dark);
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
}

.mobile-nav-cta:hover {
    background: var(--amber-light);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--plum);
    padding-top: 72px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(245, 166, 35, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(168, 68, 184, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero-left {
    padding-right: 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 166, 35, 0.15);
    border: 1px solid rgba(245, 166, 35, 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--amber);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--amber);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.1;
}

.text-gradient {
    background: linear-gradient(135deg, var(--amber) 0%, var(--amber-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.hero-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 500px;
}

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

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

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

.trust-item svg {
    flex-shrink: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--amber);
    color: var(--dark);
}

.btn-primary:hover {
    background: var(--amber-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 166, 35, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

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

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

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

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

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

/* Hero Right */
.hero-right {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
}

.hero-img-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 6/5;
}

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

.hero-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: float 4s ease-in-out infinite;
}

.hero-float-card.card-plum {
    background: var(--plum);
    bottom: 40%;
    left: -30px;
    animation-delay: 0.5s;
}

.hero-float-card.card-amber {
    background: var(--amber);
    top: 15%;
    right: -20px;
    animation-delay: 1s;
}

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

.float-card-text {
    display: flex;
    flex-direction: column;
}

.float-card-text strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    color: var(--white);
}

.float-card-text span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.card-amber .float-card-text strong,
.card-amber .float-card-text span {
    color: var(--dark);
}

.card-amber .float-card-text span {
    color: rgba(26, 10, 30, 0.6);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-geo {
    position: absolute;
    border-radius: 50%;
}

.shape-geo-1 {
    width: 80px;
    height: 80px;
    background: var(--amber);
    opacity: 0.2;
    top: -20px;
    right: 40px;
}

.shape-geo-2 {
    width: 50px;
    height: 50px;
    background: var(--plum-light);
    opacity: 0.3;
    bottom: -10px;
    left: 30px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

/* Hero Wave */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

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

/* --- Section Shared --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

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

.section-tag {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--plum);
    background: rgba(123, 45, 142, 0.08);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-tag.light {
    color: var(--amber);
    background: rgba(245, 166, 35, 0.15);
}

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

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

.section-desc {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 560px;
    margin: 0 auto;
}

/* --- Services Section --- */
.services {
    position: relative;
    z-index: 1;
    padding: 100px 0;
    background: var(--cream);
}

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

.service-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(123, 45, 142, 0.15);
}

.service-card-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--plum), var(--amber));
    transform: scaleX(0);
    transition: var(--transition);
}

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

.service-icon-wrap {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--plum) 0%, var(--plum-light) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--white);
}

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

.service-card p {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* --- About Section --- */
.about {
    position: relative;
    z-index: 1;
    padding: 100px 0;
    background: var(--white);
    overflow: hidden;
}

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

.about-visual {
    position: relative;
}

.about-img-stack {
    position: relative;
}

.about-img-1 {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/5;
}

.about-img-1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-img-2 {
    position: absolute;
    bottom: -30px;
    right: -30px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--white);
    aspect-ratio: 3/2;
}

.about-img-2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-geo {
    position: absolute;
    top: -40px;
    left: -40px;
    width: 120px;
    height: 120px;
}

.geo-circle {
    width: 120px;
    height: 120px;
    border: 3px solid var(--amber);
    border-radius: 50%;
    opacity: 0.3;
}

.geo-dots {
    position: absolute;
    bottom: -20px;
    right: -20px;
    display: grid;
    grid-template-columns: repeat(5, 8px);
    gap: 8px;
}

.geo-dots::before {
    content: '';
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    background-image: radial-gradient(var(--plum) 1.5px, transparent 1.5px);
    background-size: 8px 8px;
    opacity: 0.15;
}

.about-content {
    position: relative;
    z-index: 1;
}

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

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

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

.about-stats {
    display: flex;
    gap: 32px;
    margin: 32px 0 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.stat-number {
    display: flex;
    align-items: center;
}

.stat-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
}

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

/* --- Why Us Section --- */
.why-us {
    position: relative;
    z-index: 1;
    padding: 100px 0;
    background: var(--plum);
    overflow: hidden;
}

.why-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(245, 166, 35, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

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

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

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

.why-card-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--amber);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 12px;
}

.why-card h3 {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 10px;
}

.why-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
}

.why-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.wbs-1 {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--amber);
    opacity: 0.05;
    border-radius: 50%;
    top: -100px;
    left: -100px;
}

.wbs-2 {
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--plum-light);
    opacity: 0.1;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    bottom: -50px;
    right: -50px;
}

/* --- CTA Banner --- */
.cta-banner {
    position: relative;
    z-index: 1;
    padding: 80px 0;
    background: var(--amber);
    overflow: hidden;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
}

.cta-geo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cta-circle-1 {
    width: 400px;
    height: 400px;
    border: 2px solid rgba(123, 45, 142, 0.1);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cta-circle-2 {
    width: 280px;
    height: 280px;
    border: 2px solid rgba(123, 45, 142, 0.15);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cta-stripe {
    width: 100px;
    height: 4px;
    background: rgba(123, 45, 142, 0.15);
    border-radius: 2px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cta-content {
    flex: 1;
}

.cta-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--dark);
    margin-bottom: 12px;
}

.cta-desc {
    font-size: 1.05rem;
    color: rgba(26, 10, 30, 0.65);
    max-width: 480px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* --- Contact Section --- */
.contact {
    position: relative;
    z-index: 1;
    padding: 100px 0;
    background: var(--cream);
}

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

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

.contact-desc {
    font-size: 1.05rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 32px;
}

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

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

.contact-icon-wrap {
    width: 48px;
    height: 48px;
    background: rgba(123, 45, 142, 0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-text strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
}

.contact-text span,
.contact-text a {
    font-size: 1rem;
    color: var(--dark);
    font-weight: 500;
}

.contact-text a:hover {
    color: var(--plum);
}

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Contact Form */
.contact-form-wrap {
    position: relative;
}

.form-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
}

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

.form-subtitle {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-bottom: 28px;
}

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

.form-group label {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-100);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--dark);
    background: var(--cream);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--plum);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(123, 45, 142, 0.08);
}

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

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

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

.form-success.show {
    display: block;
    animation: fadeIn 0.4s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(123, 45, 142, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

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

.form-success p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Footer --- */
.footer {
    position: relative;
    z-index: 1;
    background: var(--dark);
    padding: 60px 0 0;
}

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

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    margin-top: 16px;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--amber);
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
    padding: 6px 0;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.5;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

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

/* --- Scroll Animations --- */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-visible {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero {
        min-height: auto;
        padding: 100px 0 80px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 20px 0;
    }
    
    .hero-left {
        padding-right: 0;
        text-align: center;
    }
    
    .hero-desc {
        margin: 0 auto 36px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-trust {
        justify-content: center;
    }
    
    .hero-right {
        max-width: 480px;
        margin: 0 auto;
    }
    
    .hero-float-card.card-plum {
        left: -10px;
    }
    
    .hero-float-card.card-amber {
        right: -10px;
    }
    
    .hero-wave svg {
        height: 50px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about-visual {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-content .section-title {
        text-align: center;
    }
    
    .about-content .section-tag {
        display: block;
        text-align: center;
    }
    
    .about-text {
        text-align: center;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .about-content .btn {
        margin: 0 auto;
        display: inline-flex;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-desc {
        margin: 0 auto;
    }
    
    .cta-actions {
        justify-content: center;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info .section-title {
        text-align: center;
    }
    
    .contact-desc {
        text-align: center;
    }
    
    .contact-details {
        align-items: center;
    }
    
    .contact-item {
        width: 100%;
    }
    
    .contact-map {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .form-card {
        padding: 28px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-float-card {
        padding: 10px 14px;
    }
    
    .float-card-icon {
        width: 32px;
        height: 32px;
    }
    
    .float-card-text strong {
        font-size: 0.78rem;
    }
    
    .float-card-text span {
        font-size: 0.7rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .services, .about, .why-us, .contact {
        padding: 70px 0;
    }
    
    .service-card {
        padding: 28px 22px;
    }
    
    .form-card {
        padding: 22px;
    }
}
</style>
<sm-file path="script.js">
/* ========================================
   Don's Muffler Clinic — Script
======================================== */

(function () {
    'use strict';

    // --- Header scroll effect ---
    const header = document.getElementById('header');
    let lastScroll = 0;

    window.addEventListener('scroll', () => {
        const currentScroll = window.pageYOffset;
        if (currentScroll > 50) {
            header.classList.add('scrolled');
        } else {
            header.classList.remove('scrolled');
        }
        lastScroll = currentScroll;
    });

    // --- Mobile menu toggle ---
    const mobileToggle = document.getElementById('mobileToggle');
    const mobileNav = document.getElementById('mobileNav');
    const mobileLinks = mobileNav.querySelectorAll('.mobile-nav-link');

    mobileToggle.addEventListener('click', () => {
        mobileToggle.classList.toggle('active');
        mobileNav.classList.toggle('open');
        document.body.style.overflow = mobileNav.classList.contains('open') ? 'hidden' : '';
    });

    mobileLinks.forEach(link => {
        link.addEventListener('click', () => {
            mobileToggle.classList.remove('active');
            mobileNav.classList.remove('open');
            document.body.style.overflow = '';
        });
    });

    // Close mobile nav on outside click
    document.addEventListener('click', (e) => {
        if (!mobileNav.contains(e.target) && !mobileToggle.contains(e.target)) {
            mobileToggle.classList.remove('active');
            mobileNav.classList.remove('open');
            document.body.style.overflow = '';
        }
    });

    // --- Smooth scroll for anchor links ---
    document.querySelectorAll('a[href^="#"]').forEach(anchor => {
        anchor.addEventListener('click', function (e) {
            e.preventDefault();
            const target = document.querySelector(this.getAttribute('href'));
            if (target) {
                const headerHeight = header.offsetHeight;
                const targetPosition = target.getBoundingClientRect().top + window.pageYOffset - headerHeight;
                window.scrollTo({
                    top: targetPosition,
                    behavior: 'smooth'
                });
            }
        });
    });

    // --- Scroll animations (Intersection Observer) ---
    const aosElements = document.querySelectorAll('[data-aos]');
    
    const observerOptions = {
        root: null,
        rootMargin: '0px 0px -60px 0px',
        threshold: 0.1
    };

    const observer = new IntersectionObserver((entries) => {
        entries.forEach((entry, index) => {
            if (entry.isIntersecting) {
                // Stagger the animation
                const delay = entry.target.dataset.aosDelay || 0;
                setTimeout(() => {
                    entry.target.classList.add('aos-visible');
                }, delay);
                observer.unobserve(entry.target);
            }
        });
    }, observerOptions);

    aosElements.forEach((el, index) => {
        // Add stagger delay based on sibling index
        const parent = el.parentElement;
        const siblings = parent.querySelectorAll('[data-aos]');
        const siblingIndex = Array.from(siblings).indexOf(el);
        el.dataset.aosDelay = siblingIndex * 80;
        observer.observe(el);
    });

    // --- Contact form ---
    const contactForm = document.getElementById('contactForm');
    const formSuccess = document.getElementById('formSuccess');

    if (contactForm) {
        contactForm.addEventListener('submit', function (e) {
            e.preventDefault();
            
            // Simulate form submission
            const submitBtn = contactForm.querySelector('button[type="submit"]');
            const originalText = submitBtn.innerHTML;
            submitBtn.innerHTML = `
                <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="animation: spin 1s linear infinite;">
                    <path d="M21 12a9 9 0 11-6.219-8.56"/>
                </svg>
                Sending...
            `;
            submitBtn.disabled = true;

            setTimeout(() => {
                contactForm.style.display = 'none';
                formSuccess.classList.add('show');
            }, 1200);
        });
    }

    // --- Add spin keyframe dynamically ---
    const style = document.createElement('style');
    style.textContent = `
        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
    `;
    document.head.appendChild(style);

    // --- Active nav link highlighting ---
    const sections = document.querySelectorAll('section[id]');
    const navLinks = document.querySelectorAll('.nav-link');

    window.addEventListener('scroll', () => {
        let current = '';
        sections.forEach(section => {
            const sectionTop = section.offsetTop - 100;
            if (window.pageYOffset >= sectionTop) {
                current = section.getAttribute('id');
            }
        });

        navLinks.forEach(link => {
            link.classList.remove('active');
            if (link.getAttribute('href') === `#${current}`) {
                link.classList.add('active');
            }
        });
    });
})();
