/* ============================================
   Otten Auto Works — Custom Styles
   Palette: Midnight Blue (#0a2540) + Mint (#98d4c8)
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --midnight: #0a2540;
    --midnight-light: #123a5e;
    --midnight-dark: #061a2e;
    --mint: #98d4c8;
    --mint-dark: #7bbfad;
    --mint-light: #b8e6db;
    --mint-pale: #e8f5f1;
    --slate: #64748b;
    --slate-light: #94a3b8;
    --slate-dark: #334155;
    --white: #ffffff;
    --off-white: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(10,37,64,0.08);
    --shadow-md: 0 4px 20px rgba(10,37,64,0.10);
    --shadow-lg: 0 10px 40px rgba(10,37,64,0.14);
    --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(--slate-dark);
    background: var(--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 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--midnight);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius);
    z-index: 1000;
    font-weight: 600;
}
.skip-link:focus {
    top: 16px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn:active {
    transform: translateY(0);
}
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

.btn-mint {
    background: var(--mint);
    color: var(--midnight);
    border-color: var(--mint);
}
.btn-mint:hover {
    background: var(--mint-dark);
    border-color: var(--mint-dark);
    color: var(--midnight);
}

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

/* ============================================
   SECTION HELPERS
   ============================================ */
.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mint-dark);
    background: var(--mint-pale);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}
.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--midnight);
    line-height: 1.2;
    margin-bottom: 16px;
}
.section-title-light {
    color: var(--white);
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--slate);
    max-width: 600px;
    line-height: 1.7;
}
.section-subtitle-light {
    color: rgba(255,255,255,0.75);
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header .section-tag { margin-bottom: 16px; }
.section-header .section-subtitle { margin: 0 auto; }
.mt-2 { margin-top: 16px; }

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 37, 64, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(152,212,200,0.1);
    transition: var(--transition);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
}
.logo-icon {
    color: var(--mint);
}
.logo-text {
    letter-spacing: -0.01em;
}
.logo-light { color: var(--white); }

/* Nav */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-menu a {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
}
.nav-menu a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.08);
}

/* Nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.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: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    background: var(--midnight);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(152,212,200,0.08) 0%, transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(152,212,200,0.05) 0%, transparent 40%);
    pointer-events: none;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(152,212,200,0.12);
    border: 1px solid rgba(152,212,200,0.25);
    color: var(--mint);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}
.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 520px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}
.hero-trust {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}
.trust-item svg {
    color: var(--mint);
    flex-shrink: 0;
}

/* Hero visual */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-circle {
    position: relative;
    width: 380px;
    height: 380px;
}
.hero-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid transparent;
}
.hero-ring-1 {
    border-color: rgba(152,212,200,0.15);
    animation: spin-slow 30s linear infinite;
}
.hero-ring-2 {
    inset: 30px;
    border-color: rgba(152,212,200,0.1);
    animation: spin-slow 20s linear infinite reverse;
}
.hero-ring-3 {
    inset: 60px;
    border-color: rgba(152,212,200,0.08);
    animation: spin-slow 15s linear infinite;
}
.hero-illustration {
    position: absolute;
    inset: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-illustration svg {
    width: 100%;
    height: auto;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}
.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    background: var(--off-white);
    padding: 100px 0;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 28px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}
.service-card:hover {
    border-color: var(--mint);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--mint-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--midnight);
    margin-bottom: 20px;
    transition: var(--transition);
}
.service-card:hover .service-icon {
    background: var(--midnight);
    color: var(--mint);
}
.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--midnight);
    margin-bottom: 10px;
}
.service-card p {
    font-size: 0.92rem;
    color: var(--slate);
    line-height: 1.65;
}

/* ============================================
   WHY US
   ============================================ */
.why-us {
    background: var(--midnight);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.why-us::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 80% 20%, rgba(152,212,200,0.06) 0%, transparent 50%);
    pointer-events: none;
}
.why-us-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.why-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 32px 0 40px;
}
.why-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.why-check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(152,212,200,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mint);
    margin-top: 2px;
}
.why-list span:not(.why-check) {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    line-height: 1.6;
}
.why-list strong {
    color: var(--white);
}

/* Why stats */
.why-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.stat-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(152,212,200,0.15);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: var(--transition);
}
.stat-card:hover {
    background: rgba(152,212,200,0.08);
    border-color: rgba(152,212,200,0.3);
}
.stat-number {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--mint);
    margin-bottom: 6px;
}
.stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    background: var(--white);
    padding: 100px 0;
}
.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-image-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.about-image-wrap img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}
.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--mint);
    border-radius: var(--radius);
    z-index: -1;
}
.about-content .section-tag { margin-bottom: 16px; }
.about-content .section-title { margin-bottom: 20px; }
.about-content p {
    color: var(--slate);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 16px;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    background: var(--off-white);
    padding: 100px 0;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 36px 0;
}
.contact-details li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(152,212,200,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--midnight);
}
.contact-details strong {
    display: block;
    color: var(--midnight);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}
.contact-details span,
.contact-details a {
    color: var(--slate);
    font-size: 0.95rem;
    line-height: 1.5;
}
.contact-details a:hover {
    color: var(--mint-dark);
}
.contact-map {
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 8px;
}

/* Contact form */
.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}
.contact-form-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--midnight);
    margin-bottom: 28px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-dark);
    margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--slate-dark);
    background: var(--off-white);
    transition: var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--mint-dark);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(152,212,200,0.2);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-300);
}
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}
.form-note {
    font-size: 0.82rem;
    color: var(--slate-light);
    margin-top: 12px;
    text-align: center;
}

/* Form success */
.form-success {
    text-align: center;
    padding: 40px 20px;
}
.form-success svg {
    color: var(--mint-dark);
    margin-bottom: 16px;
}
.form-success h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    color: var(--midnight);
    margin-bottom: 8px;
}
.form-success p {
    color: var(--slate);
    font-size: 0.95rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--midnight-dark);
    color: rgba(255,255,255,0.6);
    padding: 60px 0 0;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p {
    margin-top: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 280px;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--mint);
}
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-contact p {
    font-size: 0.9rem;
}
.footer-contact a {
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}
.footer-contact a:hover {
    color: var(--mint);
}
.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.35);
}

/* ============================================
   SCROLL REVEAL (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-trust { justify-content: center; }
    .hero-visual { display: none; }
    .why-us-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .why-us-content { text-align: center; }
    .why-list { align-items: center; }
    .about-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-image-wrap img { height: 320px; }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(10,37,64,0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        border-bottom: 1px solid rgba(152,212,200,0.1);
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .nav-menu a {
        display: block;
        padding: 12px 16px;
        width: 100%;
    }
    .nav-menu li:last-child {
        margin-top: 8px;
    }
    .hero { min-height: auto; padding: 140px 0 100px; }
    .hero-title { font-size: clamp(1.8rem, 7vw, 2.6rem); }
    .services { padding: 80px 0; }
    .services-grid { grid-template-columns: 1fr; }
    .why-us { padding: 80px 0; }
    .why-stats { grid-template-columns: 1fr 1fr; }
    .about { padding: 80px 0; }
    .contact { padding: 80px 0; }
    .contact-form-wrap { padding: 28px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero { padding: 120px 0 80px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-trust { flex-direction: column; align-items: center; gap: 12px; }
    .stat-card { padding: 20px 16px; }
    .stat-number { font-size: 1.6rem; }
}
