/* =====================================================================
   Placeholder Studio — white & blue theme
   Integrity: clean, trustworthy, generous whitespace, deep navy + blue.
   Passion:   a warm coral accent, energetic motion, confident type.
   ===================================================================== */

:root {
    /* Blues — the trust foundation */
    --navy:        #0b1f3a;   /* darkest text / deep sections */
    --blue:        #1d4ed8;   /* primary brand blue */
    --blue-bright: #2563eb;
    --blue-soft:   #eff4ff;   /* tinted section background */
    --blue-line:   #dbe6fb;   /* borders on white */

    /* Warm accent — the passion */
    --accent:      #ff5a3c;   /* coral */
    --accent-deep: #e8421f;

    /* Neutrals */
    --white:       #ffffff;
    --paper:       #f7f9fc;   /* page background */
    --ink:         #16263d;   /* body text */
    --muted:       #5b6b82;   /* secondary text */
    --line:        #e6ebf2;

    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body:    'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;

    --radius:   18px;
    --radius-sm:12px;
    --shadow:   0 18px 50px -24px rgba(11, 31, 58, .25);
    --shadow-sm:0 8px 24px -16px rgba(11, 31, 58, .35);
    --maxw:     1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--navy);
}
::selection { background: var(--blue); color: #fff; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.5rem; }
.section { padding: 5.5rem 0; }
.section-tint { background: var(--blue-soft); border-block: 1px solid var(--blue-line); }
.center { text-align: center; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* ---------- Typographic helpers ---------- */
.eyebrow {
    font-family: var(--font-body);
    font-weight: 600; text-transform: uppercase;
    letter-spacing: .16em; font-size: .72rem; color: var(--blue);
}
.eyebrow.center { display: block; text-align: center; }
.lead { margin-top: 1.5rem; max-width: 38rem; font-size: 1.15rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--font-body); font-weight: 600; font-size: .95rem;
    padding: .85rem 1.5rem; border-radius: 999px; cursor: pointer;
    border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-bright); transform: translateY(-2px); box-shadow: 0 16px 34px -16px rgba(29,78,216,.6); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--blue-line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }
.icon { width: 24px; height: 24px; }
.icon-sm { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.82);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-badge {
    display: block; width: 2rem; height: 2rem; border-radius: 9px;
    object-fit: cover;
}
.brand-name { font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: 1.08rem; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: .95rem; color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-cta { color: #fff !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 6rem 0 4.5rem; overflow: hidden; }
.hero-glow {
    position: absolute; inset: -30% -10% auto -10%; height: 130%;
    background:
        radial-gradient(38% 50% at 18% 12%, rgba(29,78,216,.14), transparent 70%),
        radial-gradient(40% 45% at 88% 22%, rgba(255,90,60,.12), transparent 70%);
    pointer-events: none; z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-title { font-size: clamp(2.5rem, 6.5vw, 5rem); max-width: 18ch; margin-top: 1.25rem; }
.cta-row { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Stats ---------- */
.stats {
    margin-top: 4rem; display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 1px; background: var(--line); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden;
}
.stat { background: var(--white); padding: 1.5rem 1.6rem; }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; color: var(--blue); }
.stat-label { font-size: .82rem; color: var(--muted); margin-top: .15rem; }

/* ---------- Section heads ---------- */
.section-head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 3rem; }
.section-head-center { text-align: center; align-items: center; }
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 22ch; }
.section-note { color: var(--muted); max-width: 30rem; font-size: .98rem; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Product gallery ---------- */
.product-gallery-item {
    all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column;
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    background: var(--paper); transition: transform .2s ease, box-shadow .2s ease;
}
.product-gallery-item:hover, .product-gallery-item:focus-visible {
    transform: translateY(-3px); box-shadow: var(--shadow-sm); outline: none;
}
.product-gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.product-gallery-caption { padding: .9rem 1rem 1.1rem; text-align: left; }
.product-gallery-name { display: block; font-weight: 600; color: var(--navy); font-size: .95rem; margin-bottom: .2rem; }
.product-gallery-excerpt { display: block; color: var(--muted); font-size: .85rem; line-height: 1.45; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 2rem 1.25rem; }
.lightbox[hidden] { display: none; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(11,31,58,.72); }
.lightbox-panel {
    position: relative; background: var(--white); border-radius: var(--radius);
    max-width: 720px; width: 100%; max-height: 90vh; overflow-y: auto;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.4);
}
.lightbox-image { width: 100%; display: block; }
.lightbox-body { padding: 1.5rem 1.75rem 1.85rem; }
.lightbox-body h3 { margin: 0 0 .5rem; font-family: var(--font-display); color: var(--navy); }
.lightbox-body p { margin: 0; color: var(--muted); line-height: 1.6; }
.lightbox-close {
    position: absolute; top: .85rem; right: .85rem; width: 2.2rem; height: 2.2rem;
    display: grid; place-items: center; border-radius: 999px; border: none;
    background: var(--white); box-shadow: var(--shadow-sm); cursor: pointer; color: var(--navy);
}
body.lightbox-open { overflow: hidden; }

/* ---------- Cards ---------- */
.card {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.75rem;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-line); }
.card-icon {
    width: 3rem; height: 3rem; border-radius: 12px; display: grid; place-items: center;
    background: var(--blue-soft); color: var(--blue); margin-bottom: 1.1rem;
    transition: transform .3s ease;
}
.card:hover .card-icon { transform: scale(1.08) rotate(-3deg); }
.card-icon-sm { width: 2.6rem; height: 2.6rem; margin-bottom: 0; flex-shrink: 0; }
.card-title { font-size: 1.2rem; margin-bottom: .4rem; }
.card-text { color: var(--muted); font-size: .95rem; }

.value-card { border-top: 3px solid var(--accent); }

.industry-card { display: flex; gap: 1.1rem; align-items: flex-start; }

/* ---------- Products ---------- */
.product-card { display: flex; flex-direction: column; }
.card-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.3rem; color: var(--blue); font-weight: 600; font-size: .92rem; text-decoration: none; }
.solution-grid { align-items: start; }
.solution-intro .lead { margin-top: 1rem; }
.solution-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.4rem; }
.solution-actions .btn { margin-top: 0; }
.solution-back { margin-top: 2rem; }
.card-link:hover { text-decoration: underline; }
.card-link .icon-sm { transition: transform .25s ease; }
.card-link:hover .icon-sm { transform: translateX(3px); }
.product-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.1rem; }
.pill { font-size: .72rem; color: var(--blue); background: var(--blue-soft); border-radius: 999px; padding: .25rem .7rem; font-weight: 600; }
.product-name { font-size: 1.4rem; margin-bottom: .35rem; }
.product-tagline { color: var(--accent-deep); font-weight: 600; font-size: .92rem; margin-bottom: .9rem; }
.feature-list { margin-top: 1.2rem; display: flex; flex-direction: column; gap: .6rem; }
.feature-list li { display: flex; align-items: center; gap: .65rem; font-size: .92rem; }
.feature-check { color: var(--blue); display: inline-flex; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.process-step { background: var(--white); padding: 1.8rem 1.6rem; }
.process-num { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; color: var(--accent); margin-bottom: .6rem; }

/* ---------- Clients marquee ---------- */
.section-clients { padding: 4rem 0; background: var(--white); border-block: 1px solid var(--line); }
.section-clients .eyebrow { margin-bottom: 2.25rem; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 1rem; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.client { flex-shrink: 0; width: 11rem; height: 4.75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); display: grid; place-items: center; }
.client span { font-family: var(--font-display); font-weight: 600; color: var(--muted); font-size: .95rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - .5rem)); } }

/* ---------- CTA ---------- */
.cta-card {
    position: relative; overflow: hidden; border-radius: 26px;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    color: #fff; padding: 3.5rem; box-shadow: var(--shadow);
}
.cta-card .hero-glow { opacity: .6; }
.cta-card-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-inner { position: relative; z-index: 1; max-width: 40rem; }
.cta-title { color: #fff; font-size: clamp(1.8rem, 4vw, 3rem); }
.cta-title .accent { color: #ffd2c7; }
.cta-text { color: rgba(255,255,255,.85); margin-top: 1rem; font-size: 1.1rem; }
.cta-card .btn-primary { background: #fff; color: var(--blue); }
.cta-card .btn-primary:hover { background: #ffd2c7; color: var(--accent-deep); }
.cta-card-row .btn { position: relative; z-index: 1; }

/* ---------- Page heads (solutions / contact / 404) ---------- */
.page-head { position: relative; overflow: hidden; padding: 6rem 0 3rem; }
.page-head .container { position: relative; z-index: 1; }
.page-title { font-size: clamp(2.2rem, 5.5vw, 4.25rem); margin-top: 1.1rem; }

/* ---------- Product banner / video ---------- */
.product-banner {
    position: relative; margin-top: 2.5rem; border-radius: var(--radius); overflow: hidden;
    aspect-ratio: 16 / 6; background: var(--paper); border: 1px solid var(--line);
}
.product-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-banner-empty { background: linear-gradient(135deg, var(--navy), var(--blue)); border: none; }
.product-banner-play {
    position: absolute; inset: 0; margin: auto; width: 4.25rem; height: 4.25rem;
    display: grid; place-items: center; border-radius: 999px; border: none; cursor: pointer;
    background: rgba(255,255,255,.92); color: var(--navy); box-shadow: 0 12px 30px -10px rgba(0,0,0,.5);
    transition: transform .2s ease, background .2s ease;
}
.product-banner-play:hover, .product-banner-play:focus-visible { transform: scale(1.08); background: #fff; }
.product-banner-play .icon-lg { width: 1.9rem; height: 1.9rem; }

.video-lightbox-panel { max-width: 960px; background: #000; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.video-lightbox .lightbox-close { background: rgba(255,255,255,.92); }
.center-lead { margin-inline: auto; }
.center-row { justify-content: center; }
.error-page { padding: 8rem 0; }

/* ---------- Contact ---------- */
.contact-head { padding-bottom: 5.5rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }
.contact-details { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.1rem; }
.contact-details li { display: flex; align-items: center; gap: .9rem; }
.contact-ico { width: 2.5rem; height: 2.5rem; border-radius: 12px; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); color: var(--blue); }
.contact-details a:hover { color: var(--blue); }

.form-card { box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; }
.field label { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .45rem; font-weight: 600; }
.field input, .field select, .field textarea {
    font-family: var(--font-body); font-size: .95rem; color: var(--ink);
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: .8rem .9rem; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,78,216,.12); background: #fff;
}
.field textarea { resize: vertical; }
.field-error { color: var(--accent-deep); font-size: .8rem; margin-top: .4rem; }
.form-fineprint { text-align: center; font-size: .8rem; color: var(--muted); margin-top: .9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: var(--radius-sm); padding: .9rem 1.1rem; font-size: .92rem; margin-bottom: 1.4rem; }
.alert-success { background: #e8f7ee; color: #146c43; border: 1px solid #b7e4c7; }
.alert-error { background: #fdecec; color: #a4262c; border: 1px solid #f3c1c1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; padding: 4rem 1.5rem; }
.site-footer .brand-name { color: #fff; }
.footer-tagline { margin-top: 1rem; max-width: 24rem; font-size: .92rem; }
.footer-heading { color: #fff; font-family: var(--font-body); font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1rem; }
.footer-list { display: flex; flex-direction: column; gap: .6rem; font-size: .92rem; }
.footer-list a:hover { color: #fff; }
.footer-bar { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bar-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding: 1.4rem 1.5rem; font-size: .8rem; }
.footer-socials { display: flex; gap: 1.25rem; }
.footer-socials a:hover { color: #fff; }

/* ---------- Reveal animations ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; animation: rise .75s cubic-bezier(.2,.7,.2,1) forwards; }
.d-1 { animation-delay: .05s; } .d-2 { animation-delay: .13s; }
.d-3 { animation-delay: .21s; } .d-4 { animation-delay: .29s; } .d-5 { animation-delay: .37s; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
    .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .process { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: absolute; top: 4.25rem; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; border-bottom: 1px solid var(--line);
        padding: .5rem 1.5rem 1.25rem; box-shadow: var(--shadow-sm);
        display: none;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
    .nav-cta { margin-top: .75rem; justify-content: center; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .section-head { margin-bottom: 2rem; }
    .cta-card { padding: 2.25rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 520px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; }
}
