/* ================================================
   Advenire v8 Design System
   DM Sans + Hanken Grotesk, blue-anchored palette, teal accent
   Import this for any new Advenire page or tool.
   ================================================ */

:root {
    /* Blue-anchored base — trust foundation */
    --bg: #f6f7fb;
    --bg-alt: #eceef5;
    --bg-dark: #151a2e;
    --bg-warm: #f0f3f8;
    --text: #171c2e;
    --text-secondary: #454d66;
    --text-muted: #828ba6;
    /* Teal accent — creative energy */
    --accent: #0d9488;
    --accent-hover: #0a7c72;
    --accent-light: rgba(13, 148, 136, 0.06);
    --accent-glow: rgba(13, 148, 136, 0.12);
    --border: rgba(21, 26, 46, 0.07);
    --border-accent: rgba(13, 148, 136, 0.18);
    --font-display: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ======================== */
/* Reset & Base             */
/* ======================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ======================== */
/* Grain Overlay            */
/* ======================== */

.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.015;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.75" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)"/></svg>');
}

/* ======================== */
/* Navigation               */
/* ======================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.35s ease;
}

.nav.scrolled {
    padding: 0.9rem 3rem;
    background: rgba(246, 247, 251, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--border);
}

.nav-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.nav-tagline {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links .active {
    color: var(--text);
    font-weight: 600;
}

.nav-links .btn-nav {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    background: var(--accent);
    color: #fff;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.nav-links .btn-nav:hover {
    background: var(--accent-hover);
    color: #fff;
}

/* ======================== */
/* Buttons                  */
/* ======================== */

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.9rem 2.1rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    cursor: pointer;
    letter-spacing: 0.005em;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(13, 148, 136, 0.22);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1.6rem;
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--border-accent);
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    letter-spacing: 0.005em;
}

.btn-secondary:hover {
    background: var(--accent-light);
    border-color: rgba(13, 148, 136, 0.35);
}

.actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* ======================== */
/* Page Header (subpages)   */
/* ======================== */

.page-header {
    padding: 8rem 2rem 4rem;
    text-align: center;
    background:
        radial-gradient(ellipse 80% 60% at 30% 25%, rgba(37, 72, 130, 0.035) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 75% 70%, rgba(13, 148, 136, 0.02) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%);
}

.page-header h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto;
}

.page-header-fade {
    height: 60px;
    background: linear-gradient(to bottom, transparent 0%, #edf0f6 100%);
    pointer-events: none;
}

/* ======================== */
/* Section (subpages)       */
/* ======================== */

.section {
    padding: 5rem 2rem;
}

.section-inner {
    max-width: 900px;
    margin: 0 auto;
}

.section h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.9rem;
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.section p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.section p:last-child {
    margin-bottom: 0;
}

.section-border-top {
    border-top: 1px solid var(--border);
}

.section-bg-alt {
    background: var(--bg-alt);
}

.section-bg-gradient {
    background: linear-gradient(180deg, #edf0f6 0%, var(--bg) 100%);
}

/* ======================== */
/* Card Pattern             */
/* ======================== */

/* Shared card styling used by service-item, exp-card, hosting-card, etc.
   Each page defines its own card class names, but they follow this pattern:
   - border + white-ish bg
   - ::before gradient bar on hover
   - hover lift with shadow
*/

/* ======================== */
/* Form Inputs              */
/* ======================== */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid var(--border);
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
    background: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group .optional {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.82rem;
    font-family: var(--font-body);
}

/* ======================== */
/* Dark Pivot Zone          */
/* ======================== */

.zone-pivot {
    background: var(--bg-dark);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.zone-pivot::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 70% at 35% 40%, rgba(37, 72, 130, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 40% 50% at 65% 60%, rgba(13, 148, 136, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.zone-pivot h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #eceef5;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    position: relative;
}

.zone-pivot p {
    color: rgba(236, 238, 245, 0.5);
    font-size: 1.02rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
    position: relative;
}

/* ======================== */
/* CTA Zone                 */
/* ======================== */

.zone-cta {
    background: linear-gradient(180deg, var(--bg-alt) 0%, #e6ecf2 50%, #e3eaf2 100%);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.zone-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 60% at 50% 60%, rgba(13, 148, 136, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.zone-cta h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    position: relative;
}

.zone-cta p {
    color: var(--text-secondary);
    font-size: 1.02rem;
    max-width: 480px;
    margin: 0 auto 2rem;
    position: relative;
}

.zone-cta .btn-primary {
    position: relative;
    font-size: 1rem;
    padding: 1rem 2.4rem;
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.15);
}

.zone-cta .btn-primary:hover {
    box-shadow: 0 8px 30px rgba(13, 148, 136, 0.28);
}

/* ======================== */
/* Footer                   */
/* ======================== */

footer {
    padding: 2.5rem 2rem;
    text-align: center;
    background: #e3eaf2;
    border-top: 1px solid rgba(21, 26, 46, 0.06);
}

.footer-contact {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.footer-contact a {
    color: var(--accent);
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ======================== */
/* Scroll-Reveal Animations */
/* ======================== */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.14s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.22s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 0.26s; }

/* ======================== */
/* Responsive: 900px        */
/* ======================== */

@media (max-width: 900px) {
    /* Subclasses handle their own grid collapses */
}

/* ======================== */
/* Responsive: 600px        */
/* ======================== */

@media (max-width: 600px) {
    .nav {
        padding: 1rem 1.5rem;
    }

    .nav.scrolled {
        padding: 0.75rem 1.5rem;
    }

    .nav-links {
        gap: 1.25rem;
    }

    .nav-links a {
        font-size: 0.82rem;
    }

    .nav-tagline {
        display: none;
    }

    .nav-links .btn-nav {
        font-size: 0.8rem;
        padding: 0.5rem 0.85rem;
        white-space: nowrap;
    }

    .nav-links .btn-nav .hide-mobile {
        display: none;
    }

    .page-header {
        padding: 6rem 1.5rem 3rem;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .zone-pivot {
        padding: 4rem 1.5rem;
    }

    .zone-cta {
        padding: 4rem 1.5rem;
    }
}
