/* =============================================
   JUST A BITE BAKER CO. — Shared Stylesheet
   Extracted from template.html design system
   ============================================= */

/* --- BRAND IDENTITY TOKENS --- */
:root {
    --frosted-blue: #99d7ea;   /* Primary Background / Logo Border */
    --cinnamon-wood: #be6f53;  /* Primary Text / Action Buttons */
    --cinnamon-espresso: #5d3325; /* Dark text / Info boxes */
    --marshmellow: #fffdf7;    /* Card Background / Soft Off-white */
    --white: #ffffff;          /* Pure White for buttons/text */
    --slate-blue: #8faeb5;    /* Muted secondary blue for taglines */
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--frosted-blue);
    color: var(--cinnamon-wood);
    /* bg.png is the repeating dessert pattern wallpaper */
    background-image: url('bg.png');
    background-size: 400px;
    background-repeat: repeat;
    overflow-x: hidden;
}

/* 1. HEADER BANNER
   - height: 350px (Standard depth)
   - banner.svg: The high-res food photography banner
*/
.banner-strip {
    width: 100%;
    height: 350px;
    background-image: url('banner.svg');
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
}

/* 2. THE LOGO
   - Size: 900px (Large sticker style)
   - filter: drop-shadow (Adds 3D depth to the sticker)
*/
.logo-wrapper {
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 99;
}
.main-logo {
    width: 900px;
    max-width: 95%;
    height: auto;
    display: inline-block;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.2));
}

/* 3. THE CARD
   - Width: 800px (Optimal for readability)
   - Margin: -40px (Tucks card slightly under banner)
   - Padding-top: 250px (Creates the gap to avoid logo overlap)
*/
.card-container {
    max-width: 800px;
    margin: -40px auto 60px auto;
    background: var(--marshmellow);
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    padding: 250px 50px 80px 50px;
    position: relative;
    z-index: 10;
    text-align: center;
}

/* --- TYPOGRAPHY --- */
h1 {
    font-family: 'Fraunces', serif;
    font-size: 3.5rem;
    margin: 0 0 10px 0;
    color: var(--cinnamon-wood);
    line-height: 1.1;
}

.tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--slate-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

/* --- SOCIAL ICONS --- */
.social-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}
.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    color: var(--cinnamon-wood);
    border: 2px solid var(--cinnamon-wood);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    text-decoration: none;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(190, 111, 83, 0.15);
}
.social-btn:hover {
    background: var(--cinnamon-wood);
    color: var(--white);
    transform: translateY(-3px);
}

/* --- PRIMARY BUTTONS --- */
.btn {
    display: inline-block;
    padding: 22px 55px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--cinnamon-wood);
    color: var(--white);
    box-shadow: 0 10px 25px rgba(190, 111, 83, 0.3);
    font-size: 1.1rem;
    margin-bottom: 25px;
}
.btn:hover {
    background: #a65a40;
    transform: translateY(-3px);
}

/* --- SECONDARY OUTLINE BUTTONS --- */
.btn-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}
.btn-outline {
    border: 2px solid var(--cinnamon-wood);
    color: var(--cinnamon-wood);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: 0.2s;
}
.btn-outline:hover {
    background: var(--cinnamon-wood);
    color: var(--white);
}

/* --- INFO BOXES (Dark espresso panels) --- */
.info-box {
    background: var(--cinnamon-espresso);
    color: var(--white);
    width: 90%;
    margin: 0 auto 20px auto;
    border-radius: 20px;
    padding: 30px 20px;
    box-sizing: border-box;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.box-title {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    margin-bottom: 5px;
}
.box-sub {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 20px;
    display: block;
}

/* --- BACK / NAV LINK --- */
.nav-back {
    position: absolute;
    top: 260px;
    left: 40px;
    text-decoration: none;
    color: var(--slate-blue);
    font-weight: 800;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.nav-back:hover {
    color: var(--cinnamon-wood);
}

/* --- DEV FOOTER --- */
.dev-footer {
    margin-top: 40px;
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    font-size: 0.75rem;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.dev-footer a {
    text-decoration: none;
    color: #888;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
}
.dev-footer a:hover {
    color: var(--cinnamon-wood);
}

/* --- LOADING SPINNER --- */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    color: var(--cinnamon-wood);
    font-weight: 700;
    font-size: 1.1rem;
}
.loading-spinner::before {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid var(--frosted-blue);
    border-top-color: var(--cinnamon-wood);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 15px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- ACCESSIBILITY: Screen-Reader Only --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

/* --- TABLET (768px and below) --- */
@media (max-width: 768px) {
    .main-logo {
        width: 600px;
    }

    .banner-strip {
        height: 250px;
    }

    .card-container {
        padding: 180px 30px 60px 30px;
        border-radius: 25px;
        margin: -30px 15px 40px 15px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .nav-back {
        top: 190px;
        left: 25px;
    }

    .btn {
        padding: 18px 40px;
        font-size: 1rem;
    }

    .info-box {
        width: 95%;
    }
}

/* --- PHONE (480px and below) --- */
@media (max-width: 480px) {
    .main-logo {
        width: 320px;
    }

    .banner-strip {
        height: 180px;
    }

    .card-container {
        padding: 120px 18px 40px 18px;
        border-radius: 20px;
        margin: -20px 10px 30px 10px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .tagline {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .nav-back {
        top: 130px;
        left: 15px;
        font-size: 0.8rem;
    }

    .social-row {
        gap: 12px;
        margin-bottom: 25px;
    }

    .social-btn {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }

    .btn {
        padding: 16px 30px;
        font-size: 0.95rem;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .btn-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .btn-outline {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .info-box {
        width: 100%;
        padding: 20px 15px;
    }

    .dev-footer {
        flex-direction: column;
        gap: 4px;
        font-size: 0.7rem;
    }
}
