/* ==========================================================================
   Datacom Systems, Inc. — site styles
   Brand blue: #0075c1  |  Accent gold: #c79a66
   Fonts: Archivo Black (display), Montserrat (body)
   ========================================================================== */

:root {
    --brand:        #0075c1;
    --brand-dark:   #005b96;
    --accent:       #c79a66;
    --ink:          #1f2933;
    --muted:        #52606d;
    --line:         #e2e6ea;
    --bg-soft:      #f5f7f9;
    --white:        #ffffff;
    --maxw:         1200px;
    --radius:       8px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ink);
    line-height: 1.6;
    background: var(--white);
}

h1, h2, h3, h4 { font-family: "Archivo Black", "Montserrat", sans-serif; line-height: 1.15; color: var(--ink); }

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

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

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding: 12px 26px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
    text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-light { background: #fff; color: var(--brand); border-color: #fff; }
.btn-light:hover { background: rgba(255,255,255,.85); }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand-logo { max-height: 52px; width: auto; }

.primary-nav .nav-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; align-items: center; gap: 0; flex-wrap: wrap;
}
.nav-item { position: relative; }
.nav-item > a,
.nav-item > .nav-parent {
    display: block; padding: 10px 9px;
    color: var(--ink); font-size: 0.84rem; font-weight: 500; white-space: nowrap;
    font-family: inherit; background: none; border: 0; cursor: pointer; line-height: inherit;
}
.nav-item > a:hover,
.nav-item > .nav-parent:hover { color: var(--brand); text-decoration: none; }
.nav-item.is-active > a,
.nav-item.is-active > .nav-parent { color: var(--brand); font-weight: 600; }

.dropdown-toggle { display: none; background: none; border: 0; }

.dropdown {
    list-style: none; margin: 0; padding: 8px 0;
    position: absolute; top: 100%; left: 0; min-width: 240px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.dropdown.align-right { left: auto; right: 0; }
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 9px 18px; color: var(--ink); font-size: 0.88rem; }
.dropdown a:hover { background: var(--bg-soft); color: var(--brand); text-decoration: none; }

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

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    color: #fff;
    background: #002a48; /* solid navy; Home & Windows-to-Android override with an image */
    background-size: cover; background-position: center;
    padding: 96px 0;
}
.hero--compact { padding: 60px 0; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: .18em; font-weight: 600; font-size: .8rem; opacity: .9; margin: 0 0 14px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0 0 18px; max-width: 18ch; color: #fff; }
.hero-lead { font-size: clamp(1.05rem, 2.2vw, 1.35rem); max-width: 40ch; margin: 0 0 28px; }
.hero-text { font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 62ch; margin: 0 0 12px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero-contact { font-size: 1rem; }
.hero-contact a { color: #fff; text-decoration: underline; }

/* ==========================================================================
   Generic sections
   ========================================================================== */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-title { text-align: center; font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin: 0 0 12px; }
.section-intro { text-align: center; max-width: 60ch; margin: 0 auto 48px; color: var(--muted); }

/* Readable prose column for text-heavy pages */
.prose { max-width: 74ch; margin: 0 auto; }
.prose p { margin: 0 0 20px; color: var(--ink); font-size: 1.05rem; }
.prose p:last-child { margin-bottom: 0; }

/* Inline contact callout */
.contact-callout {
    margin: 8px auto 0; max-width: 74ch;
    background: var(--bg-soft); border-left: 4px solid var(--brand);
    padding: 18px 22px; border-radius: var(--radius);
    font-size: 1.05rem;
}
.contact-callout p { margin: 0; }

/* Download cards (PDFs) */
.downloads { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 820px; margin: 0 auto; }
.download-card {
    display: flex; align-items: center; gap: 16px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px 20px; text-decoration: none; color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.download-card:hover { border-color: var(--brand); box-shadow: 0 8px 22px rgba(0,0,0,.08); transform: translateY(-2px); text-decoration: none; }
.download-card .doc-icon {
    flex: none; width: 44px; height: 44px; border-radius: 8px;
    background: var(--brand); color: #fff; display: grid; place-items: center;
    font-size: .72rem; font-weight: 700; letter-spacing: .04em;
}
.download-card .doc-meta strong { display: block; font-size: 1rem; }
.download-card .doc-meta span { font-size: .85rem; color: var(--muted); }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.testimonial {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 28px;
}
.testimonial::before {
    content: '\201C'; font-family: Georgia, "Times New Roman", serif;
    font-size: 3.4rem; line-height: .8; color: var(--brand); opacity: .3; display: block;
}
.testimonial blockquote { margin: 0; }
.testimonial p { margin: 6px 0 0; font-size: 1.05rem; font-style: italic; color: var(--ink); line-height: 1.6; }
@media (max-width: 640px) { .testimonials { grid-template-columns: 1fr; } }

/* Accordion (Telecom & Cloud service sections) */
.tc-accordion { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; background: #fff; overflow: hidden; }
.tc-accordion > summary {
    cursor: pointer; padding: 18px 22px; list-style: none;
    font-family: "Archivo Black", sans-serif; font-size: 1.15rem;
    display: flex; justify-content: space-between; align-items: center;
    background: var(--bg-soft); color: var(--ink);
}
.tc-accordion > summary::-webkit-details-marker { display: none; }
.tc-accordion > summary::after { content: '+'; font-size: 1.5rem; color: var(--brand); line-height: 1; }
.tc-accordion[open] > summary::after { content: '\2212'; }
.tc-accordion[open] > summary { border-bottom: 1px solid var(--line); }
.tc-body { padding: 24px 22px; max-width: none; margin: 0; }
.tc-body h4 { color: var(--brand); font-size: 1.1rem; margin: 24px 0 8px; }
.tc-body p { font-size: 1rem; }
.tc-list { margin: 0 0 18px; padding-left: 22px; }
.tc-list li { margin-bottom: 6px; color: var(--muted); }

/* Callout band (Windows to Android) */
.callout {
    background: var(--brand);
    color: #fff;
    text-align: center;
    padding: 64px 0;
}
.callout h2 { color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin: 0 0 16px; }
.callout p { max-width: 60ch; margin: 0 auto 26px; font-size: 1.1rem; }

/* ---------- Card grid (product areas) ---------- */
.card-grid { display: grid; gap: 26px; grid-template-columns: repeat(4, 1fr); }
.grid-3 { display: grid; gap: 26px; grid-template-columns: repeat(3, 1fr); }
a.card { color: inherit; text-decoration: none; }
a.card:hover { text-decoration: none; }
.card-body .card-note { display: block; margin-top: 6px; font-size: .82rem; color: var(--muted); font-family: "Montserrat", sans-serif; font-weight: 500; }
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.1); }
.card-media { aspect-ratio: 4 / 3; background: var(--bg-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px; }
.card-body h3 { font-size: 1.05rem; margin: 0; }
.card-media.contain { background: #fff; }
.card-media.contain img { object-fit: contain; padding: 20px; }
.card--text .card-body p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }

/* ---------- About / feature rows ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature-row.reverse .feature-media { order: 2; }
.feature-media img { border-radius: var(--radius); width: 100%; }
.feature-body h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 18px; }
.feature-body > p { color: var(--muted); font-size: 1.05rem; margin: 0 0 20px; }
.feature-body > p:last-child { margin-bottom: 0; }
.feature-list { display: grid; gap: 26px; margin-top: 8px; }
.feature-list h3 { font-size: 1.15rem; margin: 0 0 6px; color: var(--brand); }
.feature-list p { margin: 0; color: var(--muted); }

/* ==========================================================================
   Contact section
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info p { margin: 0 0 14px; }
.contact-form label { display: block; font-weight: 600; margin: 0 0 6px; font-size: .92rem; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 12px 14px; margin-bottom: 18px;
    border: 1px solid var(--line); border-radius: var(--radius);
    font: inherit; font-size: 1rem; background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Standalone form card (trade-in, order, quote) */
.form-card { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.form-intro { text-align: center; max-width: 60ch; margin: 0 auto 32px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-note { font-size: .85rem; color: var(--muted); }
.form-status { padding: 14px 16px; border-radius: var(--radius); margin-bottom: 18px; }
.form-status.ok { background: #e6f4ea; color: #1e6b34; }
.form-status.err { background: #fce8e6; color: #a50e0e; }

/* Responsive map / video wrappers */
.embed-responsive { position: relative; width: 100%; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; }
.embed-responsive iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Two-up video row */
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 820px) { .video-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #10222f; color: #cbd5dd; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer-heading { color: #fff; font-size: 1.2rem; margin: 0 0 14px; }
.site-footer a { color: #8ecdf3; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding: 20px 0; font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1100px) {
    .nav-toggle { display: flex; }
    .primary-nav {
        position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 24px rgba(0,0,0,.1);
        max-height: 0; overflow: hidden; transition: max-height .25s ease;
    }
    .primary-nav.open { max-height: 85vh; overflow-y: auto; }
    .primary-nav .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
    .nav-item { border-bottom: 1px solid var(--line); }
    .nav-item > a,
    .nav-item > .nav-parent { padding: 14px 20px; font-size: 1rem; text-align: left; }
    .has-dropdown { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
    .has-dropdown > a { flex: 1; }
    .has-dropdown > .nav-parent { flex: 1; display: flex; justify-content: space-between; align-items: center; }
    .dropdown-toggle { display: block; padding: 14px 20px; font-size: 1rem; color: var(--muted); }
    .dropdown, .dropdown.align-right {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: 0; border-radius: 0; width: 100%; left: auto; right: auto;
        background: var(--bg-soft); padding: 0;
        max-height: 0; overflow: hidden; transition: max-height .2s ease;
    }
    .dropdown.open { max-height: 500px; }
    .dropdown a { padding-left: 34px; }
}

@media (max-width: 640px) {
    .card-grid { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .downloads { grid-template-columns: 1fr; }
    .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: 26px; }
    .feature-row.reverse .feature-media { order: 0; }
    .contact-grid, .footer-grid { grid-template-columns: 1fr; }
    .hero { padding: 64px 0; }
    .section { padding: 52px 0; }
}
