/* ==========================================================
   DataMac Technology Solutions — site stylesheet
   ==========================================================

   ONE stylesheet for every page. The portal learned this the
   hard way: 25 pages each carrying their own copy of the same
   rules is 25 chances to drift, and they did.

   Colours come from the logo, not from taste. The D mark runs
   cyan through blue to magenta, so those three are the palette
   and nothing else is invented alongside them.

   No framework, no build step, no CDN. A visitor on a phone in
   a dental practice waiting room downloads one stylesheet.
   ========================================================== */

:root {

    /* Brand — read from the logo mark */
    --cyan:        #00AEEF;
    --blue:        #0066CC;
    --magenta:     #EC008C;

    /* Navy chrome. Darker than the blue so the gradient in the
       logo still reads against it. */
    --navy:        #0B1A4A;
    --navy-deep:   #071233;

    /* Text and surfaces */
    --ink:         #121A2E;
    --ink-soft:    #4A5568;
    --ink-faint:   #8A94A6;
    --line:        #E3E8F0;
    --surface:     #FFFFFF;
    --surface-alt: #F6F8FC;

    /* Feedback */
    --good:        #047857;
    --warn:        #B45309;

    --radius:      12px;
    --radius-lg:   18px;
    --shadow:      0 1px 2px rgba(16,24,40,.06),
                   0 1px 3px rgba(16,24,40,.04);
    --shadow-lift: 0 4px 6px rgba(16,24,40,.04),
                   0 10px 24px rgba(16,24,40,.08);

    /* The content width for the whole site. Every section on
       every page is a .wrap, so this one value sets them all.

       1440px from 16 Nov 2026, up from 1180px.
       Went to 1320 first, then to 1440 the same day after
       comparing against a competitor whose content measures
       about 1480px: at 1320 the site read as narrow beside it on
       a 1920px monitor. 1440 is the standard step that matches
       without pushing headings and grids wider than they read
       comfortably.

       NOT EVERYTHING FOLLOWS IT, deliberately:
         - privacy, terms, acceptable-use and refund-policy set
           their own .lg-inner at 1180px. A legal document is read
           line by line, and a wider column makes that harder, not
           easier. Their .lg-head-inner is narrower still, at 820px.
         - the industry pages cap body text at 760-880px inside
           their sections, for the same reason.
         - .lead below is capped at 62ch regardless, so widening
           the container never stretches a paragraph past a
           comfortable measure.

       Widening this does NOT affect section backgrounds: the
       colour sits on .section / .section-alt, which are full
       width, and .wrap only constrains what is inside them. */
    --wrap:        1440px;
}

/* ----------------------------------------------------------
   Reset — the minimum, not a framework
   ---------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    /* PLUS JAKARTA SANS, site-wide from 16 Nov 2026.
       Loaded in site_header.php — see the note there for the
       weights and why display=swap is used.

       THIS REPLACED A SYSTEM STACK, and the reasoning that stack
       carried is worth keeping in view: no webfont request, and
       body copy rendered in the reader's own familiar type. That
       was the right call until the font was judged against the
       real design and preferred. It was a deliberate trade, not an
       oversight being corrected.

       The stack below is still the fallback, so if the font fails
       to load or is blocked, every page renders exactly as it did
       before — only the letterforms change.

       IF YOU DROP THE WEBFONT: remove the <link> tags in
       site_header.php as well. A font nothing uses still
       downloads. */
    font-family: 'Plus Jakarta Sans', -apple-system,
        BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ----------------------------------------------------------
   Type
   ---------------------------------------------------------- */

/* Headings are NAVY, body copy stays --ink-soft grey.
   Changed from --ink (#121A2E) on 16 Nov 2026: navy is the logo's
   own colour, so the type belongs to the brand rather than to a
   generic near-black, and the gap between a heading and the
   paragraph under it stays visible.
   Contrast is not a concern: navy on white is 16.7:1, against
   17.3:1 for the ink it replaced. Both are far above WCAG AAA.
   NOTE: any heading sitting on a dark band must still set its own
   colour. site.css colours h1/h2/h3 directly, and a rule here
   beats colour inherited from a dark parent — that is what made
   headlines invisible earlier in this build. */
h1, h2, h3, h4 {
    margin: 0 0 .6em;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--navy);
    font-weight: 700;
}

/* Display headings carry 800, not 700.
   Plus Jakarta Sans sets lighter than the system stack it replaced
   at the same numeric weight, so headings that read as bold in
   Segoe UI looked under-weighted once the typeface changed. The
   hero h1 was already overridden to 800 for exactly this reason;
   this brings every h1 and h2 on the site into line with it.

   h3 and h4 stay at 700 ON PURPOSE. They run at 1.25rem and
   1.05rem, and 800 at that size reads blocky on short titles like
   "Missed Calls" rather than confident. */
h1, h2 { font-weight: 800; }

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }

.lead {
    font-size: 1.15rem;
    color: var(--ink-soft);
    max-width: 62ch;

    /* Stops a lead ending with one word alone on the last line.
       Without it, a 104-character lead at ~91 characters per line
       leaves a 13-character orphan — which is what Section 3 of the
       homepage did before 16 Nov 2026.

       "pretty" rather than "balance": balance evens ALL the lines
       and browsers only apply it to short blocks, while pretty is
       built for body text and targets the last line specifically.
       Unsupported browsers ignore it and wrap as before, so there
       is nothing to fall back from.

       It fixes the ORPHAN, not the line count. A lead that is one
       word over a line boundary still takes the extra line — the
       fix for that is shorter copy. */
    text-wrap: pretty;
}

.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }

.eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--magenta);
    margin-bottom: .75rem;
}

/* ----------------------------------------------------------
   Layout
   ---------------------------------------------------------- */

/* width:100% with max-width is what makes this adapt on its own:
   the cap applies on a desktop, and on anything narrower the
   container simply takes the screen. The 24px padding keeps text
   off the edge at every size, so no breakpoint is needed for the
   container itself. */
.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 72px 0; }
.section-alt { background: var(--surface-alt); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .section { padding: 52px 0; }
}

/* ----------------------------------------------------------
   Buttons
   ---------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: .95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: transform .12s ease, box-shadow .12s ease,
                background .12s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

/* Magenta is the action colour throughout. One accent, used
   consistently, so a visitor learns what is clickable. */
.btn-primary {
    background: var(--magenta);
    color: #fff;
    box-shadow: 0 2px 10px rgba(236,0,140,.25);
}

.btn-primary:hover {
    background: #d4007e;
    box-shadow: 0 4px 16px rgba(236,0,140,.32);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.45);
}

.btn-outline:hover {
    background: rgba(255,255,255,.1);
    border-color: #fff;
}

.btn-ghost {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line);
    box-shadow: var(--shadow);
}

.btn-ghost:hover { background: var(--surface-alt); }

.btn-lg { padding: 16px 32px; font-size: 1.02rem; }

/* ----------------------------------------------------------
   Cards
   ---------------------------------------------------------- */

/* 17 Nov 2026: light blue border and a firmer shadow.
   WHY, because the border is the part that looks like the change
   and is not: these cards sit on a WHITE section on the homepage
   (.built), where a grey border over a 6% shadow left them all but
   invisible. The shadow is what gives them an edge there; the blue
   border ties them to the rest of the palette and to the call-flow
   nodes, which use the same #D7E6F5.

   No tinted fill. A tint was tried and it made white cards look
   dingy beside the genuinely white portal panel in Section 6.

   The shadow is written out rather than using var(--shadow)
   because that token is shared; .card needed a stronger one
   without moving everything else that reads it. It stays lighter
   than var(--shadow-lift) so .card-link:hover still lifts. */
.card {
    background: var(--surface);
    border: 1px solid #D7E6F5;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: 0 2px 4px rgba(16,24,40,.05),
                0 8px 20px rgba(11,26,74,.09);
}

/* The base shadow above is now heavier than var(--shadow-lift),
   which .card-link:hover uses - so without this, hovering a card
   would make it look FLATTER than sitting still. Scoped with
   .card so it only outranks that rule for cards, and every other
   .card-link on the site keeps the token. */
.card.card-link:hover {
    box-shadow: 0 4px 8px rgba(16,24,40,.06),
                0 16px 34px rgba(11,26,74,.14);
}

.card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform .14s ease, box-shadow .14s ease;
}

.card-link:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
}

.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

/* Icon tiles — inline SVG on a soft tint, matching the header
   dropdowns so the language is consistent across the site. */
/* ONE ICON TREATMENT: light blue tile, navy glyph.
   Adopted site-wide 16 Nov 2026, matching call-management.php,
   which already used it.

   WHY THE COLOURED VARIANTS WENT. Icons used to be tinted by
   product -- cyan for one, magenta for the other -- and the page
   got it backwards: the hero and Section 3 of index.php gave the
   AI Receptionist cyan, while Sections 4 and 5 gave it magenta.
   Two comments in that file stated the rule in opposite
   directions, and Section 4 contradicted itself between its chat
   bubbles and its own feature icons. A convention nobody can
   apply consistently is not a convention.

   It also freed up magenta. This stylesheet says magenta is the
   action colour -- "One accent, used consistently, so a visitor
   learns what is clickable" -- which cannot hold while a product's
   icons are the same colour as the buttons.

   .icon-magenta and .icon-cyan are KEPT as aliases rather than
   deleted: they are referenced across several pages, and leaving
   them pointing at the same treatment means no page breaks while
   the markup catches up. Do not give them colours again. */
.icon-tile,
.icon-magenta,
.icon-cyan {
    background: #E6F4FD;
    color: var(--navy);
}

.icon-tile {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.icon-tile svg { width: 24px; height: 24px; }

/* ----------------------------------------------------------
   Utilities
   ---------------------------------------------------------- */

.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.stack-sm > * + * { margin-top: 10px; }
.stack    > * + * { margin-top: 20px; }

.row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.row-center { justify-content: center; }

.pill {
    display: inline-block;
    padding: 5px 13px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    background: var(--surface-alt);
    color: var(--ink-soft);
    border: 1px solid var(--line);
}

.pill-soon { background: #FDE8F3; color: var(--magenta); border-color: #F9C8E2; }

.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Visible focus for keyboard users. Removing this to tidy the
   design would make the site unusable without a mouse. */
:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 2px;
    border-radius: 4px;
}

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}