/* ============================================
   PAGE-SPECIFIC STYLES
   ============================================ */

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, var(--color-dark) 0%, #1a3a3a 100%);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero.page-hero-image {
    background: none;
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.page-hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(34, 34, 34, 0.85) 0%, rgba(26, 58, 58, 0.8) 100%);
    z-index: 1;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 158, 143, 0.15), transparent);
    border-radius: 50%;
    z-index: 2;
}

.page-hero h1 {
    font-size: 3rem;
    color: var(--color-white);
    margin-bottom: 16px;
    position: relative;
    z-index: 3;
}

.page-hero p {
    font-size: 1.3rem;
    color: var(--color-teal);
    position: relative;
    z-index: 3;
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-intro {
    padding: 100px 0;
    background: var(--color-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

/* Photo placeholder for Dr. Powell */
.about-image .image-placeholder {
    background: linear-gradient(135deg, var(--color-teal), #2d7e72);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    color: var(--color-white);
}

.about-image .headshot-img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.about-image svg {
    margin-bottom: 20px;
}

.about-image p {
    font-size: 1.1rem;
    font-weight: 600;
}

.about-text h2 {
    margin-bottom: 24px;
    color: var(--color-dark);
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
}

.mission-section {
    padding: 80px 0;
    background: var(--color-light-gray);
}

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

.mission-content h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: var(--color-dark);
}

.mission-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
}

/* About image section (full width with text overlay) */
.about-image-break {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.about-image-break img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image-break .image-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(34, 34, 34, 0.85));
    color: var(--color-white);
}

.about-image-break .image-overlay-text h3 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.about-image-break .image-overlay-text p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.values-section {
    padding: 100px 0;
    background: var(--color-white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.value-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: 12px;
    background: var(--color-light-gray);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-coral), #d4486a);
    color: var(--color-white);
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--color-dark);
}

.value-card p {
    color: #666;
    line-height: 1.6;
}

/* ============================================
   TREATMENT PAGE - PHOTO-BASED SECTIONS
   ============================================ */

.treatments-intro {
    padding: 80px 0;
    background: var(--color-white);
    text-align: center;
}

.treatments-intro p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: #555;
}

.treatment-method {
    padding: 80px 0;
}

.treatment-method:nth-child(even) {
    background: var(--color-light-gray);
}

.treatment-method:nth-child(odd) {
    background: var(--color-white);
}

.treatment-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.treatment-method:nth-child(even) .treatment-content {
    direction: rtl;
}

.treatment-method:nth-child(even) .treatment-text {
    direction: ltr;
}

.treatment-method:nth-child(even) .treatment-image {
    direction: ltr;
}

/* Photo replacing the old SVG icon circles */
.treatment-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.treatment-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.treatment-image:hover img {
    transform: scale(1.04);
}

/* Keep the old icon style as fallback */
.treatment-icon-large {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-coral), #d4486a);
    color: var(--color-white);
}

.treatment-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--color-dark);
}

.treatment-text p {
    margin-bottom: 20px;
    color: #555;
}

.treatment-text ul {
    list-style: none;
    padding-left: 0;
}

.treatment-text ul li {
    padding-left: 32px;
    margin-bottom: 12px;
    position: relative;
    color: #555;
}

.treatment-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-teal);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-info {
    padding: 80px 0;
    background: var(--color-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.contact-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--color-light-gray);
    border-radius: 12px;
}

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-coral), #d4486a);
    color: var(--color-white);
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--color-dark);
}

.contact-card p,
.contact-card a {
    font-size: 1.1rem;
    color: var(--color-teal);
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* Calendly Section */
.calendly-section {
    padding: 80px 0;
    background: var(--color-white);
}

.calendly-subtitle {
    text-align: center;
    max-width: 800px;
    margin: -40px auto 40px;
    color: #555;
    font-size: 1.1rem;
}

.calendly-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: var(--color-white);
}

.calendly-inline-widget {
    border-radius: 12px;
}

.contact-form-section {
    padding: 80px 0;
    background: var(--color-light-gray);
}

.form-container {
    max-width: 700px;
    margin: 40px auto 0;
    background: var(--color-white);
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--color-medium-gray);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-teal);
}

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

.form-submit {
    text-align: center;
    margin-top: 32px;
}

.steps-section {
    padding: 80px 0;
    background: var(--color-white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.step-card {
    text-align: center;
}

.step-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-coral), #d4486a);
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--color-dark);
}

.step-card p {
    color: #666;
}

/* ============================================
   PATIENT CENTER
   ============================================ */

.resources-section {
    padding: 80px 0;
    background: var(--color-white);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.resource-card {
    text-align: center;
    padding: 50px 40px;
    background: var(--color-light-gray);
    border-radius: 12px;
    transition: var(--transition);
}

.resource-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.resource-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-coral), #d4486a);
    color: var(--color-white);
}

.resource-card h3 {
    font-size: 1.75rem;
    margin-bottom: 16px;
    color: var(--color-dark);
}

.resource-card p {
    margin-bottom: 24px;
    color: #666;
}

.faq-section {
    padding: 80px 0;
    background: var(--color-light-gray);
}

.faq-container {
    max-width: 900px;
    margin: 40px auto 0;
}

.faq-item {
    background: var(--color-white);
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 24px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--color-light-gray);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-teal);
    font-weight: 400;
}

.faq-question.active::after {
    content: '−';
}

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

.faq-answer-content {
    padding: 0 24px 24px;
    color: #666;
    line-height: 1.7;
}

.expect-section {
    padding: 80px 0;
    background: var(--color-white);
}

.expect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.expect-card {
    text-align: center;
}

.expect-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-teal), #2d7e72);
    color: var(--color-white);
}

.expect-card h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--color-dark);
}

.expect-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Patient Center image break */
.patient-image-break {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.patient-image-break img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.patient-image-break::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 158, 143, 0.2), rgba(34, 34, 34, 0.3));
}

.preparation-section {
    padding: 80px 0;
    background: var(--color-light-gray);
}

.prep-list {
    max-width: 700px;
    margin: 40px auto 0;
}

.prep-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--color-white);
    padding: 20px 24px;
    margin-bottom: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.prep-item svg {
    flex-shrink: 0;
    color: var(--color-teal);
}

.prep-item span {
    font-size: 1.05rem;
    color: var(--color-dark);
}

/* ============================================
   RESPONSIVE - INNER PAGES
   ============================================ */

@media (max-width: 968px) {
    .about-content,
    .treatment-content {
        grid-template-columns: 1fr;
    }
    
    .treatment-method:nth-child(even) .treatment-content {
        direction: ltr;
    }
    
    .treatment-image img {
        height: 300px;
    }
    
    .form-container {
        padding: 30px;
    }
    
    .about-image-break {
        height: 300px;
    }
}

@media (max-width: 640px) {
    .page-hero h1 {
        font-size: 2.2rem;
    }
    
    .page-hero p {
        font-size: 1.1rem;
    }
    
    .calendly-container {
        margin: 0 -10px;
    }
    
    .treatment-image img {
        height: 250px;
    }
    
    .about-image-break {
        height: 240px;
    }
    
    .patient-image-break {
        height: 240px;
    }
}
