/*
 Theme Name: Stellar Scholar Lubbock
 Theme URI: https://example.com
 Author: Stellar Scholar Lubbock
 Description: A warm, personal theme for a solo in-person tutor, styled like a hand-drawn star chart with frosted-glass panels, soft glow, and constellation motifs. Includes subjects, testimonials, rates, and an inquiry form.
 Version: 1.0
 Requires at least: 6.0
 Requires PHP: 8.0
 License: GNU General Public License v2 or later
 License URI: https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: private-tutor
 Update URI: false
*/

/* ---- CUSTOM PROPERTIES ---- */
:root {
  --cream: #f8f4ee;
  --cream-deep: #f0e9df;
  --navy: #5f6f95;
  --navy-deep: #423d52;
  --navy-pale: #9aa5c0;
  --gold: #8b7fb0;
  --gold-light: #d9c9f0;
  --charcoal: #423d52;
  --text: #4a4658;
  --text-light: #7d7889;
  --border: #e2dbea;
  --white: #ffffff;
  --success: #7a9a7e;
  --error: #b06a6a;
  --sage: #a9bfa0;
  --silver: #c6c8d4;

  /* Fixed "night sky" tokens: intentionally do NOT change with [data-theme="dark"].
     Used for accent components (footer, rate cards, icon badges, back-to-top) meant
     to stay a consistent deep twilight-indigo band regardless of overall site mode. */
  --surface-dark: #262140;
  --surface-dark-deep: #1a1730;
  --surface-dark-edge: rgba(216, 212, 234, 0.32);
  --on-surface-dark: #f8f4ee;
  --on-surface-dark-dim: rgba(248, 244, 238, 0.78);
  --on-surface-dark-faint: rgba(248, 244, 238, 0.55);
  --on-surface-dark-border: rgba(248, 244, 238, 0.16);

  /* Frosted glass + glow tokens */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glow: rgba(139, 127, 176, 0.38);
  --star-dot-a: rgba(139, 127, 176, 0.3);
  --star-dot-b: rgba(180, 182, 196, 0.42);
}

[data-theme="dark"] {
  --cream: #201d33;
  --cream-deep: #29253c;
  --navy: #cfc9e0;
  --navy-deep: #f5f2ec;
  --navy-pale: #8b83a3;
  --gold: #c9b8e6;
  --gold-light: #e8ddf5;
  --charcoal: #ece8f0;
  --text: #d8d3e0;
  --text-light: #a89fb5;
  --border: #3a3650;
  --white: #29253c;
  --glass-bg: rgba(38, 33, 64, 0.45);
  --glass-border: rgba(216, 212, 234, 0.14);
  --star-dot-a: rgba(201, 184, 230, 0.3);
  --star-dot-b: rgba(216, 212, 234, 0.28);
}

/* ---- RESET ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito Sans', 'Segoe UI', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: 'Caveat', 'Segoe Script', cursive;
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1.15;
}

.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.icon-fill { fill: currentColor; stroke: none; }

/* ---- STARFIELD TEXTURE ----
   A handful of soft, low-opacity dots scattered per-section, like moonlight
   catching dust on a hand-drawn chart. Deliberately sparse. */
section {
  padding: 100px 0;
  position: relative;
  background-color: var(--cream);
  background-image:
    radial-gradient(1.6px 1.6px at 7% 20%, var(--star-dot-b) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 21% 72%, var(--star-dot-a) 50%, transparent 51%),
    radial-gradient(1px 1px at 38% 12%, var(--star-dot-b) 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 55% 85%, var(--star-dot-a) 50%, transparent 51%),
    radial-gradient(1px 1px at 68% 34%, var(--star-dot-b) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 83% 62%, var(--star-dot-a) 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 18%, var(--star-dot-b) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 90% 90%, var(--star-dot-a) 50%, transparent 51%);
  background-repeat: no-repeat;
}
section.on-deep { background-color: var(--cream-deep); }

/* ---- SECTION SHELL ---- */
.section-content { max-width: 1140px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-eyebrow {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 10px;
  font-family: 'Nunito Sans', sans-serif;
}
.section-header h2 {
  font-size: 48px; margin-bottom: 14px;
  text-shadow: 0 0 24px var(--glow), 0 0 52px var(--glow);
}
.section-header p { font-size: 17px; color: var(--text-light); line-height: 1.6; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- CONSTELLATION DIVIDER ----
   A hand-drawn row of stars joined by faint lines, used between sections
   instead of a hard rule. */
.constellation-divider {
  display: flex; align-items: center; justify-content: center;
  padding: 0 0 6px; position: relative; z-index: 1;
}
.constellation-divider svg {
  width: 100%; max-width: 340px; height: 34px;
  opacity: 0.55;
}
.constellation-divider .const-line { stroke: var(--silver); stroke-width: 1; fill: none; }
.constellation-divider .const-dot { fill: var(--gold); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 32px; border-radius: 30px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.02em;
  font-family: 'Nunito Sans', sans-serif;
  transition: all 0.25s ease;
}
.btn-primary { background: var(--surface-dark); color: var(--on-surface-dark); box-shadow: 0 8px 22px rgba(38, 33, 64, 0.22); }
.btn-primary:hover { background: var(--gold); color: var(--surface-dark-deep); box-shadow: 0 8px 22px var(--glow); }
.btn-outline { border: 1.5px solid var(--navy-deep); color: var(--navy-deep); }
.btn-outline:hover { background: var(--surface-dark); color: var(--on-surface-dark); border-color: var(--surface-dark); }

/* ---- NAV ---- */
.site-nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  padding: 20px 48px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(248, 244, 238, 0.85);
  backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .site-nav { background: rgba(32, 29, 51, 0.85); }

.nav-left a { display: flex; align-items: center; gap: 12px; }
.nav-logo-mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface-dark); color: var(--gold-light);
  border: 1px solid var(--surface-dark-edge);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.nav-logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.nav-logo { font-family: 'Caveat', cursive; font-size: 26px; font-weight: 700; color: var(--navy-deep); }

.nav-right { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--text); transition: color 0.2s; }
.nav-links a:hover { color: var(--gold); }

.nav-icons { display: flex; align-items: center; gap: 10px; }
.nav-utility-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); transition: background 0.2s;
}
.nav-utility-btn:hover { background: var(--cream-deep); }
.nav-utility-btn .icon { width: 18px; height: 18px; }

.menu-toggle { display: none; width: 38px; height: 38px; align-items: center; justify-content: center; color: var(--navy-deep); }

.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: flex; }

.nav-cta { margin-left: 4px; }

/* Search overlay: a fixed "night sky" spotlight overlay by design, shown in
   both light and dark site modes. Its text and icons use the fixed
   on-surface-dark tokens (not var(--cream), which flips in dark mode and
   would turn the close button dark-on-dark). */
.search-overlay {
  position: fixed; inset: 0; background: rgba(26, 23, 48, 0.97);
  z-index: 200; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.search-overlay.is-open { opacity: 1; pointer-events: auto; }
.search-overlay-form { width: 90%; max-width: 560px; position: relative; }
.search-overlay-input {
  width: 100%; background: transparent; border: none; border-bottom: 2px solid var(--gold-light);
  color: var(--on-surface-dark); font-size: 30px; font-family: 'Caveat', cursive; font-weight: 700;
  padding: 12px 60px 12px 4px;
}
.search-overlay-input:focus { outline: none; }
.search-overlay-input::placeholder { color: var(--on-surface-dark-faint); }
.search-overlay-submit, .search-overlay-close {
  position: absolute; top: 50%; transform: translateY(-50%); color: var(--on-surface-dark);
}
.search-overlay-submit:hover, .search-overlay-close:hover { color: var(--gold-light); }
.search-overlay-submit { right: 36px; }
.search-overlay-close { right: -4px; }

/* ---- HERO ---- */
.hero {
  min-height: 92vh; display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; padding: 140px 32px 80px;
  background-color: var(--cream);
  background-image:
    radial-gradient(560px circle at 20% 25%, rgba(139, 127, 176, 0.14), transparent 60%),
    radial-gradient(520px circle at 82% 70%, rgba(169, 191, 160, 0.12), transparent 60%),
    radial-gradient(1.6px 1.6px at 10% 30%, var(--star-dot-b) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 24% 60%, var(--star-dot-a) 50%, transparent 51%),
    radial-gradient(1px 1px at 33% 82%, var(--star-dot-b) 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 48% 18%, var(--star-dot-a) 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 45%, var(--star-dot-b) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 72% 75%, var(--star-dot-a) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 22%, var(--star-dot-b) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 92% 55%, var(--star-dot-a) 50%, transparent 51%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
  background-repeat: no-repeat;
}
.hero-content { max-width: 780px; position: relative; z-index: 1; }
.hero-badge {
  display: inline-block; font-size: 13px; letter-spacing: 0.08em;
  color: var(--gold); font-weight: 700; border: 1px solid var(--gold-light);
  border-radius: 30px; padding: 8px 20px; margin-bottom: 26px;
  background: var(--glass-bg); backdrop-filter: blur(6px);
}
.hero-title {
  font-size: 68px; margin-bottom: 8px;
  text-shadow: 0 0 30px var(--glow), 0 0 64px var(--glow);
}
.hero-tagline {
  font-family: 'Caveat', cursive; font-weight: 600; font-size: 28px;
  color: var(--gold); margin-bottom: 22px;
  text-shadow: 0 0 18px var(--glow);
}
.hero-subtitle { font-size: 19px; color: var(--text-light); line-height: 1.6; margin-bottom: 38px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- AI BANNER (single frosted highlight panel) ---- */
.ai-banner-section { padding: 100px 0; }
.ai-banner-card {
  max-width: 880px; margin: 0 auto; text-align: center;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(140%);
  border-radius: 22px; padding: 56px 56px 48px;
  box-shadow: 0 20px 60px rgba(66, 61, 82, 0.08);
}
.ai-banner-card .section-eyebrow { justify-content: center; }
.ai-banner-card h2 { font-size: 40px; margin-bottom: 20px; }
.ai-banner-card p { font-size: 17.5px; line-height: 1.75; color: var(--text); }
.ai-banner-close {
  margin-top: 22px; font-family: 'Caveat', cursive; font-weight: 700; font-size: 24px;
  color: var(--gold);
}

/* ---- WHY / APPROACH CARDS (shared by "Why It Matters" and "How I Help") ---- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.why-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px) saturate(140%);
  border-radius: 16px; padding: 36px 30px;
  box-shadow: 0 14px 34px rgba(66, 61, 82, 0.06);
}
.why-card-icon {
  width: 50px; height: 50px; border-radius: 50%; background: var(--surface-dark);
  color: var(--gold-light); border: 1px solid var(--surface-dark-edge);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.why-card h3 { font-size: 24px; margin-bottom: 12px; }
.why-card p { font-size: 15.5px; color: var(--text-light); line-height: 1.65; }

/* ---- ABOUT ---- */
.about-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.about-image-frame {
  border-radius: 16px; overflow: hidden; aspect-ratio: 4/5;
  border: 1px solid var(--border);
}
.about-image-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; background: var(--cream-deep); color: var(--navy-pale);
}
.about-image-placeholder .icon { width: 46px; height: 46px; }
.about-image-placeholder span { font-size: 14px; }

.about-name { font-family: 'Caveat', cursive; font-weight: 600; font-size: 26px; color: var(--gold); margin-bottom: 4px; }
.about-text h2 { font-size: 42px; margin-bottom: 20px; }
.about-text p { font-size: 16.5px; line-height: 1.75; color: var(--text); margin-bottom: 16px; }

.about-stat {
  display: inline-flex; align-items: baseline; gap: 8px; margin: 18px 0 22px;
  padding: 14px 22px; background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px); border-radius: 30px;
}
.about-stat strong { font-family: 'Caveat', cursive; font-size: 36px; color: var(--gold); }
.about-stat span { font-size: 14px; color: var(--text-light); }

.qualifications { margin-top: 22px; }
.qualifications li {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px;
  font-size: 15px; color: var(--text);
}
.qualifications .icon { width: 16px; height: 16px; color: var(--gold); margin-top: 3px; flex-shrink: 0; }

/* ---- SUBJECTS ---- */
.subjects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.subject-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px) saturate(140%);
  border-radius: 16px; padding: 32px 28px; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.subject-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(66, 61, 82, 0.1); }
.subject-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--cream-deep); color: var(--navy-deep);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.subject-card h3 { font-size: 23px; margin-bottom: 6px; }
.subject-level { font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 12px; }
.subject-card p { font-size: 14.5px; color: var(--text-light); line-height: 1.6; }

/* ---- TESTIMONIALS ---- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px) saturate(140%);
  border-radius: 16px; padding: 32px 28px; display: flex; flex-direction: column; gap: 16px;
}
.testimonial-stars { display: flex; gap: 3px; color: var(--gold); }
.testimonial-stars .icon { width: 16px; height: 16px; }
.testimonial-quote { font-size: 16px; line-height: 1.65; color: var(--text); font-style: italic; }
.testimonial-quote::before { content: '\201C'; }
.testimonial-quote::after { content: '\201D'; }
.testimonial-author { font-size: 14px; font-weight: 700; color: var(--navy-deep); }
.testimonial-role { font-size: 13px; color: var(--text-light); }

/* ---- RATES ---- */
.rates-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.rates-card {
  background: var(--surface-dark); color: var(--on-surface-dark); border-radius: 16px; padding: 40px;
  border: 1px solid var(--surface-dark-edge);
}
.rates-card .icon { color: var(--gold-light); width: 26px; height: 26px; margin-bottom: 16px; }
.rates-card h3 { color: var(--on-surface-dark); font-size: 26px; margin-bottom: 12px; }
.rates-card p { font-size: 15.5px; line-height: 1.7; color: var(--on-surface-dark-dim); }

/* ---- TIPS / BLOG PREVIEW ---- */
.tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tip-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px) saturate(140%);
  border-radius: 16px; overflow: hidden; display: block;
}
.tip-image { aspect-ratio: 16/10; background: var(--cream-deep); display: flex; align-items: center; justify-content: center; color: var(--navy-pale); }
.tip-image .icon { width: 30px; height: 30px; }
.tip-info { padding: 24px; }
.tip-date { font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 8px; }
.tip-title { font-size: 20px; margin-bottom: 8px; }
.tip-excerpt { font-size: 14.5px; color: var(--text-light); line-height: 1.6; }
.all-tips-link { text-align: center; margin-top: 40px; }
.all-tips-link a { font-size: 15px; font-weight: 700; color: var(--navy-deep); border-bottom: 1.5px solid var(--gold); padding-bottom: 3px; }

/* ---- CONTACT ---- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; }
.contact-info-list { display: flex; flex-direction: column; gap: 22px; margin-bottom: 30px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-icon {
  width: 42px; height: 42px; border-radius: 50%; background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  color: var(--navy-deep); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-label { font-size: 13px; color: var(--text-light); margin-bottom: 2px; }
.contact-info-value { font-size: 15.5px; font-weight: 700; color: var(--navy-deep); }
.contact-social { display: flex; gap: 12px; }
.contact-social a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--navy-deep); transition: all 0.2s;
}
.contact-social a:hover { background: var(--surface-dark); border-color: var(--surface-dark); color: var(--on-surface-dark); }

.contact-form {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(140%);
  border-radius: 16px; padding: 40px;
}
.contact-intro { font-size: 15.5px; color: var(--text-light); margin-bottom: 24px; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 700; color: var(--navy-deep); margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 15px; color: var(--text); background: rgba(255,255,255,0.5);
}
[data-theme="dark"] .form-group input, [data-theme="dark"] .form-group select, [data-theme="dark"] .form-group textarea {
  background: rgba(0,0,0,0.15);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--gold);
}
.form-submit { width: 100%; justify-content: center; }
.form-feedback { margin-top: 14px; font-size: 14px; }
.form-feedback.success { color: var(--success); }
.form-feedback.error { color: var(--error); }

/* ---- FOOTER ----
   Deliberately a fixed "night sky" band in both light and dark site modes
   (uses --surface-dark / --on-surface-dark, which never flip) so it always
   reads consistently instead of inverting to a pale band in dark mode. */
.site-footer { background: var(--surface-dark); color: var(--on-surface-dark); padding: 70px 32px 30px; border-top: 1px solid var(--surface-dark-edge); }
.footer-inner { max-width: 1140px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; margin-bottom: 50px; }
.footer-brand-logo { font-family: 'Caveat', cursive; font-size: 30px; font-weight: 700; margin-bottom: 12px; color: var(--on-surface-dark); }
.footer-tagline { font-size: 15px; color: var(--on-surface-dark-dim); line-height: 1.6; max-width: 320px; }
.footer-heading { font-family: 'Caveat', cursive; font-weight: 700; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 8px; }
.footer-links a, .footer-contact-line { display: block; font-size: 14.5px; color: var(--on-surface-dark-dim); margin-bottom: 10px; }
.footer-links a:hover { color: var(--gold-light); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--on-surface-dark-border);
  display: flex; align-items: center; justify-content: center; color: var(--on-surface-dark);
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--surface-dark-deep); }
.footer-widget-title { font-family: 'Caveat', cursive; font-weight: 700; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-light); margin-top: 20px; margin-bottom: 8px; }

/* Any widget dropped into the footer sidebar (e.g. core Archives/Categories
   blocks) needs its own heading/list/link colors, or it inherits browser/
   block defaults that are unreadable against the dark footer background.
   margin-top on the title gives each stacked widget breathing room above it
   (the wrapper itself has no spacing between widgets otherwise); margin-bottom
   is kept tight since the list below is already closely spaced. */
.footer-widget { color: var(--on-surface-dark-dim); }
.footer-widget h1, .footer-widget h2, .footer-widget h3, .footer-widget h4,
.footer-widget .wp-block-heading {
  font-family: 'Caveat', cursive;
  font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold-light); margin-top: 20px; margin-bottom: 8px; font-weight: 700;
}
.footer-widget ul { list-style: none; }
.footer-widget li { font-size: 14.5px; margin-bottom: 8px; }
.footer-widget a { color: var(--on-surface-dark-dim); }
.footer-widget a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid var(--on-surface-dark-border); padding-top: 26px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13.5px; color: var(--on-surface-dark-faint);
}
.footer-bottom a { color: var(--on-surface-dark-faint); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ---- SINGLE / PAGE / ARCHIVE CONTENT ---- */
.page-hero {
  padding: 160px 32px 60px; text-align: center; background: var(--cream-deep);
}
.page-hero h1 { font-size: 50px; }
.content-wrap { max-width: 780px; margin: 0 auto; padding: 80px 32px; }
.content-wrap .entry-meta { font-size: 13.5px; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 14px; }
.content-wrap h1 { font-size: 44px; margin-bottom: 24px; }
.content-wrap .entry-content { font-size: 17px; line-height: 1.8; color: var(--text); }
.content-wrap .entry-content p { margin-bottom: 20px; }
.content-wrap .entry-content h2 { font-size: 30px; margin: 36px 0 16px; }
.content-wrap .entry-content h3 { font-size: 24px; margin: 28px 0 14px; }
.content-wrap .entry-content a { color: var(--gold); text-decoration: underline; }
.content-wrap .entry-content img { border-radius: 12px; margin: 24px 0; }
.content-wrap .entry-content ul, .content-wrap .entry-content ol { margin: 0 0 20px 22px; }
.archive-grid { max-width: 1140px; margin: 0 auto; padding: 80px 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.not-found { text-align: center; padding: 160px 32px 120px; }
.not-found h1 { font-size: 96px; color: var(--gold-light); }
.not-found p { font-size: 17px; color: var(--text-light); margin: 16px 0 30px; }


/* ---- BACK TO TOP ---- */
.back-to-top {
  position: fixed; right: 28px; bottom: 28px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface-dark); color: var(--on-surface-dark);
  border: 1px solid var(--surface-dark-edge);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, visibility 0.3s;
  box-shadow: 0 10px 24px rgba(26, 23, 48, 0.3);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold); color: var(--surface-dark-deep); border-color: var(--gold); }
.back-to-top .icon { width: 20px; height: 20px; }

@media (max-width: 768px) {
  .back-to-top { right: 18px; bottom: 18px; width: 42px; height: 42px; }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .why-grid, .testimonials-grid, .tips-grid, .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .about-layout, .rates-layout, .contact-layout, .footer-top { grid-template-columns: 1fr; }
  .about-layout { gap: 40px; }
  .ai-banner-card { padding: 44px 32px 38px; }
}

@media (max-width: 768px) {
  .site-nav { padding: 16px 22px; }
  .nav-right { position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--border); flex-direction: column; align-items: flex-start; padding: 20px 24px; gap: 20px; transform: translateY(-150%); opacity: 0; transition: all 0.25s ease; pointer-events: none; }
  .nav-right.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links { flex-direction: column; gap: 16px; }
  .menu-toggle { display: flex; }
  .hero-title { font-size: 48px; }
  .hero-tagline { font-size: 22px; }
  .section-header h2 { font-size: 34px; }
  .ai-banner-card h2 { font-size: 30px; }
  .why-grid, .testimonials-grid, .tips-grid, .archive-grid, .form-row { grid-template-columns: 1fr; }
  section, .ai-banner-section { padding: 70px 0; }
  .contact-form { padding: 26px; }
  .footer-top { gap: 34px; }
}
