/* ========================================
   Belen's Bikes Miami — Custom Styles
   Palette: Burgundy + Blush
======================================== */

/* --- CSS Custom Properties --- */
:root {
    --burgundy-50: #fdf2f4;
    --burgundy-100: #fce7eb;
    --burgundy-200: #fad0d9;
    --burgundy-300: #f5a8b8;
    --burgundy-400: #ed748e;
    --burgundy-500: #d44a66;
    --burgundy-600: #b8304a;
    --burgundy-700: #9a253a;
    --burgundy-800: #7e1f31;
    --burgundy-900: #661a29;
    --burgundy-950: #3a0e16;

    --blush-50: #fff8f7;
    --blush-100: #ffefec;
    --blush-200: #ffd9d1;
    --blush-300: #ffb8a8;
    --blush-400: #ff8f75;
    --blush-500: #ff6b4a;
    --blush-600: #e84f2e;
    --blush-700: #c43a1e;
    --blush-800: #a12f19;
    --blush-900: #832916;

    --cream: #fffbf9;
    --warm-gray-50: #faf8f7;
    --warm-gray-100: #f3efed;
    --warm-gray-200: #e8e0dc;
    --warm-gray-300: #d4c8c2;
    --warm-gray-400: #b8a8a0;
    --warm-gray-500: #918078;
    --warm-gray-600: #706058;
    --warm-gray-700: #564a44;
    --warm-gray-800: #3d342e;
    --warm-gray-900: #261f1b;

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(62, 14, 22, 0.06), 0 1px 2px rgba(62, 14, 22, 0.04);
    --shadow-md: 0 4px 14px rgba(62, 14, 22, 0.08), 0 2px 6px rgba(62, 14, 22, 0.04);
    --shadow-lg: 0 12px 36px rgba(62, 14, 22, 0.10), 0 4px 12px rgba(62, 14, 22, 0.06);
    --shadow-xl: 0 24px 52px rgba(62, 14, 22, 0.12), 0 8px 18px rgba(62, 14, 22, 0.06);

    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--warm-gray-800);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

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

ul {
    list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.15;
    color: var(--warm-gray-900);
}

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

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 251, 249, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--warm-gray-100);
    transition: box-shadow var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--burgundy-700);
}

.logo-icon {
    width: 36px;
    height: 36px;
    color: var(--burgundy-600);
}

/* Nav */
.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-list a {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--warm-gray-700);
    border-radius: var(--radius-full);
    transition: background var(--transition-fast), color var(--transition-fast);
}

.nav-list a:hover {
    background: var(--burgundy-50);
    color: var(--burgundy-700);
}

/* Nav Toggle (Mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: var(--radius-sm);
}

.nav-toggle:hover {
    background: var(--warm-gray-100);
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--warm-gray-700);
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.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: translateY(-7px) rotate(-45deg);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 26px;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 34px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: var(--burgundy-600);
    color: #fff;
    border-color: var(--burgundy-600);
    box-shadow: 0 4px 14px rgba(184, 48, 74, 0.3);
}

.btn-primary:hover {
    background: var(--burgundy-700);
    border-color: var(--burgundy-700);
    box-shadow: 0 6px 20px rgba(184, 48, 74, 0.4);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    transform: translateY(-2px);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    overflow: hidden;
    background: var(--cream);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 70%;
    height: 120%;
    background: radial-gradient(ellipse at center, var(--burgundy-50) 0%, transparent 70%);
    opacity: 0.7;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, var(--cream), transparent);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero-content {
    max-width: 540px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 18px;
    background: var(--burgundy-50);
    color: var(--burgundy-700);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    border: 1px solid var(--burgundy-100);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    color: var(--warm-gray-900);
    margin-bottom: 24px;
    line-height: 1.05;
}

.hero-title em {
    font-style: normal;
    color: var(--burgundy-600);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--warm-gray-600);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 460px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 48px;
}

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

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--warm-gray-600);
}

.trust-item svg {
    width: 18px;
    height: 18px;
    color: var(--burgundy-500);
    flex-shrink: 0;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.hero-image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--blush-200);
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0.6;
}

/* --- Section Shared --- */
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--burgundy-500);
    margin-bottom: 12px;
}

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

.section-subtitle {
    font-size: 1.05rem;
    color: var(--warm-gray-500);
    max-width: 520px;
    line-height: 1.7;
}

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

.section-header .section-subtitle {
    margin: 0 auto;
}

/* --- Services --- */
.services {
    padding: 100px 0;
    background: var(--cream);
}

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

.service-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    border: 1px solid var(--warm-gray-100);
    transition: all var(--transition-base);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--burgundy-100);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--burgundy-50);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    color: var(--burgundy-600);
}

.service-card h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--warm-gray-900);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--warm-gray-500);
    line-height: 1.65;
}

/* --- About --- */
.about {
    padding: 100px 0;
    background: var(--warm-gray-50);
}

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

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-main img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.about-img-secondary {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 200px;
    height: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 6px solid var(--warm-gray-50);
    box-shadow: var(--shadow-md);
}

.about-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-accent {
    position: absolute;
    top: -16px;
    left: -16px;
    width: 100px;
    height: 100px;
    background: var(--blush-200);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.6;
}

.about-content .section-tag {
    margin-bottom: 12px;
}

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

.about-content > p {
    color: var(--warm-gray-600);
    margin-bottom: 16px;
    line-height: 1.75;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin: 36px 0;
    padding: 28px 0;
    border-top: 1px solid var(--warm-gray-200);
    border-bottom: 1px solid var(--warm-gray-200);
}

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

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--burgundy-600);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--warm-gray-500);
    font-weight: 500;
}

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

/* --- Gallery --- */
.gallery {
    padding: 100px 0;
    background: var(--cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.03);
}

/* --- CTA --- */
.cta {
    padding: 100px 0;
    background: var(--burgundy-800);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.04) 0%, transparent 70%);
    pointer-events: none;
}

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

.cta .section-tag {
    color: var(--burgundy-300);
}

.cta .section-title {
    color: #fff;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 1.05rem;
    color: var(--burgundy-200);
    line-height: 1.7;
    margin-bottom: 40px;
}

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

.cta-actions .btn-outline-light svg,
.cta-actions .btn-primary svg {
    width: 18px;
    height: 18px;
}

/* --- Contact --- */
.contact {
    padding: 100px 0;
    background: var(--cream);
}

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

.contact-info .section-title {
    margin-bottom: 16px;
}

.contact-desc {
    color: var(--warm-gray-500);
    margin-bottom: 36px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 36px;
}

.contact-item {
    display: flex;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--burgundy-50);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    color: var(--burgundy-600);
}

.contact-item strong {
    display: block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--warm-gray-400);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.95rem;
    color: var(--warm-gray-700);
    line-height: 1.6;
}

.contact-item a {
    color: var(--burgundy-600);
    transition: color var(--transition-fast);
}

.contact-item a:hover {
    color: var(--burgundy-800);
    text-decoration: underline;
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Contact Form */
.contact-form-wrapper {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 40px;
    border: 1px solid var(--warm-gray-100);
    box-shadow: var(--shadow-md);
}

.contact-form-wrapper h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 28px;
    color: var(--warm-gray-900);
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--warm-gray-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--warm-gray-800);
    background: var(--warm-gray-50);
    border: 1.5px solid var(--warm-gray-200);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--warm-gray-400);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--burgundy-400);
    box-shadow: 0 0 0 3px var(--burgundy-50);
    background: #fff;
}

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

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px;
    text-align: center;
    background: var(--burgundy-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--burgundy-100);
}

.form-success svg {
    width: 48px;
    height: 48px;
    color: var(--burgundy-500);
}

.form-success p {
    font-size: 1rem;
    color: var(--burgundy-800);
    font-weight: 500;
}

/* --- Footer --- */
.footer {
    background: var(--warm-gray-900);
    color: var(--warm-gray-400);
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 56px;
}

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

.footer-brand .logo-icon {
    color: var(--burgundy-400);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--warm-gray-400);
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--warm-gray-300);
    margin-bottom: 16px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--warm-gray-400);
    transition: color var(--transition-fast);
}

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

.footer-contact p {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-contact a {
    color: var(--warm-gray-400);
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--warm-gray-500);
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

/* Fallback: content is visible without JS */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero .container {
        gap: 40px;
    }

    .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) {
    .nav-toggle {
        display: flex;
    }

    .nav-list {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 251, 249, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: stretch;
        padding: 16px 24px;
        gap: 4px;
        border-bottom: 1px solid var(--warm-gray-100);
        box-shadow: var(--shadow-lg);
        transform: translateY(-110%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        z-index: 999;
    }

    .nav-list.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list a {
        padding: 12px 16px;
        border-radius: var(--radius-md);
    }

    .nav-list .btn {
        align-self: center;
        margin-top: 8px;
    }

    /* Hero mobile */
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-image img {
        height: 400px;
    }

    .hero-image-accent {
        display: none;
    }

    /* Services */
    .services {
        padding: 72px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    /* About */
    .about {
        padding: 72px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .about-img-secondary {
        width: 160px;
        height: 160px;
        right: -10px;
        bottom: -20px;
    }

    .about-stats {
        gap: 24px;
    }

    /* Gallery */
    .gallery {
        padding: 72px 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 280px;
    }

    /* CTA */
    .cta {
        padding: 72px 0;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    /* Contact */
    .contact {
        padding: 72px 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-form-wrapper {
        padding: 28px;
    }

    /* Footer */
    .footer {
        padding: 56px 0 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-lg {
        padding: 14px 24px;
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
}
