/* ==========================================================================
   Components: sections, headings, icons, buttons, labels, dividers,
   arch frames, waves, wave dividers
   ========================================================================== */

/* ---------- Sections ---------- */
.section {
    position: relative;
    padding-block: var(--section-space);
}

.section--cream { background: var(--color-bg); }
.section--sand  { background: var(--color-bg-sand); }
.section--sage  { background: var(--color-bg-alt); }

.section h2 em,
.hero__title em {
    color: var(--color-secondary-text); /* large text: passes AA at 3:1 */
}

.section-head {
    max-width: 46rem;
    margin-bottom: clamp(2.5rem, 2rem + 2.5vw, 4rem);
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

.section-head__intro {
    margin-bottom: 0;
    font-size: var(--text-lead);
    color: var(--color-text-muted);
}

.section-head--center .section-head__intro {
    margin-inline: auto;
}

/* ---------- Icons ---------- */
.icon {
    /* Neutralise the global `img, svg, video { max-width: 100% }` reset:
       inside a flex container it collides with this element's own
       replaced-element sizing pass and collapses the icon to ~1-2px wide. */
    max-width: none;
    width: 1.2em;
    height: 1.2em;
    flex: none;
}

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: transparent;
    --btn-fg: var(--color-primary);
    --btn-border: transparent;

    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    min-height: 52px;
    padding: 0.8em 1.7em;
    background: var(--btn-bg);
    color: var(--btn-fg);
    border: 1.5px solid var(--btn-border);
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition:
        background-color 0.5s var(--ease-out),
        border-color 0.5s var(--ease-out),
        color 0.5s var(--ease-out),
        box-shadow 0.5s var(--ease-out),
        transform 0.5s var(--ease-out);
}

.btn:hover {
    color: var(--btn-fg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
}

.btn:active {
    transform: translateY(0);
}

.btn .icon {
    width: 1.15em;
    height: 1.15em;
}

.btn .icon:last-child:not(:first-child) {
    transition: transform 0.5s var(--ease-out);
}

.btn:hover .icon:last-child:not(:first-child) {
    transform: translateX(3px);
}

.btn--sm {
    min-height: 44px;
    padding: 0.6em 1.35em;
    font-size: 0.9375rem;
}

.btn--primary {
    --btn-bg: var(--color-primary);
    --btn-fg: var(--color-surface);
    --btn-border: var(--color-primary);
}

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

.btn--outline {
    --btn-bg: color-mix(in srgb, var(--color-surface) 70%, transparent);
    --btn-fg: var(--color-primary);
    --btn-border: color-mix(in srgb, var(--color-primary) 45%, transparent);
}

.btn--outline:hover {
    --btn-bg: var(--color-surface);
    --btn-border: var(--color-primary);
}

/* WhatsApp brand green with dark text for AA contrast */
.btn--whatsapp {
    --btn-bg: var(--color-whatsapp);
    --btn-fg: var(--color-text);
    --btn-border: var(--color-whatsapp);
}

.btn--whatsapp:hover {
    --btn-bg: color-mix(in srgb, var(--color-whatsapp) 88%, var(--color-text));
    --btn-border: color-mix(in srgb, var(--color-whatsapp) 88%, var(--color-text));
}

.btn:focus-visible {
    outline-offset: 4px;
    border-radius: var(--radius-pill);
}

/* ---------- Eyebrow label ---------- */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.9em;
    margin: 0 0 var(--space-md);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
    color: var(--color-primary);
}

.eyebrow::before {
    content: "";
    flex: none;
    width: 2rem;
    height: 1px;
    background: var(--color-secondary);
}

/* Centred under a centred heading: balance the line on both sides so the
   label's visual centre lines up with the heading, not just the flex box */
.eyebrow--center {
    justify-content: center;
    margin-inline: auto;
}

.eyebrow--center::after {
    content: "";
    flex: none;
    width: 2rem;
    height: 1px;
    background: var(--color-secondary);
}


/* ---------- Gold divider with star ---------- */
.divider-star {
    --divider-w: 140px;

    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: var(--divider-w);
    margin: var(--space-lg) auto;
    color: var(--color-secondary);
}

.divider-star::before,
.divider-star::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, currentColor);
}

.divider-star::after {
    background: linear-gradient(to left, transparent, currentColor);
}

.divider-star__icon {
    width: 14px;
    height: 14px;
    flex: none;
    fill: currentColor;
}

.divider-star--start {
    margin-inline: 0;
}

.divider-star--start::before {
    display: none;
}

/* ---------- Arch image frames ---------- */
.arch-frame {
    --arch-v: 40%; /* (width / 2) / height, keeps the top a true semicircle */

    position: relative;
    margin: 0;
    overflow: hidden;
    isolation: isolate;
    border-radius: 50% 50% var(--radius-lg) var(--radius-lg) / var(--arch-v) var(--arch-v) var(--radius-lg) var(--radius-lg);
    background: var(--color-bg-alt);
    box-shadow: var(--shadow-soft);
}

.arch-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.12);
    transform-origin: center;
}

/* Offset gold outline behind an arch */
.arch-wrap {
    position: relative;
}

.arch-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    translate: 10px 10px;
    border: 1px solid color-mix(in srgb, var(--color-secondary) 70%, transparent);
    border-radius: 50% 50% var(--radius-lg) var(--radius-lg) / 40% 40% var(--radius-lg) var(--radius-lg);
    pointer-events: none;
}

/* ---------- Drifting waves (hero + page banners) ---------- */
.wave {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 200%;
    max-width: none;
    height: 100%;
    will-change: transform;
}

.wave--1 { fill: color-mix(in srgb, var(--color-secondary) 24%, var(--color-bg)); }
.wave--2 { fill: color-mix(in srgb, var(--color-primary) 12%, var(--color-bg)); }
.wave--3 { fill: var(--color-bg); }

/* ---------- Wave divider between sections ---------- */
.wave-divider {
    position: relative;
    height: clamp(36px, 5vw, 72px);
    margin-block: -1px;
    overflow: hidden;
    background: var(--wave-from);
    pointer-events: none;
}

.wave-divider svg {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 200%;
    max-width: none;
    height: 100%;
    fill: var(--wave-to);
    will-change: transform;
}

.wave-divider__back {
    opacity: 0.45;
}

/* ---------- JS-only widgets are hidden without JavaScript ---------- */
.no-js [data-js-only],
.no-js .breathe-section,
.no-js .services-nav {
    display: none;
}

/* ---------- Language badge ("Therapy in English, Urdu & Punjabi") ---------- */
.lang-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    max-width: none;
    margin: var(--space-md) 0 var(--space-lg);
    padding: 0.45rem 1rem 0.45rem 0.8rem;
    background: color-mix(in srgb, var(--color-surface) 80%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-secondary) 55%, transparent);
    border-radius: var(--radius-pill);
    color: var(--color-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    line-height: 1.3;
}

.lang-badge .icon {
    width: 1.25em;
    height: 1.25em;
    color: var(--color-secondary-text);
}

.lang-badge--center {
    display: flex;
    width: fit-content;
    margin: 0 auto var(--space-lg);
}

/* Portrait photos of Ikram: keep the face fully in the arch (no zoom/parallax crop) */
.arch-frame--portrait img {
    transform: none;
    object-position: 50% 8%;
}
