/* Call Center Group - public website
   Hybrid theme: the original Looka/Duda layout (photo bands, centered pipe
   nav, square buttons, warm-gray band) in the portal palette (navy #243a51,
   gold #c9a961) with Poppins replacing the Alice serif.
   Layout is full-page-width and responsive. */

:root {
    --navy: #243a51;          /* portal navy - buttons, header, footer */
    --navy-hover: #1a2a3d;
    --gold: #c9a961;          /* portal gold - accents, active states */
    --gold-light: #dcc082;
    --gold-dark: #a88c4a;
    --band: #e0e0db;          /* warm gray section (from the original site) */
    --ink: #1f2531;           /* headings */
    --body: #666666;          /* body text (site's original gray) */
    --line: #d9dce2;
    --white: #ffffff;
    --danger: #b00020;
    --success: #1f7a4d;
    /* Full-page width: no cap, just symmetric side padding (same convention
       as the portal). Prose surfaces opt back in to a readable measure. */
    --pad: clamp(1.25rem, 3vw, 3rem);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--white);
    font-family: 'Poppins', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: var(--body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

h1, h2, h3, h4 {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.25;
    margin: 0 0 1rem;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); }
p  { margin: 0 0 1rem; }

a { color: var(--navy); text-decoration: none; transition: color .15s, opacity .15s; }
a:hover { opacity: .8; }

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

.container {
    width: 100%;
    padding-left: var(--pad);
    padding-right: var(--pad);
}

/* ---------- Buttons (square, deep navy - as on the original site) ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 154px;
    min-height: 56px;
    padding: .6rem 2rem;
    background: var(--navy);
    color: #fff !important;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: .02em;
    border: none;
    border-radius: 0;                 /* square corners, like the original */
    cursor: pointer;
    text-decoration: none;
    transition: opacity .15s, background .15s;
}
.btn:hover { background: var(--navy-hover); box-shadow: 0 0 0 3px rgba(201, 169, 97, .35); opacity: 1; }
.btn:disabled { opacity: .6; cursor: default; }

.btn--gold {
    background: var(--gold);
    color: var(--navy) !important;
    font-weight: 600;
}
.btn--gold:hover { background: var(--gold-light); box-shadow: 0 0 0 3px rgba(201, 169, 97, .35); }

/* ---------- Header (navy band, centered pipe-separated nav) ---------- */
.site-header {
    background: var(--navy);
    border-bottom: 2px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .container {
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: 96px;
}
.site-header .brand { flex: 0 0 auto; }
.site-header .brand img { height: 60px; width: auto; }

.site-nav {
    display: flex;
    align-items: center;
    margin-left: auto;               /* logo hard left, links hard right - spans any width */
}
.site-nav a {
    color: #fff;
    font-size: 1rem;
    font-weight: 400;
    padding: .5rem 1.35rem;
    position: relative;
    white-space: nowrap;
}
.site-nav a + a::before {           /* the vertical pipe separators */
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 1.05em;
    width: 2px;
    background: rgba(255, 255, 255, .85);
}
.site-nav a:hover { color: var(--gold-light); opacity: 1; }
.site-nav a.active { color: var(--gold); text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1.5px; text-decoration-color: var(--gold); }

.site-nav .nav-portal {
    margin-left: 1.25rem;
    padding: .45rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, .5);
    font-size: .85rem;
}
.site-nav .nav-portal::before { display: none !important; }
.site-nav .nav-portal:hover { border-color: var(--gold); color: var(--gold-light); opacity: 1; }

.nav-toggle {
    display: none;
    margin-left: auto;
    background: none;
    border: 1px solid rgba(255, 255, 255, .5);
    color: #fff;
    padding: .45rem .7rem;
    cursor: pointer;
    font-size: 1.15rem;
    line-height: 1;
}

@media (max-width: 900px) {
    .site-header .container { min-height: 76px; }
    .site-header .brand img { height: 48px; }
    .nav-toggle { display: inline-block; }
    .site-nav {
        display: none;
        position: absolute;
        left: 0; right: 0; top: 100%;
        flex-direction: column;
        align-items: stretch;
        background: var(--navy);
        border-top: 1px solid rgba(255, 255, 255, .2);
        padding: .5rem 0 1rem;
        margin: 0;
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: .8rem var(--pad); }
    .site-nav a + a::before { display: none; }
    .site-nav .nav-portal { margin: .75rem var(--pad) 0; text-align: center; justify-content: center; display: flex; }
}

/* ---------- Hero bands ---------- */
.hero {
    position: relative;
    display: flex;
    align-items: flex-end;              /* headline low on the photo, like the original */
    min-height: clamp(420px, 72vh, 780px);
    background-size: cover;
    background-position: center;
    color: #fff;
}
.hero::before {                          /* subtle dark wash for legibility */
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(42, 40, 41, .28);
}
.hero .container {
    position: relative;
    padding-top: 6rem;
    padding-bottom: 3.5rem;
}
.hero h1 {
    color: #fff;
    max-width: 24ch;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 14px rgba(0, 0, 0, .35);
}
.hero .lead {
    color: rgba(255, 255, 255, .92);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    max-width: 52ch;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .4);
}
.hero .actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.75rem; }

.hero--home { background-image: url('../images/hero.jpg'); }
.hero--services {
    background-image: url('../images/band-services.jpg');
    align-items: center;
    text-align: center;
}
.hero--services .container { padding-top: 4rem; padding-bottom: 4rem; }
.hero--services::before { background: rgba(37, 53, 81, .45); }
.hero--services h1 { margin: 0 auto; max-width: 26ch; }

/* ---------- Warm-gray intro band (two columns) ---------- */
.band {
    background: var(--band);
    padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.band .cols {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(2rem, 5vw, 6rem);
    align-items: center;
}
.band h2 { margin: 0; }
.band .cols > p { margin: 0; font-size: 1.05rem; }
@media (max-width: 820px) { .band .cols { grid-template-columns: 1fr; } }

/* ---------- Full-bleed photo statement band (parallax on desktop) ---------- */
.photo-band {
    position: relative;
    background-image: url('../images/band-needs.jpg');
    background-size: cover;
    background-position: center 30%;
    padding: clamp(6rem, 16vw, 13rem) 0;
    color: #fff;
}
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
    .photo-band { background-attachment: fixed; }   /* the original's parallax */
}
.photo-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(37, 53, 81, .45);
}
.photo-band .container { position: relative; }
.photo-band h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin-bottom: .5rem; }
.photo-band p { color: rgba(255, 255, 255, .95); font-size: clamp(1rem, 1.5vw, 1.25rem); margin: 0 0 1.75rem; }

/* ---------- Split section (photo card one side, text the other) ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

.split {
    display: grid;
    grid-template-columns: minmax(0, 460px) 1fr;
    gap: clamp(2rem, 6vw, 6rem);
    align-items: center;
}
.split .photo img {
    width: 100%;
    aspect-ratio: 4 / 5;               /* the original's tall photo crop */
    object-fit: cover;
}
.split .copy h2 { margin-bottom: .75rem; }
.split .copy p { margin-bottom: 2rem; }
@media (max-width: 820px) {
    .split { grid-template-columns: 1fr; }
    .split .photo img { aspect-ratio: 16 / 10; }
}

/* ---------- Service cards (white, thin shadow, underlined headings) ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
}
.card {
    background: #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .18);
    padding: 2.25rem 2.25rem 2rem;
}
.card h3 {
    text-align: center;
    text-decoration: underline;        /* as on the original services page */
    text-underline-offset: 8px;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--gold);
    margin-bottom: 1.5rem;
}
.card ul {
    list-style: disc;
    margin: 0;
    padding-left: 1.2rem;
}
.card li { margin: .45rem 0; }

/* ---------- Contact ---------- */
.contact-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: clamp(2.5rem, 6vw, 7rem);
    align-items: start;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-intro h1 { margin-bottom: 1.5rem; }
.contact-intro p { margin-bottom: .5rem; }
.contact-intro .phone { font-size: 1.05rem; color: var(--ink); }
.contact-intro h3 { font-size: 1rem; margin: 2rem 0 .35rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 1.35rem; }
.form-group label {
    display: block;
    font-size: .95rem;
    color: var(--ink);
    margin-bottom: .45rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    font: inherit;
    font-size: .95rem;
    color: var(--ink);
    background: #f7f7f7;               /* light-gray fill, like the original */
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 0;
    padding: .8rem .9rem;
    transition: border-color .15s, background .15s;
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, .25);
}
.form-note { font-size: .8rem; margin-top: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.captcha-slot { margin: 0 0 1.35rem; min-height: 0; }

.form-status { display: none; margin-top: 1.25rem; padding: .85rem 1rem; font-size: .95rem; }
.form-status.ok  { display: block; background: #e8f5ee; color: var(--success); border: 1px solid #bfe3cf; }
.form-status.err { display: block; background: #fdecef; color: var(--danger);  border: 1px solid #f3c1ca; }

/* ---------- Legal pages ---------- */
.legal { max-width: 60rem; margin: 0 auto; }
.legal h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.legal .meta { font-size: .9rem; margin-bottom: 2.25rem; }
.legal h2 { font-size: 1.3rem; margin-top: 2.25rem; }
.legal p, .legal li { color: var(--body); }
.legal strong { color: var(--ink); }
.legal ul { padding-left: 1.3rem; }
.legal li { margin-bottom: .4rem; }
.legal .actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; }

/* ---------- Footer (navy, three columns) ---------- */
.site-footer {
    background: var(--navy);
    border-top: 2px solid var(--gold);
    color: #fff;
    padding: 2.75rem 0;
    font-size: .95rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: center;
}
.footer-grid > div:nth-child(2) { text-align: center; }
.footer-grid > div:nth-child(3) { text-align: right; }
@media (max-width: 767px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .footer-grid > div:nth-child(2),
    .footer-grid > div:nth-child(3) { text-align: center; }
}
.site-footer img.footer-logo { height: 64px; width: auto; }
.site-footer a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(201, 169, 97, .5); }
.site-footer a:hover { color: var(--gold-light); opacity: 1; }
.site-footer p { margin: .15rem 0; }
.footer-copyright {
    margin-top: 2rem;
    text-align: center;
    font-size: .8rem;
    color: rgba(255, 255, 255, .65);
}

/* ---------- Utilities ---------- */
.center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
