/* ============================================================
   BASE STYLES — Landing Template
   CSS variables (--primary, --font-family, etc.) are injected
   by theme.php into <style> in the <head>.
   ============================================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family, system-ui, sans-serif);
    color: #333;
    line-height: 1.7;
    background: #fff;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.25s;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ---- CONTAINER ---- */

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- HEADER ---- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s, box-shadow 0.3s;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: color 0.25s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.25s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: currentColor;
    transition: transform 0.3s, opacity 0.3s;
}

/* ---- HERO ---- */

.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    padding: 100px 0 80px;
    overflow: hidden;
    background: var(--primary-dark);
}

.hero .hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        hsl(var(--hue), var(--sat), 20%) 0%,
        hsl(var(--hue), var(--sat), 35%) 50%,
        hsl(var(--hue), var(--sat), 45%) 100%);
}

.hero .hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    opacity: 0.88;
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 500px;
}

.hero-decoration {
    display: none;
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    opacity: 0.12;
}

/* ---- BUTTONS ---- */

.btn {
    display: inline-block;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: #fff;
    color: var(--primary-dark);
}

.btn-primary:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-accent {
    background: var(--accent);
    color: #fff;
}

.btn-accent:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* ---- SECTIONS ---- */

.section {
    padding: 80px 0;
    position: relative;
}

.section-alt {
    background: #f8f9fa;
}

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary-dark);
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 1.05rem;
    color: #666;
    max-width: 600px;
    margin-bottom: 48px;
    line-height: 1.7;
}

.section-center {
    text-align: center;
}

.section-center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* Pattern overlay */
.pattern-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.section > .container {
    position: relative;
    z-index: 1;
}

/* ---- ABOUT ---- */

.about-text {
    font-size: 1.08rem;
    line-height: 1.85;
    color: #555;
    max-width: 720px;
}

.about-stats {
    display: flex;
    gap: 48px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: #888;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ---- SERVICES GRID ---- */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.service-card {
    padding: 36px 28px;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.service-card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--primary);
}

.service-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #222;
    transition: color 0.3s;
}

.service-card-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.65;
    transition: color 0.3s;
}

/* ---- CONTACT ---- */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 10px;
    color: var(--primary);
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    margin-bottom: 4px;
    font-weight: 600;
}

.contact-value {
    font-size: 1.05rem;
    color: #333;
    font-weight: 500;
}

.contact-value a {
    color: #333;
}

.contact-value a:hover {
    color: var(--primary);
}

/* ---- CAREERS ---- */

.careers-list {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.career-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px 24px;
    transition: all 0.3s;
    text-align: left;
}

.career-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.career-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.career-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 10px;
    color: var(--primary);
}

.career-icon svg {
    width: 22px;
    height: 22px;
}

.career-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 2px;
}

.career-meta {
    font-size: 0.82rem;
    color: #999;
}

.career-btn {
    flex-shrink: 0;
    padding: 10px 24px;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .career-card {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .career-btn {
        text-align: center;
    }
}

/* ---- WHY CHOOSE US ---- */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 32px 24px;
    transition: all 0.35s ease;
    text-align: center;
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 14px;
    color: var(--primary);
}

.feature-icon svg {
    width: 26px;
    height: 26px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.feature-card p {
    font-size: 0.93rem;
    color: #666;
    line-height: 1.6;
    transition: color 0.3s;
}

/* ---- PROCESS / HOW WE WORK ---- */

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    counter-reset: step;
}

.process-step {
    position: relative;
    padding: 24px;
    text-align: center;
}

.step-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.process-step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

.process-step p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

.process-connector {
    display: none;
}

@media (min-width: 769px) {
    .process-connector {
        display: block;
        position: absolute;
        top: 48px;
        right: -18px;
        color: var(--primary);
        opacity: 0.4;
    }
    .process-step:last-child .process-connector { display: none; }
}

/* ---- TESTIMONIALS ---- */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px 28px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    position: relative;
}

.testimonial-quote {
    font-size: 1.02rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-quote::before {
    content: '\201C';
    font-size: 3rem;
    color: var(--primary-light);
    position: absolute;
    top: 12px;
    left: 20px;
    line-height: 1;
    font-style: normal;
}

.testimonial-author {
    font-weight: 700;
    color: #222;
    font-size: 0.95rem;
}

.testimonial-role {
    font-size: 0.82rem;
    color: #999;
    margin-top: 2px;
}

/* ---- FAQ ---- */

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #eee;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 40px 20px 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #222;
    text-align: left;
    cursor: pointer;
    position: relative;
    font-family: inherit;
    line-height: 1.5;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    content: '\2212';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer-inner {
    padding: 0 0 20px;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* ---- STATS BAR ---- */

.stats-bar {
    background: var(--primary-dark);
    padding: 48px 0;
}

.stats-bar-inner {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 32px;
}

.stats-bar .stat-number {
    color: #fff;
    font-size: 2.8rem;
}

.stats-bar .stat-label {
    color: rgba(255,255,255,0.7);
}

/* ---- PARTNERS ---- */

.partners-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 48px;
}

.partner-logo {
    width: 110px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.partner-logo:hover {
    opacity: 1;
}

/* ---- CTA SECTION ---- */

.cta-section {
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 60px 0;
}

.cta-section .section-title {
    color: #fff;
}

.cta-section .section-subtitle {
    color: rgba(255,255,255,0.85);
}

.cta-inner {
    /* grid layout applied via theme.php for split-cta variant */
}

/* ---- FOOTER ---- */

.site-footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.6);
    padding: 32px 0;
    text-align: center;
    font-size: 0.9rem;
}

.site-footer a {
    color: rgba(255,255,255,0.8);
}

.site-footer a:hover {
    color: #fff;
}

.footer-inner {
    /* grid layout applied via theme.php for columns variant */
}

.footer-brand p {
    margin-top: 8px;
    font-size: 0.85rem;
    max-width: 300px;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 6px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ---- MOBILE ---- */

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    }

    .nav.active {
        display: flex;
    }

    .nav-link {
        color: #333 !important;
        font-size: 1.1rem;
    }

    .menu-toggle {
        display: flex;
        color: inherit;
    }

    .hero {
        min-height: 420px;
        padding: 80px 0 60px;
    }

    .hero-decoration {
        display: none !important;
    }

    .section {
        padding: 56px 0;
    }

    .about-stats {
        gap: 32px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        min-height: 360px;
        padding: 70px 0 50px;
    }

    .btn {
        padding: 12px 28px;
        font-size: 0.95rem;
    }

    .service-card {
        padding: 28px 20px;
    }
}
