/* ============================================
   Panaderia Colima — Stylesheet
   Deep Navy + Warm Gold Palette
   ============================================ */

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

:root {
    --navy-950: #0a1628;
    --navy-900: #0f2140;
    --navy-800: #152e56;
    --navy-700: #1a3a6e;
    --navy-600: #1e4a8a;
    --gold-500: #B4841C;
    --gold-400: #c9a020;
    --gold-300: #dbb940;
    --gold-200: #e8d07a;
    --gold-100: #f5eabb;
    --neutral-50: #f8f9fa;
    --neutral-100: #f0f2f5;
    --neutral-200: #e2e6eb;
    --neutral-300: #c8cdd5;
    --neutral-600: #5a6270;
    --neutral-700: #3d4450;
    --neutral-800: #2a2f38;
    --white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.08);
    --shadow-md: 0 4px 16px rgba(10, 22, 40, 0.10);
    --shadow-lg: 0 8px 32px rgba(10, 22, 40, 0.12);
    --shadow-xl: 0 16px 48px rgba(10, 22, 40, 0.14);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--neutral-800);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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;
}

/* --- Typography --- */
.section-eyebrow {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 12px;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--navy-900);
    margin-bottom: 20px;
}

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

.btn--gold {
    background-color: var(--gold-500);
    color: var(--white);
    border-color: var(--gold-500);
}

.btn--gold:hover {
    background-color: var(--gold-400);
    border-color: var(--gold-400);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn--outline:hover {
    background-color: var(--white);
    color: var(--navy-900);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn--white {
    background-color: var(--white);
    color: var(--navy-900);
    border-color: var(--white);
}

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

.btn--full {
    width: 100%;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--neutral-200);
    transition: var(--transition);
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--navy-900);
}

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

.logo__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
}

.logo__text {
    line-height: 1.1;
}

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

.nav__link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neutral-700);
    transition: var(--transition);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold-500);
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--navy-900);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__cta {
    padding: 10px 20px;
    font-size: 0.8rem;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle__bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--navy-900);
    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 {
    margin-top: 72px;
    background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 50%, var(--navy-700) 100%);
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(180, 132, 28, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(180, 132, 28, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 80px 0;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-400);
    margin-bottom: 20px;
    padding: 8px 16px;
    background: rgba(180, 132, 28, 0.12);
    border: 1px solid rgba(180, 132, 28, 0.25);
    border-radius: 50px;
    width: auto;
}

.hero__headline {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 24px;
}

.hero__subheadline {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 36px;
    max-width: 500px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.hero__trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.hero__icon {
    width: 16px;
    height: 16px;
    color: var(--gold-400);
    flex-shrink: 0;
}

.hero__image-wrapper {
    position: relative;
}

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

.hero__image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero__accent {
    position: absolute;
    bottom: -30px;
    left: -40px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--white);
}

.hero__accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- About --- */
.about {
    padding: 100px 0;
    background-color: var(--white);
}

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

.about__image-group {
    position: relative;
}

.about__image-group img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about__badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--white);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.about__badge-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.85;
}

.about__badge-text {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
}

.about__content {
    max-width: 520px;
}

.about__text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--neutral-600);
    margin-bottom: 16px;
}

.about__features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.about__feature {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy-900);
}

.about__feature-icon {
    width: 22px;
    height: 22px;
    color: var(--gold-500);
    flex-shrink: 0;
}

/* --- Products --- */
.products {
    padding: 100px 0;
    background-color: var(--neutral-50);
}

.products__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.products__subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--neutral-600);
}

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

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--neutral-200);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-200);
}

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

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-card__body {
    padding: 24px;
}

.product-card__title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 8px;
}

.product-card__desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--neutral-600);
}

/* --- CTA Section --- */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(180, 132, 28, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

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

.cta-section__eyebrow {
    color: var(--gold-400);
}

.cta-section__heading {
    color: var(--white);
}

.cta-section__text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 40px;
}

.cta-section__details {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.cta-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
}

.cta-item__icon {
    width: 22px;
    height: 22px;
    color: var(--gold-400);
    flex-shrink: 0;
    margin-top: 2px;
}

.cta-item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 2px;
}

.cta-item span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}

.cta-item a {
    color: var(--gold-300);
    transition: var(--transition);
}

.cta-item a:hover {
    color: var(--gold-200);
    text-decoration: underline;
}

/* --- Location --- */
.location {
    padding: 100px 0;
    background-color: var(--white);
}

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

.location__text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--neutral-600);
    margin-bottom: 36px;
}

.location__hours {
    background: var(--neutral-50);
    border-radius: var(--radius-md);
    padding: 28px;
    border: 1px solid var(--neutral-200);
}

.location__hours-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold-200);
}

.location__hours-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.location__hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    padding: 6px 0;
}

.location__hours-row span:first-child {
    font-weight: 600;
    color: var(--neutral-800);
}

.location__hours-row span:last-child {
    color: var(--neutral-600);
}

.location__hours-note {
    font-size: 0.8rem;
    color: var(--neutral-600);
    margin-top: 12px;
    font-style: italic;
}

.location__map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-200);
}

.location__map iframe {
    width: 100%;
    height: 500px;
    display: block;
}

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

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

.contact__text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--neutral-600);
    margin-bottom: 32px;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact__info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--neutral-700);
}

.contact__info-icon {
    width: 20px;
    height: 20px;
    color: var(--gold-500);
    flex-shrink: 0;
}

.contact__info-item a {
    color: var(--navy-700);
    font-weight: 600;
    transition: var(--transition);
}

.contact__info-item a:hover {
    color: var(--gold-500);
}

.contact__form-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
}

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

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy-900);
    margin-bottom: 6px;
    letter-spacing: 0.03em;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--neutral-800);
    background: var(--neutral-50);
    border: 1.5px solid var(--neutral-200);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--gold-500);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(180, 132, 28, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--neutral-300);
}

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

.form-success {
    margin-top: 16px;
    padding: 14px 18px;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: var(--radius-sm);
    color: #2e7d32;
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- Footer --- */
.footer {
    background-color: var(--navy-950);
    padding: 60px 0 0;
}

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

.footer__tagline {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 16px;
    max-width: 300px;
}

.footer__title {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-400);
    margin-bottom: 16px;
}

.footer__nav nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__nav a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    transition: var(--transition);
}

.footer__nav a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer__contact address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer__contact p,
.footer__contact a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    transition: var(--transition);
}

.footer__contact a:hover {
    color: var(--gold-400);
}

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

.footer__bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero__grid {
        gap: 40px;
    }
    
    .hero__accent {
        left: -20px;
        bottom: -20px;
    }
}

@media (max-width: 900px) {
    .hero__grid,
    .about__grid,
    .location__grid,
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero__image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .products__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        gap: 0;
        border-bottom: 1px solid var(--neutral-200);
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav__link {
        padding: 14px 0;
        border-bottom: 1px solid var(--neutral-100);
    }
    
    .nav__cta {
        border-bottom: none;
        text-align: center;
        margin-top: 8px;
    }
    
    .hero {
        min-height: auto;
        padding: 40px 0 60px;
    }
    
    .hero__grid {
        padding: 40px 0;
    }
    
    .hero__actions {
        flex-direction: column;
    }
    
    .hero__actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .hero__trust {
        gap: 16px;
    }
    
    .hero__accent {
        display: none;
    }
    
    .products__grid {
        grid-template-columns: 1fr;
    }
    
    .cta-section__details {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .location__map iframe {
        height: 350px;
    }
    
    .contact__form-wrapper {
        padding: 24px;
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero__headline {
        font-size: 1.75rem;
    }
    
    .section-heading {
        font-size: 1.5rem;
    }
    
    .about__badge {
        right: 0;
        bottom: -16px;
    }
}
