/* ========================================
   Peninsula Automotive — Custom Styles
======================================== */

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ========================================
   Navbar
======================================== */
.navbar {
    background: rgba(247, 240, 248, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(107, 58, 110, 0.08);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(107, 58, 110, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c4871e;
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu */
.mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

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

.mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.25rem;
}

.mobile-nav-link {
    border-bottom: 1px solid rgba(107, 58, 110, 0.08);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* ========================================
   Buttons
======================================== */
.btn-primary {
    background: linear-gradient(135deg, #6b3a6e 0%, #562d57 100%);
    color: #ffffff;
    border: none;
    border-radius: 1rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(107, 58, 110, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 58, 110, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #ffffff;
    color: #6b3a6e;
    border: 2px solid rgba(107, 58, 110, 0.2);
    border-radius: 1rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #6b3a6e;
    background: rgba(107, 58, 110, 0.05);
    transform: translateY(-2px);
}

.btn-amber {
    background: linear-gradient(135deg, #f5c77e 0%, #e8a832 100%);
    color: #2e172d;
    border: none;
    border-radius: 1rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 199, 126, 0.3);
}

.btn-amber:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 199, 126, 0.45);
}

/* ========================================
   Section Elements
======================================== */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #c4871e;
    background: linear-gradient(135deg, rgba(245, 199, 126, 0.15) 0%, rgba(245, 199, 126, 0.05) 100%);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    border: 1px solid rgba(196, 135, 30, 0.2);
}

.section-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 400;
    color: #2e172d;
    line-height: 1.15;
}

.section-desc {
    font-size: 1.1rem;
    color: #7d4f7f;
    line-height: 1.7;
}

/* ========================================
   Hero
======================================== */
.hero {
    background: linear-gradient(160deg, #f7f0f8 0%, #ffffff 40%, #fff8ec 100%);
    min-height: 100vh;
}

.hero-blob {
    pointer-events: none;
}

.blob-1 {
    background: radial-gradient(circle, rgba(107, 58, 110, 0.3) 0%, transparent 70%);
}

.blob-2 {
    background: radial-gradient(circle, rgba(245, 199, 126, 0.4) 0%, transparent 70%);
}

.blob-3 {
    background: radial-gradient(circle, rgba(156, 110, 158, 0.2) 0%, transparent 70%);
}

.scroll-line {
    animation: scrollLine 1.5s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { top: -12px; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* Hero animations */
.hero-text {
    animation: heroFadeIn 0.8s ease-out both;
}

.hero-image {
    animation: heroSlideIn 0.8s ease-out 0.2s both;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroSlideIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ========================================
   Service Cards
======================================== */
.service-card {
    perspective: 1000px;
}

.service-card .card-inner {
    position: relative;
    overflow: hidden;
}

.service-card .card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f5c77e, #e8a832);
    border-radius: 2rem 2rem 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .card-inner::before {
    opacity: 1;
}

/* ========================================
   Feature Cards
======================================== */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(107, 58, 110, 0.1);
}

/* ========================================
   Testimonials
======================================== */
.testimonial-card {
    transition: transform 0.3s ease, background 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
}

/* ========================================
   Contact
======================================== */
.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.contact-info-item:hover {
    transform: translateX(4px);
}

.contact-info-item:hover .w-12 {
    background: #f7f0f8;
}

/* ========================================
   Form Inputs
======================================== */
.input-field {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid rgba(107, 58, 110, 0.15);
    border-radius: 0.75rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.95rem;
    color: #2e172d;
    background: #ffffff;
    transition: all 0.2s ease;
    outline: none;
}

.input-field::placeholder {
    color: #b896bc;
}

.input-field:hover {
    border-color: rgba(107, 58, 110, 0.3);
}

.input-field:focus {
    border-color: #6b3a6e;
    box-shadow: 0 0 0 4px rgba(107, 58, 110, 0.08);
}

.success-message {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   Scroll Reveal (progressive enhancement)
======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding-top: 6rem;
        padding-bottom: 4rem;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        h-[320px];
    }

    .hero-text {
        text-align: center;
    }

    .hero-text h1 {
        font-size: clamp(2.25rem, 8vw, 3.5rem);
    }

    .hero-text .flex.items-center.gap-4 {
        justify-content: center;
    }

    .hero-text > div:last-child {
        justify-content: center;
    }

    .about-image {
        margin-bottom: 2rem;
    }

    .lg\:sticky {
        position: static !important;
    }
}

@media (max-width: 640px) {
    .hero-text .flex.items-center.gap-8 {
        justify-content: center;
        gap: 6px;
    }

    .hero-text .flex.items-center.gap-8 > div {
        text-align: center;
    }
}
