/* ==========================================================================
   ABC Web Link theme (Concrete 9) — "bright & friendly"
   Warm off-white pages, navy ink, one orange accent, TeX Gyre Adventor
   ("Avant Garde") for display type, system sans for body.
   ========================================================================== */

@font-face {
    font-family: 'Avant Garde';
    src: url('../fonts/texgyreadventor-regular-webfont.woff') format('woff'),
         url('../fonts/texgyreadventor-regular-webfont.ttf') format('truetype');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Avant Garde';
    src: url('../fonts/texgyreadventor-bold-webfont.woff') format('woff'),
         url('../fonts/texgyreadventor-bold-webfont.ttf') format('truetype');
    font-weight: 700; font-style: normal; font-display: swap;
}

:root {
    --bg: #f8f5ef;
    --bg-alt: #f1ece2;
    --surface: #ffffff;
    --ink: #172033;
    --navy: #1d3a6b;
    --navy-deep: #12264a;
    --muted: #5b6577;
    --line: #e4ddd0;
    --accent: #f2711c;
    --accent-hover: #d8600f;
    --accent-soft: #fdebdd;
    --display: 'Avant Garde', 'Century Gothic', 'URW Gothic', 'Futura', system-ui, sans-serif;
    --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --measure: 1120px;
    --prose: 760px;
    --radius: 16px;
    --shadow: 0 1px 2px rgba(23, 32, 51, .06), 0 8px 24px rgba(23, 32, 51, .08);
    --shadow-lift: 0 2px 4px rgba(23, 32, 51, .08), 0 18px 40px rgba(23, 32, 51, .14);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-family: var(--body); font-size: 106.25%; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); }
.ccm-page { min-height: 100vh; display: flex; flex-direction: column; }
.ccm-page img { max-width: 100%; height: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; padding: .5rem 1rem; background: var(--navy); color: #fff; }
.skip-link:focus { left: .5rem; top: .5rem; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
.ccm-page a { color: var(--navy); text-decoration: underline; text-decoration-color: rgba(29, 58, 107, .35); text-underline-offset: .15em; }
.ccm-page a:hover, .ccm-page a:focus-visible { text-decoration-color: currentColor; }
.ccm-page .noline, .ccm-page a.noline, .ccm-page .noline a { text-decoration: none !important; }

.ccm-page p { line-height: 1.65; margin: 1rem 0 0; }
.ccm-page ul, .ccm-page ol { margin: 1.1rem 0; padding-left: 1.3rem; line-height: 1.65; }
.ccm-page ul ul, .ccm-page ol ol, .ccm-page ul ol, .ccm-page ol ul { margin: 0; }
.ccm-page blockquote { margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 4px solid var(--accent); color: var(--muted); font-size: 1.1rem; }

.ccm-page h1, .ccm-page h2, .ccm-page h3, .ccm-page h4 { font-family: var(--display); font-weight: 700; color: var(--ink); line-height: 1.1; letter-spacing: -.015em; margin: 2.75rem 0 0; }
.ccm-page h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); margin-top: 0; }
.ccm-page h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
.ccm-page h3 { font-size: 1.35rem; letter-spacing: 0; }
.ccm-page h4 { font-size: 1.05rem; letter-spacing: 0; }
.ccm-page h1:first-child, .ccm-page h2:first-child, .ccm-page h3:first-child { margin-top: 0; }
.ccm-page h1 + p, .ccm-page h2 + p, .ccm-page h3 + p { margin-top: .75rem; }

.ccm-page .lead { font-size: 1.3rem; line-height: 1.5; color: var(--muted); }
.ccm-page .small { font-size: .85em; color: var(--muted); }
.ccm-page .eyebrow { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--accent-hover); margin: 0 0 .5rem; }
.ccm-page .hug { margin-top: 0; }
.ccm-page code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }

.two-col   { column-count: 2; column-gap: 2rem; }
.three-col { column-count: 3; column-gap: 2rem; }
@media (max-width: 800px) { .three-col { column-count: 2; } }
@media (max-width: 600px) { .two-col, .three-col { column-count: 1; } }

/* Tables (pricing) */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 1.25rem; border-radius: 12px; box-shadow: var(--shadow); background: var(--surface); }
.ccm-page table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ccm-page th, .ccm-page td { padding: .65rem .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.ccm-page thead th { font-family: var(--display); font-weight: 700; background: var(--navy); color: #fff; border: 0; }
.ccm-page table.stripe tr.section th { background: var(--accent-soft); color: var(--accent-hover); font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; padding-top: .8rem; }
.ccm-page table.stripe tbody tr:hover td { background: #fbf9f5; }
@media (max-width: 650px) { .ccm-page table.stripe th:first-child, .ccm-page table.stripe td:first-child { min-width: 9rem; } }

/* Buttons */
.ccm-page .btn, .ccm-page .btn-primary, .ccm-page button[type=submit], .ccm-page input[type=submit] {
    display: inline-block; padding: .8rem 1.5rem; border-radius: 999px; border: 2px solid var(--accent);
    background: var(--accent); color: #fff; font: 700 1rem var(--display); cursor: pointer; text-decoration: none;
    transition: transform .15s, background .15s, box-shadow .15s;
}
.ccm-page .btn:hover, .ccm-page .btn-primary:hover, .ccm-page button[type=submit]:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(242, 113, 28, .3); }
.ccm-page .btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.ccm-page .btn--ghost:hover { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { max-width: var(--measure); margin: 0 auto; padding: .7rem 1.25rem; display: flex; align-items: center; gap: 1.5rem; }
.site-header .logo { display: block; flex: 0 0 auto; margin-right: auto; text-decoration: none; }
.site-header .logo img { display: block; height: 42px; width: auto; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.site-nav ul li { margin: 0; }
.site-nav ul li a { display: inline-block; padding: .5rem .85rem; border-radius: 999px; color: var(--ink); text-decoration: none; font: 700 .95rem var(--display); text-transform: lowercase; transition: background .15s, color .15s; }
.site-nav ul li a:hover, .site-nav ul li a:focus-visible { background: var(--bg-alt); }
.site-nav ul li.nav-selected > a, .site-nav ul li.nav-path-selected > a { background: var(--navy); color: #fff; }
.site-nav ul li:last-child a { background: var(--accent); color: #fff; margin-left: .35rem; }
.site-nav ul li:last-child a:hover { background: var(--accent-hover); }

.menu-toggle { display: none; background: transparent; border: 2px solid var(--navy); color: var(--navy); border-radius: 999px; padding: .45rem .9rem; font: 700 .9rem var(--display); cursor: pointer; align-items: center; gap: .5rem; }
.menu-toggle__bars { display: inline-block; width: 16px; height: 2px; background: currentColor; position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ''; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; }
.menu-toggle__bars::before { top: -5px; }
.menu-toggle__bars::after { top: 5px; }

@media (max-width: 860px) {
    .menu-toggle { display: inline-flex; }
    .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: .75rem 1.25rem 1rem; }
    .site-nav.is-open { display: block; }
    .site-nav ul { flex-direction: column; align-items: stretch; gap: .25rem; }
    .site-nav ul li a { display: block; font-size: 1.05rem; padding: .7rem 1rem; }
    .site-nav ul li:last-child a { margin-left: 0; text-align: center; }
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.site-main { flex: 1 0 auto; }
.site-main__inner { max-width: var(--measure); margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) 1.25rem 4rem; }
/* Inner pages: comfortable reading width for text, full width for tables/grids. */
.page-inner .site-main__inner > * { max-width: var(--prose); }
.page-inner .site-main__inner > .wide, .page-inner .site-main__inner .portfolio, .page-inner .site-main__inner .table-scroll, .page-inner .site-main__inner .map-embed { max-width: none; }
.page-inner .site-main__inner h1 { max-width: none; }
.page-past-work .site-main__inner > *, .page-inner.page-past-work .site-main__inner > * { max-width: none; }
.page-past-work .site-main__inner > p.lead { max-width: var(--prose); }

/* Sections used by the home page content blocks */
.section { padding: clamp(2.5rem, 6vw, 5rem) 1.25rem; }
.section__inner { max-width: var(--measure); margin: 0 auto; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3, .section--navy p { color: #fff; }
.section--navy a { color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section-head h2 { margin: 0; }

/* Hero */
.hero { padding: clamp(3rem, 9vw, 7rem) 1.25rem clamp(2rem, 5vw, 4rem); }
.hero__inner { max-width: var(--measure); margin: 0 auto; }
.hero h1 { font-size: clamp(2.75rem, 7.5vw, 5.5rem); max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { max-width: 40ch; font-size: clamp(1.1rem, 2vw, 1.4rem); }
.hero__meta { margin-top: 2rem; display: flex; gap: 1.5rem 2.5rem; flex-wrap: wrap; color: var(--muted); font-size: .95rem; }
.hero__meta strong { display: block; font: 700 1.6rem var(--display); color: var(--ink); }

/* Feature cards */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.features li { margin: 0; background: var(--surface); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.features h3 { margin: .25rem 0 0; }
.features p { margin-top: .6rem; color: var(--muted); }
.features .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-hover); display: grid; place-items: center; font: 700 1.3rem var(--display); }

/* Callout */
.callout { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.5rem, 4vw, 3rem); display: grid; gap: 1.5rem; grid-template-columns: 1.4fr 1fr; align-items: center; }
.callout__price { font: 700 clamp(2.4rem, 5vw, 3.5rem) var(--display); color: var(--navy); line-height: 1; }
.callout__price small { display: block; font: 400 .95rem var(--body); color: var(--muted); margin-top: .5rem; }
@media (max-width: 700px) { .callout { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Portfolio
   -------------------------------------------------------------------------- */
.portfolio { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.portfolio--strip { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.portfolio li { margin: 0; }
.portfolio a { display: block; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.portfolio a:hover, .portfolio a:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.portfolio img { display: block; width: 100%; aspect-ratio: 8 / 5; object-fit: cover; object-position: top; background: #eee; border-bottom: 1px solid var(--line); }
.portfolio .portfolio__label { display: flex; flex-direction: column; gap: .15rem; padding: .85rem 1rem 1rem; line-height: 1.3; }
.portfolio .portfolio__name { font: 700 1rem var(--display); }
.portfolio .portfolio__year { color: var(--muted); font-size: .85rem; }
.portfolio-year { display: flex; align-items: baseline; gap: 1rem; margin-top: 3rem; padding-top: 1rem; border-top: 2px solid var(--line); }
.portfolio-year h2 { margin: 0; }
.portfolio-year span { color: var(--muted); }

/* Team card (About) */
.team { display: flex; gap: 2rem; align-items: flex-start; margin-top: 1.5rem; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.75rem; }
.team__photo { flex: 0 0 160px; }
.team__photo img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.team__body h3 { margin-top: 0; }
.team__body p:first-of-type { margin-top: .25rem; color: var(--muted); }
@media (max-width: 600px) { .team { flex-direction: column; align-items: center; text-align: center; } }

/* Contact */
.contact-card { font-size: 1.15rem; line-height: 1.7; margin-top: 1rem; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.75rem; display: inline-block; }
.map-embed { margin-top: 2rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-embed iframe { display: block; width: 100%; height: 420px; border: 0; }

/* Forms (core express form block uses Bootstrap 5 class names) */
.ccm-page fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.ccm-page form label, .ccm-page .form-label, .ccm-page .control-label { display: block; margin-bottom: .3rem; font: 700 .95rem var(--display); }
.ccm-page .form-group, .ccm-page .mb-3 { margin-bottom: 1.1rem; }
.ccm-page .form-control, .ccm-page input[type=text], .ccm-page input[type=email], .ccm-page input[type=tel], .ccm-page input[type=password], .ccm-page input[type=number], .ccm-page textarea, .ccm-page select {
    width: 100%; padding: .7rem .8rem; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit;
}
.ccm-page .form-control:focus, .ccm-page input:focus, .ccm-page textarea:focus { outline: 3px solid rgba(242, 113, 28, .35); border-color: var(--accent); }
.ccm-page .form-text, .ccm-page .help-block, .ccm-page .text-muted { font-size: .85em; color: var(--muted); }
.ccm-page .alert { padding: .9rem 1rem; border-radius: 10px; margin-bottom: 1rem; border: 1px solid var(--line); background: var(--surface); }
.ccm-page .alert-success { border-color: #4caf50; background: #eef8ee; }
.ccm-page .alert-danger, .ccm-page .alert-error { border-color: #e05252; background: #fdeeee; }
.ccm-page .text-danger { color: #b3261e; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .85); margin-top: auto; }
.site-footer__inner { max-width: var(--measure); margin: 0 auto; padding: 3rem 1.25rem 2rem; display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr; }
.site-footer a { color: #fff; }
.site-footer .footer-logo img { height: 40px; width: auto; display: block; margin-bottom: 1rem; }
.site-footer p { margin: .35rem 0 0; line-height: 1.6; }
.site-footer h4 { font: 700 .8rem var(--display); text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 255, 255, .6); margin: 0 0 .5rem; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.site-footer__bottom-inner { max-width: var(--measure); margin: 0 auto; padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: rgba(255, 255, 255, .6); }
.site-footer__credit { display: flex; align-items: flex-end; gap: 1.25rem; height: 30px; }
.site-footer__credit a { display: block; height: 30px; opacity: .6; }
.site-footer__credit a:hover, .site-footer__credit a:focus-visible { opacity: 1; }
.site-footer__credit img { height: 30px; width: auto; display: block; }
.site-footer__credit #Admin { width: 36px; overflow: hidden; position: relative; }
.site-footer__credit #Admin img { height: 60px; position: absolute; left: 0; top: 0; }
.site-footer__credit #Admin:hover img { top: -30px; }
@media (max-width: 760px) { .site-footer__inner { grid-template-columns: 1fr; gap: 1.5rem; } }

/* --------------------------------------------------------------------------
   Cookie consent (vanilla-cookieconsent) — light brand
   -------------------------------------------------------------------------- */
#cc-main {
    --cc-bg: #fff; --cc-primary-color: var(--ink); --cc-secondary-color: var(--muted);
    --cc-btn-primary-bg: var(--accent); --cc-btn-primary-color: #fff; --cc-btn-primary-hover-bg: var(--accent-hover); --cc-btn-primary-border-color: var(--accent);
    --cc-btn-secondary-bg: var(--bg-alt); --cc-btn-secondary-color: var(--ink); --cc-btn-secondary-hover-bg: var(--line);
    --cc-toggle-on-bg: var(--accent); --cc-cookie-category-block-bg: var(--bg); --cc-font-family: var(--body); --cc-modal-border-radius: 16px; --cc-btn-border-radius: 999px;
}

@media print {
    .site-nav, .menu-toggle, .site-footer__credit, .site-footer { display: none; }
}
