/* ================================================
   THE FAT WHALE — STYLESHEET
   Specialty Coffee Pop-up · Newborough, Anglesey
   ================================================ */

/* ------------------------------------------------
   CUSTOM PROPERTIES
   ------------------------------------------------ */
:root {
    /* Palette */
    --c-cream:       #f2ece0;
    --c-cream-light: #f8f4ed;
    --c-ink:         #1a1815;
    --c-ink-mid:     #5c5448;
    --c-ink-light:   #8a8075;
    --c-coffee:      #7a4f2e;
    --c-caramel:     #b8813f;
    --c-sand:        #c4aa86;
    --c-dark:        #141210;
    --c-dark-soft:   #1e1a16;

    /* Typography */
    --f-display: 'Bricolage Grotesque', system-ui, sans-serif;
    --f-sans:    'DM Sans', system-ui, -apple-system, sans-serif;

    /* Layout */
    --max-w:     1100px;
    --nav-h:     4.5rem;
    --pad-x:     clamp(1.5rem, 5vw, 3rem);
    --section-y: clamp(5rem, 10vw, 9rem);

    /* Easing */
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--c-cream);
    color: var(--c-ink);
    font-family: var(--f-sans);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
    /* Subtle grain texture */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

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

/* ------------------------------------------------
   UTILITIES
   ------------------------------------------------ */
.container {
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--pad-x);
}

.label {
    display: block;
    font-family: var(--f-sans);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--c-caramel);
    margin-bottom: 1.25rem;
}

.section-heading {
    font-family: var(--f-display);
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 2.25rem;
}

.section-heading em {
    font-style: normal;
    font-weight: 600;
    color: var(--c-coffee);
}

/* ------------------------------------------------
   SCROLL ANIMATION — FADE UP
   ------------------------------------------------ */
.fade-up {
    opacity: 0;
    transform: translateY(2.5rem);
    transition:
        opacity  0.85s var(--ease-out),
        transform 0.85s var(--ease-out);
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------------------------------------
   NAVIGATION
   ------------------------------------------------ */
#nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 200;
    height: var(--nav-h);
    transition:
        background-color 0.4s var(--ease-in-out),
        box-shadow       0.4s var(--ease-in-out);
}

#nav.is-scrolled {
    background-color: rgba(242, 236, 224, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(26, 24, 21, 0.07);
}

.nav-inner {
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--pad-x);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-logo {
    font-family: var(--f-display);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--c-ink);
    transition: opacity 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-logo:hover { opacity: 0.6; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.74rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-ink);
    position: relative;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--c-coffee);
    transition: width 0.35s var(--ease-in-out);
}

.nav-links a:hover         { color: var(--c-coffee); }
.nav-links a:hover::after  { width: 100%; }

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: -0.5rem;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--c-ink);
    border-radius: 2px;
    transform-origin: center;
    transition:
        transform 0.35s var(--ease-in-out),
        opacity   0.2s ease;
}

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

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0;
    background: var(--c-cream);
    z-index: 190;
    padding: 3rem var(--pad-x);
    opacity: 0;
    transform: translateY(-1rem);
    pointer-events: none;
    transition:
        opacity   0.35s var(--ease-in-out),
        transform 0.35s var(--ease-in-out);
}

.mobile-menu.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.mobile-menu a {
    font-family: var(--f-display);
    font-size: clamp(2.2rem, 8vw, 3.5rem);
    font-weight: 300;
    letter-spacing: -0.01em;
    color: var(--c-ink);
    transition: color 0.2s ease;
}

.mobile-menu a:hover { color: var(--c-coffee); }

/* ------------------------------------------------
   HERO
   ------------------------------------------------ */
.hero {
    min-height: 100svh;
    min-height: 100vh;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-h);
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
}

.hero-orb--1 {
    width: 65vmax;
    height: 65vmax;
    background: radial-gradient(circle, rgba(122, 79, 46, 0.055) 0%, transparent 65%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-orb--2 {
    width: 40vmax;
    height: 40vmax;
    background: radial-gradient(circle, rgba(184, 129, 63, 0.04) 0%, transparent 65%);
    bottom: -10%;
    right: -5%;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Whale illustration */
.hero-whale {
    width: clamp(280px, 52vw, 580px);
    margin-bottom: 1.5rem;
    animation: whale-float 7s ease-in-out infinite;
}

.hero-whale img {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: multiply;
    opacity: 0.8;
}

@keyframes whale-float {
    0%,  100% { transform: translateY(0px); }
    50%        { transform: translateY(-10px); }
}

/* Hero title */
.hero-title {
    font-family: var(--f-display);
    font-size: clamp(1.8rem, 8vw, 7.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--c-ink);
    margin-bottom: 2rem;
    white-space: nowrap;
}

.hero-title em {
    font-style: normal;
    color: var(--c-coffee);
}

/* Tagline */
.hero-tagline {
    font-size: clamp(0.65rem, 1.4vw, 0.82rem);
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--c-ink-light);
    margin-bottom: 3.5rem;
}

/* Scroll CTA */
.scroll-cta {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    border: 1px solid rgba(26, 24, 21, 0.2);
    color: var(--c-ink-mid);
    animation: pulse-down 2.8s ease-in-out infinite;
    transition:
        border-color 0.2s ease,
        color        0.2s ease;
}

.scroll-cta:hover {
    border-color: var(--c-coffee);
    color: var(--c-coffee);
}

@keyframes pulse-down {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(7px); }
}

/* ------------------------------------------------
   SECTION BASE
   ------------------------------------------------ */
.section {
    padding-block: var(--section-y);
}

/* ------------------------------------------------
   ABOUT
   ------------------------------------------------ */
.section--about {
    border-top: 1px solid rgba(26, 24, 21, 0.08);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 8vw, 7rem);
    align-items: center;
}

.about-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.about-body p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--c-ink-mid);
    max-width: 44ch;
}

.about-mark {
    transform: rotate(-6deg);
    transition: transform 0.7s var(--ease-out), opacity 0.7s ease;
}

.about-mark img {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: multiply;
    opacity: 0.15;
}

.about-mark:hover img {
    opacity: 0.24;
}

.about-mark:hover {
    transform: rotate(-3deg);
}

/* ------------------------------------------------
   MENU
   ------------------------------------------------ */
.section--menu {
    background-color: var(--c-dark);
    color: var(--c-cream-light);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

.section--menu .label          { color: var(--c-caramel); }
.section--menu .section-heading { color: var(--c-cream-light); }
.section--menu .section-heading em { color: var(--c-caramel); }

.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: 0;
}

.menu-cat-title {
    font-family: var(--f-sans);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--c-caramel);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(242, 236, 224, 0.1);
}

.menu-list {
    display: flex;
    flex-direction: column;
}

.menu-item {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    padding-block: 0.95rem;
    border-bottom: 1px solid rgba(242, 236, 224, 0.06);
}

.menu-item__name {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.menu-item__rule {
    flex: 1;
    height: 1px;
    background: repeating-linear-gradient(
        to right,
        rgba(196, 170, 134, 0.2) 0,
        rgba(196, 170, 134, 0.2) 3px,
        transparent 3px,
        transparent 9px
    );
    margin-bottom: 3px;
    min-width: 1rem;
}

.menu-item__sub {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: rgba(242, 236, 224, 0.38);
    font-weight: 300;
    margin-top: 0.1rem;
}

.menu-item__price {
    font-size: 0.88rem;
    color: var(--c-sand);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.menu-addon {
    margin-top: 1.25rem;
    font-size: 0.72rem;
    color: rgba(242, 236, 224, 0.28);
    letter-spacing: 0.06em;
}

.menu-note {
    margin-top: 3.5rem;
    font-size: 0.73rem;
    color: rgba(242, 236, 224, 0.22);
    letter-spacing: 0.08em;
    font-style: italic;
}

/* ------------------------------------------------
   FIND US
   ------------------------------------------------ */
.section--find {
    background-color: var(--c-cream-light);
    border-top: 1px solid rgba(26, 24, 21, 0.07);
}

.find-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 8vw, 7rem);
    align-items: start;
}

.find-location p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--c-ink-mid);
    max-width: 42ch;
    margin-bottom: 2.5rem;
}

.find-location strong {
    color: var(--c-ink);
    font-weight: 500;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.73rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-coffee);
    transition: opacity 0.2s ease;
}

.social-link:hover { opacity: 0.55; }

/* Hours */
.find-hours .label { margin-bottom: 0.5rem; }

.hours-list {
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: 1.05rem;
    border-bottom: 1px solid rgba(26, 24, 21, 0.07);
    gap: 2rem;
}

.hours-day {
    font-size: 1rem;
    font-weight: 300;
}

.hours-time {
    font-size: 0.88rem;
    color: var(--c-ink-mid);
}

.hours-row--closed .hours-day,
.hours-row--closed .hours-time {
    color: var(--c-ink-light);
}

.hours-note {
    margin-top: 1.5rem;
    font-size: 0.72rem;
    color: var(--c-ink-light);
    font-style: italic;
    letter-spacing: 0.03em;
}

/* ------------------------------------------------
   FOOTER
   ------------------------------------------------ */
.footer {
    background-color: var(--c-dark);
    color: var(--c-cream-light);
    padding-block: 2.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.footer-name {
    font-family: var(--f-display);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.footer-loc {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-sand);
}


.footer-copy {
    font-size: 0.7rem;
    color: rgba(248, 244, 237, 0.22);
    text-align: right;
}

/* ------------------------------------------------
   RESPONSIVE
   ------------------------------------------------ */
@media (max-width: 768px) {
    /* Nav */
    .nav-links    { display: none; }
    .nav-hamburger { display: flex; }
    .mobile-menu  { display: block; }

    /* About */
    .about-layout { grid-template-columns: 1fr; }
    .about-mark   { display: none; }

    /* Menu */
    .menu-grid    { grid-template-columns: 1fr; }

    /* Find Us */
    .find-layout  { grid-template-columns: 1fr; }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .footer-copy  { text-align: left; }
}

@media (max-width: 480px) {
    .hero-title { font-size: clamp(3.5rem, 18vw, 6rem); }
}

/* ------------------------------------------------
   REDUCED MOTION
   ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    .hero-whale    { animation: none; }
    .scroll-cta    { animation: none; }
    .fade-up       { transition: none; }
    html           { scroll-behavior: auto; }
}
