/* ================================================================
   Leano Security Services — Home Page Styles (home.css)
   ================================================================ */

/* ── Hero ────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-h);
    background: linear-gradient(140deg,
        #070f20 0%,
        #0b1e3e 45%,
        #0d2a48 70%,
        #0f3050 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 75% 25%, rgba(26,158,143,.12) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(214,40,57,.08) 0%, transparent 40%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><path d="M0 60L60 0M-10 10L10-10M50 70L70 50" stroke="rgba(255,255,255,0.025)" stroke-width="1"/></svg>');
    z-index: 1;
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 2;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.hero-content { color: #fff; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: rgba(26,158,143,.15);
    color: #4ecdc4;
    padding: .55rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: .8px;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
    border: 1px solid rgba(26,158,143,.25);
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    color: #fff;
    margin-bottom: .85rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.5px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,.7);
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: .2px;
}

.hero-description {
    font-size: 1rem;
    color: rgba(255,255,255,.6);
    margin-bottom: 2.25rem;
    max-width: 480px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: .875rem;
    margin-bottom: 2.25rem;
    flex-wrap: wrap;
}

.hero-features {
    display: flex;
    gap: .65rem;
    flex-wrap: wrap;
}

.feature-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.8);
    padding: .55rem 1.1rem;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .3px;
    border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(6px);
}
.feature-chip i { color: #4ecdc4; font-size: .8rem; }

/* Hero image */
.hero-image { position: relative; }

.image-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: perspective(900px) rotateY(-4deg) rotateX(3deg);
    transition: transform .5s ease;
}
.image-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(6,15,30,.6) 100%);
    pointer-events: none;
}
.image-frame:hover { transform: perspective(900px) rotateY(0) rotateX(0); }
.image-frame img { width: 100%; height: 460px; object-fit: cover; }

.image-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    background: var(--secondary);
    color: #fff;
    padding: .65rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .5px;
    z-index: 2;
    box-shadow: var(--shadow-md);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    color: rgba(255,255,255,.4);
    font-size: .78rem;
    letter-spacing: .5px;
    animation: fadeInOut 2.5s infinite;
    z-index: 3;
}
@keyframes fadeInOut { 0%,100%{opacity:.2} 50%{opacity:.8} }
.mouse {
    width: 26px; height: 42px;
    border: 1.5px solid rgba(255,255,255,.3);
    border-radius: 13px; position: relative;
}
.wheel {
    width: 3px; height: 7px;
    background: rgba(255,255,255,.6);
    border-radius: 2px;
    position: absolute; top: 8px;
    left: 50%; transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}
@keyframes scrollWheel {
    0%   { transform:translateX(-50%) translateY(0); opacity:1; }
    100% { transform:translateX(-50%) translateY(16px); opacity:0; }
}

/* ── Trust bar ───────────────────────────────────────────── */
.trust-bar {
    background: var(--white);
    padding: 0;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-xs);
}
[data-theme="dark"] .trust-bar { background: var(--gray-100); border-bottom-color: var(--gray-200); }

.trust-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1.75rem;
    border-right: 1px solid var(--gray-200);
    transition: var(--tr);
}
[data-theme="dark"] .trust-item { border-right-color: var(--gray-200); }
.trust-item:last-child { border-right: none; }
.trust-item:hover { background: var(--gray-100); }
[data-theme="dark"] .trust-item:hover { background: rgba(255,255,255,.03); }

.trust-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    background: var(--accent-light);
    border-radius: 50%;
    flex-shrink: 0;
}
.trust-icon-wrap i { font-size: 1.4rem; color: var(--accent); }

.trust-item > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    font-size: 1.4rem;
    color: var(--accent);
    background: var(--accent-light);
    border-radius: 50%;
    flex-shrink: 0;
}

.trust-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: .15rem;
}
[data-theme="dark"] .trust-item h3 { color: #e0eaf5; }
.trust-item p { font-size: .82rem; color: var(--gray-400); margin-bottom: 0; }

/* ── Section header ──────────────────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    padding: .5rem 1.4rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: .72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(26,158,143,.18);
}

.section-title { margin-bottom: 1rem; }

.section-subtitle {
    color: var(--gray-600);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}
[data-theme="dark"] .section-subtitle { color: var(--gray-400); }

/* Section accent rule */
.section-accent-rule {
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin: 1.25rem auto 0;
}

/* ── About preview ───────────────────────────────────────── */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text { position: relative; }

.accent-line {
    width: 44px; height: 3px;
    background: var(--secondary);
    margin-bottom: 1.75rem;
    border-radius: 2px;
}

.about-text h3 {
    font-size: 1.6rem;
    margin-bottom: 1.1rem;
    line-height: 1.3;
}

.about-text > p {
    font-size: .97rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.mission-statement {
    background: var(--accent-light);
    padding: 2rem 2rem 2rem 2.5rem;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent);
    margin: 1.75rem 0;
    position: relative;
}
.mission-statement i.fa-quote-left {
    position: absolute;
    top: 1.25rem; left: 1.25rem;
    font-size: 1.5rem;
    color: var(--accent);
    opacity: .25;
}
.mission-statement p {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--primary);
    margin-bottom: 0;
    line-height: 1.65;
    padding-left: .5rem;
}
[data-theme="dark"] .mission-statement p { color: #c8d8e8; }

/* Image stack */
.about-image { position: relative; }

.image-stack {
    position: relative;
    height: 500px;
}
.stack-item {
    position: absolute;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.stack-item.main {
    width: 78%; height: 68%;
    top: 0; right: 0; z-index: 2;
}
.stack-item.secondary {
    width: 58%; height: 55%;
    bottom: 0; left: 0; z-index: 1;
    border: 6px solid var(--light);
    box-shadow: var(--shadow-xl);
}
[data-theme="dark"] .stack-item.secondary { border-color: var(--gray-100); }
.stack-item img { width:100%; height:100%; object-fit:cover; }

.experience-badge {
    position: absolute;
    bottom: -12px; right: -12px;
    background: var(--secondary);
    color: #fff;
    padding: 1rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: .9rem;
    letter-spacing: .3px;
    z-index: 3;
    box-shadow: var(--shadow-lg);
    transform: rotate(3deg);
}

/* ── Services grid ───────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
    margin-bottom: 3.5rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--tr);
    position: relative;
    display: flex;
    flex-direction: column;
}
[data-theme="dark"] .service-card { background: var(--gray-100); border-color: var(--gray-200); }
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}
.service-card.featured {
    border: 1.5px solid var(--accent);
    background: linear-gradient(135deg, var(--white) 0%, rgba(26,158,143,.03) 100%);
}
[data-theme="dark"] .service-card.featured { background: linear-gradient(135deg, var(--gray-100) 0%, rgba(26,158,143,.05) 100%); }

.service-badge {
    position: absolute;
    top: -11px; right: 1.5rem;
    background: var(--accent);
    color: #fff;
    padding: .4rem 1.1rem;
    border-radius: 50px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}

.service-icon {
    position: relative;
    width: 64px; height: 64px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-icon i {
    font-size: 1.75rem;
    color: var(--accent);
    position: relative;
    z-index: 2;
}
.icon-bg {
    position: absolute;
    inset: 0;
    background: var(--accent-light);
    border-radius: 50%;
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: .875rem;
    line-height: 1.35;
}
.service-card > p {
    font-size: .92rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    flex: 1;
}
.service-features {
    margin-bottom: 1.75rem;
}
.service-features li {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .55rem;
    font-size: .88rem;
    color: var(--gray-600);
}
.service-features i { color: var(--accent); font-size: .78rem; flex-shrink: 0; }

.service-link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--primary);
    font-weight: 700;
    font-size: .84rem;
    letter-spacing: .4px;
    text-transform: uppercase;
    transition: var(--tr);
    padding: .6rem 0;
    margin-top: auto;
}
[data-theme="dark"] .service-link { color: #8ab4d0; }
.service-link:hover { color: var(--secondary); gap: .9rem; }

.section-footer { text-align: center; }

/* ================================================================
   TECHNOLOGY SECTION — redesigned
   ================================================================ */
.technology-section {
    background: var(--gray-100);
}
[data-theme="dark"] .technology-section { background: var(--gray-100); }

.tech-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.tech-feature {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
    position: relative;
    overflow: hidden;
    cursor: default;
}
[data-theme="dark"] .tech-feature { background: var(--gray-100); border-color: var(--gray-200); }

.tech-feature::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: var(--accent);
    opacity: 0;
    transition: opacity .2s ease;
    border-radius: 3px 0 0 3px;
}

.tech-feature:hover,
.tech-feature.active {
    box-shadow: var(--shadow-md);
    border-color: rgba(26,158,143,.3);
    transform: translateY(-3px);
}

.tech-feature:hover::before,
.tech-feature.active::before {
    opacity: 1;
}

.feature-header {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.feature-icon {
    width: 52px; height: 52px;
    background: var(--accent-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
    font-size: 1.5rem;
}

.tech-feature .feature-header { margin-bottom: 0; }

/* Restructure the inner layout so icon + text sit side-by-side */
.tech-feature {
    flex-direction: row;
}

.tech-feature .feature-header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
    width: 100%;
}

.tech-feature-body { flex: 1; }

.tech-feature h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: .5rem;
    line-height: 1.3;
}
[data-theme="dark"] .tech-feature h4 { color: #e0eaf5; }

.tech-feature p {
    font-size: .9rem;
    line-height: 1.7;
    color: var(--gray-600);
    margin: 0;
}
[data-theme="dark"] .tech-feature p { color: var(--gray-400); }

/* ================================================================
   STATS SECTION — redesigned
   ================================================================ */
.stats-section {
    background: linear-gradient(140deg, #070f20 0%, #0b1e3e 50%, #0d2a48 100%);
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

/* Diagonal line overlay */
.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><path d="M0 60L60 0M-10 10L10-10M50 70L70 50" stroke="rgba(255,255,255,0.025)" stroke-width="1"/></svg>');
    z-index: 0;
}

/* Radial glow overlays */
.stats-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(26,158,143,.12) 0%, transparent 50%),
        radial-gradient(circle at 15% 80%, rgba(214,40,57,.08) 0%, transparent 40%);
    z-index: 0;
}

.stats-section .container {
    position: relative;
    z-index: 1;
}

/* Override the shared section-header for dark background */
.stats-section .section-header {
    margin-bottom: 3rem;
}

.stats-section .section-label {
    background: rgba(26,158,143,.2);
    border-color: rgba(78,205,196,.2);
    color: #4ecdc4;
}

.stats-section .section-title {
    color: #fff;
}

.stats-section .section-subtitle {
    color: rgba(255,255,255,.5);
}

.stats-section .section-accent-rule {
    background: rgba(78,205,196,.5);
}

/* Stats grid — unified bordered block */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255,255,255,.07);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.07);
}

.stat-card {
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: rgba(255,255,255,.03);
    position: relative;
    transition: background .2s ease;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.stat-card:hover {
    background: rgba(26,158,143,.08);
    transform: none;
    box-shadow: none;
}

.stat-card .stat-icon {
    width: 48px; height: 48px;
    background: rgba(26,158,143,.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.1rem;
    color: #4ecdc4;
    font-size: 1.35rem;
}

.counter {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: .4rem;
    font-family: var(--font-heading);
    letter-spacing: -1px;
}

.stat-card .stat-label {
    font-size: .8rem;
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    line-height: 1.4;
    display: block;
    margin-top: .4rem;
}

/* Suffix styling for +/7 etc — handled in JS */
.stat-suffix {
    color: #4ecdc4;
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

/* ================================================================
   CTA SECTION — redesigned
   ================================================================ */
.cta-section { background: var(--white); }
[data-theme="dark"] .cta-section { background: var(--dark); }

.cta-card {
    background: linear-gradient(135deg, #0b1e3e 0%, #0d2a48 60%, #0f3050 100%);
    border-radius: 20px;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Diagonal line overlay */
.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><path d="M0 60L60 0M-10 10L10-10M50 70L70 50" stroke="rgba(255,255,255,0.025)" stroke-width="1"/></svg>');
    z-index: 0;
}

/* Radial glow top-right */
.cta-card::after {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(26,158,143,.18) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

/* Reuse the existing .cta-section tag as an inline badge */
.cta-tag {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(26,158,143,.2);
    color: #4ecdc4;
    padding: .45rem 1.1rem;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(78,205,196,.2);
}

.cta-card h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: .875rem;
    line-height: 1.2;
    letter-spacing: -.3px;
}

.cta-card > .cta-content > p,
.cta-card p:not(.cta-note) {
    font-size: .95rem;
    color: rgba(255,255,255,.6);
    line-height: 1.75;
    margin-bottom: 1.75rem;
    max-width: 520px;
}

.cta-features {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.cta-feature {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.8);
    padding: .5rem 1rem;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,.1);
}

.cta-feature i { color: #4ecdc4; font-size: .85rem; }

.cta-action {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-width: 230px;
}

/* Override existing .cta-button styles for the CTA action button */
.cta-action .cta-button.primary-btn.large-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.75rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(214,40,57,.35);
}

.cta-note {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: rgba(255,255,255,.4);
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .3px;
    text-align: center;
    line-height: 1.5;
    margin: 0;
}
.cta-note i { color: rgba(26,158,143,.7); font-size: .85rem; }

/* ── Technology section ──────────────────────────────────── */
/* (kept for backward compat — actual bg set above) */

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 900px) {
    .tech-features {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-card {
        grid-template-columns: 1fr;
        padding: 2.5rem 2rem;
        text-align: center;
        gap: 2rem;
    }

    .cta-card p:not(.cta-note) {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-features {
        justify-content: center;
    }

    .cta-action {
        width: 100%;
        min-width: unset;
    }

    .cta-action .cta-button.primary-btn.large-btn {
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    .hero { min-height: 85vh; }
    .services-grid { grid-template-columns: 1fr; }
    .trust-items { grid-template-columns: repeat(2, 1fr); }

    .stats-section { padding: 3.5rem 0; }

    .counter { font-size: 2.2rem; }

    .cta-card { padding: 2rem 1.5rem; border-radius: var(--radius-lg); }
}

@media (max-width: 576px) {
    .hero-title { font-size: 2rem; }
    .trust-items { grid-template-columns: 1fr; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    .stat-card { padding: 2rem 1rem; }

    .counter { font-size: 2rem; }

    .tech-feature { padding: 1.5rem; gap: 1rem; }

    .feature-icon { width: 44px; height: 44px; font-size: 1.25rem; }
}