/* ============================================
   Tuffy Auto Services Center — Stylesheet
   ============================================ */

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

:root {
    --terracotta: #B8542F;
    --terracotta-dark: #9A4424;
    --terracotta-light: #D47856;
    --sand: #F5E6D3;
    --sand-light: #FAF3EB;
    --sand-dark: #E8D5C0;
    --charcoal: #1A1A1A;
    --charcoal-light: #2D2D2D;
    --slate: #3D3D3D;
    --slate-light: #6B6B6B;
    --off-white: #FDFBF8;
    --white: #FFFFFF;
    --green-dark: #1B4332;
    --green-light: #2D6A4F;
    --shadow-sm: 0 1px 3px rgba(26, 26, 26, 0.08);
    --shadow-md: 0 4px 16px rgba(26, 26, 26, 0.10);
    --shadow-lg: 0 8px 32px rgba(26, 26, 26, 0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --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(--charcoal);
    background: var(--off-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--charcoal);
}

/* --- Section Tags --- */
.section-tag {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 12px;
    padding: 6px 14px;
    background: rgba(184, 84, 47, 0.08);
    border-radius: 100px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 16px;
    color: var(--charcoal);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--slate-light);
    max-width: 540px;
    line-height: 1.7;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

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

.btn--primary:hover {
    background: var(--terracotta-dark);
    border-color: var(--terracotta-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--ghost {
    background: transparent;
    color: var(--charcoal);
    border-color: var(--charcoal);
}

.btn--ghost:hover {
    background: var(--charcoal);
    color: var(--white);
    transform: translateY(-2px);
}

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

.btn--sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 251, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26, 26, 26, 0.06);
    transition: var(--transition);
}

.nav.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav__container {
    display: flex;
    align-items: center;
    height: 72px;
    gap: 32px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav__logo-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--charcoal);
}

.nav__logo-sub {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate-light);
    margin-top: -2px;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--terracotta);
    background: rgba(184, 84, 47, 0.06);
}

.nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    background: var(--terracotta);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    margin-left: 8px;
    transition: var(--transition);
}

.nav__cta:hover {
    background: var(--terracotta-dark);
    transform: translateY(-1px);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

.nav__toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: var(--transition);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
    padding: 120px 0 80px;
    background: var(--off-white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(184, 84, 47, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--terracotta);
    background: rgba(184, 84, 47, 0.08);
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}

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

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

.hero__headline {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--charcoal);
}

.hero__headline-accent {
    display: block;
    color: var(--terracotta);
    font-style: italic;
}

.hero__subheadline {
    font-size: 1.1rem;
    color: var(--slate);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

.hero__trust {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero__trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate);
}

.hero__trust-item svg {
    color: var(--terracotta);
    flex-shrink: 0;
}

/* Hero Visual */
.hero__visual {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    gap: 0;
}

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

.hero__image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 600/720;
}

.hero__image-accent {
    position: absolute;
    bottom: -30px;
    left: -40px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--off-white);
}

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

.hero__stats-card {
    position: absolute;
    top: 40px;
    right: -20px;
    background: var(--white);
    padding: 20px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    text-align: center;
    z-index: 2;
}

.hero__stats-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--terracotta);
    line-height: 1;
}

.hero__stats-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
}

/* --- Services Section --- */
.services {
    padding: 100px 0;
    background: var(--sand-light);
}

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

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

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

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    transition: var(--transition);
    border: 1px solid rgba(26, 26, 26, 0.05);
    display: flex;
    flex-direction: column;
}

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

.service-card__icon {
    width: 56px;
    height: 56px;
    background: rgba(184, 84, 47, 0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-card__icon {
    background: var(--terracotta);
}

.service-card:hover .service-card__icon svg {
    stroke: var(--white);
}

.service-card__title {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--charcoal);
}

.service-card__desc {
    font-size: 0.9rem;
    color: var(--slate-light);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 20px;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--terracotta);
    transition: var(--transition);
}

.service-card__link:hover {
    gap: 10px;
}

/* --- Why Us Section --- */
.why-us {
    padding: 100px 0;
    background: var(--off-white);
}

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

.why-us__image-stack {
    position: relative;
}

.why-us__image-stack img {
    width: 100%;
    height: 620px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.why-us__badge {
    position: absolute;
    bottom: -24px;
    right: -24px;
    background: var(--terracotta);
    color: var(--white);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-md);
}

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

.why-us__content .section-subtitle {
    margin-bottom: 40px;
}

.why-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.why-item__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: rgba(184, 84, 47, 0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-item__text {
    flex: 1;
}

.why-item__title {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.why-item__desc {
    font-size: 0.9rem;
    color: var(--slate-light);
    line-height: 1.6;
}

/* --- About Section --- */
.about {
    padding: 100px 0;
    background: var(--sand-light);
}

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

.about__content .section-title {
    margin-bottom: 24px;
}

.about__body {
    font-size: 1rem;
    color: var(--slate);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about__stats {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--sand-dark);
}

.about__stat {
    text-align: center;
}

.about__stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--terracotta);
    line-height: 1;
}

.about__stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 6px;
}

.about__stat-divider {
    width: 1px;
    height: 40px;
    background: var(--sand-dark);
}

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

.about__image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

/* --- Contact Section --- */
.contact {
    padding: 100px 0;
    background: var(--off-white);
}

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

.contact__info .section-title {
    margin-bottom: 16px;
}

.contact__desc {
    font-size: 1rem;
    color: var(--slate-light);
    line-height: 1.7;
    margin-bottom: 36px;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact__detail {
    display: flex;
    gap: 16px;
}

.contact__detail-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: rgba(184, 84, 47, 0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact__detail strong {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.contact__detail p,
.contact__detail a {
    font-size: 0.9rem;
    color: var(--slate-light);
    line-height: 1.6;
}

.contact__detail a:hover {
    color: var(--terracotta);
}

/* Contact Form */
.contact__form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(26, 26, 26, 0.05);
}

.contact__form-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--charcoal);
}

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

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--slate);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--charcoal);
    background: var(--sand-light);
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
}

.form-input::placeholder {
    color: var(--sand-dark);
}

.form-input:focus {
    border-color: var(--terracotta);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(184, 84, 47, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

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

.contact__success {
    text-align: center;
    padding: 40px 20px;
}

.contact__success-icon {
    width: 72px;
    height: 72px;
    background: rgba(27, 67, 50, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.contact__success-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--green-dark);
}

.contact__success p {
    font-size: 0.9rem;
    color: var(--slate-light);
    line-height: 1.6;
}

/* --- Map Section --- */
.map {
    position: relative;
}

.map iframe {
    display: block;
    width: 100%;
}

.map__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    pointer-events: none;
}

.map__card {
    background: var(--white);
    padding: 32px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 420px;
    pointer-events: all;
}

.map__card-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.map__card-address {
    font-size: 0.9rem;
    color: var(--slate-light);
    margin-bottom: 20px;
}

/* --- Footer --- */
.footer {
    background: var(--charcoal);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 0;
}

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

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer__logo-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
}

.footer__logo-sub {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-top: -2px;
}

.footer__tagline {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer__heading {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    margin-bottom: 20px;
}

.footer__link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    padding: 6px 0;
    transition: var(--transition);
}

.footer__link:hover {
    color: var(--sand);
}

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

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
}

.footer__bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* --- Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

    .hero__image-accent {
        left: -20px;
        bottom: -20px;
    }

    .hero__stats-card {
        right: -10px;
        top: 20px;
    }

    .why-us__grid,
    .about__inner {
        gap: 48px;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--off-white);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        border-bottom: 1px solid rgba(26, 26, 26, 0.08);
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }

    .nav__menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav__cta {
        margin-left: 0;
        justify-content: center;
        margin-top: 8px;
    }

    .nav__toggle {
        display: flex;
    }

    .hero {
        padding: 100px 0 60px;
    }

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

    .hero__visual {
        order: -1;
        max-width: 480px;
        margin: 0 auto;
    }

    .hero__image-accent {
        left: -10px;
        bottom: -16px;
    }

    .hero__stats-card {
        right: 0;
        top: 16px;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        justify-content: center;
    }

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

    .why-us__grid,
    .about__inner,
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .why-us__badge {
        right: 16px;
        bottom: -16px;
    }

    .why-us__image-stack img {
        height: 400px;
    }

    .about__image img {
        height: 320px;
    }

    .about__stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .contact__form-wrap {
        padding: 28px;
    }

    .map__card {
        padding: 24px;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 90px 0 48px;
    }

    .hero__headline {
        font-size: 2rem;
    }

    .hero__stats-card {
        position: relative;
        top: auto;
        right: auto;
        margin-top: 16px;
    }

    .hero__image-accent {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 12px;
    }

    .services,
    .why-us,
    .about,
    .contact {
        padding: 64px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }
}
