/* ===== Template 13 — Boulangerie ===== */

/* --- Caveat font (script/cursive) --- */
@font-face {
    font-family: 'Caveat';
    src: url('../../fonts/Caveat-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* --- Custom properties --- */
:root {
    --brand-cream: #FBF7F1;
    --brand-charcoal: #292524;
    --brand-stone: #78716C;
    --brand-stone-light: #A8A29E;
    --brand-cream-dark: #F0E6D6;
    --brand-wheat: #D4A853;
    --brand-orange-light: #E8793A;
    --brand-orange-dark: #B8540E;
}

/* --- Base font reset for template 13 --- */
#primary {
    font-family: 'baseTypo', 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #292524;
}

/* --- Missing Tailwind sizes (not in Aries config) --- */
.tw-text-6xl { font-size: 3.75rem; line-height: 1; }
@media (min-width: 640px) { .sm\:tw-text-6xl { font-size: 3.75rem; line-height: 1; } }
@media (min-width: 1024px) { .lg\:tw-text-6xl { font-size: 3.75rem; line-height: 1; } }
.tw-text-xs { font-size: 0.75rem; line-height: 1rem; }
.tw-text-lg { font-size: 1.125rem; line-height: 1.75rem; }

.font-script { font-family: 'Caveat', cursive; }
.font-display-13 { font-family: 'titleFont', 'DM Serif Display', serif; }
.font-body-13 { font-family: 'baseTypo', 'Inter', sans-serif; }
.bg-cream { background-color: var(--brand-cream); }
.bg-charcoal { background-color: var(--brand-charcoal); }
.text-stone { color: var(--brand-stone); }
.text-stone-light { color: var(--brand-stone-light); }

/* --- Hero Slider --- */
.hero-slide-13 {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.hero-slide-13.active { opacity: 1; }

.hero-overlay-13::after {
    content: '';
    position: absolute; inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(28,25,23,0.92) 0%,
        rgba(28,25,23,0.5) 35%,
        rgba(28,25,23,0.15) 65%,
        rgba(28,25,23,0.25) 100%
    );
}

/* --- Marquee --- */
@keyframes marquee-13 {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee-track-13 {
    animation: marquee-13 30s linear infinite;
}
.marquee-track-13:hover {
    animation-play-state: paused;
}

/* --- Parallax Strip --- */
.parallax-strip-13 {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}
@media (max-width: 768px) {
    .parallax-strip-13 { background-attachment: scroll; }
}

/* --- Product Cards --- */
.product-card-13 .product-card-img-13 {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card-13:hover .product-card-img-13 {
    transform: scale(1.08);
}
.product-card-13::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(28,25,23,0.85) 0%, rgba(28,25,23,0.3) 50%, transparent 100%);
    z-index: 1;
    transition: background 0.3s ease;
    border-radius: inherit;
}
.product-card-13:hover::after {
    background: linear-gradient(to top, rgba(212,99,26,0.85) 0%, rgba(28,25,23,0.3) 50%, transparent 100%);
}

/* --- Value Items --- */
.value-item-13 {
    position: relative;
}
.value-item-13::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 40px; height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
}

/* --- Stars --- */
.star-filled-13 { color: var(--color-primary); }
.star-empty-13 { color: #57534E; }

/* --- Navbar scroll --- */
.navbar-13-scrolled {
    background: #1C1917 !important;
    box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

/* --- Mobile menu --- */
.mobile-menu-13 {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
.mobile-menu-13.open {
    transform: translateX(0);
}

/* --- Scroll Reveal --- */
.reveal-13 {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-13.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Focus --- */
.template-13 *:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    .marquee-track-13 { animation: none; }
    .reveal-13 { opacity: 1; transform: none; }
    .hero-slide-13 { transition-duration: 0.01ms !important; }
}

/* --- Page Hero (sub-pages) --- */
.page-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.page-hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
}
.page-hero-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(
        to top,
        rgba(28,25,23,0.92) 0%,
        rgba(28,25,23,0.5) 40%,
        rgba(28,25,23,0.3) 100%
    );
}

/* --- Bread Items --- */
.bread-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bread-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* --- Viennoiserie Cards --- */
.viennoiserie-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    cursor: pointer;
}
.viennoiserie-card img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.viennoiserie-card:hover img {
    transform: scale(1.08);
}

/* --- Sandwich Cards --- */
.sandwich-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.sandwich-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* --- Season Cards --- */
.season-card {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.season-card:hover {
    border-color: var(--color-primary);
    background: rgba(255,255,255,0.05);
}

/* --- Step Numbers --- */
.step-number {
    width: 3.5rem; height: 3.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    font-family: 'titleFont', 'DM Serif Display', serif;
    flex-shrink: 0;
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(212, 99, 26, 0.4);
}

/* --- Stars (unversioned for sub-pages) --- */
.star-filled { color: var(--color-primary); }
.star-empty { color: #57534E; }

/* --- FAQ (unversioned for sub-pages) --- */
.faq-item {
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 0.75rem;
    overflow: hidden;
    background: #fff;
}
.faq-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    text-align: left;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: #1C1917;
    border: none;
    background: none;
}
.faq-answer {
    padding: 0 1.25rem 1.25rem;
    color: rgba(41,37,36,0.75);
    font-size: 14px;
    line-height: 1.7;
}
.faq-chevron {
    transition: transform 0.3s ease;
}

/* --- Parallax (unversioned for sub-pages) --- */
.parallax-strip {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}
@media (max-width: 768px) {
    .parallax-strip { background-attachment: scroll; }
}

/* --- Contact form inputs --- */
#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form input[type="tel"],
#contact-form select,
#contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #F0E6D6;
    background: #fff;
    font-size: 0.875rem;
    color: #1C1917;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
    line-height: 1.5;
}
#contact-form input[type="text"]:focus,
#contact-form input[type="email"]:focus,
#contact-form input[type="tel"]:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    border-color: var(--color-primary);
}
#contact-form input[type="text"]::placeholder,
#contact-form input[type="email"]::placeholder,
#contact-form input[type="tel"]::placeholder,
#contact-form textarea::placeholder {
    color: #A8A29E;
}

/* --- Scrollbar --- */
.template-13::-webkit-scrollbar { width: 6px; }
.template-13::-webkit-scrollbar-track { background: #1C1917; }
.template-13::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: 3px; }
