/**
 * Components layer — reusable UI primitives shared across sections.
 * Buttons, cards and the like. Depends on tokens.css + base.css.
 *
 * Button system mirrors the 5 variants in the spec. Base class `.btn`
 * holds shared geometry; modifiers set the look + interaction.
 */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: var(--fs-btn);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.02em;
    line-height: 1;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn:hover,
.btn:focus-visible { text-decoration: none; }

/* 4.1 Primary CTA — gold gradient ("Book Appointment", header) */
.btn--primary {
    background: var(--gradient-gold);
    color: var(--color-navy-mid);
    padding: 16px 32px;
    border-radius: var(--radius-btn);
    min-width: 200px;
    height: 55px;
}
.btn--primary:hover {
    background: var(--gradient-gold-hover);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
    color: var(--color-navy-deep);
}
.btn--primary:active {
    background: var(--gradient-gold-active);
    box-shadow: var(--shadow-gold-soft);
    transform: translateY(0);
}

/* 4.2 Secondary outlined pill ("Let's Talk", hero) — F9F9F9 fill + 1px gold
   GRADIENT stroke (per Figma). The double-background trick paints the fill on
   the padding-box and the gradient on the border-box. */
.btn--outline-gold {
    position: relative;
    isolation: isolate;
    background:
        linear-gradient(var(--color-page-bg), var(--color-page-bg)) padding-box,
        var(--gradient-gold-stroke) border-box;
    border: 1px solid transparent;
    color: var(--color-navy-deep);
    font-size: 20px;
    font-weight: var(--weight-bold);
    padding: 16px 60px;
    border-radius: 25px;
    height: 56px;
}
/* Gold fill cross-fades in on hover — gradient backgrounds can't transition
   directly, so an overlay layer is faded via opacity. No glow, no movement. */
.btn--outline-gold::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: var(--gradient-gold-fill);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.btn--outline-gold:hover::before,
.btn--outline-gold:focus-visible::before {
    opacity: 1;
}

/* 4.3 White pill on dark sections ("Know More" / "Book Appointment") */
.btn--light {
    background: var(--color-page-bg);
    color: var(--color-navy-deep);
    padding: 14px 40px;
    border-radius: var(--radius-pill);
    min-width: 180px;
    border: 2px solid transparent;
}
.btn--light:hover {
    background: transparent;
    color: var(--color-off-white);
    border-color: var(--color-off-white);
    box-shadow: 0 4px 16px rgba(247, 249, 248, 0.2);
    transform: translateY(-2px);
}

/* 4.4 FAQ pill tab filter */
.btn--tab {
    background: transparent;
    color: var(--color-off-white);
    font-weight: var(--weight-medium);
    font-size: var(--fs-small);
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--color-off-white);
}
.btn--tab:hover,
.btn--tab.is-active {
    background: var(--color-off-white);
    color: var(--color-navy-deep);
    box-shadow: 0 4px 12px rgba(247, 249, 248, 0.25);
}

/* 4.5 Navy outlined ("Know More", team, on light bg) */
.btn--outline-navy {
    background: transparent;
    color: var(--color-navy-mid);
    font-size: var(--fs-small);
    padding: 12px 32px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--color-navy-mid);
}
.btn--outline-navy:hover {
    background: var(--color-navy-mid);
    color: var(--color-off-white);
    box-shadow: 0 4px 14px rgba(28, 49, 83, 0.25);
    transform: translateY(-2px);
}

/* ---------- Card surface used on dark sections ---------- */
.card-on-dark {
    background: var(--surface-on-dark);
    border: 1px solid var(--surface-on-dark-border);
    border-radius: var(--radius-card);
    padding: 32px;
}

/* ---------- Square icon container (service / feature icons) ---------- */
.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--color-off-white);
    color: var(--color-navy-deep);
    flex-shrink: 0;
}
