/* ===== CUSTOMIZATION VARIABLES ===== */
:root {
    /* BRAND COLORS - Refined from Mockup */
    --primary-color: #66726F;
    /* Muted Slate/Teal from mockup */
    --primary-dark: #4F5A57;
    --accent-color: #8fa3a3;
    /* Softer version for icons/secondary */
    --text-color: #2c3e50;
    --text-light: #546e7a;
    /* Slightly darker for better readability */
    --background-color: #fcfdfd;
    --white: #ffffff;
    --card-header-bg: #f4f6f6;

    /* TYPOGRAPHY - Scaled Up for Professional Feel */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    /* ASSETS - REPLACE THESE URLS FOR SQUARESPACE */
    /* Use absolute URLs after uploading to Squarespace */
    --logo-url: url('../northstar behavioral health a simple blue star with Northstar Behavioral Health under it.jpg');
    --doctor-photo-url: url('../812418FF-59B2-4B7F-87A6-98159E3CBA6A.PNG');
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.8;
    /* Increased line-height for elegance */
    background-color: var(--background-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-size: 18px;
    /* Base size bumped up from 16px default */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    /* Slightly bolder for authority */
    margin-bottom: 1.2rem;
    color: #2c3e50;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1400px;
    /* significantly wider to fill screen */
    margin: 0 auto;
    padding: 0 40px;
    /* Increased padding */
}

/* BUTTON STYLES - Scaled Up */
.btn {
    display: inline-block;
    padding: 16px 36px;
    /* Larger hit area */
    background-color: var(--primary-color);
    color: white;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(102, 114, 111, 0.2);
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 114, 111, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

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

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* ===== HEADER & NAVIGATION (MOBILE FIRST) ===== */
:root {
    /* Navbar variables */
    --nav-bg: #ffffff;
    --nav-text: #2c3e50;
    --nav-hover: #66726F;
    /* Primary Brand Color */
}

header {
    background-color: var(--nav-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 2.5rem;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1001;
}

.logo-img {
    height: 120px;
    width: auto;
    max-height: none;
    display: block;
    transition: height 0.3s ease;
}

/* MOBILE MENU TOGGLE */
.hamburger {
    display: block;
    /* Visible by default on mobile */
    cursor: pointer;
    z-index: 1002;
    background: none;
    border: none;
    padding: 0.5rem;
}

.bar {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    background-color: var(--nav-text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

/* NAVIGATION MENU (MOBILE DEFAULT) */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    /* Gap between items */
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    display: flex;
    padding-top: 100px;
    /* Space for header */
}

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

/* NAV ITEMS */
.nav-item {
    font-family: var(--font-body);
    font-size: 1.25rem;
    /* Large for touch targets */
    font-weight: 600;
    color: var(--nav-text);
    transition: color 0.2s ease;
    position: relative;
    padding: 0.5rem 1rem;
}

.nav-item:hover {
    color: var(--nav-hover);
}

/* HAMBURGER ANIMATION */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

body.menu-open {
    overflow: hidden;
    /* Prevent background scroll */
}

/* ACTION BUTTONS (MOBILE FIRST) */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    padding: 0 2rem;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background-color: white;
    color: var(--nav-text);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.action-btn:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
    color: var(--nav-hover);
}

.action-btn svg {
    width: 18px;
    height: 18px;
    stroke: #d93838;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}


/* ===== MEDIA QUERIES (DESKTOP & TABLET OVERRIDES) ===== */

/* TABLET & DESKTOP (Min-width: 1024px) - Switch to horizontal */
/* Note: Keeping hamburger until 1024px because full menu is very long */
@media screen and (min-width: 1024px) {
    .hamburger {
        display: none;
    }

    .nav-menu {
        position: static;
        height: auto;
        width: auto;
        background: transparent;
        flex-direction: row;
        box-shadow: none;
        padding-top: 0;
        gap: 1.5rem;
        /* Tablet gap */
        transform: none;
        transition: none;
    }

    .nav-item {
        font-size: 1.05rem;
        /* Bigger for horizontal nav */
        padding: 0;
        font-weight: 500;
    }

    .nav-item::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--nav-hover);
        transition: width 0.3s ease;
    }

    .nav-item:hover::after {
        width: 100%;
    }

    /* Action Buttons styling in Nav */
    .action-buttons {
        flex-direction: row;
        width: auto;
        padding: 0;
        margin-left: 0.5rem;
        gap: 12px;
    }

    .action-btn {
        font-size: 0.95rem;
        padding: 8px 14px;
        justify-content: flex-start;
    }
}

/* DESKTOP (Min-width: 1200px) - Full spacing */
@media screen and (min-width: 1200px) {
    .nav-menu {
        gap: 2rem;
    }

    .nav-item {
        font-size: 1.1rem;
    }

    .logo-img {
        height: 130px;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    background-color: #fcfdfd;
    overflow: hidden;
    padding: 70px 0;
    display: flex;
    align-items: center;
}

/* Full width container for Hero */
.hero-layout {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text-col {
    flex: 0 0 52%;
    max-width: 620px;
    z-index: 2;
}

.hero-img-col {
    flex: 0 0 45%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    font-size: 3.4rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.hero-supporting-text {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.6;
}

.hero-img {
    width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* ===== TRUST INDICATORS ===== */
.trust-indicators {
    padding: 40px 0;
    background-color: #f8fcfc;
}

.trust-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    color: var(--primary-dark);
    font-weight: 500;
}

.check-icon {
    width: 24px;
    height: 24px;
    stroke: var(--accent-color);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    flex-shrink: 0;
}

@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3.2rem;
    }
}

@media (max-width: 900px) {
    .hero {
        padding: 60px 0;
    }

    .hero-layout {
        flex-direction: column;
        gap: 40px;
    }

    .hero-text-col {
        flex: 1;
        max-width: 100%;
        text-align: left;
        order: 1;
        padding: 0;
    }

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

    .hero-img-col {
        flex: 1;
        width: 100%;
        order: 2;
    }

    .trust-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

/* ===== OUR APPROACH ===== */
.our-approach {
    padding: 80px 0;
    background: #fdfdfd;
    border-bottom: 1px solid #f0f0f0;
}

.approach-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.approach-subtitle {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-style: italic;
    margin-bottom: 20px;
    font-weight: 400;
}

.approach-intro {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 35px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.approach-content p {
    font-size: 1.15rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

.approach-list {
    text-align: left;
    display: inline-block;
    margin: 0 auto 35px;
}

.approach-list li {
    font-size: 1.15rem;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-color);
}

.approach-list li::before {
    content: '✦';
    color: var(--accent-color);
    font-size: 1.2rem;
    line-height: 1.4;
}

.approach-highlight {
    font-size: 1.25rem;
    color: var(--primary-dark);
    font-weight: 600;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    font-style: italic;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    padding: 80px 0;
    background: white;
    text-align: center;
}

.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: 3rem;
    color: #2c3e50;
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--accent-color);
    margin: 20px auto 0;
    opacity: 0.7;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    /* Wider cards */
    gap: 50px;
}

.step-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    transition: 0.4s ease;
    text-align: left;
    border: 1px solid #f0f0f0;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.step-header {
    background: var(--card-header-bg);
    padding: 30px 35px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 20px;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--accent-color);
    font-weight: 700;
    line-height: 1;
}

.step-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.step-body {
    padding: 35px;
}

.step-body p {
    color: var(--text-light);
    font-size: 1.15rem;
}

/* ===== CONDITIONS ===== */
.conditions {
    padding: 80px 0;
    background: #f8fcfc;
    text-align: center;
}

.conditions-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    /* Reduced gap to fit on one line */
    margin-bottom: 60px;
}

.condition-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
    /* Reduced width */
    /* Wider for details */
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.condition-item:hover {
    background-color: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.condition-detail {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin-top: 15px;
    line-height: 1.5;
    opacity: 0.9;
}

.icon-circle {
    width: 120px;
    height: 120px;
    /* Larger icons */
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: 0.3s;
}

.condition-item:hover .icon-circle {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.condition-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #555;
}

.conditions-note {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    color: #888;
    font-style: italic;
}

/* ===== DOCTOR PROFILE ===== */
.doctor-profile {
    padding: 80px 0;
    background: white;
}

.profile-wrapper {
    display: flex;
    align-items: center;
    gap: 80px;
}

.profile-bg-deco {
    position: relative;
    flex: 0 0 28%;
}

.profile-bg-deco::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    z-index: 0;
}

.profile-photo {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 360px;
    background-color: #eee;
    background-image: var(--doctor-photo-url);
    background-size: cover;
    background-position: center top;
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.profile-content {
    flex: 1;
}

.profile-content h2 {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.profile-role {
    display: inline-block;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--text-light);
    font-size: 1.4rem;
    margin-bottom: 40px;
}

.profile-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-light);
}

.profile-content .highlight-text {
    color: var(--primary-color);
    font-weight: 600;
    font-style: italic;
}

@media(max-width: 1000px) {
    .profile-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }

    .profile-bg-deco {
        width: 100%;
        max-width: 500px;
    }

    .profile-bg-deco::before {
        left: 15px;
        top: 15px;
    }

    .profile-content {
        padding-left: 0;
    }
}

/* ===== INSURANCE ===== */
.insurance {
    padding: 80px 0;
    background: white;
    border-top: 1px solid #eee;
}

.insurance-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.insurance-text {
    font-size: 1.3rem;
    margin-top: 20px;
    margin-bottom: 50px;
    color: #555;
}

.logo-grid {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
}

.insurance-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: 0.3s;
}

.insurance-item:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateY(-5px);
}

.ins-logo-img {
    max-height: 60px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.ins-logo-txt {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== FAQ ===== */
.faq-section {
    padding: 80px 0;
    background: #f8fcfc;
    border-top: 1px solid #eee;
}

.faq-categories {
    max-width: 860px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 48px;
}

.faq-category-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dde6e6;
}

.faq-item {
    border-bottom: 1px solid #e8eeed;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.2s ease;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: var(--accent-color);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.faq-icon::before {
    width: 10px;
    height: 2px;
}

.faq-icon::after {
    width: 2px;
    height: 10px;
}

.faq-item.open .faq-icon {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: rotate(45deg);
}

.faq-item.open .faq-icon::before,
.faq-item.open .faq-icon::after {
    background: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer-inner {
    padding: 0 0 20px;
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
}

.faq-item.open .faq-answer {
    max-height: 400px;
}

@media (max-width: 768px) {
    .faq-question {
        font-size: 1rem;
    }
}

/* ===== BLOG PAGE ===== */
.blog-hero {
    background: #f4f7f7;
    padding: 60px 0 50px;
    border-bottom: 1px solid #e8eeed;
    text-align: center;
}

.blog-hero h1 {
    font-size: 3rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.blog-hero p {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
}

.blog-listing {
    padding: 70px 0;
    background: var(--background-color);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 40px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}

.blog-card-body {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    font-size: 0.85rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 14px;
}

.blog-card h2 {
    font-size: 1.45rem;
    margin-bottom: 14px;
    line-height: 1.3;
    color: var(--text-color);
}

.blog-card p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 24px;
}

.blog-card-link {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.blog-card-link:hover {
    gap: 10px;
    color: var(--primary-dark);
}

/* ===== BLOG POST PAGE ===== */
.post-hero {
    background: #f4f7f7;
    padding: 60px 0 50px;
    border-bottom: 1px solid #e8eeed;
}

.post-hero-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 40px;
}

.post-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 28px;
    transition: gap 0.2s ease;
}

.post-back-link:hover {
    gap: 10px;
}

.post-meta {
    font-size: 0.9rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 16px;
}

.post-hero h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    color: var(--primary-dark);
    margin-bottom: 0;
}

.post-body {
    padding: 60px 0 80px;
}

.post-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 40px;
}

.post-content p {
    font-size: 1.15rem;
    color: var(--text-color);
    line-height: 1.9;
    margin-bottom: 28px;
}

.post-content blockquote {
    border-left: 3px solid var(--accent-color);
    padding: 16px 28px;
    margin: 36px 0;
    background: #f4f7f7;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--primary-dark);
    font-family: var(--font-heading);
}

.post-cta-box {
    margin-top: 56px;
    padding: 40px;
    background: var(--card-header-bg);
    border-radius: 12px;
    text-align: center;
    border: 1px solid #dde6e6;
}

.post-cta-box h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.post-cta-box p {
    margin-bottom: 24px;
    font-size: 1.05rem;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .post-hero h1 {
        font-size: 2rem;
    }

    .blog-hero h1 {
        font-size: 2.2rem;
    }
}

/* ===== FOOTER ===== */
footer {
    background: #34495e;
    color: #ecf0f1;
    padding: 60px 0 40px;
    font-size: 1.1rem;
}

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

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

footer h5 {
    color: #ffffff;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

footer ul li {
    margin-bottom: 15px;
}

footer a {
    color: #95a5a6;
}

footer a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    color: #7f8c8d;
    font-size: 0.95rem;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    animation: fadeIn 0.3s ease-out;
}

.modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-box {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    max-width: 560px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.modal-close:hover {
    color: var(--primary-dark);
    transform: scale(1.1);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: var(--card-header-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--primary-color);
    font-size: 48px;
}

.modal-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--primary-color);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 16px;
    text-align: center;
}

.modal-body {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0 0 28px;
    text-align: center;
}

.modal-cta {
    display: inline-block;
    margin-top: 0;
    width: 100%;
    text-align: center;
}

@media (max-width: 768px) {
    .modal-box {
        max-width: 92vw;
        padding: 32px 24px;
    }

    .modal-title {
        font-size: 24px;
    }

    .modal-body {
        font-size: 16px;
    }
}

/* ===== FOCUS MANAGEMENT ===== */
:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
    border-radius: 3px;
}

:focus:not(:focus-visible) {
    outline: none;
}

.btn:focus-visible,
.faq-question:focus-visible,
.modal-close:focus-visible,
.action-btn:focus-visible,
.condition-item:focus-visible {
    outline: 3px solid var(--primary-dark);
    outline-offset: 3px;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 80px 0;
    background-color: var(--background-color);
    border-top: 1px solid rgba(102, 114, 111, 0.12);
}

.contact-header {
    text-align: center;
    margin-bottom: 48px;
}

.contact-header .section-title {
    display: block;
    text-align: center;
    margin-bottom: 16px;
}

.contact-header .section-title::after {
    margin-left: auto;
    margin-right: auto;
}

.contact-tagline {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 0;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto 48px;
}

.contact-card {
    background: var(--white);
    border: 1px solid rgba(102, 114, 111, 0.15);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(143, 163, 163, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.contact-card-icon svg {
    width: 22px;
    height: 22px;
}

.contact-card-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin: 0;
}

.contact-card-value {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

.contact-phone {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.contact-phone:hover {
    color: var(--primary-dark);
}

.contact-cta {
    text-align: center;
}

@media (max-width: 768px) {
    .contact-cards {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .contact-section {
        padding: 60px 0;
    }
}
