/* DEPLOY: bump ?v=YYYYMMDD on shared.css, shared.js, consent.js tags in all 3 pages */

/* ─── FONTS ─────────────────────────────────────────── */
/* Self-hosted (was Google Fonts until 2026-07-30). Google Fonts sends every visitor's IP to
   Google before any consent prompt can run — the same GDPR exposure that retired GA4 here.
   Both faces are SIL OFL, so these are the identical typefaces, not lookalike substitutes.
   Variable fonts: one file covers the whole 400-900 range, so adding a weight costs nothing.

   All 4 faces are declared even though nothing currently renders DM Sans italic — every <em>
   on the site (20 of them, incl. 2 built by consent.js) sits inside a heading, and headings
   are var(--serif). Browsers only fetch a @font-face file when a glyph actually needs it, so
   the unused face costs visitors nothing, and body copy that grows an <em> later gets a real
   italic instead of a synthetic oblique nobody notices in review. */
/* ─── RESET ─────────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

/* ─── TOKENS ─────────────────────────────────────────── */
:root{
  --black:#111;--white:#fff;--off:#f5f4f1;--lg:#e8e8e8;--mg:#767676;--dg:#444;--gold:#9e7e2f;
  --serif:'Playfair Display',Georgia,serif;
  --sans:'DM Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --nav:68px;--pad:10px;--r:10px;--gap:10px;
}

/* ─── BASE ───────────────────────────────────────────── */
html{scroll-behavior:smooth}
a{color:inherit;text-decoration:none}
img,video{display:block;max-width:100%}
.page{padding-top:var(--nav)}

/* ─── SKIP NAV ───────────────────────────────────────── */
.skip-nav{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip-nav:focus{position:fixed;left:var(--pad);top:calc(var(--nav) + 8px);width:auto;height:auto;padding:.5rem 1rem;background:var(--black);color:var(--white);font-size:.8rem;font-weight:700;border-radius:var(--r);z-index:400;overflow:visible}

/* ─── NAV STRUCTURE (uses the --color-* surface tokens from base.css — same theme system as the footer) ── */
.nav{position:fixed;top:0;left:0;right:0;z-index:300;height:var(--nav);display:flex;align-items:center;justify-content:space-between;padding:0 var(--pad);background:var(--color-surface-container-low);border-bottom:1px solid var(--color-outline-variant);color:var(--color-on-surface)}
.nav-logo{display:flex;align-items:center;gap:.55rem}
.nav-logo-mark{width:36px;height:36px;flex-shrink:0;display:flex;align-items:center;justify-content:center}
.nav-logo-mark img{width:100%;height:100%;object-fit:contain;display:block}
.nav-logo-mark .logo-dark{display:none}
:root[data-theme="dark"] .nav-logo-mark .logo-light{display:none}
:root[data-theme="dark"] .nav-logo-mark .logo-dark{display:block}
.nav-logo-text{display:flex;flex-direction:column;line-height:1.2;color:var(--color-on-surface)}
.nav-logo-text .sub{font-size:.6rem;letter-spacing:.12em;text-transform:uppercase;color:var(--color-on-surface-variant)}
.nav-logo-text .name{font-size:.82rem;font-weight:600}
.nav-links{display:flex;align-items:center;gap:1.5rem;list-style:none}
.nav-links a{font-size:.78rem;font-weight:400;transition:color .15s;white-space:nowrap;color:var(--color-on-surface-variant)}
.nav-links a:hover{color:var(--color-on-surface)}

/* ─── HAMBURGER ──────────────────────────────────────── */
.hamburger{display:none;flex-direction:column;justify-content:center;gap:5px;width:40px;height:40px;cursor:pointer;background:none;border:none;padding:4px;color:var(--color-on-surface-variant)}
.hamburger span{display:block;width:24px;height:2px;background:currentColor;transition:all .3s}
.hamburger.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.hamburger.open span:nth-child(2){opacity:0}
.hamburger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* ─── MOBILE MENU ────────────────────────────────────── */
.mobile-menu{display:none;position:fixed;inset:0;z-index:200;background:var(--color-surface);flex-direction:column;padding:calc(var(--nav) + 4px) 8px 8px}
.mobile-menu.open{display:flex}
.mobile-menu-items{display:flex;flex-direction:column;flex:1;gap:4px;overflow:hidden}
.mobile-item{flex:1;position:relative;overflow:hidden;display:flex;align-items:flex-end;padding:.9rem 1rem;border-radius:var(--r);background:var(--color-surface-container-low);min-height:0}
.mobile-item img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:var(--r);object-position:center center}
.mobile-item.invest-item img{object-position:center bottom}
.mobile-item.about-item img{object-position:center 15%}
.mobile-item[href$="#classes"] img,.mobile-item[href$="#booking"] img{object-position:center 25%}
.mobile-item[href$="#merch"] img{object-position:center 55%}
.mobile-item-label{position:relative;z-index:1;font-family:var(--serif);font-size:1.85rem;font-weight:700;color:#fff;line-height:1;text-shadow:0 2px 18px rgba(0,0,0,.8),0 1px 4px rgba(0,0,0,.6)}
.mobile-item.cta-item{background:var(--gold);flex:0 0 54px}
.mobile-item.cta-item .mobile-item-label{font-family:var(--sans);font-size:.92rem;letter-spacing:.12em;text-transform:uppercase;font-weight:700;text-shadow:none}

/* ─── SCROLL REVEAL ──────────────────────────────────── */
.js .fu{opacity:0;transform:translateY(26px);transition:opacity .7s ease,transform .7s ease}
.js .fu.on{opacity:1;transform:translateY(0)}
@media(prefers-reduced-motion:reduce){.js .fu{opacity:1;transform:none;transition:none}}

/* ─── SKELETON ───────────────────────────────────────── */
@keyframes shimmer{0%{background-position:-200% 0}100%{background-position:200% 0}}
.skeleton-block{background:linear-gradient(90deg,#e8e8e8 25%,#f5f5f5 50%,#e8e8e8 75%);background-size:200% 100%;animation:shimmer 1.4s infinite;border-radius:var(--r)}

/* ─── BUTTONS ────────────────────────────────────────── */
.btn-gold{padding:.52rem 1.2rem;background:var(--gold);color:var(--white);border-radius:2rem;font-size:.75rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;transition:filter .2s,opacity .2s;display:inline-block}
.btn-gold:hover{filter:brightness(.9)}
.btn-black{padding:.52rem 1.2rem;background:var(--black);color:var(--white);border-radius:2rem;font-size:.75rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;transition:filter .2s,opacity .2s;display:inline-block}
.btn-black:hover{opacity:.85}
.btn-gold:active,.btn-black:active{transform:translateY(1px)}
.theme-toggle:hover,.hamburger:hover{color:var(--color-on-surface)}
.mobile-item.cta-item:hover{filter:brightness(.92)}
/* bottom row of the mobile menu: Contact Me takes 3/4, Instagram and Facebook 1/8 each */
.mobile-menu-row{display:flex;gap:4px;flex:0 0 54px;min-height:0}
.mobile-menu-row .mobile-item{flex:1 1 0;min-width:0}
.mobile-menu-row .mobile-item.cta-item{flex:6 1 0}
.mobile-item.social-item{align-items:center;justify-content:center;padding:0}
.mobile-item.social-item svg{width:24px;height:24px;fill:#fff;position:relative;z-index:1}
.mobile-item.ig-item{background:#F56040}
.mobile-item.fb-item{background:#1877F2}
.mobile-item.social-item:hover{filter:brightness(.92)}
.btn-arrow{font-size:.8rem;color:var(--dg);display:inline-flex;align-items:center;gap:.3rem;font-weight:500}

/* ─── FOCUS ──────────────────────────────────────────── */
:focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:2px}

/* ─── FOOTER ─────────────────────────────────────────── */
.footer{background:#000;color:var(--white);position:relative;overflow:hidden;border-top:1px solid rgba(255,255,255,.08)}
/* opacity / filter / object-position set per-page (differ between pages) */
.footer-img{width:100%;height:420px;object-fit:cover;display:block}
.footer-body{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:space-between;padding:3.5rem var(--pad) 4rem;pointer-events:none}
.footer-body *{pointer-events:auto}
.footer-l{text-align:left}
.footer-l .up{font-size:.62rem;letter-spacing:.15em;text-transform:uppercase;color:rgba(255,255,255,.45);margin-bottom:.65rem;display:block;font-weight:600}
.footer-l h2{font-family:var(--serif);font-size:clamp(2rem,4vw,3.8rem);font-weight:900;line-height:1.08;letter-spacing:-.025em}
.footer-l h2 em{font-style:italic}
.footer-icons-center{display:flex;justify-content:center;gap:1.5rem;padding-bottom:10px}
.f-icon-wrap{display:flex;flex-direction:column;align-items:center;gap:.45rem}
.f-icon{width:50px;height:50px;border:2px solid rgba(255,255,255,.5);border-radius:50%;display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.7);transition:all .22s}
.f-icon:hover{background:rgba(255,255,255,.15);color:var(--white);border-color:var(--white)}
.f-icon svg{width:18px;height:18px;fill:currentColor}
.f-icon-label{font-size:.6rem;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.55);text-align:center;white-space:nowrap;font-weight:700}
.footer-bot{position:relative;z-index:1;padding:.8rem var(--pad);background:#000;display:flex;justify-content:space-between;align-items:center;font-size:.66rem;color:rgba(255,255,255,.2);border-top:1px solid rgba(255,255,255,.07)}
.pol-links{display:flex;gap:1.2rem}
.pol-links a{color:rgba(255,255,255,.35);text-decoration:none;transition:color .15s}
.pol-links a:hover{color:rgba(255,255,255,.7)}

/* ─── RESPONSIVE — NAV + FOOTER ──────────────────────── */
@media(max-width:900px){
  .nav-links{display:none}
  .hamburger{display:flex}
  .theme-toggle{margin-left:auto}
  .footer-img{height:336px}
  .footer-body{padding:2.5rem var(--pad) 4rem}
  .footer-bot{justify-content:space-evenly;padding:.8rem 0}
  .pol-links{display:contents}
  .footer-l h2{font-size:clamp(1.8rem,7vw,2.8rem)}
}


/* ─── FOOTER (Sharon Kihara theme-aware surface, icon row) ───── */
.footer2{background:var(--color-surface-container-low);border-top:1px solid var(--color-outline-variant);color:var(--color-on-surface)}
.footer2-inner{max-width:1120px;margin:0 auto;padding:0 var(--pad) 1.5rem}
.footer2-icons{display:flex;justify-content:center;gap:1.5rem;padding:2rem 0}
.footer2 .f-icon-wrap{display:flex;flex-direction:column;align-items:center;gap:.45rem}
.footer2 .f-icon{width:48px;height:48px;border:.75px solid var(--color-on-surface);border-radius:10px;display:flex;align-items:center;justify-content:center;color:var(--color-on-surface);transition:all .2s}
.footer2 .f-icon:hover{border-color:var(--color-on-surface);opacity:.75}
.footer2 .f-icon svg{width:24px;height:24px;fill:currentColor}
.footer2 .f-icon-label{font-size:.66rem;letter-spacing:.08em;text-transform:uppercase;color:var(--color-on-surface);font-weight:700}
.footer2-bot{display:flex;flex-wrap:wrap;gap:1rem;justify-content:space-between;align-items:center;padding-top:1.5rem;border-top:1px solid var(--color-outline-variant);font-size:.792rem;color:var(--color-on-surface)}
.footer2-bot .pol-links{display:flex;gap:1.1rem;flex-wrap:wrap}
.footer2-bot .pol-links a{color:var(--color-on-surface);transition:opacity .15s}
.footer2-bot .pol-links a:hover{opacity:.7}
@media(max-width:900px){
    .footer2-icons{flex-wrap:wrap;gap:1rem}
}


/* ─── THEME TOGGLE ────────────────────────────────────── */
.theme-toggle{display:flex;align-items:center;justify-content:center;width:40px;height:40px;background:none;border:none;cursor:pointer;color:var(--color-on-surface-variant);margin-right:.25rem}
.theme-toggle svg{width:20px;height:20px;fill:currentColor;display:none}
:root[data-theme="dark"] .theme-toggle .icon-sun{display:block}
:root[data-theme="light"] .theme-toggle .icon-moon{display:block}

/* respect reduced motion everywhere: no smooth scrolling, transitions or animations */
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
