/* =====================================================
   THE CAFFEINATED OT — image-first scrapbook wrapper
   The Canva exports do the design.
   This file just handles: nav, layout, responsiveness,
   image scaling, and clickable hotspots.

   Sections:
     1. Variables + base
     2. Navigation
     3. Canva section wrapper (the main pattern)
     4. Hotspots (clickable zones over an image)
     5. Placeholders (only used until WebPs arrive)
     6. Footer
     7. Responsive (mobile)
   ===================================================== */


/* =====================================================
   1. VARIABLES + BASE
   ===================================================== */
:root {
  --coffee:   #2A170F;
  --cream:    #FFF8EE;
  --teal:     #3F998E;
  --mustard:  #F6C542;
  --coral:    #E27D5F;
  --rust:     #B8593A;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--coffee);
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

img { max-width: 100%; display: block; }


/* =====================================================
   2. NAVIGATION
   ===================================================== */
.nav {
  background: var(--coffee);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 7px 42px;
  position: relative;
  z-index: 10;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 800;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--mustard);
  border-bottom-color: var(--mustard);
}

/* yellow Shop button — flat, no underline */
.shop-btn,
.nav-links a.shop-btn {
  background: var(--mustard);
  color: var(--coffee);
  padding: 6px 18px;
  border-radius: 10px;
  border-bottom: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.shop-btn:hover {
  transform: translateY(-1px) rotate(-1deg);
  box-shadow: 0 6px 14px rgba(246, 197, 66, 0.35);
  color: var(--coffee);
  border-bottom: none;
}

.menu-btn {
  display: none;
  background: var(--mustard);
  color: var(--coffee);
  padding: 9px 18px;
  border-radius: 10px;
  border: none;
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
}


/* =====================================================
   3. CANVA SECTION WRAPPER
   This is the core pattern. Every section is just:
     <section class="canva-section">
       <img src="images/whatever.webp" alt="...">
     </section>

   The wrapper centers the image and limits how huge
   it can get on big monitors.
   ===================================================== */
.canva-section {
  position: relative;            /* so hotspots can sit on top */
  width: 100%;
  max-width: 1400px;             /* stops images getting silly-big */
  margin: 0 auto;
  background: var(--cream);
}

.canva-section img {
  width: 100%;
  height: auto;
  display: block;
}

/* tiny tweak: hero butts straight up against the nav */
#hero {
  margin-top: -1px;
  max-width: 1150px;   /* hero is slightly smaller than other sections */
}


/* =====================================================
   4. HOTSPOTS — invisible clickable zones over an image
   Use inline styles on each <a> for left/top/width/height
   as percentages (see index.html for examples).
   ===================================================== */
.hotspot {
  position: absolute;
  display: block;
  border-radius: 12px;
  text-decoration: none;
  background: transparent;
  transition: background 0.2s ease, transform 0.2s ease,
              box-shadow 0.2s ease, outline 0.2s ease;
}

/* mouse hover: completely invisible — let the artwork breathe.
   Cursor still changes to pointer so it's clearly clickable. */
.hotspot:hover {
  cursor: pointer;
}

/* keyboard focus: keep a visible outline so tab navigation works
   for screen reader / keyboard-only users (accessibility) */
.hotspot:focus-visible {
  outline: 2px dashed var(--mustard);
  outline-offset: -4px;
}


/* =====================================================
   5. PLACEHOLDERS — temporary, only until the WebPs arrive
   Delete each placeholder div as you swap in real images.
   ===================================================== */
.placeholder {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 280px;
  margin: 24px 6vw;
  padding: 40px 24px;
  background: repeating-linear-gradient(
      45deg,
      rgba(42, 23, 15, 0.04) 0 12px,
      transparent 12px 24px),
    var(--cream);
  border: 2px dashed rgba(42, 23, 15, 0.35);
  border-radius: 6px;
  color: rgba(42, 23, 15, 0.65);
}
.placeholder__label {
  font-family: "Courier New", monospace;
  font-size: 0.95rem;
  margin: 0 0 6px;
  color: var(--rust);
  letter-spacing: 0.04em;
}
.placeholder__hint {
  margin: 0;
  font-size: 0.95rem;
}


/* =====================================================
   5a. MOBILE FALLBACK BUTTONS — only shown on phones,
   replaces the squished Canva dashboard with tappable
   buttons that open the same popups.
   Default = hidden. Made visible inside the @media block.
   ===================================================== */
.exploded-mobile {
  display: none;
  padding: 30px 18px 10px;
  max-width: 480px;
  margin: 0 auto;
}
.exploded-mobile__kicker {
  font-family: "Permanent Marker", cursive;
  font-size: 1.85rem;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--coffee);
  margin: 0 0 8px;
  text-align: center;
}
.exploded-mobile__sub {
  font-size: 0.95rem;
  text-align: center;
  margin: 0 0 22px;
  color: rgba(42, 23, 15, 0.75);
}

/* a single tappable card-button */
.card-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  color: var(--coffee);
  border: 1px solid rgba(42, 23, 15, 0.08);
  border-left: 6px solid var(--coral);   /* colored accent */
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 14px;
  cursor: pointer;
  box-shadow:
    0 2px 0 rgba(42, 23, 15, 0.05),
    0 6px 14px rgba(42, 23, 15, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}
/* tiny scrapbook tilt, alternating directions */
.card-btn:nth-child(odd)  { transform: rotate(-0.6deg); }
.card-btn:nth-child(even) { transform: rotate(0.6deg); }

.card-btn:active {
  transform: rotate(0) translateY(1px);
  box-shadow:
    0 1px 0 rgba(42, 23, 15, 0.05),
    0 3px 6px rgba(42, 23, 15, 0.12);
}

.card-btn__tag {
  display: block;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.card-btn__line {
  display: block;
  font-size: 0.92rem;
  color: rgba(42, 23, 15, 0.7);
}

/* colored accent bars — match the Canva tag colors */
.card-btn--coral   { border-left-color: var(--coral); }
.card-btn--teal    { border-left-color: var(--teal); }
.card-btn--mustard { border-left-color: var(--mustard); }
.card-btn--sage    { border-left-color: #9DBFAE; }
.card-btn--rust    { border-left-color: var(--rust); }


/* =====================================================
   5a-2. MIDDLE-BODY MOBILE FALLBACK — readable HTML version
   of the about + e-book offer for phones.
   Default = hidden. Made visible inside the @media block.
   ===================================================== */
.middle-mobile {
  display: none;
}

/* TEAL "About" half */
.middle-mobile__about {
  background: var(--teal);
  color: var(--cream);
  padding: 34px 22px 30px;
}
.middle-mobile__kicker {
  display: inline-block;
  background: var(--mustard);
  color: var(--coffee);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin: 0 0 12px;
}
.middle-mobile__about h2 {
  font-family: "Permanent Marker", cursive;
  font-size: 2rem;
  line-height: 1.05;
  color: var(--cream);
  margin: 0 0 16px;
}
.middle-mobile__about p {
  margin: 0 0 12px;
  font-size: 0.98rem;
  line-height: 1.55;
}
.middle-mobile__tag {
  color: var(--mustard);
  font-weight: 800;
  font-size: 1.02rem !important;
  margin-top: 18px !important;
}

/* CORAL "E-book offer" half */
.middle-mobile__ebook {
  background: var(--coral);
  color: #fff;
  padding: 32px 22px 32px;
  text-align: left;
}
.middle-mobile__ebook h3 {
  font-family: "Permanent Marker", cursive;
  font-size: 1.7rem;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 14px;
}
.middle-mobile__ebook p {
  font-size: 1rem;
  margin: 0 0 18px;
  color: #fff;
}
.middle-mobile__btn {
  display: inline-block;
  background: var(--cream);
  color: var(--teal);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(42,23,15,0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.middle-mobile__btn:hover,
.middle-mobile__btn:active {
  transform: translateY(-1px) rotate(-1deg);
  box-shadow: 0 6px 14px rgba(42,23,15,0.25);
}


/* =====================================================
   5b. CARD MODAL — popup that opens when a hotspot is clicked
   Uses the native <dialog> element. Esc-to-close is free.
   ===================================================== */
.card-modal {
  /* layout */
  width: min(560px, 92vw);
  max-height: 86vh;
  padding: 32px 30px 28px;
  border: none;
  border-radius: 6px;
  margin: auto;

  /* paper */
  background: var(--cream);
  color: var(--coffee);
  box-shadow:
    0 4px 0 rgba(42,23,15,0.06),
    0 24px 50px rgba(42,23,15,0.35);

  /* slight scrapbook tilt — looks like a torn page laid down */
  transform: rotate(-0.6deg);

  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

/* dim the page behind the modal */
.card-modal::backdrop {
  background: rgba(42, 23, 15, 0.55);
  backdrop-filter: blur(2px);
}

/* small masking-tape strip across the top of the modal */
.card-modal::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 110px;
  height: 22px;
  background: rgba(246, 197, 66, 0.78);
  box-shadow: 0 2px 4px rgba(0,0,0,0.18);
  transform: translateX(-50%) rotate(-3deg);
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg,
    transparent 0, #000 6%, #000 94%, transparent 100%);
}

/* close button (×) in top-right */
.card-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--coffee);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s ease, transform 0.15s ease;
}
.card-modal__close:hover {
  background: rgba(42,23,15,0.08);
  transform: rotate(90deg);
}

/* the small section label above the headline */
.card-modal__kicker {
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 10px;
}

.card-modal h3 {
  font-size: 1.4rem;
  line-height: 1.25;
  margin: 0 0 14px;
  color: var(--coffee);
}

.card-modal__lead {
  margin: 0 0 18px;
  color: rgba(42,23,15,0.82);
  font-size: 1.02rem;
}

/* "What might help" subhead — coloured highlight */
.card-modal__sub {
  display: inline-block;
  margin: 6px 0 10px;
  padding: 4px 10px;
  font-weight: 800;
  background: var(--mustard);
  color: var(--coffee);
  border-radius: 4px;
  transform: rotate(-1deg);
}

.card-modal ul {
  margin: 4px 0 0;
  padding-left: 22px;
}
.card-modal li {
  margin-bottom: 10px;
}
.card-modal li::marker {
  color: var(--coral);
}

/* nice open animation */
.card-modal[open] {
  animation: modal-pop 0.22s ease-out;
}
@keyframes modal-pop {
  from { opacity: 0; transform: rotate(-0.6deg) scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: rotate(-0.6deg) scale(1) translateY(0); }
}

@media (max-width: 680px) {
  .card-modal { padding: 28px 20px 22px; }
  .card-modal h3 { font-size: 1.2rem; }
}


/* =====================================================
   5c. LEGAL PAGE — privacy / terms / disclaimer
   Plain readable text on cream paper.
   ===================================================== */
.legal-page {
  padding: 50px 6vw 70px;
  background: var(--cream);
}
.legal-page__inner {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  padding: 50px 50px 40px;
  border-radius: 4px;
  box-shadow:
    0 4px 0 rgba(42,23,15,0.05),
    0 14px 28px rgba(42,23,15,0.12);
  position: relative;
}
.legal-page__inner::before {
  /* tiny masking tape at top of the paper */
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 120px;
  height: 22px;
  background: rgba(246, 197, 66, 0.78);
  box-shadow: 0 2px 4px rgba(0,0,0,0.18);
  transform: translateX(-50%) rotate(-2deg);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.legal-page__kicker {
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rust);
  margin: 0 0 8px;
}
.legal-page h1 {
  font-family: "Permanent Marker", cursive;
  font-size: 2.4rem;
  margin: 0 0 6px;
  color: var(--coffee);
}
.legal-page__updated {
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  color: rgba(42,23,15,0.55);
  margin: 0 0 26px;
}
.legal-page h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--coffee);
  margin: 28px 0 10px;
}
.legal-page p,
.legal-page li {
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(42,23,15,0.85);
}
.legal-page ul {
  margin: 0 0 14px;
  padding-left: 22px;
}
.legal-page li { margin-bottom: 8px; }
.legal-page li::marker { color: var(--coral); }

.legal-page a {
  color: var(--rust);
  text-decoration: none;
  border-bottom: 1px solid var(--rust);
}
.legal-page a:hover { color: var(--teal); border-color: var(--teal); }

.legal-page__back {
  margin-top: 36px;
  font-family: "Permanent Marker", cursive;
  font-size: 1.2rem;
}
.legal-page__back a {
  border-bottom-style: dashed;
}

@media (max-width: 680px) {
  .legal-page__inner { padding: 36px 24px 30px; }
  .legal-page h1 { font-size: 1.8rem; }
}


/* =====================================================
   5c-2. THANK-YOU CARD (after e-book signup)
   ===================================================== */
.thanks-card h1 {
  font-size: 2.6rem;
  margin-bottom: 14px;
}
.thanks-card__lead {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 16px;
  color: rgba(42, 23, 15, 0.85);
}
.thanks-card__download {
  margin: 30px 0 16px;
  text-align: center;
}
.thanks-card__btn {
  display: inline-block;
  background: var(--coral);
  color: #fff !important;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  padding: 18px 30px;
  border-radius: 999px;
  text-decoration: none !important;
  border: none !important;
  box-shadow:
    0 4px 0 rgba(42,23,15,0.08),
    0 12px 24px rgba(226,125,95,0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.thanks-card__btn:hover {
  background: var(--rust);
  transform: translateY(-2px) rotate(-0.8deg);
  box-shadow:
    0 4px 0 rgba(42,23,15,0.1),
    0 16px 28px rgba(184,89,58,0.4);
}
.thanks-card__small {
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  color: rgba(42, 23, 15, 0.65);
  text-align: center;
  margin: 0 0 30px;
}


/* =====================================================
   5d. SITE DISCLAIMER STRIP — small fine-print line
   shown below the footer on every page.
   ===================================================== */
.site-disclaimer {
  margin: 0;
  padding: 16px 24px;
  background: var(--coffee);
  color: rgba(255, 248, 238, 0.78);
  font-size: 0.95rem;
  line-height: 1.5;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  text-align: center;
  letter-spacing: 0.02em;
  border-top: 1px solid rgba(255, 248, 238, 0.1);
}
.site-disclaimer a {
  color: var(--mustard);
  text-decoration: none;
  border-bottom: 1px dashed var(--mustard);
}
.site-disclaimer a:hover { color: var(--cream); border-color: var(--cream); }


/* =====================================================
   5e. E-BOOK LANDING PAGE
   ===================================================== */
.ebook-page__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 50px 24px 60px;
}
.ebook-page h1 {
  font-family: "Permanent Marker", cursive;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 18px;
  color: var(--coffee);
}
.ebook-page__lead {
  font-size: 1.1rem;
  line-height: 1.55;
  margin: 0 0 24px;
  color: rgba(42, 23, 15, 0.85);
}
.ebook-page h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 24px 0 10px;
  color: var(--coffee);
}
.ebook-page ul {
  margin: 0 0 28px;
  padding-left: 22px;
}
.ebook-page li {
  margin-bottom: 8px;
  line-height: 1.55;
  color: rgba(42, 23, 15, 0.85);
}
.ebook-page li::marker { color: var(--coral); }

.ebook-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 8px;
}
.ebook-form input {
  flex: 1 1 240px;
  padding: 14px 16px;
  border: 2px dashed var(--coffee);
  background: #fff;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--coffee);
}
.ebook-form input::placeholder { color: rgba(42, 23, 15, 0.45); }
.ebook-form button {
  background: var(--coral);
  color: #fff;
  border: none;
  padding: 14px 22px;
  border-radius: 8px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.ebook-form button:hover {
  background: var(--rust);
  transform: translateY(-1px) rotate(-0.8deg);
}
.ebook-page__small {
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  color: rgba(42, 23, 15, 0.6);
  margin: 4px 0 30px;
}
.ebook-page__small--centered { text-align: center; }

/* The big direct-download CTA, centered with breathing room */
.ebook-page__download {
  margin: 30px 0 14px;
  text-align: center;
}

/* Secondary "want more like this?" opt-in block —
   visually demoted so it reads as optional. */
.ebook-page__optin {
  margin-top: 50px;
  padding: 30px 26px 22px;
  background: #fff;
  border: 1px dashed rgba(42, 23, 15, 0.25);
  border-radius: 6px;
  position: relative;
}
.ebook-page__optin::before {
  /* small "torn paper" feel — masking tape strip on top */
  content: "";
  position: absolute;
  top: -10px;
  left: 24px;
  width: 80px;
  height: 18px;
  background: rgba(246, 197, 66, 0.7);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transform: rotate(-2deg);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.ebook-page__optin-title {
  font-size: 1.5rem !important;
  font-weight: 800;
  margin: 4px 0 10px !important;
}
.ebook-page__optin p {
  font-size: 0.98rem;
  margin: 0 0 16px;
  color: rgba(42, 23, 15, 0.82);
}


/* =====================================================
   6. FOOTER
   ===================================================== */
.footer {
  background: var(--coffee);
  color: var(--cream);
  padding: 30px 24px;
  text-align: center;
}
.footer__brand {
  margin: 0 0 4px;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.footer__small {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 248, 238, 0.6);
}


/* =====================================================
   7. RESPONSIVE — mobile nav behaviour
   ===================================================== */
@media (max-width: 680px) {
  .nav { padding: 12px 18px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--coffee);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 22px 22px;
    gap: 18px;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 14px; }
  .nav-links a.shop-btn { width: 100%; text-align: center; }

  .menu-btn { display: inline-block; }

  .placeholder { margin: 16px 12px; min-height: 200px; }

  /* On phones, hide the unreadable Canva dashboard + its hotspots,
     and show the tappable button list instead. */
  #exploded > img,
  #exploded > .hotspot { display: none; }
  #exploded .exploded-mobile { display: block; }

  /* Same trick for the middle-body section (about + e-book offer). */
  #middle-body > img,
  #middle-body > .hotspot { display: none; }
  #middle-body .middle-mobile { display: block; }
}

/* respect users who prefer no motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
  }
}
