/* ==========================================================================
   Magic Tools — Shared Page CSS (page-magictool.php chrome)
   Wedding Serenity Club | weddingserenity.com
   Mobile-first, 375px minimum viewport.
   Loaded only on the Magic Tool page template (see functions.php's
   magic_tools_enqueue_assets(), gated to is_page_template('page-magictool.php')).
   This stylesheet covers the PAGE-LEVEL chrome only (background, breadcrumb,
   title, bottom CTA, SEO content) — each tool's own result/form/share UI is
   already styled inside its compiled .iife.js bundle (shared/toolShell.css).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */

:root {
  --magic-midnight: #0D0B1A;
  --magic-warmwhite: #FAF6F0;
  --magic-gold: #C9A84C;
  --magic-rose: #8B1A4A;
  --magic-purple: #4A3B6B;

  --magic-font-heading: 'Cormorant Garamond', Georgia, serif;
  --magic-font-body: 'Lato', 'Helvetica Neue', sans-serif;

  --magic-max-width: 680px;
}

/* --------------------------------------------------------------------------
   Page wrapper — dark midnight background, generous bottom clearance so
   the footer's newsletter subscription form never overlaps page content
   -------------------------------------------------------------------------- */

.magic-tool-page {
  background-color: var(--magic-midnight);
  min-height: 100vh;
  padding-bottom: 160px;
  font-family: var(--magic-font-body);
  color: var(--magic-warmwhite);
}

/* --------------------------------------------------------------------------
   Breadcrumb
   -------------------------------------------------------------------------- */

.magic-breadcrumb {
  font-family: var(--magic-font-body);
  font-size: 13px;
  color: rgba(250, 246, 240, 0.55);
  padding: 16px 24px;
  max-width: 900px;
  margin: 0 auto;
}

.magic-breadcrumb a {
  color: var(--magic-gold);
  text-decoration: none;
}

.magic-breadcrumb a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Page title area
   -------------------------------------------------------------------------- */

.magic-tool-header {
  text-align: center;
  padding: 32px 24px 24px;
  max-width: var(--magic-max-width);
  margin: 0 auto;
}

.magic-tool-header h1 {
  font-family: var(--magic-font-heading);
  font-weight: 600;
  font-size: clamp(28px, 5vw, 42px);
  color: var(--magic-warmwhite);
  margin: 0 0 12px;
  line-height: 1.2;
}

.magic-tool-subtitle {
  font-family: var(--magic-font-body);
  font-size: 16px;
  color: rgba(250, 246, 240, 0.75);
  margin: 0;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Tool container (wraps the React root div — the tool's own compiled CSS
   takes over completely inside here)
   -------------------------------------------------------------------------- */

.magic-tool-container {
  max-width: var(--magic-max-width);
  margin: 0 auto 40px;
  padding: 0 16px;
}

/* --------------------------------------------------------------------------
   Magic Tools soft CTA block (page-level, below the tool — "The Gates")
   -------------------------------------------------------------------------- */

.magic-tool-cta {
  background: rgba(74, 59, 107, 0.2);
  border-top: 2px solid var(--magic-gold);
  border-bottom: 2px solid var(--magic-gold);
  padding: 36px 24px;
  text-align: center;
  margin: 0 0 40px;
}

.magic-tool-cta__heading {
  font-family: var(--magic-font-heading);
  font-size: clamp(20px, 3.5vw, 26px);
  color: var(--magic-warmwhite);
  margin: 0 0 8px;
}

.magic-tool-cta__body {
  font-family: var(--magic-font-body);
  font-size: 15px;
  color: rgba(250, 246, 240, 0.7);
  margin: 0 0 20px;
}

.magic-btn-primary {
  display: inline-block;
  background: var(--magic-gold);
  color: var(--magic-midnight);
  font-family: var(--magic-font-body);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  transition: background 0.2s ease;
}

.magic-btn-primary:hover,
.magic-btn-primary:focus {
  background: #D9BC66;
  outline: 2px solid var(--magic-gold);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   SEO content area (How-to, FAQ, Related tools)
   -------------------------------------------------------------------------- */

.magic-tool-seo-content {
  max-width: var(--magic-max-width);
  margin: 0 auto;
  padding: 0 24px 60px;
  font-family: var(--magic-font-body);
  color: rgba(250, 246, 240, 0.85);
}

.magic-tool-seo-content h2 {
  font-family: var(--magic-font-heading);
  font-size: clamp(20px, 3.5vw, 24px);
  color: var(--magic-warmwhite);
  margin: 40px 0 16px;
  line-height: 1.3;
}

.magic-tool-seo-content h2:first-child {
  margin-top: 0;
}

.magic-tool-seo-content p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.magic-tool-seo-content strong {
  font-weight: 700;
}
