/* ================================================================
   Leano Security Services — Index Page Styles (index.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%);
}

/* Geometric background pattern */
.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); }

/* Fix: the original code puts <i> directly in .trust-item — keep support for that too */
.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); }

/* ── 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 ──────────────────────────────────── */
.technology-section { background: var(--gray-100); }
[data-theme="dark"] .technology-section { background: var(--gray-100); }

.tech-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.tech-feature {
    background: var(--white);
    padding: 1.875rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    transition: var(--tr);
    cursor: default;
}
[data-theme="dark"] .tech-feature { background: var(--gray-100); border-color: var(--gray-200); }
.tech-feature:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}
.tech-feature.active {
    border-color: var(--accent);
    background: linear-gradient(135deg, var(--white) 0%, rgba(26,158,143,.04) 100%);
    box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .tech-feature.active { background: linear-gradient(135deg, var(--gray-100) 0%, rgba(26,158,143,.06) 100%); }

.feature-header {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin-bottom: 1rem;
}
.feature-icon {
    width: 52px; height: 52px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.feature-icon i { font-size: 1.4rem; color: var(--accent); }

.tech-feature h4 {
    font-size: 1.05rem;
    margin-bottom: 0;
    line-height: 1.3;
    color: var(--primary);
}
[data-theme="dark"] .tech-feature h4 { color: #d0dce8; }
.tech-feature p {
    font-size: .9rem;
    color: var(--gray-600);
    margin-bottom: 0;
    line-height: 1.7;
}

/* ── Stats section ───────────────────────────────────────── */
.stats-section {
    background: var(--primary);
    position: relative;
    overflow: hidden;
}
.stats-section::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(26,158,143,.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(214,40,57,.10) 0%, transparent 40%);
}
.stats-section .container { position: relative; z-index: 1; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    transition: var(--tr);
    backdrop-filter: blur(4px);
}
.stat-card:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,.09);
    border-color: rgba(26,158,143,.4);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px; height: 60px;
    background: rgba(26,158,143,.15);
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
    color: var(--accent);
}

.counter {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: .6rem;
    letter-spacing: -1px;
}

/* Stat label — override any conflicting rules */
.stats-section .stat-label {
    font-size: .88rem !important;
    color: rgba(255,255,255,.65) !important;
    font-weight: 500 !important;
    letter-spacing: .3px !important;
    display: block !important;
    text-transform: uppercase !important;
    margin: 0 !important;
}

/* ── CTA section ─────────────────────────────────────────── */
.cta-section { background: var(--gray-100); }
[data-theme="dark"] .cta-section { background: var(--gray-100); }

.cta-card {
    background: linear-gradient(130deg, var(--primary) 0%, #102a50 50%, #0d2240 100%);
    border-radius: var(--radius-lg);
    padding: 4.5rem;
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3.5rem;
    align-items: center;
    color: #fff;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}
.cta-card::before {
    content: '';
    position: absolute;
    top: -60%; right: -20%;
    width: 70%; height: 200%;
    background: radial-gradient(ellipse, rgba(26,158,143,.12) 0%, transparent 70%);
    pointer-events: none;
}
.cta-card::after {
    content: '';
    position: absolute;
    bottom: -40%; left: -10%;
    width: 50%; height: 150%;
    background: radial-gradient(ellipse, rgba(214,40,57,.08) 0%, transparent 70%);
    pointer-events: none;
}
.cta-card > * { position: relative; z-index: 1; }

.cta-card h2 {
    color: #fff;
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -.3px;
}
.cta-card > .cta-content > p {
    color: rgba(255,255,255,.7);
    font-size: .97rem;
    margin-bottom: 2rem;
    line-height: 1.75;
}
.cta-features { display: flex; flex-direction: column; gap: .75rem; }
.cta-feature {
    display: flex; align-items: center; gap: .75rem;
    color: rgba(255,255,255,.8); font-size: .9rem;
}
.cta-feature i { color: var(--accent); font-size: 1rem; flex-shrink: 0; }

.cta-action { text-align: center; }
.cta-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    margin-top: 1.25rem;
    font-size: .82rem;
    color: rgba(255,255,255,.45);
    letter-spacing: .3px;
}
.cta-note i { color: var(--accent); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width:1200px) {
    .hero-container { gap: 3.5rem; }
    .stats-grid { gap: 1.5rem; }
}

@media (max-width:992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        text-align: center;
        padding-top: 2rem;
    }
    .hero-description { margin-inline: auto; }
    .hero-actions  { justify-content: center; }
    .hero-features { justify-content: center; }

    .trust-items { grid-template-columns: repeat(2, 1fr); }
    .trust-item:nth-child(2) { border-right: none; }
    .trust-item:nth-child(3),
    .trust-item:nth-child(4) { border-top: 1px solid var(--gray-200); }

    .about-content { grid-template-columns: 1fr; gap: 3.5rem; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

    .cta-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 3.5rem 2.5rem;
        gap: 2.5rem;
    }
    .cta-features { align-items: center; }
}

@media (max-width:768px) {
    .hero { padding-top: calc(var(--header-h) + 1rem); }
    .hero-title { font-size: 2.3rem; letter-spacing: -.3px; }
    .hero-subtitle { font-size: 1rem; }
    .image-frame img { height: 360px; }

    .trust-items { grid-template-columns: 1fr 1fr; }
    .trust-item { padding: 1.5rem; }

    .services-grid { grid-template-columns: 1fr; }

    .tech-features { grid-template-columns: 1fr 1fr; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .counter { font-size: 2.6rem; }

    .cta-card { padding: 2.75rem 2rem; }
    .image-stack { height: 420px; }
}

@media (max-width:576px) {
    .hero-title  { font-size: 2rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .cta-button  { width: 100%; justify-content: center; }

    .trust-items { grid-template-columns: 1fr; }
    .trust-item { border-right: none; border-top: 1px solid var(--gray-200); }
    .trust-item:first-child { border-top: none; }

    .tech-features { grid-template-columns: 1fr; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: .875rem; }
    .stat-card { padding: 2rem 1rem; }
    .counter { font-size: 2.2rem; }
    .stat-icon { width:48px; height:48px; font-size:1.2rem; }

    .cta-card { padding: 2.25rem 1.5rem; border-radius: var(--radius-md); }
    .cta-card h2 { font-size: 1.7rem; }

    .image-badge,
    .experience-badge {
        position: relative;
        bottom: auto; right: auto;
        margin-top: 1.25rem;
        display: inline-flex;
        transform: none;
    }

    .image-stack { height: auto; display: flex; flex-direction: column; gap: 1rem; }
    .stack-item { position: relative; width: 100% !important; height: 220px !important; top: auto; bottom: auto; left: auto; right: auto; border: none !important; }
}
