/* ============================================
   Sweet Tooth Bakery — Main Stylesheet
   ============================================ */

/* --- Variables --- */
:root {
    --rose:    #D4738A;
    --rose-dk: #B85C72;
    --rose-lt: #F2C4CE;
    --cream:   #F5E6C8;
    --cream-dk:#EDD9A8;
    --brown:   #3B2A2A;
    --brown-lt:#6B4E4E;
    --white:   #FFFFFF;
    --gray:    #F8F4F0;
    --text:    #4A3535;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-script:  'Dancing Script', cursive;
    --font-body:    'Lato', sans-serif;

    --radius:  12px;
    --radius-lg: 24px;
    --shadow:  0 4px 20px rgba(59,42,42,0.10);
    --shadow-hover: 0 8px 30px rgba(59,42,42,0.18);
    --transition: 0.25s ease;
}

/* --- 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);
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
}

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

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

/* --- Container --- */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--rose);
    color: var(--white);
    border-color: var(--rose);
}
.btn-primary:hover {
    background: var(--rose-dk);
    border-color: var(--rose-dk);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212,115,138,0.4);
}

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

.btn-nav {
    background: var(--rose);
    color: var(--white);
    padding: 9px 20px;
    font-size: 0.85rem;
}
.btn-nav:hover { background: var(--rose-dk); }

.btn-card {
    background: var(--rose);
    color: var(--white);
    padding: 9px 18px;
    font-size: 0.82rem;
    border-radius: 50px;
}
.btn-card:hover {
    background: var(--rose-dk);
    transform: translateY(-1px);
}

.btn-light {
    background: var(--white);
    color: var(--rose-dk);
    border-color: var(--white);
}
.btn-light:hover {
    background: var(--cream);
    transform: translateY(-2px);
}

/* --- Section common --- */
.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--rose);
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--brown);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--brown-lt);
    max-width: 560px;
    margin: 0 auto;
}

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

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    padding: 16px 0;
    transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(59,42,42,0.10);
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity var(--transition);
}
.nav-logo:hover { opacity: 0.85; }

.logo-text {
    font-family: var(--font-script);
    font-size: 1.45rem;
    color: var(--white);
    transition: color var(--transition);
}
.navbar.scrolled .logo-text { color: var(--brown); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    transition: color var(--transition);
    position: relative;
}
.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0; right: 100%;
    height: 2px;
    background: var(--rose-lt);
    transition: right var(--transition);
}
.nav-links a:not(.btn):hover::after { right: 0; }
.nav-links a:not(.btn):hover { color: var(--white); }

.navbar.scrolled .nav-links a:not(.btn) { color: var(--brown-lt); }
.navbar.scrolled .nav-links a:not(.btn):hover { color: var(--brown); }
.navbar.scrolled .nav-links a:not(.btn)::after { background: var(--rose); }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--brown); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            #7B3550 0%,
            #B05070 30%,
            #D4738A 60%,
            #E8A87C 100%
        );
    z-index: 0;
}

/* Decorative texture overlay */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(245,230,200,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.10) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cream);
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 24px;
}
.hero-title em {
    font-family: var(--font-script);
    font-style: normal;
    color: var(--cream);
    font-size: 1.05em;
}

.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255,255,255,0.88);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

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

.hero-scroll-hint {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255,255,255,0.5);
    border-bottom: 2px solid rgba(255,255,255,0.5);
    transform: rotate(45deg);
    animation: bounce 1.5s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(5px); }
}

/* ============================================
   SHOP / PRODUCTS
   ============================================ */
.shop {
    padding: 100px 0;
    background: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 64px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.product-img-placeholder {
    background: linear-gradient(135deg, var(--cream) 0%, var(--rose-lt) 100%);
    height: 200px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.product-img-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 70%, rgba(255,255,255,0.25) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(212,115,138,0.20) 0%, transparent 50%);
}

.product-info {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--brown);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-desc {
    font-size: 0.88rem;
    color: var(--brown-lt);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 18px;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-price {
    font-weight: 700;
    font-size: 1rem;
    color: var(--rose-dk);
}

.shop-cta {
    text-align: center;
}
.shop-cta p {
    font-size: 1rem;
    color: var(--brown-lt);
    margin-bottom: 18px;
}

/* --- Fade-in animation --- */
.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: 100px 0;
    background: var(--gray);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 72px;
    align-items: center;
}

.about-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.about-img-frame {
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cream) 0%, var(--rose-lt) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 48px rgba(212,115,138,0.25);
    border: 6px solid var(--white);
}

.about-monogram {
    font-family: var(--font-script);
    font-size: 4rem;
    color: var(--rose-dk);
    letter-spacing: 0.05em;
    user-select: none;
}

.about-badge {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: var(--rose);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 50px;
    box-shadow: var(--shadow);
}

.about-content p {
    color: var(--brown-lt);
    margin-bottom: 18px;
    font-size: 0.97rem;
    line-height: 1.75;
}
.about-content .btn { margin-top: 8px; }

/* ============================================
   BANNER CTA
   ============================================ */
.banner-cta {
    background: linear-gradient(135deg, #7B3550 0%, #D4738A 100%);
    padding: 80px 24px;
    text-align: center;
}
.banner-cta h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: var(--white);
    margin-bottom: 14px;
}
.banner-cta p {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: 100px 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 72px;
    align-items: start;
}

.contact-info p {
    color: var(--brown-lt);
    margin-bottom: 28px;
    line-height: 1.75;
}

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

.contact-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--gray);
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--brown);
    transition: all var(--transition);
    border: 2px solid transparent;
}
.contact-link:hover {
    background: var(--cream);
    border-color: var(--rose-lt);
    transform: translateX(4px);
}

.contact-link-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--rose);
}

.contact-hours {
    background: var(--gray);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.contact-hours h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--brown);
    margin-bottom: 24px;
}

.hours-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--cream-dk);
    font-size: 0.9rem;
}
.hours-list li:last-child { border-bottom: none; padding-bottom: 0; }
.hours-list li span:first-child { color: var(--brown-lt); }
.hours-list li span:last-child { font-weight: 700; color: var(--brown); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--brown);
    color: rgba(255,255,255,0.75);
    padding: 60px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

.footer-brand .logo-text { color: var(--cream); }

.footer-brand p {
    margin-top: 12px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
}

.footer-links {
    display: flex;
    gap: 48px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col h4 {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cream);
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--rose-lt); }

.footer-bottom {
    padding: 20px 24px;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-visual { display: none; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 700px) {
    .hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 32px 40px;
        gap: 28px;
        box-shadow: -4px 0 30px rgba(0,0,0,0.15);
        transition: right 0.3s ease;
        z-index: 800;
    }
    .nav-links.open { right: 0; }
    .nav-links a { color: var(--brown) !important; }
    .nav-links a::after { background: var(--rose) !important; }

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

    .hero-actions { flex-direction: column; align-items: center; }

    .footer-links { flex-direction: column; gap: 28px; }

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

@media (max-width: 480px) {
    .product-footer { flex-direction: column; align-items: flex-start; }
    .btn-card { width: 100%; text-align: center; }
}
