/* public/assets/css/site.css */

/* =========================
   Design Tokens (CMYK Print House Theme)
   ========================= */
:root {
    /* Neutrals */
    --paper-white: #FAFAFC;
    --white: #FFFFFF;
    --panel-gray: #F1F3F7;
    --border-gray: #DDE2EA;

    --ink-black: #121417;
    --ink-soft: #2B2F36;
    --slate: #5B6472;
    --slate-light: #8A94A6;

    /* CMYK accents */
    --cmyk-cyan: #00AEEF;
    --cmyk-magenta: #E4007F;
    --cmyk-yellow: #FFD400;

    --cmyk-cyan-light: #D9F4FF;
    --cmyk-magenta-light: #FFE0F2;
    --cmyk-yellow-light: #FFF3B8;

    /* “Ink” */
    --cmyk-black: #111111;
    --cmyk-black-soft: #1C1F24;

    /* Gradients */
    --grad-cmyk: linear-gradient(90deg, #00AEEF 0%, #E4007F 50%, #FFD400 100%);
    --grad-cm: linear-gradient(90deg, #00AEEF 0%, #E4007F 100%);
    --grad-my: linear-gradient(90deg, #E4007F 0%, #FFD400 100%);

    /* Hero / background should feel like “paper + CMYK wash” */
    --grad-hero: linear-gradient(
            120deg,
            rgba(0, 174, 239, 0.14) 0%,
            rgba(228, 0, 127, 0.12) 36%,
            rgba(255, 212, 0, 0.14) 70%,
            rgba(250, 250, 252, 1) 100%
    );

    --grad-footer: linear-gradient(180deg, #1C1F24 0%, #111111 100%);

    /* Layout */
    --sidebar-w: 270px;

    /* Corners (reduced) */
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 10px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(18,20,23,.06);
    --shadow-md: 0 12px 34px rgba(18,20,23,.10);

    /* Motion */
    --ease: cubic-bezier(.2, .8, .2, 1);
}

/* Smooth scrolling for anchors */
html { scroll-behavior: smooth; }

/* Prevent anchored sections from hiding under sticky topbar on mobile */
:target { scroll-margin-top: 96px; }

html, body { height: 100%; }

body {
    background: var(--paper-white);
    color: var(--ink-black);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container { max-width: 1180px; }

a { color: inherit; }
a:hover { color: var(--ink-black); }

/* =========================
   Sidebar (light, Apple-ish)
   ========================= */
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    height: 100vh;
    background: rgba(250,250,252,.88);
    backdrop-filter: saturate(160%) blur(10px);
    border-right: 1px solid var(--border-gray);
    z-index: 1030;
}

.sidebar-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 18px 16px;
    gap: 10px;
}

.brand-logo { height: 50px; width: auto; }

.sidebar .nav-link {
    color: var(--ink-soft);
    padding: .55rem .6rem;
    border-radius: var(--radius-xs);
    font-weight: 500;
    letter-spacing: .1px;
}

.sidebar .nav-link:hover,
.sidebar .nav-link:focus {
    background: var(--panel-gray);
    color: var(--ink-black);
}

.sidebar-cta .btn {
    border-radius: var(--radius-xs);
}

/* =========================
   Main
   ========================= */
.main {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
}

/* =========================
   HERO = full viewport
   ========================= */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    display: flex;
    align-items: center;

    /* CMYK paper wash */
    background: var(--grad-hero);
    border-bottom: 1px solid var(--border-gray);
}

.hero-inner {
    width: 100%;
    padding: 56px 0;
}

.hero-card {
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(221,226,234,.95);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

/* subtle print-y glow around hero card */
.hero-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    pointer-events: none;
    background:
            radial-gradient(circle at 20% 20%, rgba(0,174,239,.22), transparent 45%),
            radial-gradient(circle at 70% 25%, rgba(228,0,127,.18), transparent 48%),
            radial-gradient(circle at 45% 85%, rgba(255,212,0,.20), transparent 52%);
    filter: blur(18px);
    opacity: .65;
    z-index: 0;
}

.hero-card {
    position: relative;
}

.hero-card > * {
    position: relative;
    z-index: 1;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .9rem;
    color: var(--ink-soft);
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(221,226,234,.95);
    border-radius: 999px;
    padding: .35rem .7rem;
}

.kicker-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--grad-cmyk);
    display: inline-block;
}

.hero h1 {
    letter-spacing: -0.02em;
    line-height: 1.08;
}

.hero p.lead {
    color: var(--slate);
    max-width: 52ch;
}

.hero .btn {
    border-radius: var(--radius-xs);
    font-weight: 600;
    padding: .75rem 1.05rem;
}

.hero-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

/* =========================
   Page hero for product pages
   ========================= */
.page-hero {
    padding: 72px 0 36px 0;
    background:
            radial-gradient(circle at 12% 10%, rgba(0,174,239,.14), transparent 38%),
            radial-gradient(circle at 72% 25%, rgba(228,0,127,.12), transparent 40%),
            radial-gradient(circle at 40% 90%, rgba(255,212,0,.14), transparent 42%);
    border-bottom: 1px solid var(--border-gray);
}

/* =========================
   Buttons (CMYK theme)
   ========================= */
.btn-primary-clean {
    color: var(--white) !important;
    border: none !important;

    /* CMYK gradient, print-appropriate */
    background: var(--grad-cmyk) !important;

    box-shadow:
            0 8px 18px rgba(0, 174, 239, 0.18),
            0 8px 18px rgba(228, 0, 127, 0.14),
            0 8px 18px rgba(255, 212, 0, 0.12);
}

.btn-primary-clean:hover {
    filter: brightness(.985) saturate(1.02);
    transform: translateY(-1px);
}

.btn-outline-clean {
    border: 1px solid var(--border-gray) !important;
    background: rgba(255,255,255,.72) !important;
    color: var(--ink-black) !important;
}

.btn-outline-clean:hover {
    background: rgba(255,255,255,.94) !important;
}

/* =========================
   Sections + Cards
   ========================= */
.section {
    padding: 72px 0;
}

.section-title {
    letter-spacing: -0.02em;
}

.card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.card p {
    color: var(--slate);
}

.service-tile {
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.service-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.media-rounded {
    border-radius: var(--radius-sm);
}

/* =========================
   Footer (ink black)
   ========================= */
.site-footer {
    background: var(--grad-footer);
    color: rgba(255,255,255,.9);
}

.site-footer a {
    color: rgba(255,255,255,.9);
}

.site-footer a:hover {
    color: #fff;
}

/* =========================
   Reveal animations (SAFE DEFAULT)
   Visible by default; only animates when JS adds html.js
   ========================= */
.reveal {
    opacity: 1;
    transform: none;
}

html.js .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
    will-change: opacity, transform;
}

html.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    html.js .reveal,
    html.js .reveal.is-visible {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .service-tile { transition: none !important; }
}

/* =========================
   Mobile
   ========================= */
@media (max-width: 991px) {
    .sidebar {
        position: sticky;
        width: 100%;
        height: auto;
    }
    .main { margin-left: 0; }
    .hero {
        min-height: calc(100vh - 82px);
        min-height: calc(100dvh - 82px);
    }
}