/*
Theme Name:   Moffat Massage – Kadence Child
Theme URI:    https://moffatmassage.com
Description:  Kadence child theme for moffatmassage.com
Author:       Trevor Chisman
Template:     kadence
Version:      1.0.0
License:      GNU General Public License v2 or later
Text Domain:  moffatmassage
*/

/* ============================================================
   BRAND DESIGN TOKENS
   These override Kadence's CSS custom properties so every
   block, button, and heading inherits your palette automatically.
   ============================================================ */

:root {

  /* ── Palette ── */
  --mm-moss:        #3d5c3a;   /* Primary green – CTAs, headings accent */
  --mm-moss-dark:   #2d4429;   /* Hover state for buttons */
  --mm-sage:        #7a9b76;   /* Secondary / tag green */
  --mm-cream:       #faf8f3;   /* Page background */
  --mm-stone:       #f5f0e8;   /* Section alternate background */
  --mm-mist:        #dde5d8;   /* Borders, dividers */
  --mm-tan:         #c9a97a;   /* Accent gold / highlights */
  --mm-bark:        #4a3728;   /* Dark warm brown – body text */
  --mm-dark:        #1e2a1c;   /* Near-black – hero backgrounds */
  --mm-light-text:  #6b6b6b;   /* Secondary body copy */
  --mm-white:       #ffffff;

  /* ── Typography ── */
  --mm-font-serif:  'Cormorant Garamond', Georgia, serif;
  --mm-font-sans:   'Jost', system-ui, sans-serif;

  /* ── Map to Kadence global tokens ── */
  --global-palette1: #3d5c3a;   /* Primary */
  --global-palette2: #2d4429;   /* Primary dark */
  --global-palette3: #c9a97a;   /* Accent */
  --global-palette4: #1e2a1c;   /* Dark */
  --global-palette5: #f5f0e8;   /* Light bg */
  --global-palette6: #6b6b6b;   /* Muted text */
  --global-palette7: #faf8f3;   /* Page bg */
  --global-palette8: #2c2c2c;   /* Body text */

  /* ── Spacing ── */
  --mm-section-pad: 80px 24px;
  --mm-radius:      4px;
}

/* ============================================================
   GLOBAL RESETS & BASE
   ============================================================ */

body {
  background-color: var(--mm-cream);
  color: var(--mm-bark);
  font-family: var(--mm-font-sans);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--mm-font-serif);
  font-weight: 400;
  line-height: 1.15;
  color: var(--mm-dark);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.75rem); }

/* Italic accent inside headings */
h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--mm-moss);
}

p {
  font-family: var(--mm-font-sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--mm-bark);
}

.has-large-font-size { font-size: clamp(1.1rem, 2.5vw, 1.3rem); }

/* Section eyebrow label */
.mm-eyebrow {
  display: inline-block;
  font-family: var(--mm-font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mm-sage);
  margin-bottom: 0.6rem;
}

/* ============================================================
   LINKS
   ============================================================ */

a {
  color: var(--mm-moss);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--mm-moss-dark); }

/* ============================================================
   BUTTONS  (Kadence button classes + custom)
   ============================================================ */

/* Primary – moss green fill */
.wp-block-button.is-style-fill .wp-block-button__link,
.kt-button.kt-btn-style-filled,
.mm-btn-primary {
  background-color: var(--mm-moss) !important;
  color: var(--mm-white) !important;
  border-color: var(--mm-moss) !important;
  font-family: var(--mm-font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--mm-radius);
  padding: 1rem 2.25rem;
  transition: background 0.25s ease, transform 0.2s ease;
}
.wp-block-button.is-style-fill .wp-block-button__link:hover,
.kt-button.kt-btn-style-filled:hover,
.mm-btn-primary:hover {
  background-color: var(--mm-moss-dark) !important;
  border-color: var(--mm-moss-dark) !important;
  transform: translateY(-2px);
}

/* Outline variant */
.wp-block-button.is-style-outline .wp-block-button__link,
.mm-btn-outline {
  background: transparent !important;
  color: var(--mm-moss) !important;
  border: 1.5px solid var(--mm-moss) !important;
  font-family: var(--mm-font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--mm-radius);
  padding: 1rem 2.25rem;
  transition: all 0.25s ease;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.mm-btn-outline:hover {
  background: var(--mm-moss) !important;
  color: var(--mm-white) !important;
}

/* White button (on dark/green backgrounds) */
.mm-btn-white {
  background-color: var(--mm-white) !important;
  color: var(--mm-moss) !important;
  border-color: var(--mm-white) !important;
  font-family: var(--mm-font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--mm-radius);
  padding: 1rem 2.5rem;
  transition: all 0.25s ease;
}
.mm-btn-white:hover {
  background-color: var(--mm-stone) !important;
  transform: translateY(-2px);
}

/* ============================================================
   SECTION BACKGROUNDS
   ============================================================ */

.has-mm-stone-background-color,
.mm-bg-stone { background-color: var(--mm-stone) !important; }

.has-mm-moss-background-color,
.mm-bg-moss  { background-color: var(--mm-moss) !important; }

.has-mm-dark-background-color,
.mm-bg-dark  { background-color: var(--mm-dark) !important; }

.has-mm-cream-background-color,
.mm-bg-cream { background-color: var(--mm-cream) !important; }

/* Light text for dark-bg sections */
.mm-bg-moss p,  .mm-bg-moss li,  .mm-bg-moss h2, .mm-bg-moss h3,
.mm-bg-dark p,  .mm-bg-dark li,  .mm-bg-dark h2, .mm-bg-dark h3 {
  color: var(--mm-white);
}
.mm-bg-moss .mm-eyebrow,
.mm-bg-dark .mm-eyebrow { color: var(--mm-tan); }

/* ============================================================
   HERO SECTION
   ============================================================ */

.mm-hero {
  background-color: var(--mm-dark);
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.mm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(61,92,58,0.45) 0%, transparent 60%),
    radial-gradient(ellipse at 15% 85%, rgba(122,155,118,0.2) 0%, transparent 50%);
  pointer-events: none;
}

.mm-hero h1 {
  color: var(--mm-cream);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 300;
  max-width: 680px;
}
.mm-hero h1 em { color: var(--mm-sage); }

.mm-hero .hero-sub {
  color: rgba(245,240,232,0.72);
  max-width: 500px;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.85;
}

.mm-hero .mm-eyebrow {
  color: var(--mm-tan);
  border-left: 2px solid var(--mm-tan);
  padding-left: 0.75rem;
}

/* ============================================================
   CARD COMPONENTS
   ============================================================ */

/* Generic card with left border */
.mm-card {
  background: var(--mm-cream);
  border-radius: var(--mm-radius);
  padding: 2rem;
  border-left: 3px solid var(--mm-moss);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mm-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(61,92,58,0.1);
}

/* Pricing card */
.mm-price-card {
  background: var(--mm-cream);
  border: 1px solid var(--mm-mist);
  border-radius: var(--mm-radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mm-price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(61,92,58,0.12);
}
.mm-price-card.featured {
  background: var(--mm-moss);
  border-color: var(--mm-moss);
}
.mm-price-card.featured * { color: var(--mm-white) !important; }
.mm-price-card.featured h3 { color: var(--mm-white) !important; }

.mm-price-amount {
  font-family: var(--mm-font-serif);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--mm-moss);
  line-height: 1;
}
.mm-price-card.featured .mm-price-amount { color: var(--mm-white); }
.mm-price-duration {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mm-light-text);
  margin: 0.3rem 0 0.75rem;
}

/* Review / testimonial card */
.mm-review-card {
  background: var(--mm-cream);
  border: 1px solid var(--mm-mist);
  border-radius: var(--mm-radius);
  padding: 2rem;
}
.mm-review-card blockquote {
  font-family: var(--mm-font-serif);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--mm-dark);
  border: none;
  padding: 0;
  margin: 0 0 1rem;
}
.mm-review-card cite {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mm-light-text);
  font-style: normal;
}
.mm-stars { color: var(--mm-tan); letter-spacing: 0.1em; margin-bottom: 0.6rem; font-size: 0.9rem; }

/* ============================================================
   QUOTE / PULL QUOTE
   ============================================================ */

.mm-pull-quote {
  background: rgba(61,92,58,0.06);
  border-left: 3px solid var(--mm-tan);
  padding: 1.75rem 2rem;
  border-radius: 0 var(--mm-radius) var(--mm-radius) 0;
  margin: 1.5rem 0;
}
.mm-pull-quote blockquote {
  font-family: var(--mm-font-serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--mm-dark);
  line-height: 1.6;
  border: none;
  padding: 0;
  margin: 0;
}
.mm-pull-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mm-tan);
  font-style: normal;
}

/* ============================================================
   AVAILABILITY BADGE
   ============================================================ */

.mm-hours-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--mm-moss);
  color: var(--mm-white);
  padding: 0.55rem 1.2rem;
  border-radius: 50px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}
.mm-hours-badge::before {
  content: '◉';
  font-size: 0.5rem;
  color: #a3e8a0;
}

/* ============================================================
   CONDITIONS / PILL GRID
   ============================================================ */

.mm-condition-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  padding: 0.6rem 0.85rem;
  background: var(--mm-stone);
  border-radius: 3px;
}
.mm-condition-item::before {
  content: '✦';
  color: var(--mm-sage);
  font-size: 0.6rem;
  flex-shrink: 0;
}

/* ============================================================
   FAQ ACCORDION
   Uses Kadence Accordion block — minimal overrides
   ============================================================ */

.wp-block-kadence-accordion .kt-accordion-panel-inner {
  font-family: var(--mm-font-sans);
  font-weight: 300;
  line-height: 1.8;
  color: var(--mm-light-text);
}

.wp-block-kadence-accordion .kt-accordion-header-btn {
  font-family: var(--mm-font-serif) !important;
  font-size: 1.1rem !important;
  color: var(--mm-dark) !important;
}

/* ============================================================
   DIVIDERS
   ============================================================ */

.mm-divider {
  border: none;
  border-top: 1px solid var(--mm-mist);
  margin: 0;
}

/* ============================================================
   MEDIA LOGOS STRIP
   ============================================================ */

.mm-media-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  padding: 2rem 0;
}
.mm-media-logo {
  font-family: var(--mm-font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #bbb;
  text-transform: uppercase;
}

/* ============================================================
   NAVIGATION OVERRIDES
   ============================================================ */

.site-header {
  background-color: rgba(250,248,243,0.96) !important;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--mm-mist);
}

/* Primary nav links */
.main-navigation a,
.kadence-navigation a {
  font-family: var(--mm-font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mm-bark);
}
.main-navigation a:hover,
.kadence-navigation a:hover { color: var(--mm-moss); }

/* CTA nav button */
.menu-item-cta a {
  background: var(--mm-moss) !important;
  color: var(--mm-white) !important;
  padding: 0.45rem 1.25rem;
  border-radius: var(--mm-radius);
}
.menu-item-cta a:hover {
  background: var(--mm-moss-dark) !important;
}

/* Site logo / brand text */
.site-branding .site-title,
.kadence-site-branding .site-title {
  font-family: var(--mm-font-serif);
  font-size: 1.3rem;
  color: var(--mm-moss);
}

/* ============================================================
   FOOTER OVERRIDES
   ============================================================ */

.site-footer {
  background-color: var(--mm-dark) !important;
  color: rgba(245,240,232,0.55);
  font-size: 0.84rem;
}
.site-footer a { color: var(--mm-tan); }
.site-footer a:hover { color: var(--mm-stone); }
.site-footer .footer-widget-title,
.site-footer h3, .site-footer h4 {
  color: var(--mm-stone) !important;
  font-family: var(--mm-font-serif);
}

/* ============================================================
   UTILITY HELPERS
   ============================================================ */

.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* Responsive */
@media (max-width: 768px) {
  :root { --mm-section-pad: 48px 20px; }
  .mm-hero { min-height: 80vh; }
}
