/* ═══════════════════════════════════════════════
   HOKKAIDOUGH — Landing Page
   Palette: Aged parchment · Deep crimson · Harbour teal
   ═══════════════════════════════════════════════ */

:root {
    --crimson:      #7a1a1a;
    --crimson-deep: #4a0e0e;
    --crimson-soft: #c0392b;
    --parchment:    #f2e8d0;
    --parchment-dk: #e0d0b0;
    --teal:         #5f8a88;
    --ink:          #2a1a10;
    --gold:         #c9a84c;
    --gold-light:   #e8c97a;
}

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--parchment);
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--ink);
    overflow-x: hidden;
}

/* ── HERO ─────────────────────────────────────── */
.hero {
    position: relative;
    width: 100%;
    background-color: var(--parchment);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── SCENE CONTAINER ─────────────────────────── */
/*
   The background image is 1076×976px (roughly 1:1 square).
   We display it full-width, maintaining its aspect ratio via
   padding-top trick so the scene is never cropped.
   Everything inside is absolutely positioned as a % of the scene.
*/
.scene {
    position: relative;
    width: 100%;
    /* Preserve 1076:976 aspect ratio */
    aspect-ratio: 1076 / 976;
    overflow: hidden;
}

/* Background fills the scene exactly */
.scene-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill; /* fill exactly — no cropping */
    display: block;
    z-index: 1;
}

/* ── LOGO — floats in the parchment sky above buildings ── */
/*
   Buildings start at roughly 22% from top of the image.
   Logo should sit centred in the sky zone (0%–22%).
   We push it to ~10% from top so it sits comfortably.
*/
.logo-anchor {
    position: absolute;
    top: 4%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1%;
    animation: logo-float 7s ease-in-out infinite;
}

@keyframes logo-float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(-8px); }
}

.main-logo {
    /* Size relative to scene width so it scales with the image */
    width: clamp(100px, 18%, 200px);
    display: block;
    filter: drop-shadow(0 6px 20px rgba(74,14,14,0.3));
}

.subline {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    font-size: clamp(0.7rem, 1.4vw, 1.1rem);
    color: var(--crimson);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 1px 4px rgba(242,232,208,0.9);
}

/* ── LANTERNS ─────────────────────────────────── */
.lantern {
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 8;
    transform-origin: top center;
}

.lantern-left  {
    left: 2%;
    animation: lantern-sway 6s ease-in-out infinite, fade-in 1.8s ease both 0.6s;
}
.lantern-right {
    right: 2%;
    animation: lantern-sway 6s ease-in-out infinite -3s, fade-in 1.8s ease both 0.9s;
}

@keyframes lantern-sway {
    0%, 100% { transform: rotate(-3deg); }
    50%       { transform: rotate(3deg); }
}

.lantern-cord {
    width: 2px;
    height: clamp(30px, 5vw, 60px);
    background: linear-gradient(to bottom, #3a1a0a, #7a3a1a);
    border-radius: 1px;
}

.lantern-knot {
    width: clamp(22px, 3.5vw, 42px);
    height: clamp(22px, 3.5vw, 42px);
    background: radial-gradient(circle at 35% 35%, var(--crimson-soft), var(--crimson-deep));
    border-radius: 50%;
    box-shadow:
        0 0 0 2px var(--crimson),
        0 4px 14px rgba(122,26,26,0.5),
        inset 0 2px 4px rgba(255,255,255,0.15);
    position: relative;
}
.lantern-knot::before {
    content: '';
    position: absolute;
    inset: 22%;
    border-radius: 50%;
    border: 1.5px solid rgba(255,220,180,0.35);
}

.lantern-tassel {
    width: 3px;
    height: clamp(20px, 3.5vw, 44px);
    background: linear-gradient(to bottom, var(--crimson), var(--crimson-soft), transparent);
    border-radius: 2px;
}



/* ── SCROLL CTA ───────────────────────────────── */
.cta-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--crimson);
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 20px 0 16px;
    opacity: 0.7;
    transition: opacity 0.3s;
    animation: cta-pulse 3s ease-in-out infinite;
    z-index: 10;
}
.cta-scroll:hover { opacity: 1; }
.cta-scroll svg { width: 18px; height: 18px; }

@keyframes cta-pulse {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50%       { transform: translateY(5px); opacity: 1; }
}

/* ── FOOTER ──────────────────────────────────── */
footer {
    background-color: var(--crimson-deep);
    color: var(--parchment);
    padding: clamp(40px, 8vh, 80px) clamp(20px, 5vw, 60px);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent, transparent 20px,
        rgba(201,168,76,0.04) 20px, rgba(201,168,76,0.04) 21px
    );
    pointer-events: none;
}

.footer-inner {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(18px, 3vh, 28px);
    text-align: center;
}

.footer-logo {
    width: clamp(65px, 10vw, 95px);
    opacity: 0.9;
    border-radius: 50%;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

.footer-divider {
    width: 110px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    opacity: 0.55;
}

.footer-address { display: flex; flex-direction: column; gap: 4px; }

.footer-label {
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.footer-address p {
    font-size: clamp(0.88rem, 1.8vw, 1rem);
    font-weight: 300;
    color: var(--parchment-dk);
    line-height: 1.75;
    letter-spacing: 0.02em;
}

.footer-copy {
    font-size: 0.75rem;
    color: rgba(224,208,176,0.38);
    letter-spacing: 0.08em;
}

/* ── ENTRANCE ANIMATIONS ─────────────────────── */
.logo-anchor {
    animation: logo-float 7s ease-in-out infinite, fade-up 1.2s cubic-bezier(0.22,1,0.36,1) both 0.2s;
}

@keyframes fade-up {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 600px) {
    .main-logo {
        width: clamp(80px, 22%, 130px);
    }
    .subline {
        font-size: clamp(0.6rem, 2.5vw, 0.85rem);
    }
    .lantern-cord  { height: clamp(20px, 3vw, 35px); }
    .lantern-tassel { height: clamp(15px, 2.5vw, 28px); }
}
