/*
Theme Name: Ideas Bake
Theme URI: https://ideasbake.iedabarros.com
Author: Ideas Bake
Description: Tema oficial Ideas Bake – Homemade Bakery. Artisan & personalized cakes in Brussels.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: ideasbake
*/

/* ============================================================
   FONTS
   Place font files in /assets/fonts/:
     - Southland.woff2 (script principal)
     - TheSeasons-Reg.woff2, TheSeasons-It.woff2 (serif)
   ============================================================ */

@font-face {
    font-family: 'Southland';
    src: url('assets/fonts/Southland.woff2') format('woff2'),
         url('assets/fonts/Southland.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'The Seasons';
    src: url('assets/fonts/TheSeasons-Reg.woff2') format('woff2'),
         url('assets/fonts/TheSeasons-Reg.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'The Seasons';
    src: url('assets/fonts/TheSeasons-It.woff2') format('woff2'),
         url('assets/fonts/TheSeasons-It.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* ============================================================
   VARIABLES
   ============================================================ */

:root {
    --white:         #FFFFFF;
    --blush-light:   #EFD9D1;
    --blush:         #DDB7AB;
    --terracotta:    #B26854;
    --sage:          #999B84;
    --olive:         #6B6D47;
    --bg:            #FDFAF8;
    --text:          #1C1008;
    --text-muted:    #6B5547;

    --font-script:   'Southland', 'Pinyon Script', cursive;
    --font-serif:    'The Seasons', 'Cormorant Garamond', Georgia, serif;
    --font-body:     'Open Sans', sans-serif;

    --max-w:         1200px;
    --max-w-narrow:  800px;
    --radius:        3px;
    --transition:    0.3s ease;

    --header-h:      80px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

.script { font-family: var(--font-script); font-size: 1.4em; line-height: 1.1; }

.label-serif {
    font-family: var(--font-serif);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-muted);
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */

.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow {
    max-width: var(--max-w-narrow);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 80px 0; }
.section--sm { padding: 56px 0; }
.section--lg { padding: 120px 0; }

.section--blush { background-color: var(--blush-light); }
.section--white { background-color: var(--white); }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 14px 36px;
    border: 1.5px solid currentColor;
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--terracotta);
    border-color: var(--terracotta);
    color: var(--white);
}
.btn-primary:hover {
    background-color: #9a5744;
    border-color: #9a5744;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--text);
    color: var(--text);
}
.btn-outline:hover {
    background-color: var(--text);
    color: var(--white);
}

.btn-outline--white {
    border-color: var(--white);
    color: var(--white);
}
.btn-outline--white:hover {
    background-color: var(--white);
    color: var(--text);
}

/* ============================================================
   HEADER & NAV
   ============================================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    background-color: rgba(253, 250, 248, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--blush-light);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(28, 16, 8, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.site-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
    text-decoration: none;
}

.site-logo img {
    height: 52px;
    width: auto;
}

.logo-text {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--text);
    line-height: 1;
}

.logo-sub {
    font-family: var(--font-serif);
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Navigation */
.site-nav .nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.site-nav .nav-menu a {
    font-family: var(--font-serif);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text);
    position: relative;
    padding-bottom: 2px;
    transition: color var(--transition);
}

.site-nav .nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--terracotta);
    transition: width var(--transition);
}

.site-nav .nav-menu a:hover,
.site-nav .nav-menu .current-menu-item a {
    color: var(--terracotta);
}

.site-nav .nav-menu a:hover::after,
.site-nav .nav-menu .current-menu-item a::after {
    width: 100%;
}

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

.nav-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background-color: var(--text);
    transition: transform var(--transition), opacity var(--transition);
    transform-origin: center;
}

.nav-toggle.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   PAGE OFFSET (fixed header)
   ============================================================ */

.page-content { padding-top: var(--header-h); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
    position: relative;
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--blush-light);
    /* To add a background image, set it here or via WordPress customizer:
       background-image: url('your-hero-image.jpg');
       background-size: cover;
       background-position: center;
    */
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(239,217,209,0.9) 0%, rgba(221,183,171,0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    padding: 60px 24px;
    margin: 0 auto;
    text-align: center;
}

.hero-label {
    font-family: var(--font-serif);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-script);
    font-size: clamp(3rem, 7vw, 5.5rem);
    color: var(--text);
    line-height: 1.05;
    margin-bottom: 32px;
}

.hero-sub {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 420px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

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

/* ============================================================
   SECTION HEADER
   ============================================================ */

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

.section-header .label-serif {
    display: block;
    margin-bottom: 12px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    max-width: 480px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.divider {
    width: 40px;
    height: 1px;
    background-color: var(--terracotta);
    margin: 20px auto 0;
}

/* ============================================================
   PRODUCT CARDS (Homepage preview + Menu)
   ============================================================ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.product-card {
    background: var(--white);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(28, 16, 8, 0.1);
}

.product-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background-color: var(--blush-light);
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-card__body {
    padding: 20px 24px;
}

.product-card__cat {
    font-family: var(--font-serif);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 6px;
}

.product-card__title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    margin-bottom: 8px;
    font-weight: 400;
}

.product-card__desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

.product-card__price {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--terracotta);
    letter-spacing: 0.05em;
}

/* ============================================================
   CATEGORY TABS (Menu page)
   ============================================================ */

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.category-tab {
    font-family: var(--font-serif);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 10px 24px;
    border: 1px solid var(--blush);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    background: none;
}

.category-tab:hover,
.category-tab.is-active {
    background-color: var(--terracotta);
    border-color: var(--terracotta);
    color: var(--white);
}

.category-section { display: none; }
.category-section.is-visible { display: block; }

/* ============================================================
   DIETARY BADGE
   ============================================================ */

.dietary-note {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background-color: var(--blush-light);
    border-left: 3px solid var(--terracotta);
    padding: 20px 24px;
    margin-top: 48px;
}

.dietary-note p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.dietary-note strong {
    color: var(--text);
    font-weight: 600;
}

/* ============================================================
   HOW TO ORDER (Steps)
   ============================================================ */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blush), var(--terracotta), var(--blush), transparent);
}

.step {
    text-align: center;
    padding: 0 24px;
    position: relative;
}

.step__number {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 1.5px solid var(--terracotta);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--terracotta);
    background: var(--bg);
    position: relative;
    z-index: 1;
}

.step__title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 400;
}

.step__desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* CTA block */
.order-cta {
    text-align: center;
    padding: 64px 24px;
    background-color: var(--terracotta);
    color: var(--white);
}

.order-cta .label-serif {
    color: rgba(255,255,255,0.7);
    margin-bottom: 16px;
    display: block;
}

.order-cta h2 {
    font-family: var(--font-script);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    color: var(--white);
    margin-bottom: 32px;
    line-height: 1.1;
}

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

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #25D366;
    color: var(--white);
    padding: 14px 32px;
    font-family: var(--font-serif);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: background-color var(--transition);
}

.whatsapp-btn:hover { background-color: #1ebe5d; }

.whatsapp-btn svg { flex-shrink: 0; }

/* ============================================================
   GALLERY PAGE
   ============================================================ */

.gallery-intro {
    text-align: center;
    max-width: 520px;
    margin: 0 auto 48px;
}

.instagram-handle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--terracotta);
    letter-spacing: 0.1em;
    margin-top: 16px;
    transition: opacity var(--transition);
}

.instagram-handle:hover { opacity: 0.7; }

.instagram-feed-wrapper {
    max-width: 100%;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

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

.contact-info h3 {
    font-family: var(--font-script);
    font-size: 2.2rem;
    margin-bottom: 24px;
    font-weight: 400;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-item__icon {
    width: 40px;
    height: 40px;
    border: 1px solid var(--blush);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--terracotta);
}

.contact-item__content .label-serif {
    display: block;
    margin-bottom: 4px;
}

.contact-item__content a {
    color: var(--text);
    font-size: 0.95rem;
    transition: color var(--transition);
}

.contact-item__content a:hover { color: var(--terracotta); }

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid var(--blush);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition);
}

.social-link:hover {
    background-color: var(--terracotta);
    border-color: var(--terracotta);
    color: var(--white);
}

/* Contact Form 7 styles */
.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wpcf7-form .field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.wpcf7-form label {
    display: block;
    font-family: var(--font-serif);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.wpcf7-form input,
.wpcf7-form textarea,
.wpcf7-form select,
#whatsapp-order-form input:not([type="checkbox"]),
#whatsapp-order-form textarea,
#whatsapp-order-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--blush);
    background-color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text);
    outline: none;
    transition: border-color var(--transition);
    border-radius: 0;
    -webkit-appearance: none;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus,
#whatsapp-order-form input:not([type="checkbox"]):focus,
#whatsapp-order-form textarea:focus,
#whatsapp-order-form select:focus {
    border-color: var(--terracotta);
}

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

#whatsapp-order-form label:not(.checkbox-label) {
    display: block;
    font-family: var(--font-serif);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

#whatsapp-order-form .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: 0;
}

#whatsapp-order-form .checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    accent-color: var(--terracotta);
    cursor: pointer;
    padding: 0;
    border: none;
}

#whatsapp-order-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#whatsapp-order-form select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B5547' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.wpcf7-form input[type="submit"] {
    background-color: var(--terracotta);
    border-color: var(--terracotta);
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    width: auto;
    padding: 14px 48px;
    transition: background-color var(--transition);
}

.wpcf7-form input[type="submit"]:hover {
    background-color: #9a5744;
}

/* ============================================================
   ABOUT STRIP (homepage)
   ============================================================ */

.about-strip {
    text-align: center;
    background-color: var(--white);
    padding: 80px 24px;
}

.about-strip .script {
    display: block;
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--text);
    margin-bottom: 20px;
}

.about-strip p {
    max-width: 520px;
    margin: 0 auto 32px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 48px;
}

.feature {
    text-align: center;
    max-width: 160px;
}

.feature__icon {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.feature__label {
    font-family: var(--font-serif);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    background-color: var(--text);
    color: rgba(255,255,255,0.75);
    padding: 64px 0 32px;
}

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

.footer-brand .logo-text {
    color: var(--white);
    font-size: 2.2rem;
    display: block;
    margin-bottom: 4px;
}

.footer-brand .logo-sub {
    color: rgba(255,255,255,0.5);
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.875rem;
    line-height: 1.65;
    max-width: 280px;
}

.footer-col h4 {
    font-family: var(--font-serif);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 20px;
    font-weight: 400;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    transition: color var(--transition);
}

.footer-col ul a:hover { color: var(--blush-light); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    color: rgba(255,255,255,0.4);
    transition: color var(--transition);
}

.footer-social a:hover { color: var(--blush-light); }

/* ============================================================
   PAGE HERO BANNER (inner pages)
   ============================================================ */

.page-banner {
    background-color: var(--blush-light);
    padding: 80px 24px 64px;
    text-align: center;
}

.page-banner .label-serif {
    display: block;
    margin-bottom: 12px;
}

.page-banner h1 {
    font-family: var(--font-script);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    color: var(--text);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .steps-grid::before { display: none; }
}

@media (max-width: 720px) {
    :root { --header-h: 64px; }

    .nav-toggle { display: flex; }

    .site-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background-color: var(--bg);
        border-bottom: 1px solid var(--blush-light);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.3s ease;
    }

    .site-nav.is-open {
        max-height: 360px;
        padding: 24px 0;
    }

    .site-nav .nav-menu {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .site-nav .nav-menu li a {
        display: block;
        padding: 14px 24px;
        font-size: 0.9rem;
        border-bottom: 1px solid var(--blush-light);
    }

    .site-nav .nav-menu a::after { display: none; }

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

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .wpcf7-form .field-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; align-items: center; }
    .steps-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
}
