/**
 * Pontes Theme — Homepage styles
 * Loaded only on front-page via wp_enqueue_scripts
 */

/* ================================================================
   HERO
   ================================================================ */
.fp-hero {
    background: linear-gradient(145deg, #152900 0%, var(--color-primary-dark) 45%, #3d6600 100%);
    color: #fff;
    padding: 5rem 1rem 0;
    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    flex-direction: column;
}

/* subtle Braille-dot pattern overlay */
.fp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(102,153,0,.18) 1.5px, transparent 1.5px);
    background-size: 36px 36px;
    pointer-events: none;
}

.fp-hero__inner {
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
    padding-bottom: 5rem;
}

.fp-hero__eyebrow {
    display: inline-block;
    background: rgba(102,153,0,.25);
    color: #b8e038;
    border: 1px solid rgba(102,153,0,.5);
    padding: .3rem .85rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.fp-hero__title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.fp-hero__lead {
    font-size: 1.1rem;
    color: rgba(255,255,255,.85);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 580px;
}

.fp-hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-lg {
    padding: .8rem 2rem;
    font-size: 1.05rem;
}

.btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .625rem 1.5rem;
    border: 2px solid rgba(255,255,255,.55);
    border-radius: var(--border-radius);
    color: #fff;
    font-weight: 600;
    font-family: var(--font-family);
    font-size: 1rem;
    text-decoration: none;
    transition: background .2s, border-color .2s;
    min-height: 44px;
    cursor: pointer;
}

.btn-hero-ghost:hover {
    background: rgba(255,255,255,.15);
    border-color: #fff;
    color: #fff;
}

/* Decorative Braille dots */
.fp-hero__deco {
    opacity: .35;
    pointer-events: none;
}

.braille-deco {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 1rem;
}

.bd {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
}

.bd--on {
    background: #669900;
    box-shadow: 0 0 14px rgba(102,153,0,.8);
}

/* Wave separator */
.fp-hero__wave {
    margin-top: auto;
    line-height: 0;
    position: relative;
    z-index: 1;
}

.fp-hero__wave svg {
    width: 100%;
    height: 70px;
    display: block;
}

@media (max-width: 768px) {
    .fp-hero__inner {
        grid-template-columns: 1fr;
        padding-bottom: 3rem;
    }
    .fp-hero__deco { display: none; }
    .fp-hero { min-height: auto; padding-top: 2.5rem; }
}

/* ================================================================
   STATS BAR
   ================================================================ */
.fp-stats {
    background: var(--color-primary-light);
    padding: 2.5rem 1rem;
}

.fp-stats__list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: var(--max-width-wide);
}

.fp-stats__list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
}

.fp-stat__num {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.fp-stat__lbl {
    font-size: .78rem;
    font-weight: 700;
    color: rgba(255,255,255,.85);
    text-transform: uppercase;
    letter-spacing: .07em;
}

/* ================================================================
   SECTION HEADER
   ================================================================ */
.fp-section-head {
    text-align: center;
    margin-bottom: 3rem;
}

.fp-section-head h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: .5rem;
    position: relative;
    display: inline-block;
}

.fp-section-head h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
    margin: .6rem auto 0;
}

.fp-section-head p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin: 0;
}

/* ================================================================
   SERVICES / FEATURES GRID
   ================================================================ */
.fp-features {
    padding: 5rem 1rem;
    background: var(--color-white);
}

.fp-features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: var(--max-width-wide);
    margin: 0 auto;
}

.fp-feat {
    display: flex;
    flex-direction: column;
    padding: 2rem 1.75rem;
    border-radius: 12px;
    background: var(--color-gray-100);
    border: 1px solid var(--color-gray-200);
    border-left: 4px solid var(--color-primary-light);
    text-decoration: none;
    color: var(--color-text);
    transition: box-shadow .2s, transform .2s, border-left-color .2s;
    outline-offset: 3px;
}

.fp-feat:hover {
    box-shadow: 0 8px 28px rgba(61,102,0,.13);
    transform: translateY(-3px);
    border-left-color: var(--color-accent);
    color: var(--color-text);
    text-decoration: none;
}

.fp-feat:focus-visible {
    outline: 3px solid var(--color-accent);
}

.fp-feat__icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(61,102,0,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--color-primary);
    transition: background .2s, color .2s;
    flex-shrink: 0;
}

.fp-feat__icon svg {
    width: 26px;
    height: 26px;
}

/* Material Icons variant — orange icon */
.fp-feat__icon--mat {
    background: rgba(224,108,0,.1);
    color: #e06c00;
}

.fp-feat__icon--mat .material-icons-outlined {
    font-size: 26px;
    color: #e06c00;
    transition: color .2s;
}

.fp-feat:hover .fp-feat__icon--mat {
    background: #e06c00;
}

.fp-feat:hover .fp-feat__icon--mat .material-icons-outlined {
    color: #fff;
}

.fp-feat:hover .fp-feat__icon {
    background: var(--color-primary-light);
    color: #fff;
}

.fp-feat h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: .5rem;
    transition: color .2s;
}

.fp-feat:hover h3 {
    color: var(--color-primary-dark);
}

.fp-feat p {
    font-size: .9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0 0 1rem;
    flex: 1;
}

.fp-feat__arrow {
    font-size: 1.2rem;
    color: var(--color-primary-light);
    font-weight: 700;
    transition: transform .2s, color .2s;
    display: block;
}

.fp-feat:hover .fp-feat__arrow {
    transform: translateX(5px);
    color: var(--color-accent);
}

@media (max-width: 1100px) {
    .fp-features__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
    .fp-features__grid { grid-template-columns: 1fr; }
}

/* ================================================================
   MISSION STATEMENT
   ================================================================ */
.fp-mission {
    background: var(--color-primary-dark);
    padding: 5rem 1rem;
    position: relative;
    overflow: hidden;
}

.fp-mission::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(102,153,0,.07) 2px, transparent 2px);
    background-size: 44px 44px;
    pointer-events: none;
}

.fp-mission__quote {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.fp-mission__deco {
    font-size: 9rem;
    line-height: .65;
    color: var(--color-primary-light);
    font-family: Georgia, 'Times New Roman', serif;
    opacity: .35;
    margin-bottom: -1.5rem;
    user-select: none;
    display: block;
}

.fp-mission__quote p {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: rgba(255,255,255,.92);
    line-height: 1.75;
    font-style: italic;
    margin-bottom: 2rem;
}

.fp-mission__quote footer { margin-top: 0; }

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .625rem 1.75rem;
    border: 2px solid rgba(255,255,255,.5);
    border-radius: var(--border-radius);
    color: #fff;
    font-weight: 600;
    font-family: var(--font-family);
    font-size: 1rem;
    text-decoration: none;
    transition: background .2s, border-color .2s;
    min-height: 44px;
    cursor: pointer;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,.13);
    border-color: rgba(255,255,255,.9);
    color: #fff;
}

/* ================================================================
   CONTENT COLUMNS: NEWS + PODCAST
   ================================================================ */
.fp-content {
    padding: 5rem 1rem;
    background: var(--color-gray-100);
}

.fp-content__cols {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    max-width: var(--max-width-wide);
    margin: 0 auto;
    align-items: start;
}

.fp-content__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid var(--color-gray-300);
}

.fp-content__header h2 {
    font-size: 1.35rem;
    margin: 0;
}

.fp-content__more {
    font-size: .875rem;
    font-weight: 700;
    color: var(--color-primary-light);
    text-decoration: none;
    letter-spacing: .02em;
    white-space: nowrap;
}

.fp-content__more:hover {
    color: var(--color-accent);
}

/* --- News items --- */
.fp-news-item {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    padding: .875rem 0;
    border-bottom: 1px solid var(--color-gray-300);
}

.fp-news-item--featured {
    background: var(--color-white);
    padding: 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--color-gray-200);
    margin-bottom: .75rem;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.fp-news-item--featured .fp-news-item__thumb {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: .85rem;
    aspect-ratio: 16 / 7;
    background: var(--color-gray-200);
}

.fp-news-item--featured .fp-news-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fp-news-item__date {
    font-size: .75rem;
    font-weight: 700;
    color: var(--color-primary-light);
    text-transform: uppercase;
    letter-spacing: .06em;
    display: block;
}

.fp-news-item__title {
    font-size: .975rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.45;
}

.fp-news-item--featured .fp-news-item__title {
    font-size: 1.15rem;
}

.fp-news-item__title a {
    color: var(--color-text);
    text-decoration: none;
}

.fp-news-item__title a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.fp-news-item__excerpt {
    font-size: .9rem;
    color: var(--color-text-muted);
    margin: .25rem 0 0;
    line-height: 1.65;
}

/* --- Podcast column --- */
.fp-content__col--podcast {
    background: var(--color-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
}

.fp-ep-item {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    gap: .75rem 1rem;
    align-items: center;
    padding: .9rem 0;
    border-bottom: 1px solid var(--color-gray-200);
}

.fp-ep-item:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.fp-ep-item__num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-gray-100);
    border: 2px solid var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 800;
    color: var(--color-primary);
    flex-shrink: 0;
}

.fp-ep-item__body {
    min-width: 0;
}

.fp-ep-item__date {
    font-size: .73rem;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: .15rem;
}

.fp-ep-item__title {
    font-size: .9rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.fp-ep-item__title a {
    color: var(--color-text);
    text-decoration: none;
}

.fp-ep-item__title a:hover {
    color: var(--color-primary);
}

.fp-ep-item__play {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
    transition: background .2s, transform .15s;
}

.fp-ep-item__play svg {
    width: 14px;
    height: 14px;
    margin-left: 3px;
}

.fp-ep-item__play:hover {
    background: var(--color-primary);
    transform: scale(1.1);
}

.fp-ep-item__play:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

.fp-empty {
    color: var(--color-text-muted);
    font-style: italic;
    padding: 1rem 0;
}

@media (max-width: 820px) {
    .fp-content__cols {
        grid-template-columns: 1fr;
    }
    .fp-content__col--podcast {
        margin-top: 0;
    }
}

/* ================================================================
   CTA BAND
   ================================================================ */
.fp-cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, #152900 100%);
    padding: 4.5rem 1rem;
    color: #fff;
}

.fp-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.fp-cta__text h2 {
    color: #fff;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    margin-bottom: .5rem;
}

.fp-cta__text p {
    color: rgba(255,255,255,.8);
    margin: 0;
    font-size: 1.05rem;
}

.fp-cta__actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* btn-white and btn-outline-white used here */
.btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .625rem 1.75rem;
    border: 2px solid #fff;
    border-radius: var(--border-radius);
    background: #fff;
    color: var(--color-primary-dark);
    font-weight: 700;
    font-family: var(--font-family);
    font-size: 1rem;
    text-decoration: none;
    transition: background .2s, color .2s;
    min-height: 44px;
    cursor: pointer;
}

.btn-white:hover {
    background: transparent;
    color: #fff;
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .625rem 1.75rem;
    border: 2px solid rgba(255,255,255,.6);
    border-radius: var(--border-radius);
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-family: var(--font-family);
    font-size: 1rem;
    text-decoration: none;
    transition: background .2s, border-color .2s;
    min-height: 44px;
    cursor: pointer;
}

.btn-outline-white:hover {
    background: rgba(255,255,255,.14);
    border-color: #fff;
    color: #fff;
}

@media (max-width: 640px) {
    .fp-cta__inner { flex-direction: column; text-align: center; }
    .fp-cta__actions { flex-direction: column; width: 100%; }
    .fp-cta__actions .btn-white,
    .fp-cta__actions .btn-outline-white { width: 100%; justify-content: center; }
}

/* ================================================================
   DARK MODE — HOMEPAGE OVERRIDES (doar .dark-mode, fără media query)
   ================================================================ */
.dark-mode .fp-features { background: #0c1606; }
.dark-mode .fp-feat { background: #182508; border-color: #2d4412; color: #d8edb8; }
.dark-mode .fp-feat h3 { color: #a8d840; }
.dark-mode .fp-feat p { color: #8aab60; }
.dark-mode .fp-feat__icon { background: rgba(102,153,0,.2); color: #9fd44f; }
.dark-mode .fp-feat__icon--mat { background: rgba(224,108,0,.15); }
.dark-mode .fp-feat__icon--mat .material-icons-outlined { color: #f4913a; }
.dark-mode .fp-feat:hover .fp-feat__icon--mat { background: #e06c00; }
.dark-mode .fp-feat:hover .fp-feat__icon--mat .material-icons-outlined { color: #fff; }
.dark-mode .fp-content { background: #0c1606; }
.dark-mode .fp-news-item--featured { background: #182508; border-color: #2d4412; }
.dark-mode .fp-news-item__title a { color: #d8edb8; }
.dark-mode .fp-content__col--podcast { background: #182508; }
.dark-mode .fp-ep-item__title a { color: #d8edb8; }
.dark-mode .fp-ep-item__num { background: #1f2e0d; border-color: #5a9200; color: #9fd44f; }
.dark-mode .fp-ep-item { border-color: #2d4412; }
.dark-mode .fp-news-item { border-color: #2d4412; }
