/* ================================================================
   INTERLIK SOLUTIONS — SHARED STYLESHEET
   styles.css  ·  All pages import this file
================================================================ */

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

/* ── DESIGN TOKENS ── */
:root {
    --ink: #0a0d14;
    --surface: #0e1220;
    --card: #131829;
    --border: rgba(255, 255, 255, 0.07);
    --accent: #00c8a0;
    --accent2: #3b82f6;
    --text: #e2e8f0;
    --muted: #7a8599;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--ink);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── NOISE OVERLAY ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* ════════════════════════════
   NAVIGATION
════════════════════════════ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 5%;
    background: rgba(10, 13, 20, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    position: relative;
    z-index: 210;
}

.logo svg {
    display: block;
}

/* Desktop nav links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.2s;
    letter-spacing: 0.01em;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}

.nav-cta {
    background: var(--accent);
    color: var(--ink) !important;
    padding: 0.55rem 1.4rem;
    border-radius: 4px;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    transition: opacity 0.2s !important;
}

.nav-cta:hover {
    opacity: 0.85 !important;
    color: var(--ink) !important;
}

/* ── HAMBURGER BUTTON ── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    position: relative;
    z-index: 210;
    border-radius: 6px;
    transition: background 0.2s;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.06);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
    transform-origin: center;
}

/* Animate to X when open */
.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── MOBILE MENU OVERLAY ── */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 190;
    background: rgba(10, 13, 20, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 5rem 2rem 3rem;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 320px;
}

.mobile-menu li a {
    display: block;
    padding: 1.1rem 1.5rem;
    color: var(--text);
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 400;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s;
}

.mobile-menu li a:hover {
    color: var(--accent);
}

.mobile-menu li:first-child a {
    border-top: 1px solid var(--border);
}

.mobile-menu .mobile-cta {
    display: block;
    background: var(--accent);
    color: var(--ink) !important;
    font-weight: 600 !important;
    border-radius: 6px;
    border: none !important;
    margin-top: 1.5rem;
    padding: 0.95rem 2rem;
    font-size: 1rem !important;
    text-align: center;
    max-width: 320px;
    width: 100%;
    transition: opacity 0.2s;
}

.mobile-menu .mobile-cta:hover {
    opacity: 0.85;
}

/* ── Prevent body scroll when menu open ── */
body.menu-open {
    overflow: hidden;
}

/* ════════════════════════════
   SHARED UTILITIES
════════════════════════════ */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.9rem;
}

.section-label::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1rem;
}

h2 em {
    font-style: normal;
    color: var(--accent);
}

h3 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 0.9rem;
}

h3 em {
    font-style: normal;
    color: var(--accent);
}

.section-desc {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
    font-weight: 300;
}

/* ── BUTTONS ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.85rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 30px rgba(0, 200, 160, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 40px rgba(0, 200, 160, 0.45);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.85rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    border: 1px solid var(--border);
    transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ── ANIMATIONS ── */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: none;
}

.stagger>.fade-up:nth-child(1) {
    transition-delay: 0s;
}

.stagger>.fade-up:nth-child(2) {
    transition-delay: 0.1s;
}

.stagger>.fade-up:nth-child(3) {
    transition-delay: 0.2s;
}

.stagger>.fade-up:nth-child(4) {
    transition-delay: 0.3s;
}

.stagger>.fade-up:nth-child(5) {
    transition-delay: 0.4s;
}

.stagger>.fade-up:nth-child(6) {
    transition-delay: 0.5s;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
    position: relative;
    min-height: 52vh;
    display: flex;
    align-items: center;
    padding: 9rem 5% 5rem;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 200, 160, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 200, 160, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb span {
    color: var(--border);
}

.breadcrumb .current {
    color: var(--accent);
}

.page-hero h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--white);
    margin-bottom: 1.5rem;
    max-width: 780px;
}

.page-hero h1 em {
    font-style: normal;
    color: var(--accent);
}

.page-hero p {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 560px;
    line-height: 1.75;
    font-weight: 300;
}

.hero-accent-line {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.hero-accent-line span {
    display: block;
    width: 2px;
    border-radius: 1px;
    background: var(--accent);
}

/* ── SECTION IMAGE WRAP ── */
.section-img-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.section-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 4/3;
    transition: transform 0.6s ease;
}

.section-img-wrap:hover img {
    transform: scale(1.03);
}

.section-img-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 200, 160, 0.15) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.section-img-wrap::after {
    content: '';
    position: absolute;
    inset: -10px -10px 10px 10px;
    border: 1px solid rgba(0, 200, 160, 0.18);
    border-radius: 18px;
    z-index: -1;
    pointer-events: none;
}

/* ── CTA BANNER ── */
.cta-banner {
    margin: 0 5% 6rem;
    background: linear-gradient(135deg, rgba(0, 200, 160, 0.12) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid rgba(0, 200, 160, 0.2);
    border-radius: 20px;
    padding: 4.5rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 200, 160, 0.08), transparent 70%);
    pointer-events: none;
}

.cta-banner .section-label {
    justify-content: center;
}

.cta-banner h2 {
    margin-bottom: 1rem;
}

.cta-banner p {
    color: var(--muted);
    margin-bottom: 2.2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.cta-banner .btn-group {
    justify-content: center;
}

/* ── FOOTER ── */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 4rem 5% 2rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.footer-brand p {
    font-size: 0.87rem;
    color: var(--muted);
    line-height: 1.7;
    margin-top: 0.9rem;
    max-width: 280px;
    font-weight: 300;
}

.footer-col h5 {
    font-family: 'Syne', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.7rem;
}

.footer-col a {
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--muted);
    flex-wrap: wrap;
    gap: 0.5rem;
}

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

/* ════════════════════════════
   RESPONSIVE — SHARED
════════════════════════════ */
@media (max-width: 860px) {
    .hero-accent-line {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cta-banner {
        padding: 3rem 2rem;
    }

    .page-hero h1 {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
    }
}

@media (max-width: 700px) {

    /* Show hamburger, hide desktop nav links */
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}