/* ============================================
   Top Gear Transmissions — Custom Styles
   Classic & Elegant | Teal + Slate Palette
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    --teal-dark: #0d4f4f;
    --teal-primary: #1a6b6b;
    --teal-medium: #238282;
    --teal-light: #e8f4f4;
    --teal-pale: #f2f8f8;
    
    --slate-dark: #1e2d35;
    --slate-primary: #3d5a6e;
    --slate-medium: #6b8a9e;
    --slate-light: #c4d4de;
    --slate-pale: #eef3f6;
    
    --cream: #f8f7f4;
    --white: #ffffff;
    --black: #0a0a0a;
    
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(13, 79, 79, 0.08);
    --shadow-md: 0 4px 16px rgba(13, 79, 79, 0.10);
    --shadow-lg: 0 8px 32px rgba(13, 79, 79, 0.12);
    --shadow-xl: 0 16px 48px rgba(13, 79, 79, 0.14);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--slate-dark);
    background-color: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--teal-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--teal-medium);
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.25;
    color: var(--slate-dark);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--teal-dark);
    border-color: var(--white);
}

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

.btn-outline-light:hover {
    background: var(--white);
    color: var(--teal-dark);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 16px 32px;
}

/* ---------- Section Headers ---------- */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--teal-primary);
    margin-bottom: 12px;
}

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

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

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

.section-subtitle {
    font-size: 1.125rem;
    color: var(--slate-medium);
    max-width: 600px;
    line-height: 1.7;
}

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

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

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    transition: color var(--transition);
}

.navbar.scrolled .logo {
    color: var(--teal-dark);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--teal-primary);
    border-radius: 50%;
    color: var(--white);
    flex-shrink: 0;
}

.navbar.scrolled .logo-icon {
    background: var(--teal-primary);
}

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

.nav-links a {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--white);
}

.navbar.scrolled .nav-links a {
    color: var(--slate-primary);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--teal-primary);
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--white) !important;
    background: var(--teal-primary);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700 !important;
}

.nav-phone:hover {
    background: var(--teal-dark) !important;
    color: var(--white) !important;
}

.navbar.scrolled .nav-phone {
    color: var(--white) !important;
}

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

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

.navbar.scrolled .mobile-menu-btn span {
    background: var(--slate-dark);
}

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

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

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

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.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(13, 79, 79, 0.88) 0%,
        rgba(30, 45, 53, 0.82) 50%,
        rgba(13, 79, 79, 0.75) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 0 80px;
    max-width: 820px;
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--slate-light);
    margin-bottom: 20px;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 24px;
}

.hero-headline em {
    font-style: italic;
    color: var(--slate-light);
}

.hero-subheadline {
    font-size: 1.1875rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

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

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9375rem;
    font-weight: 600;
}

.trust-item svg {
    color: var(--slate-light);
    flex-shrink: 0;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--white);
    transition: all var(--transition);
    animation: scrollBounce 2s ease-in-out infinite;
}

.hero-scroll a:hover {
    background: var(--white);
    color: var(--teal-dark);
    border-color: var(--white);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ========== SERVICES ========== */
.services {
    padding: 120px 0;
    background: var(--cream);
}

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

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(196, 212, 222, 0.4);
    transition: all var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--teal-light);
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-light);
    border-radius: var(--radius-md);
    color: var(--teal-primary);
    margin-bottom: 24px;
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    background: var(--teal-primary);
    color: var(--white);
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    margin-bottom: 12px;
    color: var(--slate-dark);
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--slate-medium);
    line-height: 1.75;
}

/* ========== ABOUT ========== */
.about {
    padding: 120px 0;
    background: var(--white);
}

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

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-image-accent {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 200px;
    height: 200px;
    background: var(--teal-light);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-content .section-eyebrow {
    text-align: left;
}

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

.about-text {
    font-size: 1.0625rem;
    color: var(--slate-medium);
    line-height: 1.85;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin: 40px 0;
    padding: 32px 0;
    border-top: 1px solid var(--slate-pale);
    border-bottom: 1px solid var(--slate-pale);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--teal-primary);
}

.stat-label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate-medium);
}

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

/* ========== WHY US ========== */
.why-us {
    padding: 120px 0;
    background: var(--slate-dark);
    position: relative;
    overflow: hidden;
}

.why-us::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26, 107, 107, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

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

.why-card {
    padding: 40px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(26, 107, 107, 0.4);
    transform: translateY(-4px);
}

.why-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--teal-primary);
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.7;
}

.why-card h3 {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    color: var(--white);
    margin-bottom: 12px;
}

.why-card p {
    font-size: 0.9375rem;
    color: var(--slate-light);
    line-height: 1.75;
}

/* ========== CTA BANNER ========== */
.cta-banner {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.cta-banner-bg {
    position: absolute;
    inset: 0;
}

.cta-banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 79, 79, 0.92) 0%, rgba(30, 45, 53, 0.88) 100%);
}

.cta-banner .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-banner h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    color: var(--white);
    margin-bottom: 16px;
}

.cta-banner p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== CONTACT ========== */
.contact {
    padding: 120px 0;
    background: var(--cream);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

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

.contact-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-light);
    border-radius: var(--radius-md);
    color: var(--teal-primary);
    flex-shrink: 0;
}

.contact-item h4 {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    margin-bottom: 4px;
    color: var(--slate-dark);
}

.contact-item p {
    font-size: 0.9375rem;
    color: var(--slate-medium);
    line-height: 1.65;
}

.contact-item a {
    color: var(--slate-medium);
}

.contact-item a:hover {
    color: var(--teal-primary);
}

.contact-map {
    margin-top: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(196, 212, 222, 0.3);
}

.contact-form-wrapper h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 28px;
    color: var(--slate-dark);
}

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

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate-primary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--slate-dark);
    background: var(--slate-pale);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--teal-primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(26, 107, 107, 0.1);
}

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

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

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    color: var(--teal-primary);
}

.form-success svg {
    margin-bottom: 16px;
}

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

.form-success p {
    color: var(--slate-medium);
    font-size: 0.9375rem;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--slate-dark);
    padding: 80px 0 0;
}

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

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9375rem;
    color: var(--slate-light);
    line-height: 1.75;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9375rem;
    color: var(--slate-light);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--teal-medium);
}

.footer-contact p {
    font-size: 0.9375rem;
    color: var(--slate-light);
    line-height: 1.85;
}

.footer-contact a {
    color: var(--slate-light);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--slate-medium);
}

.footer-bottom a {
    color: var(--slate-medium);
}

.footer-bottom a:hover {
    color: var(--teal-medium);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        gap: 48px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--slate-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        transition: right var(--transition);
        box-shadow: var(--shadow-xl);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        color: rgba(255, 255, 255, 0.85) !important;
        font-size: 1rem;
    }
    
    .nav-links a:hover {
        color: var(--white) !important;
    }
    
    .nav-phone {
        color: var(--white) !important;
    }
    
    .hero-headline {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        justify-content: center;
    }
    
    .hero-trust {
        gap: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-image img {
        height: 360px;
    }
    
    .about-image-accent {
        display: none;
    }
    
    .about-stats {
        gap: 24px;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-form-wrapper {
        padding: 32px 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .services,
    .about,
    .why-us,
    .contact {
        padding: 80px 0;
    }
    
    .service-card {
        padding: 28px 24px;
    }
    
    .why-card {
        padding: 28px;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
}

/* ---------- Animations ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }
