/*
Theme Name: Bloom Wellness
Theme URI: https://bloomwellness-spa.com
Author: Bloom Wellness & Aesthetics, PLLC
Author URI: https://bloomwellness-spa.com
Description: Custom theme for Bloom Wellness & Aesthetics — a nurse-practitioner-led wellness spa in Gastonia, NC.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: bloom-wellness
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    --color-bg:          #161616;
    --color-bg-light:    #ffffff;
    --color-surface:     #1e1e1e;
    --color-surface-2:   #252525;
    --color-border:      #2e2e2e;
    --color-text:        #f0f0f0;
    --color-text-muted:  #a0a0a0;
    --color-text-dark:   #161616;
    --color-accent:      #2D57D6;
    --color-accent-hover:#1e45c0;
    --color-white:       #ffffff;

    --font-body:    'Cantarell', sans-serif;
    --font-script:  'Yellowtail', cursive;

    --radius:       6px;
    --radius-lg:    12px;
    --transition:   0.2s ease;
    --max-width:    1100px;
    --section-pad:  80px 20px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body.page-light {
    --color-text: #161616;
    --color-text-muted: #555555;
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
}

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

a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-hover); }

ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.script-heading {
    font-family: var(--font-script);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    color: var(--color-accent);
    line-height: 1.1;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-pad);
}

.section--light {
    background-color: var(--color-surface);
}

.section--white {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
}

.section--white h1,
.section--white h2,
.section--white h3,
.section--white h4 {
    color: var(--color-text-dark);
}

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 14px 36px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--color-accent);
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.btn:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: var(--color-white);
}

.btn--outline {
    background-color: transparent;
    color: var(--color-accent);
}

.btn--outline:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.btn--lg {
    padding: 18px 48px;
    font-size: 1rem;
}

/* ============================================================
   SITE-WIDE BANNER (banner.jpg — displayed under nav on every page)
   ============================================================ */
.site-banner {
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.site-banner img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(22, 22, 22, 0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
}

.site-branding a {
    text-decoration: none;
    display: flex;
    align-items: center;
    line-height: 1;
    opacity: 1;
    transition: opacity var(--transition);
}

.site-branding a:hover { opacity: 0.85; }

/* Desktop Nav */
.primary-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.primary-nav a {
    color: #f0f0f0;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 8px 10px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background-color var(--transition), color var(--transition);
}

.primary-nav a:hover,
.primary-nav a.current-menu-item {
    background-color: var(--color-surface-2);
    color: var(--color-white);
}

.nav-book-btn {
    margin-left: 12px;
    padding: 8px 20px !important;
    background-color: var(--color-accent) !important;
    color: var(--color-white) !important;
    border-radius: var(--radius) !important;
}

.nav-book-btn:hover {
    background-color: var(--color-accent-hover) !important;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #f0f0f0;
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    flex-direction: column;
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 12px 20px 20px;
}

.mobile-nav.is-open { display: flex; }

.mobile-nav a {
    color: #f0f0f0;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--color-accent); }

@media (max-width: 900px) {
    .primary-nav { display: none; }
    .nav-toggle { display: flex; }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(45,87,214,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero__eyebrow {
    font-family: var(--font-script);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--color-accent);
    margin-bottom: 16px;
    display: block;
}

.hero__title {
    max-width: 800px;
    margin: 0 auto 24px;
}

.hero__body {
    max-width: 680px;
    margin: 0 auto 40px;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.service-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: border-color var(--transition), transform var(--transition);
}

.service-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-3px);
}

.service-card__title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--color-white);
}

.service-card__price {
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.03em;
}

.service-card__body {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================================
   PRICING TABLE
   ============================================================ */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.95rem;
}

.pricing-table th {
    text-align: left;
    padding: 12px 16px;
    background-color: var(--color-surface-2);
    color: var(--color-accent);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--color-border);
}

.pricing-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}

.pricing-table tr:last-child td { border-bottom: none; }

.pricing-table tr:hover td { background-color: var(--color-surface-2); }

.price-value {
    color: var(--color-accent);
    font-weight: 700;
}

/* ============================================================
   INFO BOXES / CALLOUTS
   ============================================================ */
.callout {
    background-color: var(--color-surface);
    border-left: 4px solid var(--color-accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 20px 24px;
    margin: 24px 0;
    font-size: 0.95rem;
}

.callout--warning {
    border-left-color: #c0821e;
    background-color: rgba(192, 130, 30, 0.08);
}

.callout strong { color: var(--color-white); }

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-hero {
    padding: 70px 20px 60px;
    text-align: center;
    background: linear-gradient(180deg, rgba(45,87,214,0.08) 0%, transparent 100%);
    border-bottom: 1px solid var(--color-border);
}

.page-hero__title { margin-bottom: 16px; }
.page-hero__subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
    height: 1px;
    background-color: var(--color-border);
    margin: 60px 0;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
    background-color: var(--color-accent);
    padding: 60px 20px;
    text-align: center;
}

.cta-band h2 { color: var(--color-white); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 28px; font-size: 1.05rem; }

.cta-band .btn {
    background-color: var(--color-white);
    color: var(--color-accent);
    border-color: var(--color-white);
}

.cta-band .btn:hover {
    background-color: transparent;
    color: var(--color-white);
}

/* ============================================================
   ABOUT PAGE SPECIFICS
   ============================================================ */
.provider-section {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.provider-image {
    flex: 0 0 300px;
    max-width: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.provider-image img { width: 100%; }

.provider-content { flex: 1; min-width: 240px; }

.provider-content h2 {
    margin-bottom: 8px;
    color: var(--color-text-dark);
}

.provider-content .provider-title {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 24px;
    letter-spacing: 0.03em;
}

.provider-content p { color: #444; line-height: 1.8; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    align-items: start;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.contact-info-item__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: var(--color-surface-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 1rem;
}

.contact-info-item__label {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.contact-info-item__value {
    color: var(--color-text);
    font-size: 0.95rem;
}

.contact-info-item__value a { color: var(--color-text); }
.contact-info-item__value a:hover { color: var(--color-accent); }

.appointment-notice {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
}

.appointment-notice h3 { margin-bottom: 10px; }
.appointment-notice p { color: var(--color-text-muted); margin-bottom: 24px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 50px 20px 30px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .footer-logo {
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--color-white);
    display: block;
    margin-bottom: 12px;
}

.footer-brand p {
    color: #f0f0f0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-nav h4 {
    color: #ffffff;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-nav ul { display: flex; flex-direction: column; gap: 8px; }

.footer-nav a {
    color: #f0f0f0;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color var(--transition);
}

.footer-nav a:hover { color: var(--color-accent); }

.footer-contact h4 {
    color: #ffffff;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-contact p {
    color: #f0f0f0;
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 0;
}

.footer-contact a { color: #f0f0f0; }
.footer-contact a:hover { color: var(--color-accent); }

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    color: #f0f0f0;
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* ============================================================
   CONTRAINDICATIONS LIST
   ============================================================ */
.contraindications {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
}

.contraindications h4 {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.contraindications ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.contraindications li {
    background-color: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    :root { --section-pad: 60px 20px; }

    .hero { padding: 70px 20px; }

    .provider-section { flex-direction: column; }
    .provider-image { flex: unset; max-width: 100%; }

    .footer-bottom { flex-direction: column; text-align: center; }

    .pricing-table { font-size: 0.875rem; }
    .pricing-table th, .pricing-table td { padding: 10px 12px; }
}

@media (max-width: 480px) {
    .btn--lg { padding: 14px 32px; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ============================================================
   LIGHT MODE OVERRIDES
   Applied globally via body.page-light
   Nav and footer retain their dark backgrounds.
   ============================================================ */

/* Base */
body.page-light {
    --color-text: #161616;
    --color-text-muted: #555555;
    background-color: #ffffff;
    color: #1a1a1a;
}

/* Force readable text on inline-styled paragraphs — overrides var(--color-text-muted) on mobile */
body.page-light .section p,
body.page-light .section li {
    color: #444444 !important;
}

body.page-light h1,
body.page-light h2,
body.page-light h3,
body.page-light h4,
body.page-light h5,
body.page-light h6 {
    color: #1a1a1a;
}

body.page-light p { color: #444; }

/* Footer text — gold on dark background, overrides page-light p rule */
body.page-light .site-footer p,
body.page-light .site-footer a:not(:hover),
body.page-light .footer-brand p,
body.page-light .footer-contact p,
body.page-light .footer-contact a,
body.page-light .footer-nav a,
body.page-light .footer-bottom p { color: #EEC164; }

/* Footer social icons — must override page-light link color */
.footer-social-row {
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-social-row > p {
    color: #EEC164 !important;
    font-weight: 600;
    font-size: 1rem;
    margin: 0 0 12px;
    text-align: center;
}
.footer-social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}
.footer-social-icons a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    flex-shrink: 0;
    color: #ffffff !important;
}
.footer-social-icons a.icon-facebook { background: #1877F2 !important; }
.footer-social-icons a.icon-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
}

body.page-light .text-muted { color: #777; }

/* Hero */
body.page-light .hero {
    background-color: #ffffff;
}

body.page-light .hero::before {
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(45,87,214,0.07) 0%, transparent 70%);
}

body.page-light .hero__body { color: #555; }

/* Page hero (inner pages) */
body.page-light .page-hero {
    background: linear-gradient(180deg, rgba(45,87,214,0.05) 0%, transparent 100%);
    border-bottom: 1px solid #e5e7eb;
}

body.page-light .page-hero__title { color: #1a1a1a; }
body.page-light .page-hero__subtitle { color: #666; }

/* Sections */
body.page-light .section { background-color: #ffffff; }

body.page-light .section--light { background-color: #f7f8fc; }

/* Divider */
body.page-light .divider { background-color: #e5e7eb; }

/* Service cards */
body.page-light .service-card {
    background-color: #ffffff;
    border-color: #e5e7eb;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

body.page-light .service-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 4px 20px rgba(45,87,214,0.12);
}

body.page-light .service-card__title { color: #1a1a1a; }
body.page-light .service-card__body  { color: #555; }

/* Pricing table */
body.page-light .pricing-table th {
    background-color: #f3f4f6;
    color: var(--color-accent);
    border-bottom: 2px solid #e5e7eb;
}

body.page-light .pricing-table td {
    border-bottom: 1px solid #e5e7eb;
    color: #1a1a1a;
}

body.page-light .pricing-table tr:hover td { background-color: #f9fafb; }

/* Callouts */
body.page-light .callout {
    background-color: #f0f4ff;
    border-left-color: var(--color-accent);
}

body.page-light .callout strong { color: #1a1a1a; }
body.page-light .callout span,
body.page-light .callout p { color: #555; }

body.page-light .callout--warning {
    background-color: #fffbf0;
    border-left-color: #c0821e;
}

/* Contraindications */
body.page-light .contraindications {
    background-color: #f7f8fc;
    border-color: #e5e7eb;
}

body.page-light .contraindications li {
    background-color: #ffffff;
    border-color: #e5e7eb;
    color: #555;
}

/* Contact info */
body.page-light .contact-info-item__icon {
    background-color: #f0f4ff;
}

body.page-light .contact-info-item__label { color: #888; }
body.page-light .contact-info-item__value { color: #1a1a1a; }
body.page-light .contact-info-item__value a { color: #1a1a1a; }
body.page-light .contact-info-item__value a:hover { color: var(--color-accent); }

/* Appointment notice */
body.page-light .appointment-notice {
    background-color: #f7f8fc;
    border-color: #e5e7eb;
}

body.page-light .appointment-notice h3 { color: #1a1a1a; }
body.page-light .appointment-notice p  { color: #555; }

/* Provider section */
body.page-light .provider-content h2   { color: #1a1a1a; }
body.page-light .provider-content p    { color: #444; }
body.page-light .provider-content .provider-title { color: var(--color-accent); }

/* Inline strong/bold in section content */
body.page-light strong { color: #1a1a1a; }

/* Lists */
body.page-light ul li { color: #555; }
