/* ============================================================
   ROOT VARIABLES & GLOBAL SETUP
   ============================================================ */

:root {
    --primary: #1a1a1a;
    --text: #4a4a4a;
    --light-bg: #fafafa;
    --white: #ffffff;
    --border: #e5e5e5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--primary);
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

h1,
h2,
h3,
h4 {
    font-family: inherit;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin: 0rem 0 1rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    font-size: 1.15rem;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

strong {
    color: var(--primary);
    font-weight: 600;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

/* ============================================================
   CONTAINER & LAYOUT
   ============================================================ */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.content-container {
    max-width: 900px;
}

.page-wrapper {
    position: relative;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */

header {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem 0;
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.brand-icon {
    width: 60px;
    height: 60px;
}

/* Hamburger Menu */
.hamburger {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1001; /* Higher than everything else */
    position: relative; /* Creates stacking context */
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    position: relative; /* Ensures spans stack properly */
    z-index: 1; /* Keeps lines visible */
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 400px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000; /* Below hamburger, above everything else */
    transition: right 0.4s ease;
    padding: 8rem 3rem 3rem;
}

.menu-overlay.active {
    right: 0;
}

.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.menu-nav a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.5rem;
    transition: opacity 0.3s;
    position: relative;
    padding-left: 2rem;
}

.menu-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.menu-nav a:hover::before {
    width: 1rem;
}

.menu-nav a:hover {
    opacity: 0.6;
}

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

.hero-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url('https://morrisontherapy.ca/images/Justin-Morrison-Front-Page.jpg') center 20% no-repeat;
    background-size: cover;
    z-index: -1;
}

.hero {
    padding: 8rem 0 10rem;
    text-align: left;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0.1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.rotating-text {
    display: inline-block;
    color: var(--primary);
    position: relative;
}

.subtitle {
    font-size: 1.5rem;
    color: #000;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-weight: 400;
}

/* ============================================================
   CTA BUTTONS
   ============================================================ */

.cta-button,
.cta-btn {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 1.25rem 3rem;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 4px;
    margin: 3rem;
}

.cta-button:hover,
.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */

.form-group {
    margin-bottom: 2rem;
}

label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
}

input,
textarea {
    width: 100%;
    padding: 1.25rem;
    border: 2px solid var(--border);
    font-family: inherit;
    font-size: 1.05rem;
    transition: border-color 0.3s;
    background: var(--white);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
}

textarea {
    min-height: 200px;
    resize: vertical;
}

.btn {
    background: var(--primary);
    color: var(--white);
    padding: 1.25rem 3rem;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
    border-radius: 4px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */

.content-sections {
    background: var(--white);
    position: relative;
    z-index: 10;
}

.section,
.content-section {
    padding: 6rem 0;
}

.content-section.light {
    background: var(--light-bg);
    border-top: 1px solid var(--border);
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-label,
.section-tag {
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 1rem;
    font-weight: 600;
    display: block;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */

.about-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    grid-template-rows: auto auto;
    gap: 3rem 6rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.headshot {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border: 1px solid var(--border);
}

.intro-quote {
    grid-column: 1;
    grid-row: 2;
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--text);
    padding: 1.5rem;
    border-left: 3px solid var(--primary);
    background: #f9f9f9;
}

.about-text {
    grid-column: 2;
    grid-row: 1 / 3;
}

.about-text h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.about-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.credentials {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */

.services,
.services-section {
    background: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.service-card {
    background: var(--white);
    padding: 3rem;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.service-title,
.service-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.service-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text);
}

.price {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: block;
}

/* ============================================================
   MODALITIES SECTION
   ============================================================ */

.modalities-section {
    background: var(--light-bg);
    padding: 8rem 0;
    border-top: 1px solid var(--border);
}

.modalities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    margin-top: 4rem;
}

.modality-item h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.modality-item p {
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.8;
}

/* ============================================================
   RATES & INSURANCE SECTION
   ============================================================ */

.rates-section {
    padding: 8rem 0;
    border-top: 1px solid var(--border);
}

.rates-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 6rem;
    align-items: start;
}

.rates-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.rates-text p {
    font-size: 1.15rem;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* ============================================================
   INFO BOX
   ============================================================ */

.info-box {
    background: var(--white);
    padding: 3rem;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.info-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-box ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.info-box li {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text);
}

.info-box li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.info-box p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */

.page-header {
    text-align: center;
    padding: 8rem 0 4rem;
}

.page-header h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.page-header p {
    font-size: 1.15rem;
    color: var(--text);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    
}

.intro-lead {
    font-size: 1.25rem;
    max-width: 800px;
    margin-bottom: 2.5rem;
}

.policy-header {
    padding: 6rem 0 3rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
}

.last-updated {
    font-size: 0.9rem;
    color: #777;
}

/* ============================================================
   LISTS & QUOTES
   ============================================================ */

ul {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

li {
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text);
}

li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.quote-box {
    background: var(--light-bg);
    padding: 3rem;
    border-left: 2px solid var(--primary);
    margin: 4rem 0;
}

.quote-box p {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    font-style: italic;
    margin: 0;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */

.contact-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--light-bg) 100%);
}

.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.cta-section {
    background: var(--light-bg);
    border-top: 1px solid var(--border);
    padding: 6rem 0;
}

/* ============================================================
   SUCCESS MESSAGE
   ============================================================ */

.success-message {
    background: #f0f9f0;
    border: 2px solid #c3e6c3;
    color: #2d5a2d;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.05rem;
    display: none;
}

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

footer {
    background: var(--primary);
    color: var(--white);
    padding: 4rem 0;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    font-size: 1rem;
    color: #999;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 300px 1fr;
        gap: 3rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .rates-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .modalities-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .menu-overlay {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero {
        padding: 6rem 0 4rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.25rem;
    }

    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 2rem;
    }

    .headshot {
        grid-column: 1;
        grid-row: 1;
        max-width: 350px;
        margin: 0 auto;
    }

    .intro-quote {
        grid-column: 1;
        grid-row: 2;
    }

    .about-text {
        grid-column: 1;
        grid-row: 3;
    }

    .page-header {
        padding: 6rem 0 3rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .service-card,
    .info-box {
        padding: 2rem;
    }

    h2 {
        font-size: 2rem;
    }
}