/* ============================================
   La Conchita Panaderia y Pasteleria
   Classic & Elegant — Charcoal + Coral
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --color-charcoal-950: #0f1117;
    --color-charcoal-900: #1a1d27;
    --color-charcoal-800: #252836;
    --color-charcoal-700: #333747;
    --color-charcoal-600: #4a4f65;
    --color-charcoal-500: #6b7089;
    --color-charcoal-400: #9397ab;
    --color-charcoal-300: #b8bccd;
    --color-charcoal-200: #d4d7e3;
    --color-charcoal-100: #eceef5;
    --color-charcoal-50:  #f5f6fa;

    --color-coral-700: #b5443a;
    --color-coral-600: #c94e44;
    --color-coral-500: #d4614f;
    --color-coral-400: #db7566;
    --color-coral-300: #e29489;
    --color-coral-200: #ebbbb3;
    --color-coral-100: #f5dcd7;
    --color-coral-50:  #fdf0ee;

    --color-cream: #faf8f6;
    --color-warm-white: #f7f4f1;
    --color-warm-gray: #e8e4df;

    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Lato', 'Segoe UI', system-ui, sans-serif;

    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 3px rgba(15, 17, 23, 0.08);
    --shadow-md: 0 4px 16px rgba(15, 17, 23, 0.10);
    --shadow-lg: 0 8px 32px rgba(15, 17, 23, 0.12);
    --shadow-xl: 0 16px 48px rgba(15, 17, 23, 0.14);

    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

/* --- 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-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-charcoal-800);
    background-color: var(--color-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;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-charcoal-900);
}

.text-accent {
    color: var(--color-coral-500);
}

.text-light {
    color: var(--color-charcoal-100);
}

.text-coral-light {
    color: var(--color-coral-200);
}

/* --- Section Labels --- */
.section-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-coral-500);
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    margin-bottom: var(--space-lg);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-charcoal-500);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-coral-500);
    color: #fff;
    box-shadow: 0 4px 16px rgba(212, 97, 79, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-coral-600);
    box-shadow: 0 6px 24px rgba(212, 97, 79, 0.4);
    transform: translateY(-1px);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--color-charcoal-100);
    border: 1.5px solid rgba(236, 238, 245, 0.4);
}

.btn-outline-light:hover {
    background-color: rgba(236, 238, 245, 0.1);
    border-color: rgba(236, 238, 245, 0.7);
}

.btn-coral {
    background-color: var(--color-coral-500);
    color: #fff;
    box-shadow: 0 4px 16px rgba(212, 97, 79, 0.3);
}

.btn-coral:hover {
    background-color: var(--color-coral-600);
    box-shadow: 0 6px 24px rgba(212, 97, 79, 0.4);
    transform: translateY(-1px);
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(15, 17, 23, 0.0);
    transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.navbar.scrolled {
    background-color: rgba(15, 17, 23, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(236, 238, 245, 0.08);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-charcoal-100);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
}

.nav-logo-icon {
    color: var(--color-coral-400);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-charcoal-300);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--color-coral-400);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--color-charcoal-100);
}

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

.nav-cta {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-coral-300);
    border: 1px solid var(--color-coral-500);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.nav-cta:hover {
    background-color: var(--color-coral-500);
    color: #fff;
}

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

.nav-toggle-bar {
    width: 22px;
    height: 2px;
    background-color: var(--color-charcoal-100);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-bar: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(15, 17, 23, 0.82) 0%,
        rgba(26, 29, 39, 0.70) 50%,
        rgba(15, 17, 23, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    padding: var(--space-4xl) var(--space-xl);
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-coral-300);
    margin-bottom: var(--space-xl);
    padding: 0.5rem 1.25rem;
    border: 1px solid rgba(226, 148, 137, 0.3);
    border-radius: 100px;
    background-color: rgba(226, 148, 137, 0.08);
}

.hero-badge svg {
    color: var(--color-coral-400);
}

.hero-title {
    font-size: clamp(2.75rem, 6vw, 5rem);
    font-weight: 500;
    color: var(--color-charcoal-100);
    line-height: 1.08;
    margin-bottom: var(--space-xl);
}

.hero-accent {
    color: var(--color-coral-400);
    font-style: italic;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--color-charcoal-300);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-3xl);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.hero-stat-number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-coral-300);
}

.hero-stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-charcoal-400);
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(236, 238, 245, 0.15);
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: var(--color-charcoal-400);
    animation: heroScrollBounce 2s ease-in-out infinite;
}

@keyframes heroScrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* --- About --- */
.about {
    padding: var(--space-4xl) 0;
    background-color: var(--color-cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-images {
    position: relative;
}

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

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

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--color-cream);
}

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

.about-img-badge {
    position: absolute;
    bottom: var(--space-md);
    left: var(--space-md);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background-color: var(--color-coral-500);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 100px;
}

.about-content {
    padding: var(--space-xl) 0;
}

.about-text {
    font-size: 1.05rem;
    color: var(--color-charcoal-600);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.about-text:last-child {
    margin-bottom: 0;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.about-feature {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.about-feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-coral-50);
    border: 1px solid var(--color-coral-100);
    border-radius: var(--radius-md);
    color: var(--color-coral-500);
}

.about-feature h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.about-feature p {
    font-size: 0.9rem;
    color: var(--color-charcoal-500);
    line-height: 1.6;
}

/* --- Products --- */
.products {
    padding: var(--space-4xl) 0;
    background-color: var(--color-charcoal-900);
}

.products .section-label {
    color: var(--color-coral-300);
}

.products .section-title {
    color: var(--color-charcoal-100);
}

.products .section-subtitle {
    color: var(--color-charcoal-400);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
}

.product-card {
    background-color: var(--color-charcoal-800);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(236, 238, 245, 0.06);
    transition: all var(--transition-base);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(212, 97, 79, 0.2);
}

.product-img {
    height: 220px;
    overflow: hidden;
}

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

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-body {
    padding: var(--space-xl);
}

.product-name {
    font-size: 1.35rem;
    margin-bottom: var(--space-sm);
    color: var(--color-charcoal-100);
}

.product-desc {
    font-size: 0.9rem;
    color: var(--color-charcoal-400);
    line-height: 1.7;
}

/* --- Gallery --- */
.gallery {
    padding: var(--space-4xl) 0;
    background-color: var(--color-warm-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    gap: var(--space-md);
    margin-top: var(--space-3xl);
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
}

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

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

.gallery-item-wide {
    grid-column: span 7;
}

.gallery-item:not(.gallery-item-wide) {
    grid-column: span 5;
}

/* --- Visit --- */
.visit {
    padding: var(--space-4xl) 0;
    background-color: var(--color-cream);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: stretch;
}

.visit-info {
    padding: var(--space-xl) 0;
}

.visit-text {
    font-size: 1.05rem;
    color: var(--color-charcoal-600);
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.visit-detail {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.visit-detail-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-coral-50);
    border: 1px solid var(--color-coral-100);
    border-radius: var(--radius-md);
    color: var(--color-coral-500);
}

.visit-detail h4 {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.visit-detail p {
    font-size: 0.9rem;
    color: var(--color-charcoal-500);
    line-height: 1.6;
}

.visit-detail a {
    color: var(--color-coral-500);
    transition: color var(--transition-fast);
}

.visit-detail a:hover {
    color: var(--color-coral-600);
    text-decoration: underline;
}

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 450px;
}

/* --- CTA --- */
.cta {
    position: relative;
    padding: var(--space-4xl) 0;
    overflow: hidden;
}

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

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

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 17, 23, 0.88) 0%,
        rgba(26, 29, 39, 0.80) 100%
    );
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
}

.cta-text {
    font-size: 1.1rem;
    color: var(--color-charcoal-300);
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
    background-color: var(--color-charcoal-950);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-2xl);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-charcoal-100);
    margin-bottom: var(--space-md);
}

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

.footer-tagline {
    font-size: 0.9rem;
    color: var(--color-charcoal-500);
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-charcoal-300);
    margin-bottom: var(--space-lg);
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--color-charcoal-500);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-coral-400);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 0.9rem;
    color: var(--color-charcoal-500);
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--color-coral-500);
}

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

.footer-contact a:hover {
    color: var(--color-coral-300);
}

.footer-bottom {
    border-top: 1px solid rgba(236, 238, 245, 0.07);
    padding-top: var(--space-xl);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--color-charcoal-600);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-grid {
        gap: var(--space-2xl);
    }

    .about-img-secondary {
        right: -20px;
        bottom: -20px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item-wide {
        grid-column: span 12;
    }

    .gallery-item:not(.gallery-item-wide) {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background-color: rgba(15, 17, 23, 0.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-slow), padding var(--transition-slow);
    }

    .nav-menu.open {
        max-height: 400px;
        padding: var(--space-xl) 0;
    }

    .nav-link {
        padding: var(--space-md) var(--space-xl);
        width: 100%;
        text-align: center;
    }

    .nav-link::after {
        display: none;
    }

    .nav-cta {
        margin-top: var(--space-md);
    }

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

    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }

    .hero-stat-divider {
        width: 40px;
        height: 1px;
    }

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

    .about-images {
        max-width: 500px;
        margin: 0 auto;
    }

    .about-img-secondary {
        right: -10px;
        bottom: -10px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

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

    .gallery-item-wide,
    .gallery-item:not(.gallery-item-wide) {
        grid-column: span 1;
    }

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

    .visit-map {
        min-height: 300px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
}

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

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
