/* ============================================
   T & D Auto Repair — Custom Styles
   ============================================ */

/* ── Base ── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* ── Navigation ── */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-fixed.scrolled {
    background-color: rgba(255, 252, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
}

.nav-fixed:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.nav-fixed:not(.scrolled) .nav-link:hover {
    color: #FBBF6A;
    background-color: rgba(255, 255, 255, 0.1);
}

/* ── Mobile Menu ── */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

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

.mobile-menu.hidden {
    display: none;
}

/* ── Hero ── */
.hero {
    position: relative;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(74, 30, 18, 0.88) 0%,
        rgba(138, 62, 38, 0.82) 40%,
        rgba(192, 96, 58, 0.72) 100%
    );
}

.hero-content {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.geo-shape {
    position: absolute;
    opacity: 0.15;
}

.geo-circle-1 {
    width: 300px;
    height: 300px;
    border: 3px solid #FBBF6A;
    border-radius: 50%;
    top: 10%;
    right: 5%;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 150px;
    height: 150px;
    background: #FBBF6A;
    border-radius: 50%;
    bottom: 20%;
    right: 15%;
    animation: float 6s ease-in-out infinite reverse;
}

.geo-square-1 {
    width: 80px;
    height: 80px;
    background: #FDE4DA;
    top: 30%;
    right: 25%;
    transform: rotate(45deg);
    animation: spin 12s linear infinite;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 87px solid #FBBF6A;
    top: 60%;
    right: 8%;
    opacity: 0.1;
    animation: float 7s ease-in-out infinite;
}

.geo-dots {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, #FBBF6A 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    top: 15%;
    left: 5%;
    opacity: 0.2;
}

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

@keyframes spin {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

.hero-badge {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-ctas {
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-trust {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

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

/* ── Buttons ── */
.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #C0603A;
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(192, 96, 58, 0.4);
}

.cta-primary:hover {
    background: #A84E2E;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(192, 96, 58, 0.5);
}

.cta-primary .cta-arrow {
    transition: transform 0.3s ease;
}

.cta-primary:hover .cta-arrow {
    transform: translateX(4px);
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.cta-secondary .cta-arrow {
    transition: transform 0.3s ease;
}

.cta-secondary:hover .cta-arrow {
    transform: translateY(3px);
}

.cta-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

.cta-secondary-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-secondary-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* ── Section Headers ── */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FDF2EE;
    color: #C0603A;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-tag-light {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    color: #FDDDC0;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #4A1E12;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-title-light {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-desc {
    color: #7D4A31;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ── Services Grid ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    border: 1px solid #F3DCD0;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #C0603A, #F5A623);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(192, 96, 58, 0.12);
    border-color: transparent;
}

.service-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #fff;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon-wrap {
    transform: scale(1.1) rotate(-5deg);
}

.card-1 .service-icon-wrap { background: linear-gradient(135deg, #C0603A, #E07050); }
.card-2 .service-icon-wrap { background: linear-gradient(135deg, #F5A623, #F5B84A); }
.card-3 .service-icon-wrap { background: linear-gradient(135deg, #8A3E26, #B06040); }
.card-4 .service-icon-wrap { background: linear-gradient(135deg, #D4881A, #E8A040); }
.card-5 .service-icon-wrap { background: linear-gradient(135deg, #A84E2E, #C86848); }
.card-6 .service-icon-wrap { background: linear-gradient(135deg, #6E3020, #904830); }

.service-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #4A1E12;
    margin-bottom: 8px;
}

.service-desc {
    color: #7D4A31;
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ── Why Us ── */
.why-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.why-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FDDDC0;
}

.why-visual {
    position: relative;
}

.why-img-wrap {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.why-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.why-stat-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: #fff;
    border-radius: 16px;
    padding: 20px 28px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.why-stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #C0603A;
}

.why-stat-label {
    font-size: 0.8rem;
    color: #7D4A31;
    font-weight: 500;
}

/* ── Reviews ── */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.review-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    border: 1px solid #F3DCD0;
    transition: all 0.3s ease;
    position: relative;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(192, 96, 58, 0.1);
    border-color: transparent;
}

.review-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.review-text {
    color: #663C2B;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

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

.review-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C0603A, #F5A623);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.review-author-name {
    font-weight: 600;
    color: #4A1E12;
    font-size: 0.95rem;
}

.review-author-location {
    color: #B06A14;
    font-size: 0.8rem;
}

/* ── Contact Cards ── */
.contact-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #F3DCD0;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: #C0603A;
    box-shadow: 0 8px 32px rgba(192, 96, 58, 0.1);
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: #FDF2EE;
    color: #C0603A;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Form ── */
.input-field {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #F3DCD0;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: #4A1E12;
    background: #FFFCF5;
    transition: all 0.3s ease;
    outline: none;
}

.input-field:focus {
    border-color: #C0603A;
    box-shadow: 0 0 0 3px rgba(192, 96, 58, 0.1);
    background: #fff;
}

.input-field::placeholder {
    color: #B87A55;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #C0603A;
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'DM Sans', sans-serif;
}

.btn-submit:hover {
    background: #A84E2E;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(192, 96, 58, 0.3);
}

.btn-submit svg {
    transition: transform 0.3s ease;
}

.btn-submit:hover svg {
    transform: translate(2px, -2px);
}

.form-success {
    text-align: center;
    padding: 32px 16px;
    animation: fadeInUp 0.5s ease;
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-trust {
        flex-direction: column;
        gap: 8px;
    }

    .why-stat-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 16px;
        display: inline-block;
    }

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