/*
Theme Name: Learneta
Theme URI: https://learneta.com
Author: Learneta Team
Author URI: https://learneta.com
Description: Learneta - Smart English Learning. A beautiful evaluation-first WordPress theme designed for the Ethiopian English learning market, with AI-powered assessment, interactive tasks, and a built-in sales funnel to sell the English course.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: learneta
Tags: education, learning, lms, learnpress, one-page, responsive, custom-colors
*/

/* Base resets and theme-level typography */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --color-primary:   #6CBE45;
    --color-primary-dark: #4A8C2A;
    --color-primary-light: #e8f5da;
    --color-bg:        #FFFFFF;
    --color-text:      #1a1a2e;
    --color-text-muted: #6b7280;
    --color-accent:    #F5A623;
    --color-card:      #FAFAF8;
    --color-error:     #E74C3C;
    --color-success:   #27AE60;
    --color-border:    #e5e7eb;
    --font-main:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading:    'Merriweather', Georgia, serif;
    --radius-card:     16px;
    --shadow-card:     0 4px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
    --shadow-hover:    0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    --color-hero-bg-start: #0f2a14;
    --color-hero-bg-end:   #1a4a28;
    --color-trust-bg:      #0f2a14;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary-dark); text-decoration: none; }
a:hover { color: var(--color-primary); }

/* WordPress core blocks compatibility */
.aligncenter { text-align: center; }
.alignleft   { float: left; margin-right: 1.5rem; }
.alignright  { float: right; margin-left: 1.5rem; }

/* Screen reader text */
.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden;
    padding: 0; position: absolute; width: 1px; word-wrap: normal;
}

/* Shared buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.75rem 1.1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    line-height: 1;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn--primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.btn--primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #fff;
}

.btn--ghost {
    background: #fff;
    color: var(--color-primary-dark);
    border-color: var(--color-border);
}

.btn--ghost:hover {
    background: #f6f9f2;
}

.btn--sm {
    padding: 0.5rem 0.8rem;
    font-size: 0.875rem;
}

.btn--white {
    background: #fff;
    color: var(--color-primary-dark);
    border-color: #fff;
}
.btn--white:hover { background: #f1fae6; color: var(--color-primary-dark); }

.btn--ghost-white {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}
.btn--ghost-white:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ================================================================
   GENERIC PAGES (page.php) + ABOUT / CONTACT
   ================================================================ */
.page-main {
    background: var(--color-bg);
    padding: 0 0 4rem;
}

.page-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 3rem 1.25rem 0;
}

.page-article__header { margin-bottom: 1.5rem; }

.page-article__title {
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    line-height: 1.15;
    color: var(--color-text);
}

.page-article__content {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--color-text);
}
.page-article__content > * + * { margin-top: 1.1rem; }
.page-article__content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-top: 2rem;
    color: var(--color-text);
}
.page-article__content h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    color: var(--color-text);
}
.page-article__content ul,
.page-article__content ol { padding-left: 1.4rem; }
.page-article__content li + li { margin-top: 0.4rem; }
.page-article__content a { color: var(--color-primary-dark); text-decoration: underline; }
.page-article__content img { border-radius: var(--radius-card); }

/* Shared shell for branded templates */
.lp-page { font-family: var(--font-main); color: var(--color-text); }
.lp-page__shell { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

/* Branded hero band */
.lp-page-hero {
    position: relative;
    background: linear-gradient(135deg, var(--color-hero-bg-start), var(--color-hero-bg-end));
    color: #fff;
    padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
    overflow: hidden;
}
.lp-page-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 -1px 0;
    height: 70px;
    background: radial-gradient(120% 100% at 50% 0%, transparent 60%, var(--color-bg) 61%);
}
.lp-page-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary-light);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.lp-page-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.1rem);
    line-height: 1.12;
    margin-bottom: 0.9rem;
    max-width: 16ch;
}
.lp-page-hero p {
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.6;
    max-width: 56ch;
    color: rgba(255, 255, 255, 0.88);
}

/* Sections inside branded pages */
.lp-page-section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.lp-page-section--tight { padding-top: clamp(1.5rem, 3vw, 2.5rem); }

.lp-prose {
    max-width: 760px;
    font-size: 1.06rem;
    line-height: 1.78;
    color: var(--color-text);
}
.lp-prose > * + * { margin-top: 1.1rem; }
.lp-prose h2 { font-family: var(--font-heading); font-size: 1.6rem; margin-top: 1.8rem; }
.lp-prose a { color: var(--color-primary-dark); text-decoration: underline; }

/* Value / feature cards */
.lp-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}
.lp-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 1.6rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.lp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.lp-card__icon {
    font-size: 1.7rem;
    width: 52px; height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-light);
    border-radius: 14px;
    margin-bottom: 0.9rem;
}
.lp-card h3 { font-size: 1.12rem; margin-bottom: 0.4rem; color: var(--color-text); }
.lp-card p { color: var(--color-text-muted); font-size: 0.96rem; line-height: 1.6; }

/* Contact method tiles */
.lp-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.1rem;
}
.lp-contact-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 1.4rem 1.5rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.lp-contact-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-card); }
.lp-contact-card__icon {
    flex-shrink: 0;
    font-size: 1.4rem;
    width: 48px; height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    border-radius: 12px;
}
.lp-contact-card__label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 0.2rem;
}
.lp-contact-card__value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
    word-break: break-word;
}
.lp-contact-card__value a { color: var(--color-text); }
.lp-contact-card__value a:hover { color: var(--color-primary-dark); }

/* Branded CTA band */
.lp-page-cta {
    background: var(--color-primary-light);
    border-radius: var(--radius-card);
    padding: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin: 2rem auto 0;
}
.lp-page-cta h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 0.6rem;
    color: var(--color-text);
}
.lp-page-cta p { color: var(--color-text-muted); margin-bottom: 1.4rem; }
.lp-page-cta__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
}

/* Front page: blends with dark green hero */
.site-header--transparent {
    background: rgba(15, 42, 20, 0.55);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.site-header--transparent.is-scrolled {
    background: rgba(13, 36, 17, 0.97);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.site-header__inner {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Logo */
.site-header__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--color-text);
    flex-shrink: 0;
    transition: opacity 0.15s;
}

.site-header__logo:hover { opacity: 0.85; color: var(--color-text); }

.site-header--transparent .site-header__logo { color: #ffffff; }

.site-header__logo-mark {
    color: var(--color-primary);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-header__logo-name {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.site-header__logo-img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

/* Nav */
.site-header__nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.site-header__menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin: 0;
    padding: 0;
}

.site-header__menu a {
    display: block;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.site-header__menu a:hover {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
}

.site-header--transparent .site-header__menu a { color: rgba(255, 255, 255, 0.88); }
.site-header--transparent .site-header__menu a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* Actions */
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.site-header__enroll-btn {
    font-size: 0.875rem;
    padding: 0.5rem 1.15rem;
    letter-spacing: 0.01em;
}

/* Hamburger button */
.site-header__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s;
}

.site-header__hamburger:hover { background: rgba(0, 0, 0, 0.06); }
.site-header--transparent .site-header__hamburger:hover { background: rgba(255, 255, 255, 0.12); }

.site-header__hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--color-text);
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s;
}

.site-header--transparent .site-header__hamburger span { background: #ffffff; }

/* Animate hamburger to X when open */
.site-header__hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__hamburger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.site-header__hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
    background: #0c1f10;
    color: rgba(255, 255, 255, 0.68);
    border-top: none;
}

.site-footer__inner {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 3.5rem 0 2.5rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

/* Brand column */
.site-footer__brand { display: flex; flex-direction: column; gap: 0.75rem; }

.site-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.site-footer__logo:hover { color: var(--color-primary); }

.site-footer__logo-mark { color: var(--color-primary); display: flex; align-items: center; }

.site-footer__tagline {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 22ch;
}

.site-footer__telegram-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.25rem;
    padding: 0.45rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    width: fit-content;
}

.site-footer__telegram-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

/* Content columns */
.site-footer__col { display: flex; flex-direction: column; gap: 0.9rem; }

.site-footer__col-heading {
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}

.site-footer__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
}

.site-footer__list li {
    font-size: 0.9rem;
    line-height: 1.5;
    padding-left: 1.1rem;
    position: relative;
}

.site-footer__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-size: 0.8rem;
    top: 0.05em;
}

.site-footer__menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.site-footer__menu a {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.15s;
}

.site-footer__menu a:hover { color: #ffffff; }

/* Get started column */
.site-footer__get-started-lead {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
}

.site-footer__cta-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    margin-top: 0.25rem;
}

.site-footer__browse-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.15s;
}

.site-footer__browse-link:hover { color: #8ed163; }

/* Footer bottom bar */
.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 0;
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
}

.site-footer__bottom-love { font-style: italic; }

/* ================================================================
   RESPONSIVE — HEADER + FOOTER
   ================================================================ */
@media (max-width: 900px) {
    /* Header: hamburger mode */
    .site-header__hamburger { display: flex; }

    .site-header__nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid var(--color-border);
        padding: 0.75rem 1rem 1rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    }

    .site-header--transparent .site-header__nav {
        background: #0f2a14;
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    .site-header__nav.is-open { display: block; }

    .site-header__menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
    }

    .site-header__menu a {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        border-radius: 10px;
    }

    /* Footer: 2-column */
    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .site-footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.4rem;
    }
}

@media (max-width: 640px) {
    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem 0 2rem;
    }

    .site-footer__tagline { max-width: none; }
}
