/**
 * Team1 Design — Joomla 5 Template
 * Main Stylesheet
 * ================================================================ */

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

:root {
    --bg-dark: #0a0e1a;
    --bg-card: #0f1429;
    --bg-section: #0d1120;
    --cyan: #00e5ff;
    --cyan-dim: #00b8d4;
    --cyan-glow: rgba(0, 229, 255, 0.15);
    --purple: #7c4dff;
    --purple-dim: #651fff;
    --magenta: #e040fb;
    --text-primary: #e8eaf6;
    --text-secondary: #90a4ae;
    --text-muted: #546e7a;
    --border: rgba(0, 229, 255, 0.12);
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --container-width: 1200px;
    --nav-height: 72px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color 0.25s; }
img { max-width: 100%; height: auto; }

/* ── CONTAINER ── */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
}

/* ── NAVIGATION ── */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
    height: var(--nav-height);
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.nav-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

body .nav-sticky ~ * { /* offset for fixed nav */ }
body:has(.nav-sticky) .page-hero,
body:has(.nav-sticky) main,
body:has(.nav-sticky) .above-content-section,
body:has(.nav-sticky) .topbar-section {
    /* first element after nav */
}
.nav-sticky + * { margin-top: var(--nav-height); }

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    flex-shrink: 0;
}

.nav-logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 0.9rem;
    color: #fff;
}

.nav-logo-img {
    height: 38px;
    width: auto;
}

/* Nav menu — Joomla mod_menu override integration */
.nav-menu-wrap {
    display: flex;
    align-items: center;
}

.nav-menu-wrap ul,
.nav-menu-wrap .mod-menu {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 350px;
    justify-content: center;
}

.nav-menu-wrap ul button {
    display: none;
}

.nav-menu-wrap li { position: relative; }

.nav-menu-wrap li a,
.nav-menu-wrap li span.nav-header {
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: all 0.25s;
    display: block;
    white-space: nowrap;
}

.nav-menu-wrap li a:hover,
.nav-menu-wrap li.current > a,
.nav-menu-wrap li.active > a {
    color: #fff;
    background: rgba(0, 229, 255, 0.08);
}

.nav-menu-wrap li.current > a,
.nav-menu-wrap li.active > a {
    color: var(--cyan);
}

/* Dropdown menus */
.nav-menu-wrap li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(15, 20, 41, 0.98);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
    z-index: 200;
}

.nav-menu-wrap li:hover > ul { display: flex; }

.nav-menu-wrap li ul li a {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.nav-cta {
    padding: 10px 22px;
    background: transparent;
    border: 1.5px solid var(--cyan);
    color: var(--cyan);
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-cta:hover {
    background: var(--cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.35);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── HERO SECTION ── */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 140px 0 80px;
    background: linear-gradient(160deg, #0a0e1a 0%, #0d1a2e 40%, #12082e 70%, #0a0e1a 100%);
    border-bottom: 1px solid var(--border);
}

.is-home .page-hero { min-height: 92vh; display: flex; align-items: center; }

.hero-wave-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    pointer-events: none;
    overflow: hidden;
}

.hero-wave-bg svg { width: 100%; height: 100%; }

.hero-content-wrap { position: relative; z-index: 2; width: 100%;
    max-width: 1920px;}

/* ── SECTION STYLES ── */
section,
.above-content-section,
.below-content-section,
.main-top-section,
.main-bottom-section {
    padding: 80px 0;
}

.main-content-wrap { padding: 60px 0; }

/* ── CONTENT GRID ── */
.content-grid {
    display: grid;
    gap: 40px;
}

.content-grid.with-sidebar {
    grid-template-columns: 280px 1fr;
}

.content-grid:has(.sidebar-right) {
    grid-template-columns: 1fr 280px;
}

.content-grid:has(.sidebar-left):has(.sidebar-right) {
    grid-template-columns: 250px 1fr 250px;
}

.sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 20px);
    align-self: start;
}

/* ── MODULE CHROME STYLES ── */
/* t1card style */
.t1card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 28px;
    margin-bottom: 24px;
    transition: all 0.35s;
}

.t1card:hover {
    border-color: rgba(0, 229, 255, 0.2);
}

.t1card .t1card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* t1footer style */
.t1footer { margin-bottom: 0; }

.t1footer .t1footer-title {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.t1footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.t1footer ul li { margin-bottom: 10px; }

.t1footer ul a {
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: color 0.25s;
}

.t1footer ul a:hover { color: var(--cyan); }

/* ── FOOTER ── */
.footer {
    background: var(--bg-section);
    border-top: 1px solid var(--border);
    padding: 60px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}

.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover { background: var(--cyan); }

.social-links a svg {
    width: 16px;
    height: 16px;
    fill: var(--text-secondary);
    transition: fill 0.3s;
}

.social-links a:hover svg { fill: var(--bg-dark); }

/* ── SECTION LABELS & TITLES (for SP Page Builder & Custom HTML) ── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cyan);
    margin-bottom: 12px;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--cyan);
    border-radius: 2px;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 3rem;
}

.centered { text-align: center; }
.centered .section-subtitle { margin-left: auto; margin-right: auto; }

/* ── FEATURE GRID (for SP Page Builder) ── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 36px 28px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: all 0.35s;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 229, 255, 0.2);
    box-shadow: 0 16px 48px rgba(0, 229, 255, 0.06);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(0, 229, 255, 0.04));
    border: 1px solid rgba(0, 229, 255, 0.15);
}

.feature-icon svg,
.feature-icon i {
    width: 24px;
    height: 24px;
    color: var(--cyan);
    stroke: var(--cyan);
    fill: none;
    stroke-width: 1.8;
    font-size: 24px;
}

.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.65; }

/* ── PROCESS STEPS ── */
.process-section { background: var(--bg-section); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    counter-reset: step;
}

.process-step {
    padding: 28px 20px;
    text-align: center;
    counter-increment: step;
}

.process-step::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    font-family: var(--font-mono);
    font-size: 2.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 14px;
    line-height: 1;
}

.process-step h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.process-step p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.65; }

/* ── TECH TAGS ── */
.tech-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.tech-tag {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.12);
    color: var(--text-secondary);
    transition: all 0.25s;
}

.tech-tag:hover { border-color: var(--cyan); color: var(--cyan); }

/* ── STATS ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
    margin: 0 auto;
    border: 1.5px solid var(--cyan);
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.04), rgba(124, 77, 255, 0.03));
}

.stat-item { text-align: center; padding: 36px 20px; }
.stat-item + .stat-item { border-left: 1px solid var(--border); }

.stat-number {
    font-family: var(--font-mono);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--cyan);
    line-height: 1.2;
}

.stat-label { font-size: 0.82rem; color: var(--text-secondary); margin-top: 4px; }

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-box {
    text-align: center;
    padding: 28px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.stat-box .num { font-family: var(--font-mono); font-size: 1.8rem; font-weight: 800; color: var(--cyan); line-height: 1.2; }
.stat-box .lbl { font-size: 0.78rem; color: var(--text-secondary); margin-top: 4px; }

/* ── SPLIT LAYOUT ── */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-visual {
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.split-visual img { width: 100%; height: 100%; object-fit: cover; }

/* ── CTA BANNER ── */
.cta-banner {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.06), rgba(124, 77, 255, 0.04));
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 56px 48px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-banner h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 800; margin-bottom: 12px; }
.cta-banner p { font-size: 0.95rem; color: var(--text-secondary); max-width: 500px; margin: 0 auto 28px; line-height: 1.7; }

/* ── BUTTONS ── */
.btn-primary,
.sppb-btn-primary {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--cyan), var(--cyan-dim));
    color: var(--bg-dark) !important;
    font-family: var(--font-main);
    font-size: 0.92rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 24px rgba(0, 229, 255, 0.25);
    text-align: center;
}

.btn-primary:hover,
.sppb-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 229, 255, 0.4);
}

.btn-secondary,
.sppb-btn-secondary {
    display: inline-block;
    padding: 14px 36px;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.92rem;
    font-weight: 600;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover,
.sppb-btn-secondary:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

/* ── FAQ / ACCORDION ── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 22px 0;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.25s;
}

.faq-question:hover { color: var(--cyan); }

.faq-question svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-muted);
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
    transition: transform 0.3s, stroke 0.3s;
}

.faq-item.open .faq-question svg { transform: rotate(45deg); stroke: var(--cyan); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 22px; }
.faq-answer p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; }

/* ── BREADCRUMB OVERRIDE ── */
.breadcrumb,
nav[aria-label="Breadcrumbs"] ol,
.mod-breadcrumbs ol {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    list-style: none;
    padding: 0;
}

.breadcrumb a,
.mod-breadcrumbs a { color: var(--text-secondary); }
.breadcrumb a:hover,
.mod-breadcrumbs a:hover { color: var(--cyan); }

.mod-breadcrumbs .divider { color: var(--text-muted); margin: 0 4px; }

/* ── LOGO BAR ── */
.logo-bar {
    padding: 28px clamp(1.5rem, 4vw, 4rem);
    background: var(--bg-section);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 4vw, 48px);
    flex-wrap: wrap;
}

.client-logo {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    opacity: 0.6;
    white-space: nowrap;
    transition: opacity 0.3s;
}

.client-logo:hover { opacity: 1; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.anim { animation: fadeUp 0.7s ease-out both; }
.d1 { animation-delay: .1s; }
.d2 { animation-delay: .2s; }
.d3 { animation-delay: .3s; }
.d4 { animation-delay: .4s; }

/* ── SP PAGE BUILDER OVERRIDES ── */
.sppb-section {
    padding: 80px 0;
}

.sppb-section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.sppb-addon-title {
    font-weight: 700;
    color: var(--text-primary);
}

.sppb-addon-text { color: var(--text-secondary); }

/* SP Page Builder dark-theme card addon */
.sppb-addon-feature-box .sppb-addon-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 28px;
    transition: all 0.35s;
}

.sppb-addon-feature-box .sppb-addon-content:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 229, 255, 0.2);
    box-shadow: 0 16px 48px rgba(0, 229, 255, 0.06);
}

.sppb-addon-feature-box .sppb-icon {
    color: var(--cyan) !important;
}

/* SP PB button overrides */
.sppb-btn-default {
    border: 1.5px solid var(--cyan);
    color: var(--cyan);
    background: transparent;
    border-radius: 10px;
    font-weight: 600;
    padding: 12px 30px;
    transition: all 0.3s;
}

.sppb-btn-default:hover {
    background: var(--cyan);
    color: var(--bg-dark);
}

/* SP PB accordion overrides */
.sppb-addon-accordion .sppb-panel {
    border-color: var(--border);
    background: transparent;
}

.sppb-addon-accordion .sppb-panel-heading {
    background: transparent !important;
    border-color: var(--border) !important;
}

.sppb-addon-accordion .sppb-panel-heading a {
    color: var(--text-primary);
    font-weight: 600;
}

.sppb-addon-accordion .sppb-panel-body {
    color: var(--text-secondary);
    background: transparent;
}

/* SP PB tabs overrides */
.sppb-addon-tab .sppb-nav-tabs > li > a {
    color: var(--text-secondary);
    border-color: var(--border);
}

.sppb-addon-tab .sppb-nav-tabs > li.active > a {
    color: var(--cyan);
    border-bottom-color: var(--cyan);
    background: transparent;
}

/* Joomla component styling */
.com-content-article {
    padding: 20px 0;
}

.com-content-article__body {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.com-content-article__body h2,
.com-content-article__body h3 {
    color: var(--text-primary);
    margin: 2rem 0 1rem;
    font-weight: 700;
}

.com-content-article__body a { color: var(--cyan); }
.com-content-article__body a:hover { color: #fff; }

.com-content-article__body img {
    border-radius: 12px;
    border: 1px solid var(--border);
}

.com-content-article__body blockquote {
    border-left: 3px solid var(--cyan);
    padding: 16px 24px;
    margin: 1.5rem 0;
    background: rgba(0, 229, 255, 0.04);
    border-radius: 0 8px 8px 0;
    color: var(--text-primary);
}

.com-content-article__body code {
    font-family: var(--font-mono);
    background: rgba(0, 229, 255, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.88em;
    color: var(--cyan);
}

.com-content-article__body pre {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
    overflow-x: auto;
}

/* Joomla pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 2rem 0;
    list-style: none;
    padding: 0;
}

.pagination li a,
.pagination li span {
    display: block;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    transition: all 0.25s;
}

.pagination li a:hover { border-color: var(--cyan); color: var(--cyan); }
.pagination .active span { background: var(--cyan); color: var(--bg-dark); border-color: var(--cyan); }

/* Joomla alerts */
.alert {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    border: 1px solid;
}

.alert-success { background: rgba(40, 202, 65, 0.1); border-color: rgba(40, 202, 65, 0.3); color: #28ca41; }
.alert-info { background: rgba(0, 229, 255, 0.1); border-color: rgba(0, 229, 255, 0.3); color: var(--cyan); }
.alert-warning { background: rgba(255, 189, 46, 0.1); border-color: rgba(255, 189, 46, 0.3); color: #ffbd2e; }
.alert-danger { background: rgba(255, 95, 87, 0.1); border-color: rgba(255, 95, 87, 0.3); color: #ff5f57; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .split-section { grid-template-columns: 1fr; gap: 32px; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .content-grid.with-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-menu-wrap { display: none; }
    .nav-hamburger { display: flex; }

    .nav-menu-wrap.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(10, 14, 26, 0.97);
        backdrop-filter: blur(16px);
        padding: 20px;
        border-bottom: 1px solid var(--border);
    }

    .nav-menu-wrap.open ul {
        flex-direction: column;
        width: 100%;
    }

    .nav-menu-wrap.open li ul {
        position: static;
        display: flex;
        box-shadow: none;
        border: none;
        padding-left: 16px;
        min-width: auto;
    }

    .feature-grid,
    .process-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-item + .stat-item { border-left: none; border-top: 1px solid var(--border); }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-banner { padding: 40px 24px; }

    .nav-cta { display: none; }
}

@media (max-width: 480px) {
    .page-hero { padding-top: 110px; }
    .stats-row { grid-template-columns: 1fr; }
    .is-home .page-hero { min-height: 80vh; }
}

/* ── JOOMLA 6 VIEW TRANSITIONS ── */
@view-transition {
    navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.3s;
    animation-timing-function: ease;
}

::view-transition-old(root) {
    animation-name: fade-out;
}

::view-transition-new(root) {
    animation-name: fade-in;
}

@keyframes fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
