/* ============================================
   SECTIONS - Page-Specific Components
   ============================================ */

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.nav__logo h2 {
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--color-gray-900);
    margin-bottom: var(--space-1);
}

.nav__logo span {
    font-size: var(--text-sm);
    color: var(--color-primary);
    font-weight: var(--weight-medium);
}

.nav__toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: calc(var(--z-fixed) + 10);
}

.nav__toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-gray-900);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

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

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

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

.nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--color-white);
    padding: var(--space-20) var(--space-6);
    box-shadow: var(--shadow-2xl);
    transition: right var(--transition-slow);
    z-index: calc(var(--z-fixed) + 5);
}

.nav__menu.active {
    right: 0;
}

.nav__menu li {
    margin-bottom: var(--space-4);
}

.nav__link {
    display: block;
    padding: var(--space-3) 0;
    font-size: var(--text-lg);
    font-weight: var(--weight-medium);
    color: var(--color-gray-700);
    transition: all var(--transition-base);
}

.nav__link:hover {
    color: var(--color-primary);
    padding-left: var(--space-2);
}

.nav__link--cta {
    display: inline-block;
    margin-top: var(--space-4);
    padding: var(--space-3) var(--space-6);
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-lg);
}

.nav__link--cta:hover {
    background-color: var(--color-primary-dark);
    padding-left: var(--space-6);
}

@media (min-width: 1024px) {
    .nav__toggle {
        display: none;
    }

    .nav__menu {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        padding: 0;
        box-shadow: none;
        display: flex;
        align-items: center;
        gap: var(--space-8);
    }

    .nav__menu li {
        margin-bottom: 0;
    }

    .nav__link {
        font-size: var(--text-base);
        padding: 0;
    }

    .nav__link:hover {
        padding-left: 0;
    }

    .nav__link--cta {
        margin-top: 0;
    }

    .nav__link--cta:hover {
        padding-left: var(--space-6);
    }
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(
        135deg, 
        rgba(0, 102, 204, 0.9) 0%, 
        rgba(0, 77, 153, 0.9) 100%
    ), url('../images/hero-background.jpg');
    background-size: cover;
    background-position: center;

}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 168, 107, 0.2) 0%, transparent 50%);
}

.hero__content {
    position: relative;
    z-index: var(--z-base);
    max-width: 800px;
}

.hero__subtitle {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-4);
    padding: var(--space-2) var(--space-4);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
}

.hero__title {
    font-size: var(--text-4xl);
    font-weight: var(--weight-extrabold);
    color: var(--color-white);
    margin-bottom: var(--space-6);
    line-height: 1.1;
}

@media (min-width: 768px) {
    .hero__title {
        font-size: var(--text-5xl);
    }
}

@media (min-width: 1024px) {
    .hero__title {
        font-size: var(--text-6xl);
    }
}

.hero__title-line {
    display: block;
}

.hero__title-line--highlight {
    background: linear-gradient(90deg, #ffffff 0%, #00a86b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__description {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.9);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-8);
    max-width: 600px;
}

@media (min-width: 768px) {
    .hero__description {
        font-size: var(--text-xl);
    }
}

.hero__cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

@media (min-width: 640px) {
    .hero__cta {
        flex-direction: row;
    }
}

/* ===== SYMPTOMS SECTION ===== */
.symptoms {
    background-color: var(--color-gray-50);
}

.symptoms__header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.symptoms__title {
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    color: var(--color-gray-900);
    margin-bottom: var(--space-3);
}

@media (min-width: 768px) {
    .symptoms__title {
        font-size: var(--text-4xl);
    }
}

.symptoms__subtitle {
    font-size: var(--text-lg);
    color: var(--color-gray-600);
}

.symptoms__grid {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .symptoms__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-8);
    }
}

/* ===== SERVICES SECTION ===== */
.services {
    background-color: var(--color-white);
}

.services__grid {
    display: grid;
    gap: var(--space-8);
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== ENDOSCOPY INFO SECTION ===== */
.endoscopy-info {
    background: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-white) 100%);
}

.endoscopy-info__content {
    display: grid;
    gap: var(--space-12);
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .endoscopy-info__content {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.endoscopy-info__label {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    margin-bottom: var(--space-3);
}

.endoscopy-info__title {
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    color: var(--color-gray-900);
    margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
    .endoscopy-info__title {
        font-size: var(--text-4xl);
    }
}

.endoscopy-info__description {
    font-size: var(--text-lg);
    color: var(--color-gray-700);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-5);
}

.endoscopy-info__image-placeholder {
    background: linear-gradient(135deg, var(--color-primary-alpha) 0%, rgba(0, 168, 107, 0.1) 100%);
    border-radius: var(--radius-2xl);
    padding: var(--space-16);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    min-height: 400px;
}

.endoscopy-info__image-placeholder svg {
    color: var(--color-primary);
}

.endoscopy-info__image-placeholder p {
    color: var(--color-gray-600);
    font-weight: var(--weight-medium);
}

/* ===== BENEFITS SECTION ===== */
.benefits {
    background-color: var(--color-white);
}

.benefits__grid {
    display: grid;
    gap: var(--space-8);
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .benefits__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .benefits__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== THERAPEUTIC SECTION ===== */
.therapeutic {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
}

.therapeutic__content {
    display: grid;
    gap: var(--space-12);
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .therapeutic__content {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.therapeutic__label {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-3);
}

.therapeutic__title {
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    color: var(--color-white);
    margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
    .therapeutic__title {
        font-size: var(--text-4xl);
    }
}

.therapeutic__description {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.9);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-5);
}

.therapeutic__features {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.therapeutic__feature {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.95);
}

.therapeutic__feature svg {
    flex-shrink: 0;
    color: var(--color-secondary);
}

.therapeutic__image-placeholder {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    padding: var(--space-16);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    min-height: 400px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.therapeutic__image-placeholder svg {
    color: rgba(255, 255, 255, 0.8);
}

.therapeutic__image-placeholder p {
    color: rgba(255, 255, 255, 0.9);
    font-weight: var(--weight-medium);
}

/* ===== ABOUT SECTION ===== */
.about {
    background: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-white) 100%);
}

.about__content {
    display: grid;
    gap: var(--space-12);
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .about__content {
        grid-template-columns: 400px 1fr;
        gap: var(--space-16);
    }
}

.about__image-frame {
    position: relative;
}

.about__image-placeholder {
    background: linear-gradient(135deg, var(--color-primary-alpha) 0%, rgba(0, 168, 107, 0.1) 100%);
    border-radius: var(--radius-2xl);
    padding: var(--space-16);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    aspect-ratio: 3/4;
    border: 4px solid var(--color-white);
    box-shadow: var(--shadow-xl);
}

.about__image-placeholder svg {
    color: var(--color-primary);
}

.about__image-placeholder p {
    color: var(--color-gray-600);
    font-weight: var(--weight-medium);
}

.about__label {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    margin-bottom: var(--space-3);
}

.about__title {
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    color: var(--color-gray-900);
    margin-bottom: var(--space-2);
}

@media (min-width: 768px) {
    .about__title {
        font-size: var(--text-4xl);
    }
}

.about__subtitle {
    font-size: var(--text-xl);
    color: var(--color-primary);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-8);
}

.about__credentials {
    background-color: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-8);
    box-shadow: var(--shadow-md);
}

.about__education {
    margin-bottom: var(--space-8);
}

.about__education h4 {
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    color: var(--color-gray-900);
    margin-bottom: var(--space-4);
}

.about__education ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.about__education li {
    padding-left: var(--space-6);
    position: relative;
}

.about__education li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

.about__education strong {
    display: block;
    font-size: var(--text-base);
    color: var(--color-gray-900);
    margin-bottom: var(--space-1);
}

.about__education span {
    font-size: var(--text-sm);
    color: var(--color-gray-600);
}

.about__expertise h4 {
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    color: var(--color-gray-900);
    margin-bottom: var(--space-4);
}

.about__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-white) 100%);
}

.contact__content {
    display: grid;
    gap: var(--space-12);
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .contact__content {
        grid-template-columns: 1fr 1.2fr;
        gap: var(--space-16);
    }
}

.contact__label {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    margin-bottom: var(--space-3);
}

.contact__title {
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    color: var(--color-gray-900);
    margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
    .contact__title {
        font-size: var(--text-4xl);
    }
}

.contact__description {
    font-size: var(--text-lg);
    color: var(--color-gray-600);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-8);
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.contact__detail {
    display: flex;
    gap: var(--space-4);
}

.contact__detail-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

.contact__detail h4 {
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    color: var(--color-gray-900);
    margin-bottom: var(--space-2);
}

.contact__detail p,
.contact__detail a {
    font-size: var(--text-base);
    color: var(--color-gray-600);
    line-height: var(--leading-relaxed);
}

.contact__detail a:hover {
    color: var(--color-primary);
}

.contact__form-wrapper {
    background-color: var(--color-white);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-xl);
}

@media (min-width: 768px) {
    .contact__form-wrapper {
        padding: var(--space-12);
    }
}

/* Contact Map */
.contact__map {
    margin-top: var(--space-16);
    width: 100%;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}

.contact__map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: var(--radius-2xl);
}

@media (min-width: 768px) {
    .contact__map {
        padding-bottom: 450px; /* Fixed height on desktop */
        height: auto;
    }
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--color-gray-900);
    color: var(--color-gray-300);
    padding-top: var(--space-16);
    padding-bottom: var(--space-8);
}

.footer__content {
    display: grid;
    gap: var(--space-8);
    grid-template-columns: 1fr;
    margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
    .footer__content {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer__brand h3 {
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--color-white);
    margin-bottom: var(--space-2);
}

.footer__brand p {
    font-size: var(--text-base);
    color: var(--color-gray-400);
}

.footer__links h4,
.footer__contact h4 {
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer__links a {
    font-size: var(--text-base);
    color: var(--color-gray-400);
    transition: color var(--transition-base);
}

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

.footer__contact p {
    font-size: var(--text-base);
    color: var(--color-gray-400);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-2);
}

.footer__bottom {
    border-top: 1px solid var(--color-gray-800);
    padding-top: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
}

@media (min-width: 768px) {
    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer__bottom p {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
}

.footer__credit {
    color: var(--color-gray-600);
}