/* ============================================================
   FREE EYE — COMPONENTS CSS
   Buttons · Forms · Section Header · Page Hero · Badges · Cards
   ============================================================ */

/* ── 1. BUTTONS ─────────────────────────────────────────── */
.fe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--fe-space-2);
    padding: 12px 28px;
    font-size: var(--fe-text-base);
    font-weight: var(--fe-weight-semibold);
    font-family: inherit;
    border-radius: var(--fe-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background var(--fe-transition), color var(--fe-transition),
                border-color var(--fe-transition), transform var(--fe-transition),
                box-shadow var(--fe-transition);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.4;
    -webkit-user-select: none;
    user-select: none;
}

.fe-btn svg { flex-shrink: 0; }

/* Primary */
.fe-btn--primary {
    background: var(--fe-primary);
    color: var(--fe-white);
    border-color: var(--fe-primary);
}
.fe-btn--primary:hover {
    background: var(--fe-primary-dark);
    border-color: var(--fe-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,38,154,.25);
    color: var(--fe-white);
}

/* Secondary */
.fe-btn--secondary {
    background: var(--fe-secondary);
    color: var(--fe-white);
    border-color: var(--fe-secondary);
}
.fe-btn--secondary:hover {
    background: var(--fe-secondary-dark);
    border-color: var(--fe-secondary-dark);
    transform: translateY(-2px);
    color: var(--fe-white);
}

/* Accent */
.fe-btn--accent {
    background: var(--fe-accent);
    color: var(--fe-white);
    border-color: var(--fe-accent);
}
.fe-btn--accent:hover {
    background: var(--fe-accent-dark);
    border-color: var(--fe-accent-dark);
    transform: translateY(-2px);
    color: var(--fe-white);
}

/* Outline */
.fe-btn--outline {
    background: transparent;
    color: var(--fe-primary);
    border-color: var(--fe-primary);
}
.fe-btn--outline:hover {
    background: var(--fe-primary);
    color: var(--fe-white);
    transform: translateY(-2px);
}

/* Outline White (dark backgrounds) */
.fe-btn--outline-white {
    background: transparent;
    color: var(--fe-white);
    border-color: rgba(255,255,255,.5);
}
.fe-btn--outline-white:hover {
    background: rgba(255,255,255,.12);
    border-color: var(--fe-white);
    color: var(--fe-white);
}

/* WhatsApp */
.fe-btn--wa {
    background: #25D366;
    color: var(--fe-white);
    border-color: #25D366;
}
.fe-btn--wa:hover {
    background: #1da851;
    border-color: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,211,102,.30);
    color: var(--fe-white);
}

/* Ghost */
.fe-btn--ghost {
    background: transparent;
    color: var(--fe-primary);
    border-color: transparent;
    padding-inline: var(--fe-space-4);
}
.fe-btn--ghost:hover {
    background: var(--fe-bg);
    color: var(--fe-primary-dark);
}

/* Sizes */
.fe-btn--sm { padding: 8px 20px; font-size: var(--fe-text-sm); }
.fe-btn--lg { padding: 16px 36px; font-size: var(--fe-text-lg); border-radius: var(--fe-radius-lg); }

/* Icon-only button */
.fe-btn--icon {
    padding: 10px;
    border-radius: var(--fe-radius);
    aspect-ratio: 1;
}

/* Disabled */
.fe-btn:disabled,
.fe-btn[aria-disabled="true"] {
    opacity: .45;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Button group */
.fe-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--fe-space-4);
    align-items: center;
}

/* ── 2. BADGES / TAGS ───────────────────────────────────── */
.fe-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--fe-space-1);
    padding: 4px 12px;
    font-size: var(--fe-text-xs);
    font-weight: var(--fe-weight-semibold);
    border-radius: var(--fe-radius-full);
    line-height: 1.5;
}

.fe-badge--primary   { background: rgba(0,38,154,.1); color: var(--fe-primary); }
.fe-badge--secondary { background: rgba(0,130,202,.1); color: var(--fe-secondary); }
.fe-badge--accent    { background: rgba(241,138,0,.1); color: var(--fe-accent-dark); }
.fe-badge--success   { background: rgba(22,163,74,.1); color: var(--fe-success); }
.fe-badge--muted     { background: var(--fe-bg-alt); color: var(--fe-text-muted); }
.fe-badge--white     { background: rgba(255,255,255,.15); color: var(--fe-white); }
.fe-badge--ghost     { background: transparent; color: var(--fe-text-muted); border: 1px solid var(--fe-border); }

/* ── 3. SECTION HEADER ──────────────────────────────────── */
.fe-section-header {
    text-align: center;
    max-width: 640px;
    margin-inline: auto;
    margin-block-end: var(--fe-space-12);
}

.fe-section-header--start {
    text-align: start;
    margin-inline: 0;
}

.fe-section-header__tag {
    display: inline-block;
    font-size: var(--fe-text-xs);
    font-weight: var(--fe-weight-semibold);
    color: var(--fe-accent);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-block-end: var(--fe-space-3);
}

.fe-section-header__title {
    font-size: var(--fe-text-4xl);
    font-weight: var(--fe-weight-extrabold);
    color: var(--fe-text);
    margin-block-end: var(--fe-space-4);
    line-height: 1.15;
}

.fe-section-header__subtitle {
    font-size: var(--fe-text-lg);
    color: var(--fe-text-muted);
    line-height: 1.75;
    max-width: 540px;
    margin-inline: auto;
}

.fe-section-header--start .fe-section-header__subtitle {
    margin-inline: 0;
}

/* Dark section overrides */
.fe-section--dark .fe-section-header__title    { color: var(--fe-white); }
.fe-section--dark .fe-section-header__subtitle { color: rgba(255,255,255,.7); }

@media (max-width: 767px) {
    .fe-section-header__title { font-size: var(--fe-text-3xl); }
    .fe-section-header { margin-block-end: var(--fe-space-8); }
}

/* ── 4. PAGE HERO (inner pages) ─────────────────────────── */
.fe-page-hero {
    position: relative;
    background: linear-gradient(135deg, var(--fe-primary) 0%, #0038c8 55%, var(--fe-secondary) 100%);
    padding-block-start: calc(var(--fe-header-h) + var(--fe-space-16));
    padding-block-end: var(--fe-space-20);
    text-align: center;
    overflow: hidden;
}

.fe-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.fe-page-hero__inner {
    position: relative;
    z-index: 1;
}

.fe-page-hero__title {
    font-size: var(--fe-text-5xl);
    font-weight: var(--fe-weight-extrabold);
    color: var(--fe-white);
    margin-block-end: var(--fe-space-4);
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.fe-page-hero__subtitle {
    font-size: var(--fe-text-lg);
    color: rgba(255,255,255,.75);
    max-width: 560px;
    margin-inline: auto;
    line-height: 1.75;
}

.fe-page-hero__wave {
    position: relative;
    z-index: 2;
    line-height: 0;
    margin-block-start: var(--fe-space-16);
}

.fe-page-hero__wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* Page hero with featured image background */
.fe-page-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.fe-page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,38,154,.78) 0%, rgba(13,27,62,.82) 100%);
    z-index: 0;
}

.fe-page-hero--has-image .fe-page-hero__inner,
.fe-page-hero--has-image .fe-page-hero__wave {
    position: relative;
    z-index: 1;
}

@media (max-width: 767px) {
    .fe-page-hero {
        padding-block-start: calc(var(--fe-header-h) + var(--fe-space-10));
        padding-block-end: var(--fe-space-12);
    }
    .fe-page-hero__title { font-size: var(--fe-text-4xl); }
}

/* ── 5. BREADCRUMB ──────────────────────────────────────── */
.fe-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--fe-space-2);
    font-size: var(--fe-text-sm);
    color: rgba(255,255,255,.6);
    margin-block-end: var(--fe-space-4);
    justify-content: center;
}

/* Yoast SEO outputs a wrapper <span> — make it flex so items line up */
.fe-breadcrumb > span {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--fe-space-2);
}

/* Yoast breadcrumb element styles */
.fe-breadcrumb a { color: rgba(255,255,255,.70); text-decoration: none; transition: color var(--fe-transition-fast); }
.fe-breadcrumb a:hover { color: var(--fe-white); }
.fe-breadcrumb .breadcrumb-separator { opacity: .4; font-size: .85em; }
.fe-breadcrumb .breadcrumb_last { color: rgba(255,255,255,.90); }

/* Legacy custom class support */
.fe-breadcrumb__item { display: flex; align-items: center; gap: var(--fe-space-2); }
.fe-breadcrumb__link:hover { color: var(--fe-white); }
.fe-breadcrumb__sep { opacity: .4; font-size: .7em; }
.fe-breadcrumb__current { color: rgba(255,255,255,.85); }

/* ── 6. CARD BASE ───────────────────────────────────────── */
.fe-card {
    background: var(--fe-white);
    border-radius: var(--fe-radius-lg);
    box-shadow: var(--fe-shadow);
    overflow: hidden;
    transition: transform var(--fe-transition), box-shadow var(--fe-transition);
    display: flex;
    flex-direction: column;
}

.fe-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--fe-shadow-lg);
}

.fe-card__media {
    overflow: hidden;
    aspect-ratio: 3/2;
}

.fe-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--fe-transition-slow);
}

.fe-card:hover .fe-card__media img { transform: scale(1.05); }

.fe-card__body { padding: var(--fe-space-6); flex: 1; }

.fe-card__title {
    font-size: var(--fe-text-xl);
    font-weight: var(--fe-weight-bold);
    color: var(--fe-text);
    margin-block-end: var(--fe-space-3);
    line-height: 1.35;
}

.fe-card__desc {
    font-size: var(--fe-text-sm);
    color: var(--fe-text-muted);
    line-height: 1.7;
    margin-block-end: var(--fe-space-5);
}

.fe-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--fe-space-2);
    margin-block-end: var(--fe-space-5);
}

.fe-card__footer {
    padding: 0 var(--fe-space-6) var(--fe-space-6);
}

/* ── 7. DIVIDER ─────────────────────────────────────────── */
.fe-divider {
    border: none;
    border-block-start: 1px solid var(--fe-border);
    margin-block: var(--fe-space-8);
}

.fe-divider--light { border-block-start-color: var(--fe-border-light); }

/* ── 8. WHATSAPP FAB ────────────────────────────────────── */
.fe-wa-fab {
    position: fixed;
    bottom: 28px;
    z-index: var(--fe-z-fab);
    width: 56px;
    height: 56px;
    background: #25D366;
    color: var(--fe-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,.45);
    transition: transform var(--fe-transition), box-shadow var(--fe-transition);
    text-decoration: none;
}

[dir="rtl"] .fe-wa-fab { right: 28px; }
[dir="ltr"] .fe-wa-fab { right: 28px; }

.fe-wa-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(37,211,102,.55);
    color: var(--fe-white);
}

.fe-wa-fab svg { width: 28px; height: 28px; }

@media (max-width: 479px) {
    .fe-wa-fab { bottom: 20px; width: 50px; height: 50px; }
    [dir="rtl"] .fe-wa-fab { right: 20px; }
    [dir="ltr"] .fe-wa-fab { right: 20px; }
}

/* ── 9. FORMS ───────────────────────────────────────────── */
.fe-form-group {
    display: flex;
    flex-direction: column;
    gap: var(--fe-space-2);
    margin-block-end: var(--fe-space-5);
}

.fe-label {
    font-size: var(--fe-text-sm);
    font-weight: var(--fe-weight-semibold);
    color: var(--fe-text);
}

.fe-input,
.fe-textarea,
.fe-select {
    width: 100%;
    padding: 12px var(--fe-space-4);
    font-family: inherit;
    font-size: var(--fe-text-base);
    color: var(--fe-text);
    background: var(--fe-white);
    border: 1.5px solid var(--fe-border);
    border-radius: var(--fe-radius);
    transition: border-color var(--fe-transition-fast), box-shadow var(--fe-transition-fast);
    line-height: 1.5;
    appearance: none;
}

.fe-input:focus,
.fe-textarea:focus,
.fe-select:focus {
    outline: none;
    border-color: var(--fe-primary);
    box-shadow: 0 0 0 3px rgba(0,38,154,.12);
}

.fe-input::placeholder,
.fe-textarea::placeholder { color: var(--fe-text-muted); opacity: .7; }

.fe-textarea { min-height: 120px; resize: vertical; }

.fe-input--error,
.fe-textarea--error { border-color: var(--fe-error); }

.fe-form-error {
    font-size: var(--fe-text-sm);
    color: var(--fe-error);
    margin-block-start: var(--fe-space-1);
}

/* ── 10. CTA BANNER ─────────────────────────────────────── */
.fe-cta-banner {
    background: linear-gradient(135deg, var(--fe-primary) 0%, #0038c8 55%, var(--fe-secondary) 100%);
    padding-block: var(--fe-space-20);
    text-align: center;
    padding-inline: var(--fe-space-8);
    border-radius: var(--fe-radius-xl);
}

@media (min-width: 768px) {
    .fe-cta-banner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--fe-space-8);
        text-align: start;
    }
    .fe-cta-banner__content { flex: 1; }
    .fe-cta-banner__desc    { margin-inline: 0; }
    .fe-cta-banner__actions { flex-shrink: 0; }
}

.fe-cta-banner__title {
    font-size: var(--fe-text-4xl);
    font-weight: var(--fe-weight-extrabold);
    color: var(--fe-white);
    margin-block-end: var(--fe-space-4);
}

.fe-cta-banner__desc {
    font-size: var(--fe-text-lg);
    color: rgba(255,255,255,.8);
    max-width: 560px;
    margin-inline: auto;
    margin-block-end: var(--fe-space-8);
    line-height: 1.75;
}

@media (max-width: 767px) {
    .fe-cta-banner__title { font-size: var(--fe-text-3xl); }
    .fe-cta-banner { padding-block: var(--fe-space-12); }
}

/* ── 11. STAT ITEM ──────────────────────────────────────── */
.fe-stat {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--fe-radius-lg);
    padding: var(--fe-space-6) var(--fe-space-8);
    text-align: center;
    backdrop-filter: blur(8px);
}

.fe-stat__number {
    display: block;
    font-size: var(--fe-text-5xl);
    font-weight: var(--fe-weight-extrabold);
    color: var(--fe-white);
    line-height: 1;
    margin-block-end: var(--fe-space-2);
}

.fe-stat__label {
    display: block;
    font-size: var(--fe-text-sm);
    color: rgba(255,255,255,.7);
    font-weight: var(--fe-weight-medium);
}

/* ── 12. ICON CIRCLE ────────────────────────────────────── */
.fe-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0,38,154,.1);
    color: var(--fe-primary);
    flex-shrink: 0;
}

.fe-icon-circle svg { width: 26px; height: 26px; }

.fe-icon-circle--accent { background: rgba(241,138,0,.1); color: var(--fe-accent); }
.fe-icon-circle--white  { background: rgba(255,255,255,.15); color: var(--fe-white); }
.fe-icon-circle--lg { width: 72px; height: 72px; }
.fe-icon-circle--lg svg { width: 34px; height: 34px; }

/* ── 13. NOTICE / EMPTY STATE ───────────────────────────── */
.fe-empty-state {
    text-align: center;
    padding: var(--fe-space-24) var(--fe-space-8);
    color: var(--fe-text-muted);
}

.fe-empty-state__icon { font-size: 48px; margin-block-end: var(--fe-space-4); line-height: 1; }
.fe-empty-state__icon svg { color: var(--fe-border); display: block; }
.fe-empty-state__title {
    font-size: var(--fe-text-xl);
    font-weight: var(--fe-weight-semibold);
    color: var(--fe-text);
    margin-block-end: var(--fe-space-2);
}
.fe-empty-state__desc { font-size: var(--fe-text-base); }

/* ── Card Media Placeholder ── */
.fe-card__media-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--fe-primary) 0%, #0038c8 55%, var(--fe-secondary) 100%);
}
