/* ============================================================
   Seriously, Wow — main.css
   Shared design tokens, typography, nav, footer, utilities
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,500;0,8..60,600;0,8..60,700;1,8..60,300;1,8..60,400;1,8..60,500;1,8..60,600;1,8..60,700&family=Jacquard+24&display=swap');

/* Design tokens */
:root {
  --cream:  #f9efe5;
  --purple: #453592;
  --orange: #db7637;
  --cyan:   #00b3e4;
  --black:  #000000;
  --white:  #ffffff;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  font-family: 'Source Serif 4', serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
ul { list-style: none; }

/* ============================================================
   Page wrapper — 1440px desktop, centered
   ============================================================ */
.page {
  position: relative;
  width: 1440px;
  margin: 0 auto;
  background: var(--cream);
}

/* ============================================================
   Desktop Nav (shared across all pages)
   ============================================================ */
.nav {
  position: absolute;
  top: 24px;
  left: 0;
  width: 1440px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 56px;
  z-index: 100;
}

.nav__logo {
  position: relative;
  width: 315px;
  height: 117px;
  flex-shrink: 0;
}

.nav__logo img {
  position: absolute;
  top: 0;
  left: -6.19%;
  width: 111.43%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 30px;
  letter-spacing: -1.5px;
  flex-shrink: 0;
}

.nav__links a {
  font-family: 'Source Serif 4', serif;
  font-weight: 400;
  color: var(--black);
  line-height: normal;
  white-space: nowrap;
}

.nav__links a.active {
  font-weight: 700;
  color: var(--purple);
}

/* ── Sticky nav — show on scroll-up / pause ── */
.nav {
  transition: top 0.3s ease;
}
.nav.nav-scrolled {
  position: fixed !important;
  top: 0 !important;
  left: 50% !important;
  margin-left: -720px;
  background: var(--cream);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.nav.nav-scrolled.nav--hidden {
  top: -114px !important;
}

/* Nav logo as HTML text (home page) */
.nav__logo--text {
  font-family: 'Source Serif 4', serif;
  font-weight: 400;
  font-size: 38px;
  letter-spacing: -1.9px;
  color: var(--black);
  white-space: nowrap;
  display: flex;
  align-items: center;
  width: auto;
  height: auto;
  text-decoration: none;
}
.nav__logo--text .nav-wow {
  font-weight: 700;
  font-size: 44px;
  letter-spacing: -2.2px;
  color: var(--black);
}
/* Home page: WOW in purple */
.nav__logo--home .nav-wow {
  color: var(--purple);
}

/* Mobile nav (hidden on desktop) */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  background: var(--cream);
  padding: 35px 16px;
  align-items: center;
  justify-content: space-between;
}

.nav-mobile__logo {
  position: relative;
  width: 229px;
  height: 85px;
}

.nav-mobile__logo img {
  position: absolute;
  top: 0;
  left: -6.19%;
  width: 111.43%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

.nav-mobile__burger {
  width: 36px;
  height: 26px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
}

.nav-mobile__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--black);
}

/* Mobile menu overlay */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--purple);
  z-index: 300;
  flex-direction: column;
  justify-content: center;
  padding: 60px 24px;
}

.nav-overlay.open {
  display: flex;
}

.nav-overlay__close {
  position: absolute;
  top: 40px;
  right: 24px;
  font-size: 40px;
  color: var(--cream);
  cursor: pointer;
  line-height: 1;
}

.nav-overlay__links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-overlay__links a {
  font-family: 'Source Serif 4', serif;
  font-size: 80px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -4px;
}

.nav-overlay__links a.active {
  font-weight: 700;
  color: var(--orange);
}

/* ============================================================
   Desktop Footer (shared)
   ============================================================ */
.footer {
  position: relative;
  width: 1440px;
  height: 745px;
  background: var(--purple);
  flex-shrink: 0;
}

/* Footer nav links (100px left column) */
.footer__nav {
  position: absolute;
  left: 55px;
  top: 12px;
  width: 508px;
}

.footer__nav-label {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 50px;
  line-height: 100px;
  color: var(--orange);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0;
}

.footer__nav a {
  display: block;
  font-family: 'Source Serif 4', serif;
  font-weight: 400;
  font-size: 100px;
  line-height: 100px;
  letter-spacing: -5px;
  color: var(--white);
}

/* Footer center content */
.footer__tagline {
  position: absolute;
  left: 504px;
  top: 596px;
  width: 880px;
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 40px;
  line-height: 46px;
  letter-spacing: -2px;
  color: #fdfdfd;
}

.footer__tagline span {
  color: var(--cream);
}

.footer__tagline .jacquard-inline {
  font-family: 'Jacquard 24', serif;
  font-style: normal;
  font-size: 48px;
  letter-spacing: -1px;
  color: var(--cream);
}

.footer__wordmark {
  position: absolute;
  left: 504px;
  top: 450px;
  font-family: 'Source Serif 4', serif;
  font-weight: 400;
  font-size: 120px;
  line-height: 120px;
  letter-spacing: -5px;
  color: var(--orange);
  white-space: nowrap;
}

.footer__wordmark .wow {
  font-weight: 700;
  font-size: 140px;
  letter-spacing: -6px;
}

/* Footer SW W logo (bottom right) */
.footer__sw-logo {
  position: absolute;
  left: 1209px;
  top: 593px;
  width: 191px;
  height: 107px;
  overflow: hidden;
}

.footer__sw-logo img {
  position: absolute;
  left: 0.82%;
  top: -2.33%;
  width: 100%;
  height: 100%;
  max-width: none;
}

/* Footer easter egg (Jacquard top right) */
.footer__easter-egg {
  position: absolute;
  right: 56px;
  top: 42px;
  width: 226px;
  text-align: right;
  color: var(--cream);
  letter-spacing: -1px;
}

.footer__easter-egg .jacquard {
  font-family: 'Jacquard 24', serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 20px;
  display: block;
}

.footer__easter-egg .small {
  font-family: 'Source Serif 4', serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 20px;
  display: block;
}

/* Footer book icon — left-aligned under Silly Wizards Guild */
.footer__book {
  position: absolute;
  right: auto;
  left: 1158px;
  top: 290px;
  text-align: left;
}

.footer__book img {
  width: 100px;
  height: auto;
  margin: 0;
}

.footer__book p {
  font-family: 'Source Serif 4', serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 20px;
  letter-spacing: -1px;
  color: var(--cream);
  text-align: left;
  width: 145px;
  margin-top: 8px;
}

/* ============================================================
   Mobile Footer (shown only on mobile)
   ============================================================ */
.footer-mobile {
  display: none;
  flex-direction: column;
  width: 100%;
  background: var(--purple);
  padding: 25px 15px 30px;
}

.footer-mobile__nav-label {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 25px;
  line-height: 25px;
  letter-spacing: -1.25px;
  color: var(--orange);
  margin-bottom: 10px;
}

.footer-mobile__nav a {
  display: block;
  font-family: 'Source Serif 4', serif;
  font-weight: 400;
  font-size: 80px;
  line-height: 80px;
  letter-spacing: -5px;
  color: var(--white);
}

/* Wordmark */
.footer-mobile__wordmark {
  font-family: 'Source Serif 4', serif;
  font-weight: 400;
  font-size: 60px;
  line-height: 60px;
  letter-spacing: -3px;
  color: var(--orange);
  white-space: nowrap;
  margin-top: 30px;
  margin-bottom: 8px;
}

.footer-mobile__wordmark .wow {
  font-weight: 700;
  font-size: 70px;
}

/* Tagline */
.footer-mobile__tagline {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: -0.8px;
  color: #fdfdfd;
  margin-bottom: 24px;
}

.footer-mobile__tagline span { color: var(--cream); }

.footer-mobile__tagline .jacquard-inline {
  font-family: 'Jacquard 24', serif;
  font-style: normal;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--cream);
}

/* Bottom row: easter egg left, book right */
.footer-mobile__bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
  padding-top: 16px;
}

.footer-mobile__easter-egg-title {
  font-family: 'Jacquard 24', serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 20px;
  color: var(--cream);
  display: block;
  margin-bottom: 4px;
}

.footer-mobile__credits {
  font-family: 'Source Serif 4', serif;
  font-size: 12px;
  line-height: 14px;
  letter-spacing: -0.6px;
  color: var(--cream);
}

.footer-mobile__book {
  text-align: center;
}

.footer-mobile__book img {
  width: 44px;
  height: auto;
  margin: 0 auto 4px;
  display: block;
}

.footer-mobile__book p {
  font-family: 'Source Serif 4', serif;
  font-size: 10px;
  line-height: 12px;
  letter-spacing: -0.5px;
  color: var(--cream);
  text-align: center;
  width: 80px;
}

/* ============================================================
   CTA Section (reused across pages)
   ============================================================ */
.cta-email {
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
  font-size: 50px;
  letter-spacing: -2.5px;
  color: var(--purple);
  white-space: nowrap;
}

/* ============================================================
   Image utilities
   ============================================================ */
.img-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.img-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* ============================================================
   Case page styles
   ============================================================ */
.case-hero {
  position: relative;
  overflow: hidden;
}

.case-grid-3-4 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.case-img {
  aspect-ratio: 3/4;
  overflow: hidden;
}

.case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-wide {
  position: relative;
  overflow: hidden;
}

.case-wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Previous / Next navigation */
.case-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 56px;
  font-family: 'Source Serif 4', serif;
  font-size: 50px;
  letter-spacing: -2.5px;
}

.case-nav a {
  color: var(--black);
}

.case-nav a:hover {
  color: var(--purple);
}

/* ============================================================
   Gallery page
   ============================================================ */
.gallery-thumb {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  width: 1440px;
}

.gallery-thumb__img {
  position: absolute;
  top: 0;
  left: 56px;
  width: 1328px;
  height: 885px;
  overflow: hidden;
}

.gallery-thumb__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

.gallery-thumb__title {
  position: absolute;
  left: 54px;
  font-family: 'Source Serif 4', serif;
  font-weight: 400;
  font-size: 50px;
  letter-spacing: -2.5px;
  color: var(--black);
  line-height: 1.1;
}

.gallery-thumb__subtitle {
  position: absolute;
  right: 56px;
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 30px;
  letter-spacing: -1.5px;
  color: var(--black);
  text-align: right;
  line-height: 70px;
}

/* ============================================================
   Contact form
   ============================================================ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-form__field {
  position: relative;
  margin-bottom: 0;
}

.contact-form__label {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 50px;
  letter-spacing: -2.5px;
  color: var(--orange);
  line-height: normal;
  display: block;
  cursor: text;
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--black);
  font-family: 'Source Serif 4', serif;
  font-size: 30px;
  color: var(--black);
  padding: 8px 0 40px;
  outline: none;
  resize: none;
}

.contact-form__send {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 50px;
  letter-spacing: -2.5px;
  color: var(--purple);
  text-align: right;
  cursor: pointer;
  background: none;
  border: none;
  display: block;
  margin-left: auto;
  padding: 0;
}

/* ============================================================
   FAQ page
   ============================================================ */
.faq-item {
  position: relative;
  border-top: 1px solid var(--black);
  padding-top: 40px;
  margin-bottom: 60px;
}

.faq-question {
  font-family: 'Source Serif 4', serif;
  font-weight: 400;
  font-size: 100px;
  line-height: 100px;
  letter-spacing: -5px;
  text-align: right;
  width: 537px;
  float: left;
  margin-right: 28px;
}

.faq-answer {
  font-family: 'Source Serif 4', serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 40px;
  letter-spacing: -1.5px;
  overflow: hidden;
}

.faq-answer p { margin-bottom: 1em; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer em { font-style: italic; }
.faq-answer ul { list-style: disc; padding-left: 28px; }

/* ============================================================
   Mobile overrides
   ============================================================ */
@media (max-width: 768px) {

  /* Swap desktop/mobile elements */
  .nav    { display: none !important; }
  .footer { display: none !important; }
  .desktop-only { display: none !important; }

  .nav-mobile    { display: flex !important; }
  .footer-mobile { display: flex !important; flex-direction: column; }
  .mobile-only   { display: block !important; }

  /* Page wrapper */
  .page {
    width: 390px;
    overflow-x: hidden;
  }

  /* Body */
  body {
    overflow-x: hidden;
  }

  /* Mobile padding top (fixed nav) */
  .page-content-mobile {
    padding-top: 120px;
  }
}

/* ============================================================
   Scrollbar styling
   ============================================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 4px; }
