/* ============================================================
   Zippy IT Solutions — design tokens
   ============================================================ */
:root {
    --bg: #FAFBFD;
    --surface: #FFFFFF;
    --ink: #0A1A2F;
    --body: #3E5570;
    --azure: #0078D4;
    --azure-deep: #004E8C;
    --sky: #50B8E8;
    --line: #DCE6F0;
    --line-soft: #EAF0F7;

    --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
    --font-body: "Inter", "Segoe UI", sans-serif;
    --font-mono: "IBM Plex Mono", Consolas, monospace;

    --container: 1120px;
    --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--body);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.12;
    letter-spacing: -0.015em;
}

a { color: var(--azure); text-decoration: none; }
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--azure);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* Eyebrow labels */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--azure);
    margin-bottom: 16px;
}
.eyebrow::before {
    content: "// ";
    color: var(--sky);
}
.eyebrow-light { color: #9DD4F5; }
.eyebrow-light::before { color: #9DD4F5; }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 251, 253, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
}
.brand-logo {
    height: 42px;
    width: auto;
    display: block;
}
.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
}
.brand-name em {
    font-style: normal;
    font-weight: 400;
    color: var(--body);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}
.site-nav a {
    color: var(--ink);
    font-weight: 500;
    font-size: 0.9375rem;
}
.site-nav a:hover { color: var(--azure); }
.site-nav .nav-cta {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--azure);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 18px;
    transition: border-color 0.2s, background 0.2s;
}
.site-nav .nav-cta:hover {
    border-color: var(--azure);
    background: #F0F7FD;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}
.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
}

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 96px 0 104px; }

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 700;
    margin-bottom: 24px;
}

.lead {
    font-size: 1.1875rem;
    max-width: 34em;
    margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
    display: inline-block;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 12px;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn-primary {
    background: var(--azure);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 120, 212, 0.28);
}
.btn-primary:hover {
    background: var(--azure-deep);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 120, 212, 0.32);
}
.btn-ghost {
    color: var(--ink);
    border: 1px solid var(--line);
    background: var(--surface);
}
.btn-ghost:hover { border-color: var(--azure); color: var(--azure); }

/* Pipeline schematic */
.pipeline { width: 100%; height: auto; }

.pipeline .wire {
    fill: none;
    stroke: var(--sky);
    stroke-width: 2;
    opacity: 0.8;
}
.pipeline .flow {
    stroke-dasharray: 5 9;
    animation: flow 1.4s linear infinite;
}
.pipeline .d1 { animation-delay: -0.35s; }
.pipeline .d2 { animation-delay: -0.7s; }
.pipeline .d3 { animation-delay: -1.05s; }

@keyframes flow {
    to { stroke-dashoffset: -14; }
}

.pipeline .chip {
    fill: var(--surface);
    stroke: var(--line);
    stroke-width: 1.5;
}
.pipeline .chip.out { stroke: var(--sky); }
.pipeline .chip-label {
    font-family: var(--font-mono);
    font-size: 14px;
    fill: var(--ink);
    text-anchor: middle;
}
.pipeline .core {
    fill: var(--azure);
}
.pipeline .core-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.16em;
    fill: #fff;
    text-anchor: middle;
}
.pipeline .core-line {
    stroke: rgba(255, 255, 255, 0.35);
    stroke-width: 1;
}
.pipeline .core-stage {
    font-family: var(--font-mono);
    font-size: 13px;
    fill: #CFE8FA;
    text-anchor: middle;
}

/* ============================================================
   Sections (shared)
   ============================================================ */
.section { padding: 96px 0; }

.section h2 {
    font-size: clamp(1.875rem, 3.4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    max-width: 20em;
}

.section-intro {
    font-size: 1.125rem;
    max-width: 36em;
    margin-bottom: 48px;
}

/* ============================================================
   Services
   ============================================================ */
.services { background: var(--surface); border-block: 1px solid var(--line-soft); }

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.card {
    background: var(--bg);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 32px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
    transform: translateY(-4px);
    border-color: var(--sky);
    box-shadow: 0 14px 32px rgba(10, 26, 47, 0.08);
}
.card-wide { grid-column: span 2; }

.card h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.card p { max-width: 52em; }
.card .tags {
    margin-top: 18px;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--azure);
}

/* ============================================================
   Approach
   ============================================================ */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 48px;
}

.approach-item {
    border-top: 3px solid var(--azure);
    padding-top: 24px;
}
.approach-item h3 {
    font-size: 1.1875rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* ============================================================
   About
   ============================================================ */
.about { background: var(--surface); border-block: 1px solid var(--line-soft); }

.about-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-copy p:not(.eyebrow) { max-width: 38em; }

.about-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.about-facts div {
    background: var(--bg);
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    padding: 20px;
}
.about-facts dt {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--azure);
    margin-bottom: 6px;
}
.about-facts dd {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--ink);
}

/* ============================================================
   Contact
   ============================================================ */
.contact {
    background: linear-gradient(135deg, var(--azure-deep), var(--azure));
}
.contact-inner { text-align: center; }
.contact h2 { color: #fff; margin-inline: auto; }
.contact p {
    color: #D7ECFB;
    max-width: 36em;
    margin: 0 auto 36px;
}
.contact-email {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: clamp(1.125rem, 2.6vw, 1.5rem);
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 14px;
    padding: 18px 36px;
    transition: background 0.2s, transform 0.15s;
}
.contact-email:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: var(--ink);
    color: #8FA5BE;
    font-size: 0.875rem;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 28px;
}
.site-footer a {
    color: #CFE8FA;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
}
.site-footer a:hover { color: #fff; }

.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0 28px;
    font-size: 0.8125rem;
    color: #6E86A3;
}

/* ============================================================
   Legal / privacy pages
   ============================================================ */
.header-mail {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--azure);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 18px;
    transition: border-color 0.2s, background 0.2s;
}
.header-mail:hover {
    border-color: var(--azure);
    background: #F0F7FD;
}

.legal { padding: 72px 0 96px; }

.legal-container { max-width: 780px; }

.legal h1 {
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 14px;
}

.legal-sub {
    font-size: 1.125rem;
    margin-bottom: 40px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.legal-body h4 {
    font-family: var(--font-display);
    color: var(--ink);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 36px 0 10px;
}
.legal-body p { margin-bottom: 14px; }
.legal-body ul { margin: 0 0 14px 24px; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 560px) {
    .header-mail { display: none; }
}

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .pipeline .flow { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn, .card, .contact-email { transition: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
    .hero { padding: 64px 0 72px; }
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-visual { max-width: 520px; margin: 0 auto; }
    .about-inner { grid-template-columns: 1fr; gap: 40px; }
    .approach-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
    .section { padding: 64px 0; }

    .card-grid { grid-template-columns: 1fr; }
    .card-wide { grid-column: span 1; }

    .nav-toggle { display: flex; }
    .site-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        padding: 16px 24px 24px;
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 10px 0; font-size: 1.0625rem; }
    .site-nav .nav-cta { margin-top: 8px; }
}
