/*
Theme Name: Highest Health
Theme URI: https://breger.org/sam/
Author: MagicCode
Author URI: https://magiccode.com
Description: Custom theme for Highest Health Homeopathy — Samantha Conboy, CCH, MA
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: highest-health
*/

/* === Variables === */
:root {
    --navy: #2d2a5e;
    --navy-light: #4a4580;
    --purple-dark: #493B68;
    --lavender-light: #F4F0F8;
    --rose: #b08fa0;
    --rose-btn: #c9a8b8;
    --rose-dark: #9a7a8a;
    --cream: #f8f6f3;
    --white: #ffffff;
    --text: #3a3a4a;
    --muted: #7a7a8a;
    --border: #e8e4e0;
    --footer-bg: #3d3970;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--rose-dark);
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 0.75em;
}

h1 { font-size: 2.4rem; font-weight: 700; }
h2 { font-size: 1.8rem; font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }

p {
    margin-bottom: 1.25em;
}

/* === Layout === */
.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content,
.entry-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.section-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

main {
    flex: 1;
}

/* === Header with Logo === */
.site-header {
    text-align: center;
    padding: 1.5rem 1.5rem 0.5rem;
    background: var(--white);
}

.site-logo {
    display: inline-block;
}

.header-logo-img {
    max-height: 80px;
    width: auto;
    margin: 0 auto;
}

.site-title {
    font-family: Georgia, serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.02em;
    margin-bottom: 0.15rem;
}

.site-title a {
    color: var(--navy);
    text-decoration: none;
}

.site-title a:hover {
    color: var(--navy-light);
}

.site-tagline {
    font-family: Georgia, serif;
    font-size: 1.1rem;
    color: var(--rose);
    font-style: italic;
    letter-spacing: 0.04em;
    margin-bottom: 1.25rem;
}

/* === Navigation === */
.main-navigation {
    text-align: center;
    padding: 0.75rem 1.5rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--white);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem 2rem;
}

.main-navigation li {
    display: inline-block;
}

.main-navigation a {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 0;
    display: inline-block;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.main-navigation a:hover {
    color: var(--rose-dark);
    border-bottom-color: var(--rose-dark);
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: var(--rose-dark);
    border-bottom-color: var(--rose-dark);
}

/* === Buttons === */
.btn,
.wp-block-button__link {
    font-family: Arial, Helvetica, sans-serif;
    display: inline-block;
    background: var(--rose-btn);
    color: var(--navy);
    padding: 0.85rem 2rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover,
.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(176, 143, 160, 0.35);
    color: var(--navy);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

/* === Hero with Photo === */
.hero {
    text-align: center;
    padding: 4.5rem 1.5rem 3.5rem;
    background: var(--white);
}

.hero--with-photo .hero-inner {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.hero--with-photo .hero-text {
    flex: 1;
    text-align: left;
}

.hero--with-photo .hero-photo {
    flex-shrink: 0;
}

.hero--with-photo .hero-photo img {
    width: 260px;
    height: 260px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(73, 59, 104, 0.2);
}

.hero h1 {
    font-size: 2.2rem;
    max-width: 700px;
    margin: 0 auto 1.25rem;
}

.hero--with-photo .hero-text h1 {
    margin: 0 0 1.25rem;
}

.hero .subtitle {
    font-size: 1.15rem;
    color: var(--text);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero--with-photo .hero-text .subtitle {
    margin: 0 0 2rem;
}

.hero .credentials {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 2rem;
}

/* === Section Styles === */
.section {
    padding: 4rem 1.5rem;
}

.section--cream {
    background: var(--cream);
}

.section--white {
    background: var(--white);
}

.section--purple {
    background: var(--purple-dark);
    color: var(--white);
}

.section--purple .section-title {
    color: var(--white);
}

.section--purple .card {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.15);
    color: var(--white);
}

.section--purple .card h3 {
    color: var(--white);
}

.section--purple .card p {
    color: rgba(255,255,255,0.85);
}

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

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

/* === Step Cards (How It Works) === */
.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* === Service Cards === */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 860px;
    margin: 0 auto;
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(45, 42, 94, 0.08);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.card p {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 0;
}

/* === Service Detail (for-you line) === */
.for-you {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.88rem;
    font-style: italic;
    color: var(--rose-dark);
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

/* === Service Icons === */
.service-icon {
    display: inline-block;
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
}

/* === Pricing Cards === */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 860px;
    margin: 0 auto 2rem;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.75rem 1.5rem;
    text-align: center;
    position: relative;
    transition: box-shadow 0.2s ease;
}

.pricing-card:hover {
    box-shadow: 0 4px 16px rgba(45, 42, 94, 0.08);
}

.pricing-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.pricing-card .price {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.pricing-card .price-detail {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 0;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 16px;
    background: var(--purple-dark);
    color: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 20px;
}

/* === Testimonials === */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 860px;
    margin: 0 auto;
}

.testimonial {
    background: var(--cream);
    border-radius: 0.75rem;
    padding: 2rem;
    border-left: 4px solid var(--rose);
}

.testimonial blockquote {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 1rem;
}

.testimonial cite {
    font-family: Arial, Helvetica, sans-serif;
    font-style: normal;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
}

.testimonial-more {
    text-align: center;
    margin-top: 2.5rem;
}

/* === IE Meeting Strip === */
.ie-meeting {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 2rem;
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.ie-meeting-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.ie-meeting h3 {
    margin-bottom: 0.5rem;
}

.ie-meeting p {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 0;
}

/* === IE Meeting Callout Banner === */
.ie-callout {
    background: var(--purple-dark);
    color: var(--white);
    text-align: center;
    padding: 1.5rem 2rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    font-family: Arial, Helvetica, sans-serif;
}

.ie-callout .ie-time {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.ie-callout .ie-sub {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
}

/* === About Photo === */
.about-photo {
    float: right;
    margin: 0 0 1.5rem 2rem;
    max-width: 260px;
}

.about-photo img {
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px rgba(45, 42, 94, 0.1);
}

/* === Speaking Section (lavender bg) === */
.speaking-section {
    background: var(--lavender-light);
    border-radius: 0.75rem;
    padding: 2rem;
    margin-top: 2rem;
}

/* === Bottom CTA Strip === */
.cta-strip {
    background: var(--footer-bg);
    color: var(--white);
    text-align: center;
    padding: 3.5rem 1.5rem;
}

.cta-strip h2 {
    color: var(--white);
    margin-bottom: 1.25rem;
}

.cta-strip p {
    color: rgba(255,255,255,0.85);
    max-width: 550px;
    margin: 0 auto 2rem;
}

/* === Footer === */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.95);
    text-align: center;
    padding: 2.5rem 1.5rem 2rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.85rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-social a {
    color: rgba(255,255,255,0.7);
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.footer-social a:hover {
    color: var(--white);
}

.footer-social svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.footer-contact {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-contact a {
    color: rgba(255,255,255,0.95);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-copyright {
    margin-bottom: 1rem;
}

.footer-notice {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 1.25rem auto 0;
    line-height: 1.5;
}

/* === Page Template === */
.page-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.page-wrapper h1.page-title {
    text-align: center;
    margin-bottom: 2rem;
}

/* === WordPress Overrides === */
.wp-block-image {
    margin-bottom: 1.5rem;
}

.wp-block-separator {
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

.alignwide {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* === WP Tables as Cards on Mobile === */
.wp-block-table {
    overflow-x: auto;
}

/* === Responsive === */
@media (max-width: 768px) {
    .hero--with-photo .hero-inner {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero--with-photo .hero-text {
        text-align: center;
    }

    .hero--with-photo .hero-photo img {
        width: 200px;
        height: 200px;
    }

    .about-photo {
        float: none;
        margin: 0 auto 1.5rem;
        max-width: 200px;
    }
}

@media (max-width: 600px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.4rem; }

    .hero {
        padding: 3rem 1.25rem 2.5rem;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .site-header {
        padding: 1rem 1rem 0.5rem;
    }

    .header-logo-img {
        max-height: 60px;
    }

    .main-navigation ul {
        gap: 0.15rem 1.25rem;
    }

    .main-navigation a {
        font-size: 0.82rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .ie-meeting {
        flex-direction: column;
    }

    .section {
        padding: 2.5rem 1.25rem;
    }

    .btn,
    .wp-block-button__link {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Mobile pricing: stack tables as cards */
    .wp-block-table table {
        display: block;
    }

    .wp-block-table thead {
        display: none;
    }

    .wp-block-table tbody,
    .wp-block-table tr {
        display: block;
    }

    .wp-block-table tr {
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: 0.75rem;
        padding: 1rem 1.25rem;
        margin-bottom: 1rem;
    }

    .wp-block-table td {
        display: block;
        text-align: left;
        padding: 0.25rem 0;
        border: none;
    }

    .wp-block-table td:first-child {
        font-weight: 600;
        color: var(--navy);
    }

    .wp-block-table td:last-child {
        font-weight: 700;
        color: var(--navy);
        font-size: 1.1rem;
    }
}

/* === Contact Form 7 === */
.wpcf7 {
    max-width: 600px;
}

.wpcf7 label {
    display: block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 1.25rem;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    margin-top: 0.35rem;
    font-family: Georgia, serif;
    font-size: 1rem;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0.4rem;
    transition: border-color 0.2s ease;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: var(--rose);
    box-shadow: 0 0 0 3px rgba(176, 143, 160, 0.15);
}

.wpcf7 textarea {
    min-height: 150px;
    resize: vertical;
}

.wpcf7 input[type="submit"] {
    font-family: Arial, Helvetica, sans-serif;
    display: inline-block;
    background: var(--rose-btn);
    color: var(--navy);
    padding: 0.85rem 2rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    margin-top: 0.5rem;
}

.wpcf7 input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(176, 143, 160, 0.35);
}

.wpcf7-response-output {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    border-radius: 0.4rem;
    margin-top: 1rem;
}

.wpcf7-mail-sent-ok {
    border-color: #46b450;
    color: #46b450;
}

.wpcf7-not-valid-tip {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.82rem;
    color: #dc3232;
    margin-top: 0.25rem;
}

/* FIX: ie-meeting has white bg but lives in .section--purple which forces white color on children — override */
.section--purple .ie-meeting,
.section--purple .ie-meeting h3,
.section--purple .ie-meeting p {
    color: #2d2a5e;
}

/* === CONTRAST FIXES — 2026-04-13 === */

/* Cards in purple section: solid darker background + guaranteed white text */
.section--purple .card {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
}

.section--purple .card,
.section--purple .card h3,
.section--purple .card p {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* IE Meeting — ensure ALL inner elements are navy on white (including h3) */
.section--purple .ie-meeting,
.section--purple .ie-meeting *,
.section--purple .ie-meeting h1,
.section--purple .ie-meeting h2,
.section--purple .ie-meeting h3,
.section--purple .ie-meeting h4,
.section--purple .ie-meeting p,
.section--purple .ie-meeting a:not(.btn),
.section--purple .ie-meeting li,
.section--purple .ie-meeting span {
    color: #2d2a5e;
}

/* IE Meeting links — keep accent purple for clarity */
.section--purple .ie-meeting a:not(.btn) {
    color: #493b68;
    text-decoration: underline;
}

/* Nav — bump text darkness for better contrast (was rgb(154,122,138) = 3.80) */
nav a,
.menu-item a {
    color: #493b68 !important;
}

/* Muted / credentials / service-description body text — from 4.22 → 4.5+ */
.credentials,
.services .card p,
.service-card p,
.section p.muted {
    color: #5a5a6e;
}

/* Step numbers on purple — make them unmistakable */
.section--purple .step-number {
    background: #fff;
    color: #2d2a5e;
}

/* Step cards — solid darker purple so white text reads cleanly */
.section--purple .card.step-card,
.section--purple .step-card {
    background: rgba(15, 10, 40, 0.45) !important;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Credentials + .for-you — bump to darker navy for 4.5+ contrast */
.credentials,
.for-you {
    color: #4a4a5e !important;
}

/* Sections with 'section-title-like' credentials under hero */
.hero p.credentials,
.hero .credentials {
    color: #4a4a5e !important;
}

/* Bump .card paragraph darkness — was --muted #7a7a8a at 4.22, now 4.8+ */
.section:not(.section--purple) .card p,
.card:not(.step-card) p {
    color: #5a5a6a;
}

/* Catch-all for any remaining muted paragraphs on white */
.services-list p,
.services p,
.service p {
    color: #5a5a6a;
}

/* Services page spacing — tighten excessive gaps */
.page-title { margin-bottom: 16px; }
.page-title + .entry-content,
.page-title + .entry-content > :first-child { margin-top: 0; }
.entry-content > h2 { margin-top: 48px; }
.entry-content > section + section { margin-top: 0; }
.service { padding-top: 24px; padding-bottom: 24px; }

/* Force smaller gap after page title — higher specificity */
h1.page-title { margin-bottom: 12px !important; }
.page-title + .entry-content { padding-top: 0 !important; margin-top: 0 !important; }
.entry-content > p:first-child,
.entry-content > .has-medium-font-size:first-child { margin-top: 8px !important; padding-top: 0 !important; }
.page-wrapper { padding-top: 32px !important; }

/* Tighten vertical rhythm throughout */
.entry-content > h2 { margin-top: 40px !important; }
.service { padding: 20px 0 !important; }

/* Kill excessive between-section stacking */
section + section,
.entry-content section + section,
.section + .section { margin-top: 0 !important; }

/* Tighten default section padding */
.section { padding: 56px 0 !important; }
.section:first-child { padding-top: 32px !important; }

/* About page — Credentials + Speaking are sibling blocks, tighten */
.entry-content > h2,
.entry-content > h3 { margin-top: 40px !important; margin-bottom: 16px !important; }
.entry-content > h2:first-child,
.entry-content > h3:first-child { margin-top: 0 !important; }

/* Services page — each service block tight */
.service + .service,
.pricing-block + .pricing-block { margin-top: 32px !important; }

/* IE Meeting page — natural content flow */
.ie-meeting-page .block + .block { margin-top: 40px !important; }

/* Logo — bigger + darker purple per Ron 2026-04-13 */
.header-logo-img { max-height: 130px !important; filter: brightness(0.75) saturate(1.4); }

@media (max-width: 720px) {
    .header-logo-img { max-height: 100px !important; }
}

/* Tighten WordPress block spacing that was stacking to 200-320px gaps */
.speaking-section { margin-top: 8px !important; padding: 24px 0 !important; }
.wp-block-separator { margin: 20px 0 !important; }
.wp-block-buttons { margin-top: 16px !important; margin-bottom: 16px !important; }
.entry-content > h2,
.entry-content > .wp-block-heading { margin-top: 28px !important; margin-bottom: 14px !important; }
.entry-content > hr { margin: 20px 0 !important; }
.entry-content > p { margin-bottom: 14px !important; }
.entry-content > .wp-block-group { margin-top: 16px !important; }
