/* Paws Across the World — vibrant, kid-first, words-forward */
:root {
  --blue: #1a37a0;        /* logo royal blue */
  --blue-deep: #0e1d55;
  --sky: #0d8fdb;
  --yellow: #ffc918;      /* logo sunny yellow, deeper */
  --yellow-deep: #d98f00;
  --green: #2e8f1a;
  --coral: #e63a54;
  --cream: #fdeebc;       /* deeper warm cream */
  --ink: #1a1c30;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(10, 25, 80, .28);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

/* First-party cookie preferences; no analytics code is loaded by this control. */
.cookie-banner { position: fixed; z-index: 1000; left: 16px; right: 16px; bottom: 16px; max-width: 780px; margin: auto; padding: 20px; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 8px 36px rgba(0,0,0,.35); border: 3px solid var(--blue); }
.cookie-banner[hidden], .cookie-panel[hidden], .cookie-reopen[hidden] { display: none; }
.cookie-banner h2 { color: var(--blue-deep); font-size: 1.45rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cookie-actions button, .cookie-panel button, .cookie-reopen { border: 2px solid var(--blue); border-radius: 999px; background: var(--blue); color: #fff; padding: 9px 16px; font: inherit; font-weight: 800; cursor: pointer; }
.cookie-actions button:nth-child(2), .cookie-actions button:nth-child(3) { background: #fff; color: var(--blue); }
.cookie-panel { margin-top: 14px; padding-top: 14px; border-top: 1px solid #ccd3e5; }
.cookie-panel label { display: block; margin-bottom: 10px; }
.cookie-reopen { position: fixed; z-index: 999; right: 14px; bottom: 14px; font-size: .84rem; box-shadow: 0 3px 14px rgba(0,0,0,.25); }
.cookie-banner button:focus-visible, .cookie-reopen:focus-visible, .cookie-banner a:focus-visible { outline: 4px solid var(--yellow); outline-offset: 3px; }
@media (max-width: 480px) { .cookie-banner { left: 8px; right: 8px; bottom: 8px; max-height: calc(100vh - 16px); overflow: auto; } .cookie-actions button { flex: 1 1 120px; } }
h1, h2, h3, .btn, .brand-name, .chip { font-family: 'Baloo 2', cursive; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 14px rgba(20, 40, 110, .12);
}
.header-inner {
  width: 100%; max-width: 1600px; margin: 0 auto; padding: 12px 28px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: 28px; min-height: 150px;
}
.brand { display: flex; align-items: center; gap: 16px; min-width: 0; justify-self: start; text-decoration: none; }
.brand-logo { height: 92px; width: 92px; object-fit: contain; flex-shrink: 0; }
.brand-lockup { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.brand-wordmark { height: 108px; width: auto; max-width: none; flex-shrink: 0; }
.brand-name {
  font-family: 'Nunito', sans-serif; font-size: 1.12rem; font-weight: 800;
  color: var(--blue); letter-spacing: .06em;
}
.brand-sub {
  font-family: 'Nunito', sans-serif; font-size: .78rem; font-weight: 700;
  color: var(--ink); opacity: .65; letter-spacing: .03em; margin-top: 4px;
}
.site-nav { display: flex; gap: clamp(18px, 1.8vw, 32px); align-items: center; justify-content: center; justify-self: center; }
.site-nav a {
  text-decoration: none; color: var(--ink);
  font-weight: 700; font-size: 1.02rem;
}
.site-nav a:hover { color: var(--blue); }
.nav-cta {
  background: var(--yellow); padding: 9px 18px; border-radius: 999px;
  box-shadow: 0 3px 0 var(--yellow-deep);
}
.nav-cta:hover { transform: translateY(-1px); color: var(--blue-deep) !important; }
.site-nav a:focus-visible, .brand:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 6px; }
.header-utilities { display: flex; align-items: center; justify-content: flex-end; justify-self: end; gap: 12px; min-width: 0; }
.nav-cta-mobile { display: none !important; }
.header-menu-toggle {
  display: none; width: 42px; height: 42px; border: 2px solid var(--blue); border-radius: 10px;
  background: #fff; color: var(--blue-deep); font-size: 1.25rem; font-weight: 800; cursor: pointer;
}
.header-menu-toggle:focus-visible, .header-sound-toggle:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 800;
  padding: 14px 28px; border-radius: 999px; font-size: 1.1rem;
  border: none; cursor: pointer; transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn-yellow { background: var(--yellow); color: var(--blue-deep); box-shadow: 0 4px 0 var(--yellow-deep); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 4px 0 var(--blue-deep); }
.btn-outline { background: rgba(255,255,255,.14); color: #fff; border: 3px solid #fff; }
.btn-small { font-size: .95rem; padding: 10px 20px; }
.btn-big { font-size: 1.2rem; width: 100%; }

/* Hero */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,20,60,.25) 0%, rgba(10,20,60,.55) 100%);
}
.hero-content { position: relative; z-index: 2; color: #fff; }
.hero-logo { height: clamp(110px, 20vw, 250px); width: auto; margin: 0 auto 18px; filter: drop-shadow(0 4px 14px rgba(0,0,0,.45)); }
.hero-kicker {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(1.5rem, 3.6vw, 2.4rem); font-weight: 700;
  color: var(--yellow); letter-spacing: .04em;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.15; font-weight: 800;
  color: #e9ecff;
  text-shadow: 0 4px 18px rgba(0,0,0,.5);
  margin-top: 10px;
}
.hero h1 .amp { color: var(--yellow); }
.hero-tag {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  margin: 18px 0 32px; font-weight: 800; color: var(--yellow);
  letter-spacing: .03em;
  text-shadow: 0 3px 14px rgba(0,0,0,.6);
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.tm { font-size: .5em; font-weight: 700; margin-left: 2px; }
.lang-switch { display: flex; align-items: center; gap: 7px; }
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 30px; padding: 3px; border: 2px solid transparent;
  border-radius: 7px; opacity: .72; text-decoration: none;
  transition: opacity .15s ease, border-color .15s ease, background .15s ease, transform .15s ease;
}
.lang-switch a:hover { opacity: 1; transform: translateY(-1px); }
.lang-switch a:focus-visible { opacity: 1; outline: 3px solid var(--blue); outline-offset: 2px; }
.lang-switch a.lang-current { opacity: 1; border-color: var(--blue); background: rgba(26,55,160,.1); }
.language-flag { width: 26px; height: 18px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(14,29,85,.22); }
.footer-lang-switch { display: flex; gap: 9px; font-weight: 800; font-size: .82rem; }
.footer-lang-switch a { color: #cfd9f7; opacity: .6; text-decoration: none; }
.footer-lang-switch a:hover { opacity: 1; }
.footer-lang-switch a.lang-current { opacity: 1; color: var(--yellow); }
.header-sound-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--blue);
  background: transparent; color: var(--blue); font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.header-sound-toggle:hover { background: var(--blue); color: #fff; transform: scale(1.06); }
.header-sound-toggle:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.paw-trail {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  font-size: 1.4rem; letter-spacing: 10px; opacity: .85; z-index: 2;
}

/* Sections */
section { padding: 84px 0; }
.section-heading {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; flex-wrap: wrap; margin-bottom: 18px;
}
.section-logo-badge {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 130px; height: 130px; border-radius: 20px;
  background: var(--blue); border: 3px solid #fff; box-shadow: var(--shadow);
}
.section-logo-badge-wide {
  width: auto; height: 340px; padding: 28px 56px; gap: 36px; border-radius: 40px;
}
.section-badge-wordmark { height: 100px; width: auto; flex-shrink: 0; }
.section-logo { height: 108px; width: auto; flex-shrink: 0; }
.section-logo-badge-wide .section-badge-wordmark { height: 200px; }
.section-logo-badge-wide .section-logo { height: 216px; }
.section-logo-bare { height: 216px; width: 216px; }
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800;
  text-align: center; color: var(--blue-deep); margin-bottom: 0;
}
.hl-blue { color: var(--blue); } .hl-green { color: var(--green); } .hl-yellow { color: var(--yellow-deep); }
.lede {
  max-width: 780px; margin: 0 auto 30px; text-align: center;
  font-size: 1.16rem;
}

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 30px; }
.pillars-4 { grid-template-columns: repeat(4, 1fr); }
.pillars-4 .pillar:nth-child(4) { border-top-color: var(--yellow-deep); }
@media (max-width: 1024px) { .pillars-4 { grid-template-columns: repeat(2, 1fr); } }
.pillar {
  background: #fff; border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow); text-align: center;
  border-top: 6px solid var(--sky);
}
.pillar:nth-child(2) { border-top-color: var(--green); }
.pillar:nth-child(3) { border-top-color: var(--coral); }
.pillar-emoji { font-size: 2.6rem; margin-bottom: 10px; }
.pillar h3 { font-size: 1.4rem; color: var(--blue-deep); margin-bottom: 8px; }

/* See them in action */
.in-action { background: linear-gradient(180deg, #b3c2ae, #fff); }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 30px; }
.video-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 16 / 9; background: #0e1d55; cursor: pointer;
}
.video-card-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-card-expand {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 20, 60, 0); transition: background .15s ease;
}
.video-card:hover .video-card-expand, .video-card:focus-visible .video-card-expand { background: rgba(10, 20, 60, .18); }
.video-card-expand-icon {
  width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.92);
  color: var(--blue-deep); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; opacity: .85; transition: opacity .15s ease, transform .15s ease;
}
.video-card:hover .video-card-expand-icon { opacity: 1; transform: scale(1.08); }
.video-card-sound {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: rgba(10, 20, 60, .55); color: #fff; font-size: .95rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, transform .15s ease;
}
.video-card-sound:hover { background: rgba(10, 20, 60, .8); transform: scale(1.06); }
.video-card-caption {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  background: rgba(10, 20, 60, .68); color: #fff; font-weight: 700;
  padding: 6px 14px; border-radius: 999px; font-size: .95rem;
  backdrop-filter: blur(3px);
}
@media (max-width: 860px) { .video-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; } }

/* Video lightbox (pop-out player) */
.video-lightbox-modal { max-width: 960px; width: 92vw; padding: 20px; background: #0b1230; }
.video-lightbox-media { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: #000; display: block; }
.video-lightbox-title { margin-top: 14px; text-align: center; color: #fff; }
.video-lightbox-modal .modal-close { background: rgba(255,255,255,.15); color: #fff; }
.video-lightbox-modal .modal-close:hover { background: var(--yellow); color: var(--blue-deep); }
@media (max-width: 640px) { .video-lightbox-modal { width: 96vw; padding: 14px; } }

/* Scrapbook full-bleed */
.scrapbook { position: relative; padding: 0; }
.scrapbook-img { width: 100%; max-height: 560px; object-fit: cover; }
.scrapbook-caption {
  position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%);
  background: rgba(20, 40, 110, .82); color: #fff;
  padding: 18px 36px; border-radius: var(--radius); text-align: center;
  backdrop-filter: blur(4px);
}
.scrapbook-caption h2 { font-size: 1.8rem; }

/* Postcards */
.destinations { background: linear-gradient(180deg, #0e1d55, #1a37a0); }
.destinations .section-title, .destinations .lede { color: #fff; }
.postcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 36px; }
.postcard {
  background: #fff; padding: 14px 14px 10px; border-radius: 12px;
  box-shadow: var(--shadow); transition: transform .2s ease;
}
.postcard img { border-radius: 8px; aspect-ratio: 4 / 3; object-fit: cover; }
.postcard figcaption {
  padding: 12px 6px 6px; font-weight: 700; color: var(--blue-deep);
  display: flex; align-items: center; gap: 10px; font-size: 1.02rem;
}
.stamp {
  background: var(--yellow); border-radius: 8px; padding: 2px 10px;
  font-size: .88rem;
}
.tilt-l { transform: rotate(-1.6deg); }
.tilt-r { transform: rotate(1.8deg); }
.postcard:hover { transform: rotate(0) scale(1.04); }

/* Books */
.book-columns {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 20px; align-items: start;
}
.book-column { border-radius: var(--radius); padding: 26px 22px; }
.book-column-story { background: #e3ebff; }
.book-column-coloring { background: #fff2cf; }
.book-column-activity { background: #e0f3da; }
.book-group-title {
  font-family: 'Baloo 2', cursive; font-size: 1.3rem; font-weight: 700;
  color: var(--blue-deep); margin: 0 0 4px;
}
.book-list { display: grid; gap: 24px; margin-top: 10px; }
.book-card {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  background: #fff; border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); align-items: center;
}
.book-card .book-cover { max-width: 200px; margin: 0 auto; }
.book-cover { position: relative; }
.book-cover img { border-radius: 10px; box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.cover-fallback {
  display: none; aspect-ratio: 2 / 3; border-radius: 10px;
  background: linear-gradient(160deg, var(--sky), var(--blue));
  color: #fff; font-family: 'Baloo 2', cursive; font-size: 1.7rem; font-weight: 800;
  align-items: center; justify-content: center; text-align: center;
}
.cover-missing img { display: none; }
.cover-missing .cover-fallback { display: flex; }
.book-card-future .cover-fallback { display: flex; background: linear-gradient(160deg, #9aa5c8, #5d6ca0); }
.book-info h3 { font-size: 1.7rem; color: var(--blue-deep); margin: 8px 0 4px; }
.book-sub { font-weight: 700; color: var(--green); margin-bottom: 10px; }
.book-info p { margin-bottom: 14px; }
.chip {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  font-size: .9rem; font-weight: 700;
}
.chip-soon { background: var(--yellow); color: var(--blue-deep); }
.chip-mystery { background: var(--blue-deep); color: #fff; }

/* Goodies / signup */
.goodies { background: linear-gradient(180deg, #0d8fdb, #1a37a0); }
.goodies-form h2 { color: #fff !important; }
.goodies-form > p { color: #eaf4ff; }
.signup-form label { color: #fff !important; }
.fine-print { color: #cfe4ff !important; }
.lede-bilingual { font-size: 1.05rem; background: #fff; border-radius: var(--radius); padding: 16px 22px; box-shadow: var(--shadow); }
.goodies-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
}
.goodies-art img { border-radius: var(--radius); box-shadow: var(--shadow); }
.goodies-form h2 { font-size: 2rem; color: var(--blue-deep); margin-bottom: 10px; }
.goodies-form > .signup-form { display: none; }
.free-goodies-open { margin-top: 16px; }
.signup-form { margin-top: 18px; display: grid; gap: 14px; }
.signup-form label { display: grid; gap: 6px; font-weight: 700; color: var(--blue-deep); }
.signup-form input {
  padding: 13px 16px; border-radius: 12px; border: 2px solid #b9cbe8;
  font-size: 1rem; font-family: 'Nunito', sans-serif; background: #fff;
}
.signup-form input:focus { outline: none; border-color: var(--blue); }
.signup-form input:invalid:not(:placeholder-shown) { border-color: var(--coral); }
.hp-field { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.fine-print { font-size: .85rem; color: #5a6480; text-align: center; }
.signup-form .adult-affirmation { grid-template-columns: auto 1fr; align-items: start; font-weight: 600; }
.signup-form .adult-affirmation input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; padding: 0; }
.signup-form .adult-affirmation a { color: #fff; text-decoration: underline; }
.signup-form button:disabled { opacity: .6; cursor: not-allowed; }
.signup-status { min-height: 1.4em; color: #fff; font-weight: 700; }
.signup-result { margin-bottom: 18px; }
.legal-wrap.signup-result { text-align: center; max-width: 680px; }
.legal-wrap.signup-result form { margin-top: 24px; }
.signup-dialog {
  width: min(1100px, calc(100vw - 28px)); max-height: calc(100vh - 28px); overflow: auto;
  border: 0; border-radius: 22px; padding: 0; background: #1a37a0; color: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,.42);
}
.signup-dialog::backdrop { background: rgba(10,20,60,.72); backdrop-filter: blur(4px); }
.signup-dialog[open] { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(430px, .85fr); align-items: center; }
.signup-dialog-preview { padding: 38px 0 38px 38px; display: grid; gap: 18px; justify-items: center; background: #1a37a0; }
.signup-dialog-preview img { width: min(100%, 590px); border-radius: 16px; box-shadow: 0 16px 34px rgba(5,11,45,.35); }
.goodies-delivery-note { width: min(100%, 590px); margin: 0; padding: 12px 16px; border: 2px solid #ff847c; border-radius: 12px; background: rgba(110, 18, 34, .72); color: #fff4f2 !important; font-weight: 800; line-height: 1.35; text-align: center; }
.signup-dialog .goodies-form { padding: 52px 34px 34px; }
.signup-dialog .goodies-form > .signup-form { display: grid; }
.signup-dialog .free-goodies-open { display: none; }
.signup-dialog-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: var(--blue-deep); font-size: 1rem; cursor: pointer; }
.signup-dialog-close:focus-visible { outline: 4px solid var(--yellow); outline-offset: 2px; }

/* Buddy & Luna page */
.hero-short { min-height: 64vh; }
.bio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.bio-card {
  background: #fff; border-radius: var(--radius); padding: 34px 30px;
  box-shadow: var(--shadow); border-top: 8px solid var(--coral);
}
.bio-card:nth-child(2) { border-top-color: var(--sky); }
.bio-card h2 { font-size: 2rem; color: var(--blue-deep); }
.bio-breed { font-size: 1.05rem; color: #7a84a8; font-weight: 600; }
.bio-role { font-family: 'Baloo 2', cursive; font-weight: 700; color: var(--green); margin: 2px 0 12px; }
.bio-facts { margin: 14px 0 0 18px; }
.bio-facts li { margin-bottom: 6px; }
@media (max-width: 820px) { .bio-cards { grid-template-columns: 1fr; } }

/* Giving back */
.giving {
  background: linear-gradient(180deg, var(--yellow) 0%, var(--yellow) 100%);
  padding: 70px 0;
}
.giving-inner {
  text-align: center; max-width: 720px; margin: 0 auto;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 48px 40px;
}
.giving-badge { width: 360px; max-width: 100%; height: auto; margin: 0 auto 8px; }
.giving h2 { font-family: 'Baloo 2', cursive; font-size: 2.1rem; color: var(--blue-deep); margin: 8px 0 14px; }
.giving p { font-size: 1.15rem; color: #3a3550; }
.giving p strong { color: var(--coral); }

/* Book byline + actions */
.book-byline { font-family: 'Baloo 2', cursive; font-weight: 700; color: var(--coral); margin-bottom: 6px; }
.book-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 20, 60, .65);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  position: relative; background: #fff; border-radius: var(--radius);
  max-width: 880px; width: 100%; max-height: 86vh; overflow-y: auto;
  padding: 36px; box-shadow: 0 24px 70px rgba(0,0,0,.4);
}
.modal h3 { font-size: 1.7rem; color: var(--blue-deep); margin-bottom: 4px; }
.modal-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 14px; }
.modal-col h4 { font-family: 'Baloo 2', cursive; font-size: 1.15rem; color: var(--blue); margin-bottom: 8px; }
.modal-facts { margin: 12px 0 0 18px; }
.modal-facts li { margin-bottom: 4px; }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: var(--cream); border: none; border-radius: 50%;
  width: 38px; height: 38px; font-size: 1rem; cursor: pointer; font-weight: 700;
}
.modal-close:hover { background: var(--yellow); }
@media (max-width: 720px) { .modal-cols { grid-template-columns: 1fr; } }

/* Scrapbook gallery popup */
.gallery-modal { max-width: 720px; padding: 28px; }
.gallery-postcard {
  position: relative; border-radius: 12px; overflow: hidden;
  border: 6px solid #fff; box-shadow: 0 10px 30px rgba(0,0,0,.25);
  background: #f2f2f2;
}
.gallery-main-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.gallery-caption {
  position: absolute; left: 18px; bottom: 16px; z-index: 2;
  font-family: 'Caveat', cursive; font-size: 2.4rem; font-weight: 700;
  color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.6), 0 0 2px rgba(0,0,0,.4);
  transform: rotate(-3deg); pointer-events: none;
}
.gallery-stamp {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 104px; height: 104px; border-radius: 12px;
  background: rgba(255,255,255,.9); border: 2px dashed var(--coral);
  display: flex; align-items: center; justify-content: center; padding: 6px;
  transform: rotate(6deg); box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.gallery-stamp img { width: 100%; height: 100%; object-fit: contain; }
.gallery-stamp.gallery-stamp-left { left: 14px; right: auto; transform: rotate(-6deg); }
.gallery-title { margin-top: 18px; text-align: center; }
.gallery-thumbs { display: flex; gap: 12px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.gallery-thumbs img {
  width: 84px; height: 60px; object-fit: cover; border-radius: 8px; cursor: pointer;
  border: 3px solid transparent; opacity: .7; transition: opacity .15s ease, border-color .15s ease;
}
.gallery-thumbs img:hover { opacity: 1; }
.gallery-thumbs img.active { opacity: 1; border-color: var(--yellow); }

/* Footer */
.site-footer { background: var(--blue-deep); color: #cfd9f7; padding: 22px 0; }
.footer-inner { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 28px; align-items: center; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.footer-logo { height: 100px; width: 100px; object-fit: contain; flex-shrink: 0; }
.footer-wordmark { height: 100px; width: auto; flex-shrink: 0; }
.footer-tag { color: var(--yellow); font-weight: 700; }
.footer-social {
  color: #cfd9f7; display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.06);
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.footer-social img { width: 24px; height: 24px; object-fit: contain; }
.footer-social:hover { border-color: var(--yellow); background: rgba(255,201,24,.18); transform: translateY(-2px); }
.footer-social:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.footer-socials { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; min-width: 100%; }
.footer-socials[hidden] { display: none; }
.footer-legal a { color: #cfd9f7; text-decoration: underline; }
.footer-legal a:hover { color: var(--yellow); }

/* Legal pages (privacy, terms) */
.legal-page { padding: 60px 0 90px; }
.legal-wrap { max-width: 760px; }
.legal-page h1 { font-size: 2.2rem; color: var(--blue-deep); margin-bottom: 4px; }
.legal-updated { color: #6b7280; font-weight: 700; margin-bottom: 28px; }
.legal-page h2 { font-size: 1.3rem; color: var(--blue-deep); margin: 28px 0 8px; }
.legal-page p { line-height: 1.7; margin-bottom: 6px; }
.legal-page a { color: var(--blue); font-weight: 700; }

/* Responsive */
@media (max-width: 1180px) {
  .header-inner { gap: 18px; padding-left: 18px; padding-right: 18px; }
  .brand-logo { width: 74px; height: 74px; }
  .brand-wordmark { height: 81px; }
  .brand-sub { font-size: .68rem; }
  .site-nav { gap: 12px; }
  .site-nav a { font-size: .9rem; }
  .nav-cta { padding: 8px 14px; }
  .header-utilities { gap: 8px; }
  .lang-switch { gap: 3px; }
  .lang-switch a { width: 32px; }
}

@media (max-width: 1100px) {
  .pillars, .postcards { grid-template-columns: 1fr; }
  .book-columns { grid-template-columns: 1fr; }
  .book-card { grid-template-columns: 1fr; }
  .book-cover { max-width: 240px; margin: 0 auto; }
  .goodies-inner { grid-template-columns: 1fr; }
  .header-inner { grid-template-columns: minmax(0,1fr) auto; gap: 12px; min-height: 112px; padding: 10px 16px; }
  .brand-logo { width: 68px; height: 68px; }
  .brand-wordmark { height: 46px; }
  .site-nav {
    display: none; grid-column: 1 / -1; width: 100%; padding: 12px 0 6px;
    justify-content: center; flex-wrap: wrap; gap: 12px 20px; border-top: 1px solid #d9dfef;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { font-size: .95rem; min-height: 40px; display: inline-flex; align-items: center; }
  .header-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-utilities { gap: 10px; }
}

@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .header-inner { min-height: 82px; padding: 8px 12px; }
  .brand-logo { width: 62px; height: 62px; }
  .brand { gap: 8px; }
  .brand-lockup { display: none; }
  .header-utilities > .nav-cta { display: none; }
  .site-nav .nav-cta-mobile { display: inline-flex !important; }
  .site-nav { gap: 8px 14px; }
  .site-nav a { font-size: .9rem; }
  .nav-cta { padding: 5px 11px; }
  .header-sound-toggle { width: 32px; height: 32px; }
  .lang-switch { gap: 3px; }
  .lang-switch a { width: 31px; height: 30px; padding: 2px; }
  .language-flag { width: 23px; height: 16px; }
  .header-menu-toggle { width: 34px; height: 34px; }
  .signup-dialog[open] { display: block; }
  .signup-dialog-preview { padding: 58px 20px 8px; }
  .signup-dialog .goodies-form { padding: 24px 20px 24px; }
  .section-logo-badge-wide { width: 100%; height: auto; min-height: 150px; padding: 18px; gap: 12px; border-radius: 24px; }
  .section-logo-badge-wide .section-logo { width: 32%; max-width: 130px; height: auto; }
  .section-logo-badge-wide .section-badge-wordmark { width: 58%; max-width: 220px; height: auto; }
  .section-logo-bare { width: 140px; height: 140px; }
  .footer-wordmark { max-width: 180px; height: auto; }
}
