/*
Theme Name: Nextma
Theme URI: https://www.nextma.com
Author: NEXTMA
Author URI: https://www.nextma.com
Description: Thème WordPress professionnel pour NEXTMA — Intégrateur Odoo pionnier au Maroc depuis 2007. Charte graphique vert #1B6B3A / rouge #D42B2B. Sections : hero, compteurs, services, solutions métier, timeline, témoignages, logos clients, CTA.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nextma
Tags: custom-logo, custom-menu, featured-images, one-column, two-columns, translation-ready, blog
*/

/* ==========================================================================
   ROOT VARIABLES
   ========================================================================== */
:root {
    --nxt-green: #1B6B3A;
    --nxt-green-dark: #145530;
    --nxt-green-light: #E8F5EC;
    --nxt-red: #D42B2B;
    --nxt-red-light: #FFF0F0;
    --nxt-dark: #1A1A1A;
    --nxt-gray: #F4F5F0;
    --nxt-gray-mid: #8A8A80;
    --nxt-white: #FFFFFF;
    --nxt-border: rgba(0,0,0,0.06);
    --font-body: 'DM Sans', system-ui, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --container: 1200px;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--nxt-dark);
    line-height: 1.65;
    background: var(--nxt-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: var(--nxt-green); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--nxt-green-dark); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    color: var(--nxt-dark);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; font-family: var(--font-body); }

p { margin-bottom: 1rem; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 5vw, 3rem);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    text-decoration: none;
}

.btn-primary {
    background: var(--nxt-green);
    color: var(--nxt-white);
}
.btn-primary:hover {
    background: var(--nxt-green-dark);
    color: var(--nxt-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(27,107,58,0.25);
}

.btn-outline {
    background: transparent;
    color: var(--nxt-green);
    border: 1.5px solid var(--nxt-green);
}
.btn-outline:hover {
    background: var(--nxt-green);
    color: var(--nxt-white);
}

.btn-white {
    background: var(--nxt-white);
    color: var(--nxt-green);
}
.btn-white:hover {
    background: var(--nxt-gray);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: var(--nxt-white);
    border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--nxt-white);
    color: var(--nxt-white);
}

/* Red dot accent */
.nxt-red-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--nxt-red);
    margin-left: 2px;
    vertical-align: super;
}

/* Section tag */
.section-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--nxt-green);
    margin-bottom: 0.75rem;
    display: block;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--nxt-border);
    transition: all 0.3s;
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    background: rgba(255,255,255,0.97);
    height: 80px;
}

.site-logo img { max-height: 70px; width: auto; object-fit: contain; transition: max-height 0.3s; }
.site-header.scrolled .site-logo img { max-height: 58px; }

/* WordPress custom-logo link wrapper */
.site-logo .custom-logo-link { display: flex; align-items: center; }
.site-logo .custom-logo { max-height: 70px; width: auto !important; height: auto !important; object-fit: contain; }
.site-header.scrolled .site-logo .custom-logo { max-height: 58px; }

.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav ul { list-style: none; display: flex; gap: 0.6rem; align-items: center; }
.main-nav a {
    display: block;
    padding: 0.6rem 1.3rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--nxt-gray-mid);
    letter-spacing: 0.02em;
    transition: color 0.3s;
}
.main-nav a:hover { color: var(--nxt-dark); }
.main-nav .btn { margin-left: 0.5rem; padding: 0.65rem 1.6rem; font-size: 1rem; }

.menu-toggle {
    display: none;
    background: none; border: none; cursor: pointer;
    width: 28px; height: 22px;
    flex-direction: column; justify-content: space-between;
}
.menu-toggle span {
    display: block; width: 100%; height: 2px;
    background: var(--nxt-dark); transition: all 0.3s;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    background: var(--nxt-green);
    color: var(--nxt-white);
    position: relative;
    overflow: hidden;
    padding: 140px 0 80px;
}

.hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 80% 50%, rgba(255,255,255,0.06) 0%, transparent 50%),
        linear-gradient(135deg, var(--nxt-green) 0%, var(--nxt-green-dark) 100%);
    pointer-events: none;
}

.hero .container {
    position: relative; z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 860px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    border-radius: 100px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
}

.hero-badge::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--nxt-red);
    animation: nxt-pulse 2s infinite;
}

.hero h1 { color: var(--nxt-white); margin-bottom: 1.2rem; }
.hero h1 em {
    font-style: italic;
    color: var(--nxt-green-light);
}

.hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-visual img {
    max-width: 280px;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 60px rgba(0,0,0,0.3));
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ==========================================================================
   COUNTERS
   ========================================================================== */
.counters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--nxt-border);
    border-bottom: 1px solid var(--nxt-border);
}

.counter-item {
    text-align: center;
    padding: 2.5rem 1.5rem;
    position: relative;
}

.counter-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0; top: 25%; height: 50%; width: 1px;
    background: var(--nxt-border);
}

.counter-num {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--nxt-green);
    line-height: 1;
}

.counter-label {
    font-size: 0.82rem;
    color: var(--nxt-gray-mid);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.section { padding: clamp(4rem, 10vw, 7rem) 0; }
.section-alt { background: var(--nxt-gray); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--nxt-white);
    border: 1px solid var(--nxt-border);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: var(--nxt-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.07);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 52px; height: 52px;
    border-radius: 10px;
    background: var(--nxt-green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    color: var(--nxt-green);
    font-size: 1.4rem;
}

.service-card h4 { margin-bottom: 0.6rem; }
.service-card p { font-size: 0.9rem; color: var(--nxt-gray-mid); line-height: 1.65; margin: 0; }

/* ==========================================================================
   SOLUTIONS
   ========================================================================== */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}

.solution-pill {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    border-radius: 8px;
    background: var(--nxt-white);
    border: 1px solid var(--nxt-border);
    transition: all 0.3s ease;
}

.solution-pill:hover {
    border-color: rgba(27,107,58,0.3);
    background: var(--nxt-green-light);
    transform: translateY(-2px);
}

.solution-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--nxt-green);
    flex-shrink: 0;
}

.solution-pill strong { font-size: 0.95rem; display: block; }
.solution-pill small { font-size: 0.78rem; color: var(--nxt-gray-mid); }

/* ==========================================================================
   TIMELINE
   ========================================================================== */
.timeline-section .container {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
}

.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px; top: 8px; bottom: 8px;
    width: 2px;
    background: rgba(27,107,58,0.2);
}

.tl-item {
    position: relative;
    padding-bottom: 2.2rem;
}
.tl-item:last-child { padding-bottom: 0; }

.tl-dot {
    position: absolute;
    left: -3rem; top: 6px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--nxt-white);
    border: 3px solid var(--nxt-green);
}

.tl-year {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--nxt-green);
}

.tl-text {
    font-size: 0.9rem;
    color: var(--nxt-gray-mid);
    margin-top: 0.3rem;
    line-height: 1.6;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--nxt-white);
    border: 1px solid var(--nxt-border);
    border-radius: 8px;
    padding: 2rem;
    position: relative;
    transition: border-color 0.3s;
}
.testimonial-card:hover { border-color: rgba(27,107,58,0.2); }

.testi-quote {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--nxt-green);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: -0.8rem;
}

.testi-text {
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.testi-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--nxt-green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--nxt-green);
}

.testi-name { font-weight: 700; font-size: 0.85rem; }
.testi-role { font-size: 0.75rem; color: var(--nxt-gray-mid); }

/* ==========================================================================
   CLIENT LOGOS MARQUEE
   ========================================================================== */
.clients-section { padding: clamp(4rem, 8vw, 6rem) 0; }

.logo-marquee {
    overflow: hidden;
    position: relative;
    padding: 1.5rem 0;
    margin-top: 2.5rem;
}

.logo-marquee::before,
.logo-marquee::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; width: 80px;
    z-index: 2; pointer-events: none;
}
.logo-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--nxt-white) 0%, transparent 100%);
}
.logo-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--nxt-white) 0%, transparent 100%);
}

.section-alt .logo-marquee::before {
    background: linear-gradient(to right, var(--nxt-gray) 0%, transparent 100%);
}
.section-alt .logo-marquee::after {
    background: linear-gradient(to left, var(--nxt-gray) 0%, transparent 100%);
}

.logo-track {
    display: flex;
    gap: 2.5rem;
    width: max-content;
    animation: marquee 35s linear infinite;
}
.logo-track:hover { animation-play-state: paused; }

.logo-item {
    flex-shrink: 0;
    width: 180px; height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    border: 1px solid var(--nxt-border);
    background: var(--nxt-white);
    transition: all 0.35s var(--ease-out);
}

.logo-item:hover {
    border-color: rgba(27,107,58,0.25);
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
    transform: translateY(-3px);
}

.logo-item img {
    max-height: 55px;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.55);
    transition: filter 0.4s ease;
}

.logo-item:hover img {
    filter: grayscale(0%) opacity(1);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Sector cards */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}

.sector-card {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--nxt-border);
    background: var(--nxt-white);
    transition: all 0.3s ease;
}

.sector-card:hover {
    border-color: rgba(27,107,58,0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.sector-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--nxt-green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem;
    color: var(--nxt-green);
    font-size: 1.2rem;
}

.sector-count {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--nxt-green);
    line-height: 1;
}

.sector-label {
    font-size: 0.75rem;
    color: var(--nxt-gray-mid);
    margin-top: 0.4rem;
    font-weight: 500;
    line-height: 1.3;
}

/* ==========================================================================
   FOUNDER / MOT DU FONDATEUR
   ========================================================================== */
.founder-section {
    background: var(--nxt-white);
    position: relative;
    overflow: hidden;
}

.founder-wrapper {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    position: relative;
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--nxt-border);
    background: linear-gradient(135deg, var(--nxt-green-light) 0%, var(--nxt-white) 60%);
}

.founder-content { max-width: 680px; }

.founder-quote {
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    font-style: italic;
    line-height: 1.8;
    color: var(--nxt-dark);
    margin: 1.5rem 0 2rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--nxt-green);
    position: relative;
}

.founder-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.founder-photo {
    width: 56px; height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--nxt-green);
}

.founder-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--nxt-green);
    color: var(--nxt-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.founder-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--nxt-dark);
}

.founder-role {
    font-size: 0.82rem;
    color: var(--nxt-gray-mid);
    margin-top: 0.15rem;
}

.founder-signature {
    margin-top: 1.5rem;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--nxt-green);
    opacity: 0.6;
}

.founder-decoration {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.founder-deco-line {
    width: 2px;
    height: 120px;
    background: linear-gradient(to bottom, var(--nxt-green) 0%, transparent 100%);
    opacity: 0.3;
}

.founder-deco-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--nxt-green);
    opacity: 0.2;
}

@media (max-width: 968px) {
    .founder-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    .founder-decoration { display: none; }
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta-section {
    background: var(--nxt-green);
    color: var(--nxt-white);
    text-align: center;
    padding: clamp(5rem, 12vw, 8rem) 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.cta-section h2 { color: var(--nxt-white); position: relative; }
.cta-section h2 em { font-style: italic; color: var(--nxt-green-light); }
.cta-section p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    max-width: 550px;
    margin: 1.2rem auto 2.5rem;
    position: relative;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--nxt-dark);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
}

.footer-brand .site-logo { margin-bottom: 1rem; }
.footer-brand .site-logo img,
.footer-brand .site-logo .custom-logo { max-height: 40px; width: auto !important; height: auto !important; object-fit: contain; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; max-width: 280px; }
.footer-address { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin-top: 1rem; }

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 1.2rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    transition: color 0.3s;
}
.footer-col a:hover { color: var(--nxt-white); }

.footer-socials {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.footer-socials a {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    transition: all 0.3s;
}
.footer-socials a:hover {
    border-color: var(--nxt-green);
    color: var(--nxt-green);
}

.footer-bottom {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
    flex-wrap: wrap;
    gap: 1rem;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes nxt-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.nxt-reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.nxt-reveal.visible { opacity: 1; transform: translateY(0); }
.nxt-delay-1 { transition-delay: 0.1s; }
.nxt-delay-2 { transition-delay: 0.2s; }
.nxt-delay-3 { transition-delay: 0.3s; }
.nxt-delay-4 { transition-delay: 0.4s; }

/* ==========================================================================
   BLOG / WORDPRESS DEFAULTS
   ========================================================================== */
.entry-content { max-width: 720px; margin: 0 auto; padding: 2rem 0 4rem; }
.entry-content h2 { margin-top: 2rem; }
.entry-content p { font-size: 1.05rem; }
.entry-content img { border-radius: 8px; margin: 1.5rem 0; }

.wp-block-button__link {
    background: var(--nxt-green);
    border-radius: 4px;
    padding: 0.8rem 2rem;
    font-weight: 600;
}
.wp-block-button__link:hover { background: var(--nxt-green-dark); }

.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 968px) {
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .timeline-section .container { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .main-nav ul { display: none; }
    .menu-toggle { display: flex; }
    .main-nav.open ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 90px; left: 0; right: 0;
        background: var(--nxt-white);
        padding: 1rem;
        border-bottom: 1px solid var(--nxt-border);
        box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    }
    .main-nav.open .btn { margin: 0.5rem 0 0; width: 100%; justify-content: center; }
}

@media (max-width: 640px) {
    .counters { grid-template-columns: repeat(2, 1fr); }
    .counter-item:nth-child(2)::after { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .logo-marquee::before, .logo-marquee::after { width: 40px; }
}
