/* ==========================================================================
   OrthoAlign Rehab — Sections Styles
   Layouts for specific homepage sections
   ========================================================================== */

/* ── Nav & Header ────────────────────────────────────────────────────────── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: calc(var(--nav-height) + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    z-index: var(--z-nav);
    transition: all var(--duration-normal) var(--ease-out);
    display: flex;
    align-items: center;
    background-color: var(--white);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-subtle);
    border-bottom: 1px solid var(--gray-200);
}

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

.nav__brand {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--weight-extrabold);
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.nav__brand span {
    color: var(--primary);
}

/* Desktop: nav__links shown as inline flex links row */
.nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    /* Mobile panel defaults — overridden below for desktop */
    position: static;
    background: transparent;
    padding: 0;
    box-shadow: none;
    overflow: visible;
    height: auto;
    width: auto;
    flex-direction: row;
    justify-content: center;
    transition: none;
}

/* Mobile-only nav elements — hidden on desktop */
.nav__mobile-header {
    display: none;
}

.nav__mobile-close {
    display: none;
}

.nav__mobile-cta {
    display: none;
}

.nav__link {
    font-family: var(--font-heading);
    font-weight: var(--weight-semibold);
    color: var(--navy);
    font-size: var(--text-sm);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width var(--duration-normal) var(--ease-out);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    z-index: 10001;
    background: none;
    border: none;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--navy);
    transition: all var(--duration-normal) var(--ease-out);
    border-radius: 2px;
}

/* ── Hero Section ────────────────────────────────────────────────────────── */
.hero {
    min-height: 100svh;
    min-height: 100vh;
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cyan-50) 0%, #FFFFFF 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, var(--primary-50) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

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

.hero__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-10);
    align-items: center;
}

.hero__content {
    max-width: 650px;
}

.hero__subtitle {
    display: inline-block;
    padding: 8px 16px;
    background: var(--white);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    color: var(--primary);
    box-shadow: var(--shadow-subtle);
    margin-bottom: var(--space-6);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero__title {
    margin-bottom: var(--space-5);
    line-height: 1.15;
}

.hero__title span {
    color: var(--primary);
    position: relative;
}

.hero__title span::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: var(--accent-glow);
    z-index: -1;
    border-radius: 4px;
}

.hero__description {
    font-size: var(--text-xl);
    color: var(--gray-600);
    margin-bottom: var(--space-8);
    max-width: 540px;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-10);
}

.hero__trust {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--gray-200);
}

.hero__trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.hero__trust-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.hero__trust-text {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--navy);
    line-height: 1.3;
}

.hero__trust-text span {
    display: block;
    color: var(--gray-500);
    font-weight: var(--weight-regular);
    font-size: var(--text-xs);
}

.hero__image-wrapper {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.hero__image {
    max-width: 100%;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-floating);
    position: relative;
    z-index: 2;
    max-height: 600px;
    object-fit: cover;
    object-position: top;
}

.hero__floating-badge {
    position: absolute;
    background: var(--white);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-elevated);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    color: var(--navy);
    border: 1px solid var(--gray-100);
}

.hero__floating-badge svg {
    color: var(--primary);
}

.hero__floating-badge--1 {
    top: 65%;
    left: -20px;
}

.hero__floating-badge--2 {
    bottom: 25%;
    right: -30px;
}

.hero__floating-badge--3 {
    bottom: 10%;
    left: -10px;
}

.hero__floating-badge {
    position: absolute;
    background: var(--white);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-elevated);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    animation: float 6s ease-in-out infinite;
}

/* ── Trust Bar Section ───────────────────────────────────────────────────── */

.hero__badge-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.hero__badge-content p {
    margin: 0;
    font-family: var(--font-heading);
}

.hero__badge-content p:first-child {
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.hero__badge-content p:last-child {
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--navy);
}

/* ── Trust Bar Section ───────────────────────────────────────────────────── */
.trust-bar {
    padding: var(--space-10) 0;
    border-bottom: 1px solid var(--gray-100);
    background: var(--white);
}

.trust-bar__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-4);
    align-items: start;
}

/* ── Conditions Section ──────────────────────────────────────────────────── */
.conditions__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

/* ── About Section ───────────────────────────────────────────────────────── */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.about__image-wrapper {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-floating);
}

.about__image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
    border-radius: var(--radius-2xl);
    pointer-events: none;
}

.about__content {
    max-width: 560px;
}

.about__name {
    margin-bottom: var(--space-2);
}

.about__qualification {
    font-size: var(--text-lg);
    color: var(--primary);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-6);
}

.about__bio {
    margin-bottom: var(--space-8);
    font-size: var(--text-lg);
}

.about__timeline {
    border-left: 2px solid var(--primary-100);
    padding-left: var(--space-6);
    margin-bottom: var(--space-8);
}

.about__timeline-item {
    position: relative;
    margin-bottom: var(--space-6);
}

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

.about__timeline-item::before {
    content: '';
    position: absolute;
    left: calc(var(--space-6) * -1 - 6px);
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-50);
}

.about__timeline-year {
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    color: var(--primary);
    margin-bottom: var(--space-1);
}

.about__timeline-title {
    font-family: var(--font-heading);
    font-weight: var(--weight-semibold);
    color: var(--navy);
    margin-bottom: var(--space-1);
}

.about__timeline-text {
    font-size: var(--text-sm);
}

/* ── Team Section ────────────────────────────────────────────────────────── */
.team__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.team-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--hover-lift);
}

.team-card__image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: var(--gray-100);
}

.team-card__content {
    padding: var(--space-6);
    text-align: center;
}

.team-card__name {
    margin-bottom: var(--space-1);
}

.team-card__role {
    font-size: var(--text-sm);
    color: var(--primary);
    font-weight: var(--weight-semibold);
}

/* ── How It Works ────────────────────────────────────────────────────────── */
.process__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-4);
    position: relative;
}

.process__grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--gray-200);
    z-index: 0;
}

.process-step {
    position: relative;
    z-index: 1;
    text-align: center;
}

.process-step__icon {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    box-shadow: var(--shadow-card);
    border: 2px solid var(--primary-100);
    color: var(--primary);
    font-size: 32px;
    transition: all var(--duration-normal) var(--ease-out);
}

.process-step:hover .process-step__icon {
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: var(--shadow-elevated);
}

.process-step__title {
    font-family: var(--font-heading);
    font-weight: var(--weight-semibold);
    color: var(--navy);
    margin-bottom: var(--space-2);
}

.process-step__text {
    font-size: var(--text-sm);
}

/* ── Why Choose Section ──────────────────────────────────────────────────── */
.why-choose__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

/* ── Methodology Section ─────────────────────────────────────────────────── */
.methodology__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

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

.methodology-stat {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.methodology-stat__number {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: var(--weight-bold);
    color: var(--accent);
    margin-bottom: var(--space-2);
}

.methodology-stat__text {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
}

/* ── Social Section ──────────────────────────────────────────────────────── */
.social__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
}

.social-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.social-card__icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    color: var(--white);
}

.social-card__icon--instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-card__icon--youtube { background: #FF0000; }

.social-card__icon svg { width: 32px; height: 32px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
    background-color: var(--navy-dark);
    color: var(--gray-300);
    padding: var(--space-24) 0 var(--space-10);
    border-top: 4px solid var(--primary);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-12);
    margin-bottom: var(--space-16);
}

.footer__brand-title {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--weight-extrabold);
    margin-bottom: var(--space-4);
}

.footer__bio {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
    max-width: 320px;
}

.footer__title {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-6);
}

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

.footer__link {
    font-size: var(--text-sm);
}

.footer__link:hover {
    color: var(--white);
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
}

.footer__contact-icon {
    color: var(--primary);
    margin-top: 2px;
}

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

.footer__social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.footer__social-link:hover {
    background: var(--primary);
}

.footer__bottom {
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: var(--text-sm);
}
