﻿:root {
    --chg-navy: #1b1f3b;
    --chg-indigo: #2e3567;
    --chg-teal: #2a9d8f;
    --chg-teal-dark: #21867a;
    --chg-gold: #e9c46a;
    --chg-light: #f0f4f8;
    --chg-text: #2c3e50;
}

body {
    color: var(--chg-text);
}

.body-content {
    margin-top: 1.5rem;
    padding-left: 15px;
    padding-right: 15px;
}

.dl-horizontal dt {
    white-space: normal;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="select"] {
    max-width: 280px;
}

.password-input-group {
    max-width: 280px;
}

.password-input-group .form-control {
    max-width: none;
}

.password-toggle {
    display: inline-flex;
    align-items: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.password-toggle .password-icon {
    vertical-align: -0.125em;
}

.password-caps-warning {
    max-width: 280px;
}

/* Navbar */
.navbar {
    background-color: var(--chg-navy) !important;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Hero */
.hero-section {
    background: linear-gradient(135deg, rgba(27, 31, 59, 0.90) 0%, rgba(46, 53, 103, 0.80) 100%),
                url('../Images/hero-misty-forest.jpg') center / cover no-repeat;
    color: #fff;
    padding: 4rem 1rem;
    margin: 0 -15px 2rem -15px;
    border-bottom: 4px solid var(--chg-teal);
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-tagline {
    font-size: 1.3rem;
    color: var(--chg-gold);
    font-weight: 500;
}

/* Mission */
.mission-section {
    margin-bottom: 3rem;
}

.mission-section h2 {
    color: var(--chg-navy);
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--chg-teal);
    display: inline-block;
}

.pillar-card {
    background: var(--chg-light);
    border-radius: 8px;
    height: 100%;
    overflow: hidden;
    border-top: 4px solid var(--chg-teal);
    transition: transform 0.2s ease;
}

.pillar-card:hover {
    transform: translateY(-3px);
}

.pillar-img {
    height: 170px;
    background-size: cover;
    background-position: center;
}

.pillar-img.img-outreach {
    background-image: url('../Images/pillar-outreach.jpg');
}

.pillar-img.img-collaboration {
    background-image: url('../Images/pillar-collaboration.jpg');
}

.pillar-img.img-education {
    background-image: url('../Images/pillar-education.jpg');
}

.pillar-body {
    padding: 1.5rem;
}

.pillar-card h3 {
    color: var(--chg-indigo);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* Associations */
.associations-section {
    background: var(--chg-light);
    padding: 2.5rem;
    margin: 0 -15px 3rem -15px;
    border-radius: 0;
}

.associations-section h2 {
    color: var(--chg-navy);
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--chg-teal);
    display: inline-block;
}

.association-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    border-left: 4px solid var(--chg-indigo);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
}

.association-card:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.association-card h4 {
    color: var(--chg-indigo);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.btn-outline-primary {
    color: var(--chg-teal);
    border-color: var(--chg-teal);
}

.btn-outline-primary:hover {
    background-color: var(--chg-teal);
    border-color: var(--chg-teal);
    color: #fff;
}

/* CTA */
.cta-section {
    padding: 4rem 1.5rem;
    margin: 0 -15px 2rem -15px;
    background: linear-gradient(135deg, rgba(27, 31, 59, 0.86) 0%, rgba(33, 134, 122, 0.80) 100%),
                url('../Images/cta-community.jpg') center / cover no-repeat;
    color: #fff;
}

.cta-section h2 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.92);
}

.btn-accent {
    background-color: var(--chg-teal);
    border-color: var(--chg-teal);
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 2rem;
    border-radius: 6px;
}

.btn-accent:hover {
    background-color: var(--chg-teal-dark);
    border-color: var(--chg-teal-dark);
    color: #fff;
}

/* Footer */
footer {
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
    color: #6c757d;
}

/* About & Contact pages */
.page-section {
    margin-bottom: 2rem;
}

.page-section h2 {
    color: var(--chg-navy);
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--chg-teal);
    display: inline-block;
}

/* Cross-origin contact form embed - no resize handshake available, so the
   iframe carries a generous fixed height and renders chromeless to blend in. */
.contact-embed {
    display: block;
    width: 100%;
    height: 920px;
    border: 0;
    overflow: hidden;
    background: transparent;
}

/* The embed host can take 10+ seconds to respond; an overlay spinner sits on top
   of the iframe until its load event fires (load fires cross-origin even though
   the document body does not). */
.contact-embed-wrap {
    position: relative;
    width: 100%;
}

.contact-embed-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: #fff;
    transition: opacity 0.3s ease;
}

.contact-embed-loaded .contact-embed-loading {
    opacity: 0;
    pointer-events: none;
}

.contact-embed-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #d7dde6;
    border-top-color: var(--chg-teal);
    border-radius: 50%;
    animation: contact-embed-spin 0.8s linear infinite;
}

.contact-embed-loading-text {
    margin: 0;
    color: #6c757d;
    font-weight: 600;
}

@keyframes contact-embed-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-embed-spinner {
        animation-duration: 2s;
    }
}

/* Hypnotist Search */
.hypno-search {
    margin-bottom: 2.5rem;
}

.map-wrapper {
    position: sticky;
    top: 1rem;
}

#hypnoMap {
    width: 100%;
    height: 480px;
    border-radius: 12px;
    border: 1px solid #d7dde6;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.hypno-map-unavailable {
    width: 100%;
    height: 480px;
    border-radius: 12px;
    border: 1px solid #d7dde6;
    background: var(--chg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 1.05rem;
}

.hypno-iw {
    max-width: 240px;
    font-family: inherit;
}

.hypno-iw-name {
    font-weight: 700;
    color: var(--chg-navy);
    margin-bottom: 0.15rem;
}

.hypno-iw-city {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--chg-teal-dark);
}

.hypno-iw-focus {
    font-size: 0.85rem;
    color: #555;
    margin: 0.35rem 0;
}

.hypno-iw-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--chg-teal-dark);
    text-decoration: none;
}

.hypno-iw-link:hover {
    text-decoration: underline;
}

.map-select {
    margin-top: 1rem;
}

.map-select .form-select {
    max-width: 100%;
}

.province-detail {
    min-height: 120px;
}

.detail-placeholder {
    background: var(--chg-light);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.js-enabled .province-panel {
    display: none;
}

.province-panel {
    margin-bottom: 1rem;
}

.province-panel h3 {
    color: var(--chg-navy);
    font-weight: 700;
}

.province-panel h4 {
    color: var(--chg-indigo);
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.reg-status {
    margin-bottom: 0.5rem;
}

.reg-badge {
    display: inline-block;
    background: var(--chg-gold);
    color: var(--chg-navy);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

.reg-detail {
    color: var(--chg-text);
}

.detail-list {
    padding-left: 1.25rem;
}

.detail-list li {
    margin-bottom: 0.35rem;
}

.red-flags li {
    color: #9b2226;
}

.service-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-badge {
    background: var(--chg-light);
    border: 1px solid var(--chg-teal);
    color: var(--chg-teal-dark);
    font-size: 0.85rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
}

.assoc-item {
    margin-bottom: 0.6rem;
}

.assoc-item a {
    font-weight: 600;
    color: var(--chg-teal-dark);
}

.assoc-desc {
    display: block;
    font-size: 0.9rem;
    color: #555;
}

.listing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.listing-card {
    background: #fff;
    border-left: 4px solid var(--chg-indigo);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.listing-name {
    font-weight: 700;
    color: var(--chg-navy);
}

.listing-city {
    font-size: 0.85rem;
    color: var(--chg-teal-dark);
    font-weight: 600;
}

.listing-focus {
    font-size: 0.9rem;
    color: #555;
    margin: 0.25rem 0 0.4rem 0;
}

.listing-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--chg-teal-dark);
}

.detail-disclaimer {
    font-size: 0.8rem;
    color: #777;
    font-style: italic;
    margin-top: 1.5rem;
    border-top: 1px solid #e2e2e2;
    padding-top: 0.75rem;
}

/* Photographic page banner (About / Find a Hypnotist / Contact) */
.page-banner {
    position: relative;
    min-height: 220px;
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.page-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(27, 31, 59, 0.10) 0%, rgba(27, 31, 59, 0.72) 100%);
}

.page-banner .banner-heading {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 1.5rem;
    color: #fff;
    font-weight: 700;
    font-size: 2rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.banner-canada {
    background-image: url('../Images/banner-canada.jpg');
}

.banner-contact {
    background-image: url('../Images/contact-welcome.jpg');
}

/* Alternating image + text rows (About) */
.feature-row {
    margin-bottom: 2.5rem;
}

.feature-media img {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.photo-credit {
    font-size: 0.8rem;
    margin-bottom: 0;
}

/* Blog / Learn section */
.blog-eyebrow {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.blog-card {
    height: 100%;
    padding: 1.5rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.blog-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.blog-card h3 a {
    color: var(--chg-navy);
    text-decoration: none;
}

.blog-card h3 a:hover {
    color: var(--chg-teal);
}

.blog-card p {
    margin-bottom: 0;
    color: #495057;
}

.source-credit {
    margin-top: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
    font-size: 0.85rem;
    color: #6c757d;
}

@media screen and (min-width: 768px) {
    .body-content {
        padding: 0;
    }

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

    .hero-section {
        padding: 5rem 2rem;
        margin: 0 0 2.5rem 0;
    }

    .hero-section h1 {
        font-size: 3.5rem;
    }

    .associations-section {
        margin: 0 0 3rem 0;
        border-radius: 12px;
    }

    .cta-section {
        margin: 0 0 2rem 0;
        border-radius: 12px;
    }

    .page-banner {
        min-height: 280px;
    }

    .page-banner .banner-heading {
        padding: 2rem;
        font-size: 2.4rem;
    }
}
