/* ==========================================
   CSS Variables & Reset
   ========================================== */

:root {
    /* Colors - Modern Green Medical Theme */
    --primary-color: #10b981;
    --primary-dark: #059669;
    --primary-light: #34d399;
    --secondary-color: #14b8a6;
    --secondary-dark: #0d9488;
    --accent-color: #3b82f6;
    --accent-yellow: #fbbf24;

    /* Neutral Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #64748b;
    --background: #ffffff;
    --background-light: #f0fdf4;
    --background-alt: #ecfdf5;
    --background-dark: #064e3b;
    --border-color: #d1fae5;

    /* Gradient Colors */
    --gradient-1: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-2: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    --gradient-3: linear-gradient(135deg, #6ee7b7 0%, #34d399 100%);
    --gradient-primary: linear-gradient(135deg, #10b981 0%, #14b8a6 50%, #06b6d4 100%);
    --gradient-secondary: linear-gradient(135deg, #059669 0%, #047857 100%);

    /* Spacing */
    --container-width: 1280px;
    --section-padding: 6rem 0;
    --section-padding-small: 4rem 0;

    /* Typography */
    --font-primary: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Sora', 'Space Grotesk', sans-serif;

    /* Effects */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-colored: 0 10px 40px rgba(16, 185, 129, 0.3);

    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    line-height: 1.7;
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   Typography
   ========================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h4 { font-size: 1.75rem; font-weight: 700; }
h5 { font-size: 1.35rem; font-weight: 600; }
h6 { font-size: 1.15rem; font-weight: 600; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ==========================================
   Layout
   ========================================== */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

main {
    overflow-x: hidden;
}

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

/* ==========================================
   Header & Navigation
   ========================================== */

.site-header {
    background: var(--background);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.25rem;
    transition: var(--transition);
}

.logo-icon {
    color: var(--primary-color);
}

.logo:hover {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ==========================================
   Buttons
   ========================================== */

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.3),
        0 10px 35px rgba(16, 185, 129, 0.5);
    border: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: var(--transition);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 15px 50px rgba(16, 185, 129, 0.6);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-colored);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-colored);
}

.btn-light {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.btn-light:hover {
    background: var(--background-light);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

/* ==========================================
   Hero Section
   ========================================== */

.hero {
    padding: 8rem 0 6rem;
    background: var(--background-dark);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.9;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 650px;
}

.hero-title {
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-graphic {
    width: 500px;
    height: 500px;
    position: relative;
    animation: float 6s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Paper background */
.hero-graphic::before {
    content: '';
    position: absolute;
    width: 380px;
    height: 480px;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    border-radius: 8px;
    box-shadow:
        0 20px 60px rgba(16, 185, 129, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.1);
    transform: rotate(-2deg);
    z-index: 1;
}

/* Paper lines */
.hero-graphic::after {
    content: '';
    position: absolute;
    width: 340px;
    height: 440px;
    background-image: repeating-linear-gradient(
        transparent,
        transparent 31px,
        rgba(16, 185, 129, 0.15) 31px,
        rgba(16, 185, 129, 0.15) 32px
    );
    border-left: 2px solid rgba(16, 185, 129, 0.2);
    padding-left: 20px;
    transform: rotate(-2deg);
    z-index: 2;
}

/* Animated Writing SVG styling */
.writing-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

/* Writing animation for text - clip-path reveal */
.write-text {
    /* Text is always solid/filled */
}

.reveal-rect {
    animation: reveal-text 1.5s ease-out forwards;
    will-change: width;
}

.line-name {
    animation-delay: 0s;
}

.line-tagline {
    animation-delay: 0s;
}

/* Writing animation for lines/paths */
.write-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: write-line-draw 2s ease-out forwards;
    opacity: 0;
}

.line-1 {
    animation-delay: 0.3s;
}

.line-2 {
    animation-delay: 1.5s;
}

.line-3 {
    animation-delay: 2.4s;
}

.line-4 {
    animation-delay: 3.3s;
}

.line-5 {
    animation-delay: 4.2s;
}

@keyframes reveal-text {
    0% {
        width: 0;
    }
    100% {
        width: 400px;
    }
}

@keyframes write-line-draw {
    0% {
        stroke-dashoffset: 1000;
        opacity: 0;
    }
    1% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 0.6;
    }
}

/* ==========================================
   Services Section
   ========================================== */

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: white;
    padding: 3rem;
    border-radius: 1.5rem;
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.3),
        0 10px 35px rgba(16, 185, 129, 0.5),
        0 0 0 3px rgba(255, 255, 255, 0.3);
    border-color: var(--primary-light);
}

.service-icon {
    width: 72px;
    height: 72px;
    background: var(--gradient-primary);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
    color: white;
    box-shadow: var(--shadow-colored);
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    border-radius: 1.25rem;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover .service-icon::after {
    opacity: 1;
}

.service-icon svg {
    position: relative;
    z-index: 1;
}

.service-card h3 {
    font-size: 1.65rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

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

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ==========================================
   Why Section
   ========================================== */

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

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.why-content h2 {
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    margin: 2rem 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

.feature-list svg {
    color: var(--secondary-color);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.why-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 180px;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.stat-card:hover::before {
    opacity: 0.05;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.stat-number {
    font-size: clamp(1.75rem, 3vw, 3rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-heading);
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
    line-height: 1.2;
    word-break: break-word;
    hyphens: auto;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    line-height: 1.4;
}

/* ==========================================
   CTA Section
   ========================================== */

.cta-section {
    background: var(--background-dark);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.95;
}

.cta-section::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    bottom: -300px;
    left: -200px;
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1.25rem;
    font-weight: 800;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================
   Footer
   ========================================== */

.site-footer {
    background: var(--text-primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-icon {
    color: var(--primary-light);
}

.footer-about p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-col h3 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    font-family: var(--font-primary);
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-contact svg {
    color: var(--primary-light);
    flex-shrink: 0;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--primary-light);
}

/* ==========================================
   Page Templates
   ========================================== */

.page-header {
    background: var(--background-dark);
    color: white;
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.9;
}

.page-header::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: white;
    margin-bottom: 1.25rem;
    font-weight: 800;
}

.page-header p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.35rem;
    max-width: 700px;
    margin: 0 auto;
}

.page-content {
    padding: 4rem 0;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-wrapper h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid transparent;
    border-image: var(--gradient-primary) 1;
}

.content-wrapper h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.content-wrapper p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.content-wrapper ul,
.content-wrapper ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.content-wrapper li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.content-wrapper li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.content-wrapper a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
}

.content-wrapper a:hover {
    border-bottom-color: var(--primary-color);
}

.content-wrapper hr {
    margin: 3rem 0;
    border: none;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0.2;
}

/* ==========================================
   Contact Form
   ========================================== */

.contact-form {
    background: var(--background);
    padding: 3rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

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

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 968px) {
    .hero .container,
    .why-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero-image {
        display: none;
    }

    .why-stats {
        grid-template-columns: 1fr 1fr;
    }

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

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background);
        flex-direction: column;
        padding: 2rem;
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        gap: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

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

    section {
        padding: 3rem 0;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .why-stats {
        grid-template-columns: 1fr;
    }

    .footer-content {
        gap: 2rem;
    }

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

/* ==========================================
   Services Detail Page
   ========================================== */

.services-detail-section {
    padding: 5rem 0;
    background: var(--background-light);
}

.service-detail-card {
    background: white;
    border-radius: 1.5rem;
    padding: 3.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    border: 2px solid transparent;
    transition: var(--transition);
    scroll-margin-top: 100px;
}

.service-detail-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.service-detail-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    box-shadow: var(--shadow-colored);
}

.service-detail-content {
    flex: 1;
}

.service-detail-content h2 {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.service-detail-intro {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.service-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-feature {
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: 1rem;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition-fast);
}

.service-feature:hover {
    background: white;
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.service-feature h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.service-feature p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Service features list with tick marks */
.service-features-list {
    list-style: none;
    padding: 2.5rem;
    background: var(--background-light);
    border-radius: 1rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-dark);
}

.service-features-list li {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 2;
    padding-left: 2rem;
    position: relative;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.service-features-list li:last-child {
    margin-bottom: 0;
}

.service-features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.3rem;
}

/* Portfolio link box */
.portfolio-link-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 1rem;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-colored);
}

.portfolio-link-box:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
    opacity: 0.95;
}

.portfolio-link-box span {
    flex: 1;
}

.portfolio-link-box svg:first-child {
    flex-shrink: 0;
}

.portfolio-link-box svg:last-child {
    flex-shrink: 0;
}

.services-benefits {
    background: white;
    padding: 4rem 3.5rem;
    border-radius: 1.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
}

.services-benefits h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    background: var(--background-light);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
}

.benefit-card h4 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.services-cta {
    text-align: center;
    padding: 4rem 2rem;
}

.services-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.services-cta p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ==========================================
   About Page
   ========================================== */

.about-section {
    padding: 5rem 0;
}

.about-mission {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 5rem;
    padding: 4rem 3rem;
    background: white;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
}

.about-mission h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.mission-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* New mission section with headshot */
.about-mission-with-photo {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 5rem;
    padding: 3rem;
    background: var(--background-light);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
}

.mission-headshot {
    position: relative;
}

.mission-headshot img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary-dark);
    background: white;
}

.mission-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.mission-content .mission-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    white-space: pre-line;
}

/* New expertise section with therapy areas list */
.about-expertise-new {
    margin-bottom: 5rem;
    padding: 3rem;
    background: var(--background-light);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
}

.about-expertise-new h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-primary);
}

.expertise-description {
    max-width: 900px;
    margin: 0 auto;
}

.expertise-intro,
.expertise-outro {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.expertise-outro {
    margin-top: 2rem;
    margin-bottom: 0;
}

.therapy-areas-list {
    list-style: none;
    padding: 2.5rem;
    background: white;
    border-radius: 1rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-dark);
}

.therapy-areas-list li {
    color: var(--primary-dark);
    font-size: 1.1rem;
    line-height: 2;
    padding-left: 2rem;
    position: relative;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.therapy-areas-list li:last-child {
    margin-bottom: 0;
}

.therapy-areas-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.3rem;
}

.about-expertise {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
    padding: 4rem;
    background: var(--background-light);
    border-radius: 1.5rem;
}

.expertise-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.expertise-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.expertise-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.expertise-stat {
    text-align: center;
    padding: 2.5rem 2rem;
    background: white;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.expertise-stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-value {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-desc {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1.05rem;
}

.about-team {
    margin-bottom: 5rem;
}

.about-team h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.team-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.team-expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.team-expertise-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
}

.team-expertise-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.team-expertise-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.team-expertise-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.team-expertise-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.about-approach {
    margin-bottom: 5rem;
    padding: 4rem;
    background: var(--background-light);
    border-radius: 1.5rem;
}

.about-approach h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.approach-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

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

.approach-pillar {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.approach-pillar:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.pillar-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.approach-pillar h4 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.approach-pillar p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.about-values {
    margin-bottom: 4rem;
}

.about-values h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.value-card {
    background: white;
    padding: 3rem;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--primary-color);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

.value-card h4 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

.about-cta {
    text-align: center;
    padding: 4rem 3rem;
    background: var(--background-light);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
}

.about-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-cta p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ==========================================
   Contact Page
   ========================================== */

.contact-section {
    padding: 5rem 0;
    background: var(--background-light);
}

/* New contact form styles */
.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-form-intro p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info {
    background: white;
    padding: 4rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-intro {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.contact-methods {
    margin-bottom: 3rem;
}

.contact-method {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--background-light);
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-fast);
}

.contact-method:hover {
    background: var(--background-alt);
    transform: translateX(8px);
}

.contact-method-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.contact-method-content h4 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-method-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
    transition: var(--transition-fast);
}

.contact-method-content a:hover {
    color: var(--primary-dark);
}

.method-note {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

.contact-social {
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.contact-social h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.contact-help {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.help-card {
    background: white;
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
}

.help-card h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.help-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.help-item:last-child {
    margin-bottom: 0;
}

.help-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.help-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.help-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-tips {
    background: var(--background-light);
    padding: 2.5rem;
    border-radius: 1.25rem;
    border-left: 5px solid var(--primary-color);
}

.contact-tips h4 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.contact-tips ul {
    list-style: none;
    padding: 0;
}

.contact-tips li {
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    position: relative;
    line-height: 1.6;
}

.contact-tips li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.contact-closing {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-md);
}

.contact-closing p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Responsive adjustments for new pages */
@media (max-width: 968px) {
    .service-detail-card {
        flex-direction: column;
    }

    .service-features-grid,
    .team-expertise-grid,
    .values-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .approach-pillars {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .about-mission-with-photo {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mission-headshot {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .service-detail-card,
    .about-mission,
    .contact-info,
    .help-card {
        padding: 2rem;
    }

    .approach-pillars,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .about-mission-with-photo {
        padding: 2rem;
    }

    .about-expertise-new {
        padding: 2rem;
    }

    .therapy-areas-list {
        padding: 1.5rem;
    }
}

/* ==========================================
   Portfolio Page
   ========================================== */

.portfolio-section {
    padding: 5rem 0;
    background: var(--background-light);
}

.portfolio-category {
    background: white;
    border-radius: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.portfolio-category::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--primary-dark);
    border-radius: 1.25rem 0 0 1.25rem;
}

.portfolio-category:hover {
    border-color: var(--primary-light);
}

.portfolio-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2.5rem;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
    background: white;
}

.portfolio-toggle:hover {
    background: var(--background-light);
}

.portfolio-toggle[data-toggle="expanded"] {
    background: var(--background-alt);
    border-bottom: 2px solid var(--border-color);
}

.portfolio-toggle-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.portfolio-toggle-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    transition: var(--transition);
    flex-shrink: 0;
}

.portfolio-toggle[data-toggle="expanded"] .portfolio-toggle-icon {
    transform: rotate(45deg);
}

.portfolio-toggle-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-toggle[data-toggle="expanded"] + .portfolio-toggle-content {
    max-height: 5000px; /* Large enough to accommodate content */
}

.portfolio-items {
    list-style: none;
    padding: 1.5rem 2.5rem 2rem;
}

.portfolio-item {
    padding: 0.75rem 0;
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
    border-left: 2px solid var(--primary-light);
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    position: relative;
}

.portfolio-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.portfolio-item:last-child {
    margin-bottom: 0;
}

.portfolio-item:hover {
    color: var(--text-primary);
    border-left-color: var(--primary-color);
    padding-left: 1.5rem;
}

.portfolio-cta {
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 3rem;
}

.portfolio-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.portfolio-cta p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Portfolio responsive */
@media (max-width: 640px) {
    .portfolio-toggle {
        padding: 1.5rem;
    }

    .portfolio-toggle-title {
        font-size: 1.35rem;
    }

    .portfolio-toggle-icon {
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }

    .portfolio-items {
        padding: 1.5rem;
    }

    .portfolio-item {
        padding: 1.25rem;
    }
}
