/* ──────────────────────────────────────────────────────────────────────────
   White Sands Weddings — shared site chrome for the tools suite.
   Matches the main site (whitesandsweddings.com rebuild): real brand faces,
   fixed white nav with hamburger / wordmark / brushstroke Inquire, paper
   footer with combomark, and the legal credit strip.
   Loaded AFTER each page's own stylesheet; look-and-feel only.
   ────────────────────────────────────────────────────────────────────────── */

/* Brand faces (files supplied by Matt; same ones the main site serves) */
@font-face {
  font-family: 'Made Canvas Light';
  src: url('/brand/fonts/made-canvas-light.woff2') format('woff2');
  font-weight: 300 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Mozart';
  src: url('/brand/fonts/mozart.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --wsw-ink: #0c1519;
  --wsw-ivory: #fcfcf0;
  --wsw-taupe: #76756f;
  --wsw-tan: #bba787;
  --wsw-greige: #ecebe8;
  --wsw-menu-grey: #8e8c85;
  --wsw-navy: #3e5174;

  --wsw-font-display: 'Made Canvas Light', 'Cormorant Garamond', Georgia, serif;
  --wsw-font-display-italic: 'Cormorant Garamond', Georgia, serif;
  --wsw-font-script: 'Mozart', 'Snell Roundhand', cursive;
  --wsw-font-body: 'Work Sans', -apple-system, sans-serif;
  --wsw-font-accent: 'Montserrat', sans-serif;

  /* Every tool page already routes its headings through --font-display. */
  --font-display: var(--wsw-font-display);

  --wsw-nav-h: 67px;
}
@media (max-width: 767px) {
  :root { --wsw-nav-h: 48px; }
}

/* Made Canvas has no italic — the main site sets italic display copy in
   Cormorant Garamond italic, so do the same for the tools' <em> accents. */
h1 em,
h2 em,
.hero__title em,
.wsw-hero__title em,
.chapter-opener__title em,
.wswGate__title em {
  font-family: var(--wsw-font-display-italic);
  font-style: italic;
}

/* Fixed nav needs room */
body {
  padding-top: var(--wsw-nav-h);
}
/* Each tool's fixed "← All tools" link sat at the top-left corner; keep it
   just below the brand nav instead of underneath it. */
.back-to-tools {
  top: calc(var(--wsw-nav-h) + 14px) !important;
}

/* ─── Nav ─────────────────────────────────────────────────────────────── */
.wsw-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--wsw-nav-h);
  z-index: 900;
  background: #fff;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 22px;
  box-sizing: border-box;
  font-family: var(--wsw-font-display);
}
.wsw-nav::after,
.wsw-nav::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  pointer-events: none;
}
.wsw-nav::before { bottom: 10px; background: rgba(118, 117, 111, 0.33); }
.wsw-nav::after  { bottom: 3px;  background: rgba(118, 117, 111, 0.2); }
@media (max-width: 767px) {
  .wsw-nav { padding: 0 12px; }
  .wsw-nav::before { bottom: 3px; }
  .wsw-nav::after  { display: none; }
}

.wsw-nav__burger {
  justify-self: start;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: #444;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: -6px;
}
.wsw-nav__burger svg { width: 30px; height: 30px; display: block; }
@media (max-width: 767px) {
  .wsw-nav__burger svg { width: 26px; height: 26px; }
  .wsw-nav__burger { margin-top: -3px; }
}

.wsw-nav__wordmark {
  justify-self: center;
  display: block;
  margin-top: -6px;
  line-height: 0;
}
.wsw-nav__wordmark img {
  display: block;
  height: 39px;
  width: auto;
}
@media (max-width: 767px) {
  .wsw-nav__wordmark { margin-top: -3px; }
  .wsw-nav__wordmark img { height: 22px; }
}

.wsw-nav__inquire {
  justify-self: end;
  margin-top: -4px;
}

/* ─── Brushstroke CTA (navy watercolor + white label) ─────────────────── */
.wsw-brush {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 97px;
  height: 65px;
  text-decoration: none;
  color: #fff;
  font-family: var(--wsw-font-display);
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-transform: capitalize;
  background: url('/brand/brush.png') center / 100% 100% no-repeat;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.wsw-brush:hover { opacity: 0.88; transform: translateY(-1px); }
.wsw-brush--lg { width: 125px; height: 84px; font-size: 17px; }
@media (max-width: 767px) {
  .wsw-nav .wsw-brush { width: 62px; height: 42px; font-size: 10px; }
}

/* ─── Menu overlay ───────────────────────────────────────────────────── */
.wsw-menu {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: none;
  overflow: auto;
  background: #fff url('/brand/paper.jpg') center / cover no-repeat;
  box-shadow: 0 18px 40px rgba(12, 21, 25, 0.12);
}
.wsw-menu.is-open { display: block; animation: wswMenuFade 0.45s both; }
@keyframes wswMenuFade { from { opacity: 0; } to { opacity: 1; } }
html.wsw-menu-open { overflow: hidden; }

.wsw-menu__close {
  position: absolute;
  top: 12px;
  left: 22px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: #444;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wsw-menu__close svg { width: 30px; height: 30px; }

.wsw-menu__inner {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 40px 64px;
  box-sizing: border-box;
}
.wsw-menu__eyebrow {
  font-family: var(--wsw-font-accent);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wsw-menu-grey);
  margin: 0 0 18px;
}
.wsw-menu__links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wsw-menu__links li { margin: 0 0 6px; }
.wsw-menu__links a {
  font-family: var(--wsw-font-display);
  font-size: 55px;
  line-height: 1.2;
  color: var(--wsw-menu-grey);
  text-decoration: none;
  text-transform: capitalize;
  display: inline-block;
  transition: color 0.35s ease, letter-spacing 0.35s ease, transform 0.35s ease;
}
.wsw-menu__links a:hover {
  font-family: var(--wsw-font-display-italic);
  font-style: italic;
  color: var(--wsw-tan);
  letter-spacing: 0.03em;
  transform: translateX(4px);
}
.wsw-menu__links--tools a { font-size: 30px; }
.wsw-menu__tagline {
  font-family: var(--wsw-font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--wsw-menu-grey);
  margin: 40px 0 0;
  max-width: 48ch;
}
.wsw-menu__socials {
  display: flex;
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.wsw-menu__socials a { color: var(--wsw-menu-grey); display: block; }
.wsw-menu__socials svg { width: 15px; height: 15px; display: block; }
@media (max-width: 767px) {
  .wsw-menu__inner { grid-template-columns: 1fr; gap: 28px; padding: 80px 24px 48px; text-align: center; }
  .wsw-menu__links a { font-size: 25px; color: var(--wsw-taupe); }
  .wsw-menu__links--tools a { font-size: 20px; }
  .wsw-menu__tagline { margin: 24px auto 0; font-size: 10px; }
  .wsw-menu__socials { justify-content: center; }
}

/* ─── Footer ─────────────────────────────────────────────────────────── */
.wsw-footer {
  position: relative;
  background: var(--wsw-ink) url('/brand/paper.jpg') center / cover no-repeat;
  color: var(--wsw-taupe);
  font-family: var(--wsw-font-body);
  font-weight: 300;
  padding: 20px 24px 28px;
  box-sizing: border-box;
}
.wsw-footer__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  align-items: center;
  gap: 24px;
}
.wsw-footer__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.wsw-footer__col--left  { border-right: 1px solid rgba(118, 117, 111, 0.33); padding: 8px 0; }
.wsw-footer__col--right { border-left: 1px solid rgba(118, 117, 111, 0.33); padding: 8px 0; }
.wsw-footer__photo {
  width: 128px;
  height: 177px;
  object-fit: cover;
  display: block;
}
.wsw-footer__booking {
  font-family: var(--wsw-font-display);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.8;
  margin: 0;
}
.wsw-footer__combomark {
  display: block;
  width: 166px;
  height: auto;
  margin: 0 auto;
}
.wsw-footer__tagline {
  font-family: var(--wsw-font-accent);
  font-weight: 300;
  font-size: 13px;
  text-transform: capitalize;
  line-height: 1.5;
  margin: 22px 0 6px;
}
.wsw-footer__area {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.8;
  margin: 0;
}
.wsw-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wsw-footer__links a {
  font-family: var(--wsw-font-display);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.8;
  color: var(--wsw-taupe);
  text-decoration: none;
  transition: color 0.5s;
}
.wsw-footer__links a:hover { color: var(--wsw-tan); }
.wsw-footer__service {
  max-width: 1100px;
  margin: 34px auto 0;
  text-align: center;
  font-size: 11px;
  line-height: 1.8;
}
@media (max-width: 767px) {
  .wsw-footer { padding: 16px 20px 24px; }
  .wsw-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .wsw-footer__col--left,
  .wsw-footer__col--right { border: 0; padding: 0; }
  .wsw-footer__col--center { order: -1; }
  .wsw-footer__links { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
  .wsw-footer__photo { width: 105px; height: 140px; }
  .wsw-footer__combomark { width: 96px; }
  .wsw-footer__tagline { font-size: 11px; margin-top: 16px; }
  .wsw-footer__area { font-size: 9px; }
  .wsw-footer__service { font-size: 9px; margin-top: 26px; }
}

/* ─── Credit strip ───────────────────────────────────────────────────── */
.wsw-credit {
  background: #fff url('/brand/paper.jpg') center / cover no-repeat;
  color: var(--wsw-taupe);
  font-family: var(--wsw-font-body);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  border-top: 1px solid rgba(118, 117, 111, 0.2);
}
.wsw-credit a { color: inherit; text-decoration: none; }
.wsw-credit a:hover { color: var(--wsw-tan); }
@media (max-width: 767px) {
  .wsw-credit { font-size: 8px; padding: 8px 12px; }
}

/* Hide chrome when printing a tool's output */
@media print {
  .wsw-nav, .wsw-menu, .wsw-footer, .wsw-credit { display: none !important; }
  body { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wsw-menu.is-open { animation: none; }
  .wsw-brush, .wsw-menu__links a, .wsw-footer__links a { transition: none; }
}
