/* ============================================================
   Jamison Computers — base styles
   Primary brand color: #003399
   ============================================================ */

:root {
    --brand: #003399;
    --brand-dark: #002673;
    --brand-light: #1a4fc4;
    --brand-tint: #eef2fb;
    --ink: #0f172a;
    --body: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #ffffff;
    --bg-soft: #f7f9fc;
    --white: #ffffff;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
    --shadow: 0 10px 30px rgba(15, 23, 42, .10);
    --shadow-lg: 0 20px 50px rgba(0, 51, 153, .18);
    --maxw: 1160px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--body);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 {
    color: var(--ink);
    line-height: 1.2;
    margin: 0 0 .5em;
    font-weight: 800;
    letter-spacing: -0.02em;
}

p { margin: 0 0 1rem; }

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

.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }

.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow {
    display: inline-block;
    color: var(--brand);
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.section-head p { color: var(--muted); font-size: 1.075rem; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 10px;
    font-weight: 600;
    font-size: .975rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(0, 51, 153, .25); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost-light:hover { background: #fff; color: var(--brand); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}
.brand-logo { height: 42px; width: auto; }
.footer-logo { height: 40px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); }

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.primary-nav a {
    display: block;
    padding: 10px 14px;
    color: var(--body);
    font-weight: 500;
    border-radius: 8px;
    font-size: .95rem;
}
.primary-nav a:hover { color: var(--brand); background: var(--brand-tint); }
.primary-nav a.active { color: var(--brand); font-weight: 600; }
.primary-nav .nav-cta { margin-left: 8px; }
.primary-nav .nav-cta a:hover { background: var(--brand-dark); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    width: 26px;
    height: 3px;
    background: var(--ink);
    border-radius: 3px;
    transition: transform .25s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background:
        linear-gradient(115deg, rgba(0,38,115,.94) 0%, rgba(0,51,153,.86) 45%, rgba(26,79,196,.78) 100%),
        url('../img/hero.jpg') center/cover no-repeat;
    color: #fff;
    overflow: hidden;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 48px;
    align-items: center;
    padding: 96px 0;
}
.hero h1 {
    color: #fff;
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    margin-bottom: 20px;
}
.hero p.lead {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, .9);
    margin-bottom: 32px;
    max-width: 560px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.3);
    padding: 7px 16px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .03em;
    margin-bottom: 24px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats {
    display: flex;
    gap: 36px;
    margin-top: 44px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,.2);
}
.hero-stats .stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}
.hero-stats .stat span { font-size: .9rem; color: rgba(255,255,255,.8); }

.hero-card {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: var(--radius-lg);
    padding: 28px;
    backdrop-filter: blur(6px);
}
.hero-card h3 { color: #fff; font-size: 1.15rem; margin-bottom: 18px; }
.hero-card ul { list-style: none; margin: 0; padding: 0; }
.hero-card li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255,255,255,.14);
    color: rgba(255,255,255,.92);
    font-size: .97rem;
}
.hero-card li:last-child { border-bottom: 0; }
.hero-card li .check {
    flex: none;
    width: 22px; height: 22px;
    background: #fff; color: var(--brand);
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: .8rem; font-weight: 800;
}

/* ---------- Feature (value props) ---------- */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.feature {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .icon {
    width: 54px; height: 54px;
    border-radius: 14px;
    background: var(--brand-tint);
    color: var(--brand);
    display: grid; place-items: center;
    margin-bottom: 18px;
    font-size: 1.5rem; font-weight: 800;
}
.feature .icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--muted); margin: 0; }

/* ---------- Category cards ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.cat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-card .thumb {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--brand-tint), #dbe4f7);
    position: relative;
    overflow: hidden;
}
.cat-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-card .thumb .ph-icon {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    color: var(--brand);
    opacity: .5;
}
.cat-card .thumb .ph-icon svg { width: 56px; height: 56px; }
.cat-card .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.cat-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.cat-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.cat-card .card-link {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
}

/* ---------- Brand strip ---------- */
.brand-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 18px 40px;
}
.brand-chip {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--muted);
    letter-spacing: .02em;
    padding: 10px 6px;
    filter: grayscale(1);
    opacity: .7;
    transition: opacity .2s ease, color .2s ease;
}
.brand-chip:hover { opacity: 1; color: var(--brand); }

/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(115deg, var(--brand-dark), var(--brand) 60%, var(--brand-light));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 56px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-band p { color: rgba(255,255,255,.9); font-size: 1.1rem; max-width: 620px; margin: 0 auto 28px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1220; color: #cbd5e1; margin-top: 0; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding: 64px 24px 48px;
}
.footer-about p { color: #94a3b8; font-size: .95rem; }
.footer-address { margin-top: 10px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #cbd5e1; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    flex-wrap: wrap;
}
.footer-bottom p { margin: 0; font-size: .85rem; color: #94a3b8; }
.footer-legal { max-width: 620px; }
.footer-legal a { color: #cbd5e1; text-decoration: underline; }

/* ---------- Brand logo images (strip + grid) ---------- */
.brand-logo-img {
    height: 34px;
    width: auto;
    opacity: .55;
    filter: grayscale(1);
    transition: opacity .2s ease, filter .2s ease;
}
.brand-logo-img:hover { opacity: 1; filter: none; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
    background: linear-gradient(115deg, var(--brand-dark), var(--brand) 70%, var(--brand-light));
    color: #fff;
    padding: 64px 0;
}
.page-hero .breadcrumb { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 12px; }
.page-hero .breadcrumb a { color: rgba(255,255,255,.9); }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.5vw, 2.8rem); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.9); font-size: 1.1rem; max-width: 680px; margin: 0; }

/* ---------- Two-column content ---------- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }
.split h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.prose p { color: var(--body); }
.prose ul { padding-left: 0; list-style: none; margin: 20px 0; }
.prose ul li {
    position: relative;
    padding: 8px 0 8px 34px;
    color: var(--body);
}
.prose ul li::before {
    content: '\2713';
    position: absolute; left: 0; top: 8px;
    width: 22px; height: 22px;
    background: var(--brand-tint); color: var(--brand);
    border-radius: 50%; display: grid; place-items: center;
    font-size: .75rem; font-weight: 800;
}

/* ---------- Stat band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-band .stat strong { display: block; font-size: 2.4rem; color: var(--brand); font-weight: 800; }
.stat-band .stat span { color: var(--muted); font-weight: 500; }

/* ---------- Products (full page) ---------- */
.product-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: center;
    padding: 40px 0;
    scroll-margin-top: 90px;
}
.product-row:nth-child(even) .product-media { order: 2; }
.product-row img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.product-row h3 { font-size: 1.5rem; }
.product-row .tag {
    display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--brand); background: var(--brand-tint);
    padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}
.product-row + .product-row { border-top: 1px solid var(--line); }

/* ---------- Brands grid ---------- */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.brand-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    aspect-ratio: 3 / 2;
    display: grid;
    place-items: center;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.brand-card img { max-height: 46px; max-width: 80%; width: auto; }
.brand-card .brand-name { font-weight: 800; font-size: 1.3rem; color: var(--brand); letter-spacing: -.02em; }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.service {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 32px; box-shadow: var(--shadow-sm); display: flex; gap: 20px;
}
.service .icon {
    flex: none; width: 52px; height: 52px; border-radius: 14px;
    background: var(--brand-tint); color: var(--brand); display: grid; place-items: center;
}
.service .icon svg { width: 26px; height: 26px; }
.service h3 { font-size: 1.2rem; margin-bottom: 6px; }
.service p { color: var(--muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--line); border-radius: var(--radius);
    margin-bottom: 14px; background: #fff; overflow: hidden;
}
.faq-item summary {
    cursor: pointer; padding: 20px 24px; font-weight: 600; color: var(--ink);
    list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+'; font-size: 1.5rem; color: var(--brand); font-weight: 400; line-height: 1; transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--body); }
.faq-item .faq-body p { margin: 0; }

/* ---------- Forms ---------- */
.form-wrap {
    display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: start;
}
.form-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 36px; box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--ink); }
.field label .req { color: #dc2626; }
.field input, .field select, .field textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
    font: inherit; color: var(--ink); background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,51,153,.12);
}
.field textarea { min-height: 130px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 4px; }

.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 22px; font-size: .95rem; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.alert ul { margin: 8px 0 0; padding-left: 20px; }

.contact-aside .info-block {
    background: var(--brand-tint); border-radius: var(--radius); padding: 24px; margin-bottom: 18px;
}
.contact-aside h3 { font-size: 1.1rem; margin-bottom: 6px; }
.contact-aside p { margin: 0; color: var(--body); }
.contact-aside a { font-weight: 600; }
.map-embed { border: 0; width: 100%; height: 320px; border-radius: var(--radius); }

/* ---------- Thank you ---------- */
.thanks { text-align: center; max-width: 620px; margin: 0 auto; padding: 40px 0; }
.thanks .big-check {
    width: 84px; height: 84px; border-radius: 50%; background: var(--brand-tint); color: var(--brand);
    display: grid; place-items: center; margin: 0 auto 24px; font-size: 2.6rem; font-weight: 800;
}

/* ---------- Disclaimer / legal prose ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: 1.3rem; margin-top: 32px; }
.legal p, .legal li { color: var(--body); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; padding: 72px 0; }
    .features, .card-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .split, .product-row, .form-wrap { grid-template-columns: 1fr; gap: 32px; }
    .product-row:nth-child(even) .product-media { order: 0; }
    .service-grid { grid-template-columns: 1fr; }
    .brands-grid { grid-template-columns: repeat(3, 1fr); }
    .stat-band { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
}

@media (max-width: 760px) {
    .nav-toggle { display: flex; }
    .primary-nav {
        position: fixed;
        inset: 76px 0 auto 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        transform: translateY(-120%);
        transition: transform .28s ease;
        max-height: calc(100vh - 76px);
        overflow-y: auto;
    }
    .primary-nav.open { transform: translateY(0); }
    .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 16px 20px; }
    .primary-nav li { width: 100%; }
    .primary-nav a { padding: 14px 12px; }
    .primary-nav .nav-cta { margin: 10px 0 0; }
    .primary-nav .nav-cta a { width: 100%; }
    .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .section { padding: 60px 0; }
    .cta-band { padding: 40px 24px; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
}

@media (max-width: 520px) {
    .features, .card-grid, .footer-grid { grid-template-columns: 1fr; }
    .hero-actions .btn { width: 100%; }
    .brands-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .form-card { padding: 24px; }
}
