/* ============================================================
   Mr Kay's Classic Cakes — stylesheet
   Palette drawn from the logo: copper caramel, charcoal, cream.
   Mobile-first, scaling up to desktop.
   ============================================================ */

:root {
    --copper:        #c68a5e;
    --copper-dark:   #a86b41;
    --copper-deep:   #8a5330;
    --charcoal:      #2b2622;
    --charcoal-soft: #4a423b;
    --cream:         #faf5ee;
    --cream-deep:    #f1e7d9;
    --sand:          #e9dcc9;
    --white:         #ffffff;
    --ink:           #322c26;
    --muted:         #8a7c6d;

    --shadow-sm: 0 2px 8px rgba(80, 55, 30, .08);
    --shadow-md: 0 10px 30px rgba(80, 55, 30, .12);
    --shadow-lg: 0 20px 50px rgba(80, 55, 30, .18);

    --radius: 16px;
    --radius-sm: 10px;
    --max: 1180px;

    --font-script: 'Great Vibes', cursive;
    --font-serif:  'Cormorant Garamond', Georgia, serif;
    --font-sans:   'Jost', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- Typography helpers ---- */
.script-heading {
    font-family: var(--font-script);
    font-weight: 400;
    color: var(--copper-deep);
    font-size: clamp(2.6rem, 8vw, 4.2rem);
    line-height: 1.1;
    letter-spacing: .5px;
}
.script-heading--light { color: var(--cream); }

.eyebrow {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: .32em;
    font-size: .72rem;
    font-weight: 500;
    color: var(--copper-dark);
    margin-bottom: .6rem;
}
.eyebrow--light { color: var(--copper); }

.section-lead {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2.4vw, 1.35rem);
    color: var(--charcoal-soft);
    max-width: 40ch;
    margin: .8rem auto 0;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-sans);
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .8rem;
    padding: .95rem 1.9rem;
    border-radius: 50px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary {
    background: linear-gradient(135deg, var(--copper) 0%, var(--copper-dark) 100%);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.15); }
.btn-outline { border-color: var(--copper); color: var(--copper-dark); }
.btn-outline:hover { background: var(--copper); color: #fff; }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 245, 238, .88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--sand);
}
.nav-wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: .6rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { width: 46px; height: 46px; object-fit: contain; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-script); font-size: 1.7rem; color: var(--charcoal); }
.brand-sub {
    font-family: var(--font-serif); font-size: .72rem; letter-spacing: .28em;
    text-transform: uppercase; color: var(--copper-dark); margin-top: 2px;
}

.nav-links { display: flex; align-items: center; gap: .3rem; }
.nav-links a {
    font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
    padding: .5rem .85rem; border-radius: 50px; color: var(--charcoal-soft);
    transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--copper-deep); }
.nav-cta {
    background: var(--charcoal); color: #fff !important; margin-left: .4rem;
}
.nav-cta:hover { background: var(--copper-dark); }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px; background: none;
    border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span {
    width: 26px; height: 2px; background: var(--charcoal); border-radius: 2px;
    transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
        flex-direction: column; align-items: flex-start; gap: .2rem;
        background: var(--cream); padding: 5rem 1.5rem 2rem;
        box-shadow: var(--shadow-lg); transform: translateX(100%);
        transition: transform .35s cubic-bezier(.4,0,.2,1);
    }
    .nav-links.open { transform: translateX(0); }
    .nav-links a { width: 100%; font-size: 1rem; padding: .8rem 1rem; }
    .nav-cta { margin: .5rem 0 0; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    position: relative;
    min-height: min(92vh, 760px);
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    padding: 4rem 1.2rem;
    background:
        radial-gradient(120% 80% at 50% -10%, rgba(198,138,94,.28), transparent 60%),
        linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
    overflow: hidden;
}
.hero::before, .hero::after {
    content: ''; position: absolute; border-radius: 50%;
    background: radial-gradient(circle, rgba(198,138,94,.22), transparent 70%);
    filter: blur(10px);
}
.hero::before { width: 340px; height: 340px; top: -80px; left: -80px; }
.hero::after  { width: 420px; height: 420px; bottom: -140px; right: -120px; }

.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.hero-eyebrow {
    text-transform: uppercase; letter-spacing: .38em; font-size: .78rem;
    color: var(--copper-dark); font-weight: 500; margin-bottom: 1rem;
}
.hero-title {
    font-family: var(--font-script); font-weight: 400;
    font-size: clamp(4rem, 17vw, 8.5rem); line-height: .9;
    color: var(--charcoal); text-shadow: 0 2px 20px rgba(198,138,94,.25);
}
.hero-classic {
    font-family: var(--font-serif); text-transform: uppercase;
    letter-spacing: .34em; font-size: clamp(1rem, 3.6vw, 1.7rem);
    color: var(--copper-deep); margin-top: .3rem; font-weight: 600;
    padding-left: .34em;
}
.hero-slogan {
    font-family: var(--font-serif); font-style: italic;
    font-size: clamp(1.15rem, 3vw, 1.5rem); color: var(--charcoal-soft);
    margin: 1.4rem 0 2.2rem;
}
.hero-actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
    position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
    width: 26px; height: 42px; border: 2px solid var(--copper-dark);
    border-radius: 14px; z-index: 2; opacity: .6;
}
.hero-scroll span {
    position: absolute; top: 8px; left: 50%; width: 4px; height: 8px;
    margin-left: -2px; background: var(--copper-dark); border-radius: 2px;
    animation: scroll-bob 1.6s infinite;
}
@keyframes scroll-bob { 0%{opacity:0;transform:translateY(0)} 40%{opacity:1} 80%,100%{opacity:0;transform:translateY(14px)} }

/* ---- Hero: full background image mode ---- */
.hero--bg {
    background:
        linear-gradient(rgba(28,22,18,var(--hero-overlay, .45)), rgba(28,22,18,var(--hero-overlay, .45))),
        var(--hero-img) center/cover no-repeat;
    color: var(--cream);
}
.hero--bg::before, .hero--bg::after { display: none; }
.hero--bg .hero-eyebrow { color: var(--copper); }
.hero--bg .hero-title   { color: #fff; text-shadow: 0 3px 26px rgba(0,0,0,.45); }
.hero--bg .hero-classic { color: var(--copper); }
.hero--bg .hero-slogan  { color: rgba(255,255,255,.92); }
.hero--bg .hero-scroll       { border-color: rgba(255,255,255,.75); }
.hero--bg .hero-scroll span  { background: rgba(255,255,255,.85); }

/* ---- Hero: framed image beside text ---- */
.hero--framed { flex-direction: column; gap: 2.4rem; }
.hero-frame { position: relative; z-index: 2; width: min(88%, 420px); }
.hero-frame img {
    width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    border: 6px solid #fff;
}
@media (min-width: 900px) {
    .hero--framed {
        flex-direction: row; align-items: center; justify-content: center;
        gap: 3.5rem; max-width: var(--max); margin: 0 auto; text-align: left;
    }
    .hero--framed .hero-inner { text-align: left; margin: 0; }
    .hero--framed .hero-actions { justify-content: flex-start; }
    .hero-frame { flex: 0 0 40%; width: auto; }
}

/* ---- Custom text section body ---- */
.textsec-body { max-width: 64ch; margin: 0 auto; text-align: center; }
.textsec-body p {
    font-family: var(--font-serif); font-size: 1.18rem; color: var(--charcoal-soft);
    margin-bottom: 1rem;
}
.section--dark .textsec-body p { color: rgba(250,245,238,.86); }

/* ============================================================
   Sections
   ============================================================ */
.section { max-width: var(--max); margin: 0 auto; padding: 4.5rem 1.2rem; }
.section--tight { padding-top: 2rem; }
.section--cream { max-width: none; background: var(--cream-deep); }
.section--cream > * { max-width: var(--max); margin-inline: auto; }
.section-head { text-align: center; margin-bottom: 2.8rem; }
.center-cta { text-align: center; margin-top: 2.5rem; }
.empty-note {
    text-align: center; font-family: var(--font-serif); font-size: 1.3rem;
    color: var(--muted); padding: 3rem 1rem;
}

/* ---- Services ---- */
.services-grid {
    display: grid; gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.services-grid--two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 760px; margin-inline: auto; }
.service-card {
    background: var(--white); border-radius: var(--radius);
    padding: 2rem 1.6rem; text-align: center; box-shadow: var(--shadow-sm);
    border: 1px solid var(--sand);
    transition: transform .3s ease, box-shadow .3s ease;
    position: relative; overflow: hidden;
}
.service-card::after {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
    background: linear-gradient(90deg, var(--copper), var(--copper-deep));
    transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card:hover::after { transform: scaleX(1); }
.service-icon { font-size: 2.6rem; display: block; margin-bottom: .8rem; }
.service-card h3 {
    font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600;
    color: var(--charcoal); margin-bottom: .4rem;
}
.service-card p { font-size: .92rem; color: var(--muted); }

/* ---- Gallery preview ---- */
.preview-grid {
    display: grid; gap: .8rem;
    grid-template-columns: repeat(2, 1fr);
}
.preview-item {
    position: relative; border-radius: var(--radius-sm); overflow: hidden;
    aspect-ratio: 1; box-shadow: var(--shadow-sm);
}
.preview-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.preview-item:hover img { transform: scale(1.07); }
.preview-tag {
    position: absolute; bottom: 8px; left: 8px; background: rgba(43,38,34,.78);
    color: #fff; font-size: .68rem; letter-spacing: .05em; padding: .25rem .6rem;
    border-radius: 50px; text-transform: uppercase;
}
@media (min-width: 700px) { .preview-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---- About ---- */
.about-wrap {
    display: grid; gap: 2.5rem; align-items: center;
    grid-template-columns: 1fr;
}
.about-logo {
    background: var(--white); border-radius: var(--radius); padding: 2rem;
    box-shadow: var(--shadow-md); border: 1px solid var(--sand); max-width: 380px;
    margin: 0 auto;
}
.about-text .script-heading { margin-bottom: 1rem; }
.about-text p { margin-bottom: 1rem; color: var(--charcoal-soft); }
.about-text .btn { margin-top: .6rem; }
@media (min-width: 860px) {
    .about-wrap { grid-template-columns: .8fr 1.2fr; gap: 3.5rem; }
}

/* ---- Contact ---- */
.section--dark {
    max-width: none;
    background:
        radial-gradient(120% 100% at 50% 0%, rgba(198,138,94,.22), transparent 55%),
        var(--charcoal);
    color: var(--cream); text-align: center;
}
.contact-wrap { max-width: 700px; margin: 0 auto; }
.contact-lead { color: rgba(250,245,238,.75); margin: .6rem auto 2rem; font-family: var(--font-serif); font-size: 1.2rem; }
.contact-cards { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.contact-card {
    display: flex; align-items: center; gap: .7rem;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15);
    padding: 1rem 1.6rem; border-radius: 50px; font-size: 1.05rem;
    transition: background .25s, transform .25s; backdrop-filter: blur(6px);
}
.contact-card:hover { background: rgba(198,138,94,.25); transform: translateY(-3px); }
.contact-card--wa:hover { background: rgba(37,211,102,.25); }
.contact-ico { font-size: 1.3rem; }
.contact-loc { margin-top: 1.8rem; color: rgba(250,245,238,.7); letter-spacing: .05em; }

/* ============================================================
   Gallery page
   ============================================================ */
.page-hero {
    text-align: center; padding: 3.5rem 1.2rem 1rem;
    background: linear-gradient(180deg, var(--cream-deep), var(--cream));
}
.filter-bar {
    display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
    margin-bottom: 2.2rem;
}
.chip {
    font-size: .78rem; letter-spacing: .05em; text-transform: uppercase;
    padding: .5rem 1.1rem; border-radius: 50px; border: 1.5px solid var(--sand);
    background: var(--white); color: var(--charcoal-soft);
    transition: all .2s ease;
}
.chip:hover { border-color: var(--copper); color: var(--copper-deep); }
.chip.is-active { background: var(--copper-dark); border-color: var(--copper-dark); color: #fff; }

.gallery-grid { columns: 2; column-gap: .8rem; }
@media (min-width: 640px) { .gallery-grid { columns: 3; } }
@media (min-width: 1000px) { .gallery-grid { columns: 4; } }
.gallery-item {
    position: relative; break-inside: avoid; margin-bottom: .8rem;
    border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm);
    background: var(--white); cursor: pointer;
}
.gallery-item img, .gallery-item video { width: 100%; display: block; }
.gallery-item img { transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
    padding: .6rem .8rem; font-family: var(--font-serif); font-size: .95rem;
    color: var(--charcoal-soft);
}
.gallery-tag {
    position: absolute; top: 8px; left: 8px; background: rgba(43,38,34,.8);
    color: #fff; font-size: .65rem; letter-spacing: .05em; padding: .22rem .55rem;
    border-radius: 50px; text-transform: uppercase;
}
.gallery-item--video { cursor: default; }

/* ---- Lightbox ---- */
.lightbox {
    position: fixed; inset: 0; z-index: 200; display: none;
    align-items: center; justify-content: center; flex-direction: column;
    background: rgba(30,24,20,.92); padding: 2rem; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox-caption { color: var(--cream); font-family: var(--font-serif); margin-top: 1rem; font-size: 1.1rem; }
.lightbox-close {
    position: absolute; top: 1rem; right: 1.4rem; background: none; border: none;
    color: #fff; font-size: 2.6rem; cursor: pointer; line-height: 1;
}

/* ============================================================
   Footer + floating WhatsApp
   ============================================================ */
.site-footer { background: var(--charcoal); color: var(--cream); padding: 3.5rem 1.2rem 1.5rem; }
.footer-grid {
    max-width: var(--max); margin: 0 auto; display: grid; gap: 2rem;
    grid-template-columns: 1fr;
}
@media (min-width: 680px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { font-family: var(--font-script); font-size: 2rem; color: var(--cream); }
.footer-slogan { font-family: var(--font-serif); font-style: italic; color: var(--copper); margin: .3rem 0 .8rem; }
.footer-loc { color: rgba(250,245,238,.7); font-size: .92rem; }
.footer-col h4 {
    font-family: var(--font-serif); font-size: 1.15rem; color: var(--copper);
    margin-bottom: .8rem; font-weight: 600; letter-spacing: .03em;
}
.footer-col a { display: block; color: rgba(250,245,238,.78); padding: .28rem 0; font-size: .92rem; transition: color .2s; }
.footer-col a:hover { color: var(--copper); }
.footer-phone { font-size: .95rem !important; }
.footer-bottom {
    max-width: var(--max); margin: 2.5rem auto 0; padding-top: 1.4rem;
    border-top: 1px solid rgba(250,245,238,.14); text-align: center;
    color: rgba(250,245,238,.55); font-size: .82rem;
}

.whatsapp-float {
    position: fixed; bottom: 20px; right: 20px; z-index: 90;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; color: #fff; display: flex; align-items: center;
    justify-content: center; box-shadow: 0 8px 24px rgba(37,211,102,.45);
    transition: transform .25s;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* ============================================================
   Reveal-on-scroll animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}
