/* ═══════════════════════════════════════════
   SHARED — Mango Ink Studio
   Common styles loaded by every content page.
   Page-specific CSS stays inline in each HTML.
   ═══════════════════════════════════════════ */

/* ── FONTS ── */
@font-face {
  font-family: 'Editorial Comment';
  src: url('/fonts/editorialcomment.woff2') format('woff2'),
       url('/fonts/editorialcomment.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}

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

/* ── VARIABLES (defaults — pages may override) ── */
:root {
  --heading: 'Editorial Comment', Georgia, 'Times New Roman', serif;
  --body: Futura, 'Century Gothic', 'Trebuchet MS', sans-serif;
  --font: var(--body);
  --bg: #fafafa;
  --white: #fff;
  --ink: #111;
  --muted: #999;
  --light: #bbb;
  --border: #ebebeb;
  --dark-bg: #0a0a0a;
  --cream: #f5f5f5;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── BASE ── */
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: rgba(0,0,0,0.1); }

/* ── ACCESSIBILITY ── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100px; left: 16px; background: #111; color: #fff;
  padding: 8px 16px; z-index: 200; font-size: 13px; letter-spacing: .1em;
  text-transform: uppercase; transition: top .2s;
}
.skip-link:focus { top: 8px; }

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 72px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  transition: background 0.6s ease, border-color 0.6s ease;
}
.site-header.nav-scrolled {
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-logo { position: relative; width: 120px; height: 40px; }
.header-logo img { position: absolute; top: 0; left: 0; width: 100%; height: auto; transition: opacity 0.4s; }
.logo-light { opacity: .7; }
.logo-dark { opacity: 0; }
.header-logo:hover img { opacity: 1 !important; }
.main-nav { display: flex; gap: 32px; align-items: center; }
.main-nav a {
  font-size: 10px; font-weight: 400; letter-spacing: .25em; text-transform: uppercase;
  color: rgba(255,255,255,0.75); transition: color 0.4s ease;
}
.main-nav a:hover, .main-nav a:focus-visible { color: #fff; }
.nav-inquire {
  font-size: 10px; font-weight: 400; letter-spacing: .25em; text-transform: uppercase;
  padding: 10px 24px; border: 1px solid rgba(255,255,255,0.4); color: rgba(255,255,255,0.9); transition: all 0.4s ease;
}
.nav-inquire:hover, .nav-inquire:focus-visible { background: #fff; color: var(--ink); }
.hamburger {
  display: none; width: 28px; height: 20px; position: relative; z-index: 101;
}
.hamburger span {
  position: absolute; left: 0; width: 100%; height: 1.5px;
  background: #fff; transition: all 0.35s ease;
}
.hamburger span:first-child { top: 4px; }
.hamburger span:last-child { bottom: 4px; }
.hamburger.open span:first-child { top: 50%; transform: rotate(45deg) translateY(-50%); }
.hamburger.open span:last-child { bottom: 50%; transform: rotate(-45deg) translateY(50%); }
.mobile-nav {
  display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.95); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center; gap: 36px; z-index: 99;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--body); font-size: 32px; color: var(--white);
  opacity: 0; transform: translateY(20px); transition: opacity 0.4s ease, transform 0.4s ease;
}
.mobile-nav.open a { opacity: 1; transform: translateY(0); }
.mobile-nav.open a:nth-child(1) { transition-delay: 0.05s; }
.mobile-nav.open a:nth-child(2) { transition-delay: 0.1s; }
.mobile-nav.open a:nth-child(3) { transition-delay: 0.15s; }
.mobile-nav.open a:nth-child(4) { transition-delay: 0.2s; }
.mobile-nav.open a:nth-child(5) { transition-delay: 0.25s; }
.mobile-nav.open a:nth-child(6) { transition-delay: 0.3s; }
.mobile-nav.open a:nth-child(7) { transition-delay: 0.35s; }

/* Light header for light-bg pages */
.header-light .logo-light { opacity: 0; }
.header-light .logo-dark { opacity: .7; }
.header-light .main-nav a { color: rgba(0,0,0,0.55); }
.header-light .main-nav a:hover { color: var(--ink); }
.header-light .nav-inquire { border-color: rgba(0,0,0,0.2) !important; color: rgba(0,0,0,0.7) !important; }
.header-light .nav-inquire:hover { background: var(--ink) !important; color: #fff !important; border-color: var(--ink) !important; }
.header-light .hamburger span { background: var(--ink); }
.header-light.nav-scrolled .logo-light { opacity: .7; }
.header-light.nav-scrolled .logo-dark { opacity: 0; }
.header-light.nav-scrolled .main-nav a { color: rgba(255,255,255,0.75); }
.header-light.nav-scrolled .main-nav a:hover { color: #fff; }
.header-light.nav-scrolled .nav-inquire { border-color: rgba(255,255,255,0.4) !important; color: rgba(255,255,255,0.9) !important; }
.header-light.nav-scrolled .nav-inquire:hover { background: #fff !important; color: var(--ink) !important; border-color: #fff !important; }
.header-light.nav-scrolled .hamburger span { background: #fff; }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
  background: var(--dark-bg);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 72px 40px 40px;
  color: var(--cream);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto 60px;
}
.footer-col-title {
  font-size: 9px; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); margin-bottom: 20px;
}
.footer-col a {
  display: block; font-size: 14px; font-weight: 300;
  color: rgba(255,255,255,0.5); margin-bottom: 12px; transition: color 0.3s ease;
}
.footer-col a:hover, .footer-col a:focus-visible { color: var(--white); }
.footer-colophon {
  text-align: center;
  padding: 0 0 32px;
}
.footer-colophon img {
  width: 44px; height: auto; opacity: 0.15;
  transition: opacity 0.5s; user-select: none;
}
.footer-colophon:hover img { opacity: 0.35; }
.footer-bottom {
  max-width: 1100px; margin: 0 auto; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-logo { width: 60px; opacity: 0.3; }
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.2); }

/* ═══════════════════════════════════════════
   RESPONSIVE — shared nav + footer
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .site-header { padding: 0 24px; }
  .main-nav { display: none; }
  .hamburger { display: block; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
