/* =============================================
   1STONE-PARTNERS — REDESIGN 2026
   ============================================= */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --c-forest:    #0C1F15;
    --c-deep:      #0A1628;
    --c-green:     #1DB954;
    --c-green-dim: #16913F;
    --c-accent:    #52E887;
    --c-light:     #F2F6F1;
    --c-muted:     #8FA897;
    --c-white:     #FFFFFF;
    --c-dark-card: #111D14;
    --c-glass:     rgba(255,255,255,0.04);
    --c-glass-b:   rgba(255,255,255,0.09);

    --font-display: 'Space Grotesk', sans-serif;
    --font-body:    'Inter', sans-serif;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    --nav-h: 80px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--c-forest);
    background: var(--c-white);
    line-height: 1.65;
    overflow-x: hidden;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

a { text-decoration: none; color: inherit; }

em { font-style: normal; color: var(--c-green); }

/* =========== GRIDS =========== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 50px;
    align-items: center;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

/* =========== BUTTONS =========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 6px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.08);
    transform: translateY(100%);
    transition: transform 0.25s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }

.btn-primary {
    background: var(--c-green);
    color: var(--c-forest);
    border: 2px solid var(--c-green);
}
.btn-primary:hover {
    background: var(--c-accent);
    border-color: var(--c-accent);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(29,185,84,0.35);
}

.btn-ghost {
    background: transparent;
    color: var(--c-white);
    border: 2px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
    transform: translateY(-2px);
}

/* =========== SECTION LABELS =========== */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--c-green);
    margin-bottom: 14px;
}
.section-label::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--c-green);
    border-radius: 2px;
}
.section-label.light { color: var(--c-accent); }
.section-label.light::before { background: var(--c-accent); }

/* =========== NAVBAR =========== */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: var(--nav-h);
    z-index: 1000;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    padding: 8px 14px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.nav-link:hover {
    color: var(--c-white);
    background: var(--c-glass);
}

.btn-nav {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
    background: var(--c-green);
    color: var(--c-forest);
    padding: 9px 20px;
    border-radius: 6px;
    margin-left: 8px;
    transition: all 0.2s var(--ease-out);
}
.btn-nav:hover {
    background: var(--c-accent);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(29,185,84,0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--c-white);
    border-radius: 2px;
    transition: all 0.3s;
}

.logo-link {
    display: block;
    transition: opacity 0.2s;
}
.logo-link:hover { opacity: 0.82; }

/* =========== HERO =========== */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: var(--c-deep);
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--c-white);
}

#heroCanvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.55;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse 80% 60% at 70% 50%, rgba(29,185,84,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 80% at 10% 80%, rgba(10,22,40,0.9) 0%, transparent 70%),
        linear-gradient(135deg, rgba(10,22,40,0.92) 0%, rgba(12,31,21,0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: var(--nav-h) 0 80px;
    max-width: 820px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-accent);
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.8s 0.3s var(--ease-out) forwards;
}

.eyebrow-dot {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-accent);
    box-shadow: 0 0 12px var(--c-accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 8px var(--c-accent); }
    50% { box-shadow: 0 0 20px var(--c-accent), 0 0 35px rgba(82,232,135,0.4); }
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.9s 0.5s var(--ease-out) forwards;
}

.hero-accent {
    background: linear-gradient(135deg, var(--c-green) 0%, var(--c-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    max-width: 540px;
    margin-bottom: 40px;
    line-height: 1.75;
    opacity: 0;
    animation: fadeUp 0.9s 0.7s var(--ease-out) forwards;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.9s 0.9s var(--ease-out) forwards;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.4);
    font-size: 0.7rem;
    font-family: var(--font-display);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: fadeIn 1s 1.5s both;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
    animation: scrollDrop 2s 1.5s infinite;
}

@keyframes scrollDrop {
    0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
    50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
    100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* =========== FEATURES STRIP =========== */
.features {
    padding: 0;
    background: var(--c-light);
    position: relative;
    z-index: 10;
    margin-top: -1px;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 22px;
    background: var(--c-white);
    padding: 32px 28px;
    border-radius: 0;
    border-bottom: 3px solid transparent;
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    height: 3px; width: 0;
    background: var(--c-green);
    transition: width 0.4s var(--ease-out);
}
.feature-card:hover::before { width: 100%; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.08); }

.feature-icon-wrap {
    flex-shrink: 0;
    width: 52px; height: 52px;
    background: rgba(29,185,84,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--c-green);
    transition: all 0.3s;
}
.feature-card:hover .feature-icon-wrap {
    background: var(--c-green);
    color: var(--c-white);
    transform: scale(1.08);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--c-deep);
    margin-bottom: 4px;
}
.feature-card p {
    font-size: 0.88rem;
    color: var(--c-muted);
    line-height: 1.5;
}

/* =========== SERVICES SECTION =========== */
.services-section {
    padding: 120px 0;
    background: var(--c-white);
}

.section-header {
    margin-bottom: 64px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--c-deep);
    margin-bottom: 14px;
    line-height: 1.15;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--c-muted);
    max-width: 520px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: var(--c-light);
    border-radius: 16px;
    overflow: hidden;
}

.service-box {
    position: relative;
    background: var(--c-white);
    padding: 44px 40px;
    cursor: default;
    transition: background 0.35s var(--ease-out);
    overflow: hidden;
    group: true;
}

.service-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--c-forest) 0%, #0F2E1A 100%);
    opacity: 0;
    transition: opacity 0.35s var(--ease-out);
    z-index: 0;
}

.service-box:hover::after { opacity: 1; }
.service-box > * { position: relative; z-index: 1; }

.service-number {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--c-green);
    margin-bottom: 20px;
}

.service-icon {
    font-size: 1.8rem;
    color: var(--c-green);
    margin-bottom: 18px;
    transition: transform 0.3s;
}
.service-box:hover .service-icon { transform: scale(1.1); }

.service-box h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--c-deep);
    margin-bottom: 14px;
    transition: color 0.3s;
}
.service-box:hover h3 { color: var(--c-white); }

.service-box p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--c-muted);
    transition: color 0.3s;
}
.service-box:hover p { color: rgba(255,255,255,0.65); }

.service-arrow {
    position: absolute;
    bottom: 28px;
    right: 28px;
    width: 36px; height: 36px;
    background: rgba(29,185,84,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-green);
    font-size: 0.85rem;
    opacity: 0;
    transform: translate(6px, 6px);
    transition: all 0.3s var(--ease-out);
}
.service-box:hover .service-arrow {
    opacity: 1;
    transform: translate(0, 0);
    background: var(--c-green);
    color: var(--c-white);
}

/* =========== ABOUT SECTION =========== */
.about-section {
    padding: 120px 0;
    background: var(--c-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-frame {
    position: relative;
}

.about-image-inner {
    width: 100%;
    aspect-ratio: 4/5;
    background:
        url('https://images.unsplash.com/photo-1573108724029-4c46571d6490?auto=format&fit=crop&w=800&q=80')
        center center / cover;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.about-image-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10,22,40,0.6) 100%);
    border-radius: 16px;
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--c-green);
    color: var(--c-forest);
    padding: 16px 22px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.88rem;
    box-shadow: 0 16px 40px rgba(29,185,84,0.4);
}
.about-badge i { font-size: 1.1rem; }

.about-text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--c-deep);
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-text > p {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 40px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.stat-item {
    background: var(--c-white);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    border: 1.5px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.stat-item:hover {
    border-color: rgba(29,185,84,0.3);
    box-shadow: 0 8px 24px rgba(29,185,84,0.1);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--c-green);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--c-muted);
    font-weight: 500;
    letter-spacing: 0.03em;
}

.director-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--c-white);
    padding: 18px 22px;
    border-radius: 12px;
    border-left: 4px solid var(--c-green);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    width: fit-content;
}

.director-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-green), var(--c-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--c-forest);
}

.dir-title {
    font-size: 0.78rem;
    color: var(--c-muted);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.dir-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--c-deep);
}

/* =========== CONTACT SECTION =========== */
.contact-section {
    padding: 120px 0;
    background: var(--c-white);
}

.contact-box {
    background: linear-gradient(135deg, var(--c-deep) 0%, var(--c-forest) 100%);
    border-radius: 24px;
    padding: 72px 60px;
    position: relative;
    overflow: hidden;
}

.contact-box::before {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(29,185,84,0.15) 0%, transparent 65%);
    pointer-events: none;
}

.contact-box::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(29,185,84,0.1) 0%, transparent 65%);
    pointer-events: none;
}

.contact-header {
    text-align: center;
    margin-bottom: 56px;
    position: relative;
    z-index: 1;
}

.contact-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--c-white);
    margin-bottom: 14px;
}

.contact-header p {
    color: rgba(255,255,255,0.6);
    max-width: 500px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.7;
}

.contact-details { position: relative; z-index: 1; }

.info-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 32px 28px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    transition: all 0.3s var(--ease-out);
}

.info-item:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(29,185,84,0.3);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.info-item.highlight {
    background: var(--c-green);
    border-color: transparent;
}
.info-item.highlight:hover {
    background: var(--c-accent);
    box-shadow: 0 20px 40px rgba(29,185,84,0.35);
}

.info-icon-wrap {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--c-accent);
    transition: all 0.3s;
}

.info-item.highlight .info-icon-wrap {
    background: rgba(0,0,0,0.15);
    color: var(--c-white);
}

.info-item h4 {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 6px;
}

.info-item.highlight h4 { color: rgba(0,0,0,0.5); }

.info-item p,
.info-item a {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    line-height: 1.6;
}

.info-item.highlight p,
.info-item.highlight a { color: var(--c-forest); }

.phone-link {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
}

/* =========== FOOTER =========== */
footer {
    background: var(--c-deep);
    padding: 48px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.footer-copy {
    color: rgba(255,255,255,0.45);
    font-size: 0.88rem;
}

.footer-sub {
    color: rgba(255,255,255,0.25);
    font-size: 0.8rem;
}

/* =========== SCROLL REVEAL =========== */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="150"] { transition-delay: 0.15s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }

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

/* =========== RESPONSIVE =========== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .about-visual { order: -1; }
    .about-image-inner { aspect-ratio: 16/9; }
    .about-badge { bottom: 20px; right: 20px; }
    .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .nav-menu.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        background: rgba(10,22,40,0.98);
        backdrop-filter: blur(20px);
        padding: 24px;
        gap: 8px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .nav-toggle { display: flex; }
    .hero-content h1 { font-size: 2.2rem; }
    .contact-box { padding: 48px 28px; }
    .stats-row { grid-template-columns: repeat(3,1fr); }
    .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; }
    .stats-row { grid-template-columns: 1fr; gap: 10px; }
    .grid-2 { grid-template-columns: 1fr; }
}