/* ========================================
   1058 Auto and Towing — Custom Styles
   Palette: Terracotta + Sand
   ======================================== */

/* --- CSS Variables --- */
:root {
    --terracotta: #C0573A;
    --terracotta-dark: #9E4429;
    --terracotta-light: #D4755A;
    --sand: #F5E6D3;
    --sand-light: #FBF5ED;
    --sand-dark: #E8D5BF;
    --navy: #2D5F7C;
    --navy-dark: #1E4258;
    --amber: #D4944B;
    --brown: #7B4A2E;
    --charcoal: #2A2A2A;
    --text: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--sand-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; color: var(--charcoal); }
.skip-link {
    position: absolute; top: -100%; left: 0;
    background: var(--terracotta); color: var(--white);
    padding: 8px 16px; z-index: 1000; font-weight: 600;
}
.skip-link:focus { top: 0; }

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

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 50px;
    font-family: var(--font-heading); font-weight: 700; font-size: 1rem;
    cursor: pointer; border: 2px solid transparent;
    transition: var(--transition); white-space: nowrap;
}
.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: 0 8px 24px rgba(192,87,58,0.35); }
.btn-secondary {
    background: transparent; color: var(--white);
    border-color: rgba(255,255,255,0.6);
}
.btn-secondary:hover { background: var(--white); color: var(--terracotta); border-color: var(--white); transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--terracotta); border-color: var(--white); }
.btn-white:hover { background: var(--sand); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: var(--white); color: var(--terracotta); transform: translateY(-2px); }
.btn-small { padding: 10px 22px; font-size: 0.9rem; }
.btn-lg { padding: 18px 36px; font-size: 1.1rem; }
.btn-full { width: 100%; justify-content: center; }

/* --- Section Tags --- */
.section-tag {
    display: inline-block;
    font-family: var(--font-heading); font-weight: 700;
    font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--terracotta); margin-bottom: 12px;
    background: rgba(192,87,58,0.1); padding: 6px 14px; border-radius: 20px;
}
.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px; color: var(--charcoal);
}
.section-desc {
    font-size: 1.1rem; color: var(--text-light);
    max-width: 560px; line-height: 1.7;
}

/* --- Header --- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(245,230,211,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(192,87,58,0.1);
    transition: var(--transition);
}
.site-header.scrolled { background: rgba(245,230,211,0.97); box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 76px;
}
.logo {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem;
    color: var(--charcoal);
}
.logo span { color: var(--terracotta); }
.nav-menu ul { display: flex; align-items: center; gap: 8px; }
.nav-menu a {
    padding: 8px 16px; border-radius: 8px;
    font-weight: 500; font-size: 0.95rem;
    transition: var(--transition);
}
.nav-menu a:hover { background: rgba(192,87,58,0.08); color: var(--terracotta); }
.nav-cta {
    background: var(--terracotta) !important; color: var(--white) !important;
    border-radius: 50px !important; font-weight: 700 !important;
}
.nav-cta:hover { background: var(--terracotta-dark) !important; transform: translateY(-1px); }

/* Mobile menu button */
.mobile-menu-btn {
    display: none; background: none; border: none; cursor: pointer;
    width: 40px; height: 40px; position: relative;
    flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.mobile-menu-btn .bar {
    display: block; width: 24px; height: 2.5px;
    background: var(--charcoal); border-radius: 2px;
    transition: var(--transition);
}
.mobile-menu-btn[aria-expanded="true"] .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.mobile-menu-btn[aria-expanded="true"] .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero --- */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center;
    overflow: hidden; background: var(--sand-dark);
    padding-top: 76px;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(42,42,42,0.78) 0%, rgba(123,74,46,0.65) 50%, rgba(192,87,58,0.55) 100%);
}
.hero .container { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 40px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
    padding: 8px 18px; border-radius: 50px;
    font-size: 0.85rem; font-weight: 600; color: var(--white);
    margin-bottom: 24px; border: 1px solid rgba(255,255,255,0.2);
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800; color: var(--white);
    line-height: 1.1; margin-bottom: 24px;
}
.hero-title .accent { color: var(--sand); }
.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: rgba(255,255,255,0.85); max-width: 580px;
    margin-bottom: 36px; line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 24px; }
.trust-item {
    display: flex; align-items: center; gap: 8px;
    color: rgba(255,255,255,0.9); font-weight: 500; font-size: 0.95rem;
}
.trust-item svg { color: var(--amber); }

/* Geometric shapes */
.geo { position: absolute; z-index: 1; pointer-events: none; }
.geo-circle {
    width: 400px; height: 400px; border-radius: 50%;
    background: rgba(192,87,58,0.25);
    top: -100px; right: -100px;
    filter: blur(60px);
}
.geo-square {
    width: 200px; height: 200px;
    background: rgba(45,95,124,0.2);
    bottom: 15%; right: 5%;
    transform: rotate(15deg);
    border-radius: var(--radius);
}
.geo-triangle {
    width: 0; height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 170px solid rgba(212,148,75,0.2);
    top: 25%; right: 10%;
}
.geo-dots {
    width: 120px; height: 120px;
    background-image: radial-gradient(circle, rgba(255,255,255,0.3) 2px, transparent 2px);
    background-size: 16px 16px;
    bottom: 20%; left: 5%;
}
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; z-index: 3; }
.hero-wave svg { display: block; width: 100%; height: 80px; }

/* --- Services --- */
.services {
    padding: 100px 0;
    background: var(--sand);
    position: relative;
}
.services::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 4px; background: linear-gradient(90deg, var(--terracotta), var(--amber), var(--navy));
}
.section-header { text-align: center; margin-bottom: 60px; }
.section-header .section-desc { margin: 0 auto; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 4px; background: var(--terracotta);
    transform: scaleX(0); transform-origin: left;
    transition: var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 64px; height: 64px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.service-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.service-card p { color: var(--text-light); line-height: 1.7; font-size: 0.95rem; }

/* --- About --- */
.about { padding: 100px 0; background: var(--sand-light); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: center;
}
.about-images { position: relative; }
.about-img-main {
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-img-main img { width: 100%; height: 450px; object-fit: cover; }
.about-img-secondary {
    position: absolute; bottom: -30px; right: -30px;
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-lg); border: 4px solid var(--white);
}
.about-img-secondary img { width: 250px; height: 180px; object-fit: cover; }
.about-badge {
    position: absolute; top: -20px; left: -20px;
    background: var(--terracotta); color: var(--white);
    padding: 20px 24px; border-radius: var(--radius);
    display: flex; flex-direction: column; align-items: center;
    box-shadow: 0 8px 32px rgba(192,87,58,0.4);
}
.about-badge .badge-number {
    font-family: var(--font-heading); font-size: 2.2rem;
    font-weight: 800; line-height: 1;
}
.about-badge .badge-text { font-size: 0.8rem; opacity: 0.9; text-align: center; margin-top: 4px; }
.about-content .section-tag { margin-bottom: 12px; }
.about-text {
    font-size: 1.05rem; color: var(--text-light);
    line-height: 1.8; margin-bottom: 16px;
}
.about-stats {
    display: flex; gap: 32px; margin-top: 36px;
    padding-top: 36px; border-top: 1px solid var(--sand-dark);
}
.stat { text-align: center; }
.stat-number {
    display: block; font-family: var(--font-heading);
    font-size: 1.8rem; font-weight: 800; color: var(--terracotta);
}
.stat-label { font-size: 0.85rem; color: var(--text-light); }

/* --- Why Us --- */
.why-us { padding: 100px 0; background: var(--sand); }
.why-us-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: start;
}
.why-us-content .section-desc { margin-bottom: 36px; }
.why-list { display: flex; flex-direction: column; gap: 24px; }
.why-list li {
    display: flex; gap: 20px; align-items: flex-start;
}
.why-icon {
    flex-shrink: 0; width: 48px; height: 48px;
    background: var(--terracotta); border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
}
.why-list strong { display: block; font-size: 1.05rem; margin-bottom: 4px; color: var(--charcoal); }
.why-list span { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }
.why-us-visual { position: relative; }
.visual-block { border-radius: var(--radius-lg); overflow: hidden; }
.visual-block-1 img { width: 100%; height: 500px; object-fit: cover; }
.visual-block-2 {
    margin-top: 20px;
    background: var(--terracotta);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.cta-mini-label {
    display: block; font-size: 0.9rem; color: rgba(255,255,255,0.8);
    margin-bottom: 8px;
}

/* --- CTA Banner --- */
.cta-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--terracotta-dark) 100%);
    position: relative; overflow: hidden;
}
.cta-geo { position: absolute; pointer-events: none; }
.cta-geo-1 {
    width: 300px; height: 300px; border-radius: 50%;
    background: rgba(255,255,255,0.04);
    top: -80px; left: -80px;
}
.cta-geo-2 {
    width: 200px; height: 200px; border-radius: var(--radius);
    background: rgba(255,255,255,0.04);
    bottom: -60px; right: 10%; transform: rotate(20deg);
}
.cta-inner {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: space-between;
    gap: 40px; flex-wrap: wrap;
}
.cta-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--white); margin-bottom: 12px;
}
.cta-desc { font-size: 1.1rem; color: rgba(255,255,255,0.8); max-width: 480px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* --- Contact --- */
.contact { padding: 100px 0; background: var(--sand-light); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: start;
}
.contact-details { margin: 32px 0; display: flex; flex-direction: column; gap: 24px; }
.contact-details li { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon {
    flex-shrink: 0; width: 48px; height: 48px;
    background: var(--sand); border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    color: var(--terracotta);
}
.contact-details strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-light); margin-bottom: 2px; }
.contact-details a, .contact-details span { font-size: 1rem; color: var(--charcoal); }
.contact-details a:hover { color: var(--terracotta); }
.map-placeholder {
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow); margin-top: 8px; position: relative;
}
.map-placeholder img { width: 100%; height: 220px; object-fit: cover; }
.map-link {
    position: absolute; bottom: 16px; right: 16px;
    background: var(--white); color: var(--charcoal);
    padding: 10px 18px; border-radius: 50px;
    font-weight: 600; font-size: 0.85rem;
    display: inline-flex; align-items: center; gap: 6px;
    box-shadow: var(--shadow); transition: var(--transition);
}
.map-link:hover { background: var(--terracotta); color: var(--white); }

/* Form */
.form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.05);
}
.form-card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.form-card > p { color: var(--text-light); margin-bottom: 28px; font-size: 0.95rem; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-weight: 600; font-size: 0.9rem;
    margin-bottom: 6px; color: var(--charcoal);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 12px 16px;
    border: 2px solid var(--sand-dark);
    border-radius: var(--radius);
    font-family: var(--font-body); font-size: 1rem;
    color: var(--charcoal); background: var(--sand-light);
    transition: var(--transition); outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--terracotta);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(192,87,58,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.form-success {
    text-align: center; padding: 40px 20px;
}
.success-icon { margin-bottom: 16px; }
.form-success h4 { font-size: 1.4rem; margin-bottom: 8px; color: var(--charcoal); }
.form-success p { color: var(--text-light); }

/* --- Footer --- */
.site-footer {
    background: var(--charcoal); color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px; padding-bottom: 40px;
}
.footer-brand .logo { color: var(--white); margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 300px; }
.footer-links h4, .footer-contact h4 {
    color: var(--white); font-size: 1rem; margin-bottom: 16px;
}
.footer-links ul, .footer-contact ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--terracotta-light); }
.footer-contact li {
    display: flex; gap: 10px; align-items: flex-start;
    font-size: 0.9rem;
}
.footer-contact svg { flex-shrink: 0; margin-top: 2px; opacity: 0.6; }
.footer-contact a:hover { color: var(--terracotta-light); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px; font-size: 0.85rem;
}

/* --- Animations --- */
.fade-up {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* --- Responsive --- */
@media (max-width: 968px) {
    .about-grid,
    .why-us-layout,
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-img-secondary { right: 10px; bottom: -20px; }
    .about-badge { left: 10px; top: -15px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .visual-block-1 img { height: 350px; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
    .nav-menu {
        position: fixed; top: 76px; left: 0; right: 0;
        background: rgba(245,230,211,0.98); backdrop-filter: blur(12px);
        padding: 20px 24px;
        transform: translateY(-120%); opacity: 0;
        transition: var(--transition);
        border-bottom: 1px solid rgba(192,87,58,0.1);
    }
    .nav-menu.open { transform: translateY(0); opacity: 1; }
    .nav-menu ul { flex-direction: column; gap: 4px; }
    .nav-menu a { padding: 12px 16px; width: 100%; }
    .hero-title { font-size: clamp(2rem, 10vw, 3rem); }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { justify-content: center; }
    .hero-trust { gap: 16px; }
    .cta-inner { flex-direction: column; text-align: center; }
    .cta-actions { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .form-card { padding: 28px 20px; }
    .about-img-main img { height: 300px; }
    .visual-block-1 img { height: 280px; }
    .visual-block-2 { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .services, .about, .why-us, .contact { padding: 70px 0; }
    .about-stats { flex-direction: column; gap: 20px; }
    .about-img-secondary { display: none; }
}
