/* ============================================
   Texas Tire Service — Custom Styles
   Palette: Midnight Blue (#0a2540) + Mint (#34d399)
   Fonts: Playfair Display (headings) + Inter (body)
============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #1a1a2e;
    background-color: #ffffff;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ── Focus ────────────────────────────────── */
:focus-visible {
    outline: 2px solid #34d399;
    outline-offset: 2px;
    border-radius: 2px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #0a2540;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0 0 4px 4px;
    z-index: 1000;
    font-weight: 500;
}

.skip-link:focus {
    top: 0;
}

/* ── Container ────────────────────────────── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Typography ───────────────────────────── */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    color: #0a2540;
}

/* ── Header ───────────────────────────────── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(10, 37, 64, 0.08);
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(10, 37, 64, 0.08);
}

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

/* ── Logo ─────────────────────────────────── */
.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: #0a2540;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.logo--light .logo-text {
    color: #ffffff;
}

/* ── Nav ──────────────────────────────────── */
.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.4rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #0a2540;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.nav-link:hover {
    background: rgba(10, 37, 64, 0.06);
    color: #0a2540;
}

.nav-phone {
    background: #0a2540;
    color: #ffffff !important;
    border-radius: 6px;
    margin-left: 0.5rem;
    font-weight: 600;
}

.nav-phone:hover {
    background: #133a5c;
}

/* ── Mobile Toggle ────────────────────────── */
.mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-toggle:hover {
    background: rgba(10, 37, 64, 0.06);
}

.hamburger {
    display: block;
    width: 20px;
    height: 2px;
    background: #0a2540;
    position: relative;
    transition: background 0.2s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #0a2540;
    transition: transform 0.3s ease;
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.mobile-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.mobile-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* ── Mobile Menu ──────────────────────────── */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    z-index: 99;
    padding: 1.5rem;
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-link {
    display: block;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #0a2540;
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-link:hover {
    background: rgba(10, 37, 64, 0.06);
}

.mobile-phone {
    margin-top: 0.75rem;
    background: #0a2540;
    color: #ffffff !important;
    text-align: center;
    font-weight: 600;
    border-radius: 8px;
}

/* ── Hero ─────────────────────────────────── */
.hero {
    position: relative;
    background: #0a2540;
    padding: 8rem 0 5rem;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.6;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(52, 211, 153, 0.12);
    color: #34d399;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.45rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.hero-title {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    color: #ffffff;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-title br {
    display: none;
}

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

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
}

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

.hero-img-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.hero-img-wrapper img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
}

.hero-stat-card {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 800;
    color: #34d399;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: #0a2540;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* ── Buttons ──────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: #34d399;
    color: #0a2540;
}

.btn-primary:hover {
    background: #2bc48a;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(52, 211, 153, 0.35);
}

.btn-outline-light {
    background: transparent;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

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

/* ── Section Shared ───────────────────────── */
.section-header {
    margin-bottom: 3.5rem;
}

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

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #34d399;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    color: #0a2540;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-title--light {
    color: #ffffff;
}

.section-desc {
    font-size: 1.1rem;
    color: #555;
    max-width: 560px;
    line-height: 1.7;
}

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

/* ── Services ─────────────────────────────── */
.services {
    padding: 6rem 0;
    background: #ffffff;
}

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

.service-card {
    background: #f8fafb;
    border: 1px solid rgba(10, 37, 64, 0.06);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    background: #ffffff;
    border-color: rgba(52, 211, 153, 0.3);
    box-shadow: 0 8px 30px rgba(10, 37, 64, 0.08);
    transform: translateY(-4px);
}

.service-icon {
    width: 52px;
    height: 52px;
    background: rgba(52, 211, 153, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a2540;
    margin-bottom: 1.25rem;
    transition: background 0.3s;
}

.service-card:hover .service-icon {
    background: #34d399;
    color: #0a2540;
}

.service-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0a2540;
    margin-bottom: 0.5rem;
}

.service-desc {
    font-size: 0.925rem;
    color: #555;
    line-height: 1.65;
}

/* ── Why Us ───────────────────────────────── */
.why-us {
    padding: 6rem 0;
    background: #0a2540;
    position: relative;
    overflow: hidden;
}

.why-us::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-image {
    border-radius: 16px;
    overflow: hidden;
}

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

.why-intro {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.why-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.why-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.why-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(52, 211, 153, 0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-item-title {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.why-item-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* ── Testimonials ─────────────────────────── */
.testimonials {
    padding: 6rem 0;
    background: #f8fafb;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid rgba(10, 37, 64, 0.06);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 8px 30px rgba(10, 37, 64, 0.08);
    transform: translateY(-2px);
}

.testimonial-stars {
    display: flex;
    gap: 0.2rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #e8f5ef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar svg {
    width: 28px;
    height: 28px;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #0a2540;
}

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

/* ── CTA Banner ───────────────────────────── */
.cta-banner {
    padding: 5rem 0;
    background: #0a2540;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

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

.cta-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ── Contact ──────────────────────────────── */
.contact {
    padding: 6rem 0;
    background: #f8fafb;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-intro {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: rgba(52, 211, 153, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 0.2rem;
}

.contact-value {
    display: block;
    font-size: 0.95rem;
    color: #0a2540;
    font-weight: 500;
    line-height: 1.6;
}

.contact-link {
    color: #0a2540;
    transition: color 0.2s;
}

.contact-link:hover {
    color: #34d399;
}

/* ── Contact Form ─────────────────────────── */
.contact-form-wrapper {
    background: #ffffff;
    border: 1px solid rgba(10, 37, 64, 0.06);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(10, 37, 64, 0.04);
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #0a2540;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0a2540;
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    color: #1a1a2e;
    background: #f8fafb;
    transition: border-color 0.2s, background 0.2s;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #34d399;
    background: #ffffff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

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

.form-note {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.75rem;
}

.form-success {
    display: none;
    align-items: center;
    gap: 0.75rem;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    color: #0a2540;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-success.visible {
    display: flex;
}

/* ── Footer ───────────────────────────────── */
.footer {
    background: #061a2c;
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    margin-top: 1rem;
    max-width: 280px;
}

.footer-heading {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #34d399;
    margin-bottom: 1rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.footer-links a:hover {
    color: #ffffff;
}

.footer-address {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.8;
    font-style: normal;
}

.footer-link {
    color: #34d399;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1.5rem 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .hero-image {
        max-width: 500px;
    }
    
    .hero-img-wrapper img {
        height: 400px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .why-image {
        max-width: 500px;
    }
    
    .why-image img {
        height: 400px;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero {
        padding: 7rem 0 4rem;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-title br {
        display: block;
    }
    
    .hero-desc {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        justify-content: center;
    }
    
    .hero-trust {
        gap: 1rem;
    }
    
    .hero-stat-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        display: inline-block;
    }
    
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

/* ── Reduced Motion ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
