/* ═══════════════════════════════════════════════════════════
   components.css — Sairevo Enviro Solutions
   Shared header + footer styles.
   Import this on EVERY page alongside a page-specific CSS.
   ═══════════════════════════════════════════════════════════ */

/* ─── Reset & Base ────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green-primary: #4caf50;
    --green-deep: #2e7d32;
    --green-pale: rgba(76, 175, 80, 0.15);
    --cream: #f5f0e8;
    --dark: #0e0e0e;
    --mid: #1a1a1a;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', 'Segoe UI', sans-serif;
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--cream);
    color: #fff;
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* ─── FLOATING HEADER ─────────────────────────────────────── */
.floating-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    z-index: 1000;
    padding: 0 5%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo img {
    height: 50px;
    transition: transform 0.3s ease;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255,255,255,0.8);
    font-weight: 400;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--green-primary);
}

/* ─── HAMBURGER ───────────────────────────────────────────── */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: 0.3s;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.sairevo-footer {
    background: #020d03;
    position: relative;
    overflow: hidden;
    font-family: 'DM Sans', sans-serif;
}

.sf-pulse {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.sf-pulse-1 {
    width: 600px; height: 600px;
    top: -200px; left: -100px;
    background: radial-gradient(circle, rgba(34,197,94,0.06) 0%, transparent 65%);
    animation: sfPulse 12s ease-in-out infinite;
}
.sf-pulse-2 {
    width: 500px; height: 500px;
    bottom: -100px; right: -80px;
    background: radial-gradient(circle, rgba(16,185,129,0.05) 0%, transparent 65%);
    animation: sfPulse 16s ease-in-out 4s infinite reverse;
}
@keyframes sfPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; }
}

.sf-texture {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(74,222,128,0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.5) 80%, transparent 100%);
}

.sf-bg-word {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(80px, 15vw, 180px);
    font-weight: 300;
    font-style: italic;
    color: transparent;
    -webkit-text-stroke: 1px rgba(74,222,128,0.06);
    white-space: nowrap;
    pointer-events: none;
    letter-spacing: -4px;
    user-select: none;
}

.sf-hero {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 80px 8% 64px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.sf-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.6rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(74,222,128,0.6);
    font-weight: 400;
    margin-bottom: 28px;
}
.sf-eyebrow::before,
.sf-eyebrow::after {
    content: '';
    display: block;
    width: 32px; height: 1px;
    background: rgba(74,222,128,0.3);
}

.sf-statement {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.4rem, 5vw, 5.5rem);
    font-weight: 300;
    line-height: 1.05;
    color: #fff;
    letter-spacing: -1px;
    margin-bottom: 32px;
}
.sf-statement em {
    font-style: italic;
    color: #4ade80;
}

.sf-cta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.sf-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #4ade80;
    color: #020d03;
    border: none;
    border-radius: 100px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}
.sf-btn-primary:hover {
    background: #86efac;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(74,222,128,0.25);
}
.sf-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 100px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}
.sf-btn-ghost:hover {
    border-color: rgba(74,222,128,0.4);
    color: #4ade80;
}

.sf-links-zone {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 0;
    padding: 0 8%;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.sf-col {
    padding: 52px 48px 52px 0;
    border-right: 1px solid rgba(255,255,255,0.04);
}
.sf-col:last-child { border-right: none; padding-right: 0; }
.sf-col:not(:first-child) { padding-left: 48px; }

.sf-brand-logo {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 300;
    color: #fff;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 16px;
}
.sf-brand-logo em { font-style: italic; color: #4ade80; }

.sf-brand-desc {
    font-size: 0.82rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255,255,255,0.32);
    max-width: 240px;
    margin-bottom: 28px;
}

.sf-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(74,222,128,0.06);
    border: 1px solid rgba(74,222,128,0.18);
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 0.62rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(74,222,128,0.7);
    font-weight: 400;
}
.sf-badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #4ade80;
    animation: sfBlink 2.5s ease-in-out infinite;
}
@keyframes sfBlink { 0%,100%{opacity:1} 50%{opacity:0.2} }

.sf-col-title {
    font-size: 0.58rem;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    font-weight: 500;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sf-col-title::before {
    content: '';
    width: 16px; height: 1px;
    background: rgba(74,222,128,0.4);
    flex-shrink: 0;
}

.sf-nav { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.sf-nav a {
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 300;
    color: rgba(255,255,255,0.38);
    transition: color 0.25s, padding-left 0.25s;
    display: block;
    position: relative;
}
.sf-nav a::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 4px;
    border-radius: 50%;
    background: #4ade80;
    opacity: 0;
    transition: opacity 0.2s;
}
.sf-nav a:hover { color: rgba(255,255,255,0.85); padding-left: 8px; }
.sf-nav a:hover::before { opacity: 1; }

.sf-contact-list { display: flex; flex-direction: column; gap: 16px; }
.sf-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.sf-ci-box {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: rgba(74,222,128,0.05);
    border: 1px solid rgba(74,222,128,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
}
.sf-ci-text {
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(255,255,255,0.38);
    line-height: 1.5;
    padding-top: 6px;
}

.sf-bottom {
    position: relative;
    z-index: 2;
    padding: 24px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.sf-copy {
    font-size: 0.7rem;
    font-weight: 300;
    color: rgba(255,255,255,0.18);
}
.sf-copy em { font-style: normal; color: rgba(74,222,128,0.5); }

.sf-social { display: flex; gap: 8px; }
.sf-social a {
    width: 36px; height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.07);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.28);
    text-decoration: none;
    transition: all 0.25s;
    background: rgba(255,255,255,0.02);
}
.sf-social a:hover {
    border-color: rgba(74,222,128,0.35);
    color: #4ade80;
    background: rgba(74,222,128,0.07);
    transform: translateY(-3px);
}
.sf-social svg { width: 13px; height: 13px; fill: currentColor; }

.sf-legal { display: flex; gap: 20px; }
.sf-legal a {
    font-size: 0.68rem;
    font-weight: 300;
    color: rgba(255,255,255,0.15);
    text-decoration: none;
    transition: color 0.25s;
}
.sf-legal a:hover { color: rgba(74,222,128,0.7); }

/* ─── KEYFRAMES ───────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — Header & Footer
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .sf-links-zone {
        grid-template-columns: 1fr 1fr;
    }
    .sf-col {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.04);
        padding: 40px 0;
    }
    .sf-col:not(:first-child) { padding-left: 0; }
    .sf-col:nth-child(odd) { padding-right: 40px; border-right: 1px solid rgba(255,255,255,0.04); }
    .sf-col:nth-child(even) { padding-left: 40px; }
    .sf-col:last-child, .sf-col:nth-last-child(2):nth-child(odd) { border-bottom: none; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .nav-links {
        position: absolute;
        top: 90px;
        right: 5%;
        width: 180px;
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        background: rgba(255,255,255,0.1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px) scale(0.95);
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        pointer-events: none;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    .nav-links li { width: 100%; }

    .nav-links a {
        display: block;
        padding: 12px;
        font-size: 0.85rem;
        background: rgba(255,255,255,0.05);
        border-radius: 12px;
        text-align: center;
        border: 1px solid rgba(255,255,255,0.05);
    }

    .nav-links a:active, .nav-links a.active {
        background: #2e7d32;
        color: white;
        border-color: #4caf50;
    }
}

@media (max-width: 680px) {
    .sf-hero { padding: 60px 6% 48px; }
    .sf-statement { font-size: clamp(1.9rem, 7vw, 3rem); }

    .sf-links-zone {
        grid-template-columns: 1fr;
        padding: 0 6%;
    }
    .sf-col {
        padding: 32px 0;
        border-right: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.04);
        text-align: center;
    }
    .sf-col:last-child { border-bottom: none; }
    .sf-col:nth-child(odd) { padding-right: 0; border-right: none !important; }
    .sf-col:nth-child(even) { padding-left: 0; }

    .sf-col-title { justify-content: center; }
    .sf-nav a { text-align: center; }
    .sf-nav a::before { display: none; }
    .sf-brand-desc { margin: 0 auto 28px; }
    .sf-contact-item { justify-content: center; }

    .sf-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 6%;
        gap: 16px;
    }
    .sf-social { justify-content: center; }
    .sf-legal { justify-content: center; }
    .sf-bg-word { font-size: 18vw; }
}