/* ==========================================================================
   Capone Communications — site styles
   Plain CSS, no build step. Colors are taken from the company logo.
   ========================================================================== */

:root {
  --navy: #272363;
  --navy-deep: #16143a;
  --navy-ink: #0e0c26;
  --red: #ec2734;
  --red-dark: #c81d29;
  --ink: #16181d;
  --text: #3b3f4a;
  --muted: #6b7080;
  --line: #e3e5ec;
  --bg: #ffffff;
  --bg-soft: #f4f5f9;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(14, 12, 38, .06), 0 8px 24px rgba(14, 12, 38, .08);
  --max: 1200px;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--red); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: .01em;
}
h1 { font-size: clamp(1.8rem, 7.4vw, 4rem); text-transform: uppercase; }
h1, h2 { overflow-wrap: break-word; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); text-transform: uppercase; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--red); color: #fff; padding: .6rem 1rem; font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .75rem;
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.4rem;
  border-radius: 6px;
  font-family: var(--font-head);
  font-size: 1.1rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { border-color: currentColor; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }

/* Top bar ---------------------------------------------------------------- */
.topbar {
  background: var(--navy-ink);
  color: #c9cbe0;
  font-size: .9rem;
}
.topbar .container {
  display: flex; flex-wrap: wrap; gap: .25rem 1.5rem;
  justify-content: space-between; align-items: center;
  padding-block: .45rem;
}
.topbar a { color: #fff; font-weight: 600; text-decoration: none; }
.topbar a:hover { color: #ff8a92; }
.topbar .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: .45rem; box-shadow: 0 0 0 3px rgba(236,39,52,.25); }

/* Header / nav ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 76px;
}
.brand img { width: 190px; height: auto; }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--navy);
}
.nav-toggle svg { width: 30px; height: 30px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.site-nav a {
  display: block;
  padding: .55rem .85rem;
  font-family: var(--font-head);
  font-weight: 600; font-size: 1.12rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  border-radius: 6px;
}
.site-nav a:hover { color: var(--red); }
.site-nav a[aria-current="page"] { color: var(--red); }
.site-nav .btn { margin-left: .75rem; padding: .6rem 1.1rem; color: #fff; }
.site-nav .btn:hover { color: #fff; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .brand img { width: 160px; }
  .site-nav {
    position: absolute; inset: 100% 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(14,12,38,.12);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: .5rem 1.25rem 1.25rem; gap: 0; }
  .site-nav a { padding: .85rem .25rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav .btn { margin: 1rem 0 0; justify-content: center; border-bottom: 0; border-radius: 6px; }
}

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  color: #fff;
  background: var(--navy-ink) url("../img/hero-towers.webp") center 60% / cover no-repeat;
  isolation: isolate;
}
@media (max-width: 960px) { .hero { background-image: url("../img/hero-towers-960.webp"); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(14,12,38,.94) 0%, rgba(22,20,58,.82) 45%, rgba(22,20,58,.25) 100%);
}
.hero .container { padding-block: clamp(4.5rem, 11vw, 8.5rem); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero h1 span { color: var(--red); }
.hero p.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); max-width: 40rem; color: #dcdef0; }
.hero .eyebrow { color: #ff8a92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

.page-hero {
  position: relative; color: #fff; isolation: isolate;
  background: var(--navy-deep) center / cover no-repeat;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(14,12,38,.95), rgba(22,20,58,.7));
}
.page-hero .container { padding-block: clamp(3rem, 7vw, 5rem); }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 7vw, 3.4rem); margin-bottom: .3em; }
.page-hero p { color: #dcdef0; max-width: 44rem; font-size: 1.15rem; margin: 0; }
.page-hero .eyebrow { color: #ff8a92; }

/* Trust strip ------------------------------------------------------------ */
.trust {
  background: var(--navy);
  color: #fff;
}
.trust ul {
  list-style: none; margin: 0; padding: 1.4rem 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}
.trust li { display: flex; align-items: center; gap: .8rem; font-weight: 500; line-height: 1.3; }
.trust li strong { display: block; font-family: var(--font-head); font-size: 1.2rem; letter-spacing: .03em; text-transform: uppercase; }
.trust li span { font-size: .92rem; color: #c9cbe0; }
.trust svg { width: 38px; height: 38px; flex: none; color: var(--red); }
@media (max-width: 900px) { .trust ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trust ul { grid-template-columns: 1fr; } }

/* Sections --------------------------------------------------------------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.12rem; color: var(--muted); }

/* Cards ------------------------------------------------------------------ */
.card-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; }
.card .icon {
  width: 52px; height: 52px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(236,39,52,.09); color: var(--red);
  margin-bottom: 1.1rem;
}
.card .icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; color: var(--muted); font-size: 1rem; }
.card .more { margin-top: auto; padding-top: 1rem; font-family: var(--font-head); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }

/* Split feature ---------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-media.contain img { object-fit: contain; background: #fff; aspect-ratio: auto; box-shadow: none; border: 1px solid var(--line); padding: 1rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse .split-media { order: 0; } }

.stats { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 1.5rem 0 2rem; padding: 0; list-style: none; }
.stats li { font-size: .95rem; color: var(--muted); line-height: 1.2; }
.stats strong { display: block; font-family: var(--font-head); font-size: 2.4rem; color: var(--navy); line-height: 1; }

.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.checklist li { position: relative; padding-left: 1.9rem; margin-bottom: .6rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .35em;
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* Who we serve ----------------------------------------------------------- */
.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.pill-list li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1rem; font-weight: 500; }

/* Brands ----------------------------------------------------------------- */
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.brands a, .brands span {
  display: grid; place-items: center;
  height: 96px; padding: 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: box-shadow .2s, border-color .2s;
}
.brands img { max-height: 52px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.brands a:hover { box-shadow: var(--shadow); border-color: transparent; }
.brands a:hover img { filter: none; opacity: 1; }

/* Product groups --------------------------------------------------------- */
.product-group { border-top: 1px solid var(--line); padding-top: 2.5rem; margin-top: 2.5rem; display: grid; grid-template-columns: 320px 1fr; gap: 2rem; }
.product-group:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.product-group img.cat { border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; margin-bottom: 1rem; }
@media (max-width: 860px) { .product-group { grid-template-columns: 1fr; } }

/* CTA band --------------------------------------------------------------- */
.cta-band { background: linear-gradient(110deg, var(--navy-deep), var(--navy)); color: #fff; }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 3rem; }
.cta-band h2 { color: #fff; margin: 0 0 .25em; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { margin: 0; color: #c9cbe0; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Prose (services page) -------------------------------------------------- */
.prose h2 { margin-top: 0; }
.prose p { max-width: 68ch; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.8rem; color: var(--red); line-height: 1; margin-bottom: .5rem; }
.steps strong { display: block; font-family: var(--font-head); font-size: 1.2rem; color: var(--ink); text-transform: uppercase; letter-spacing: .03em; }
.steps span { color: var(--muted); font-size: .95rem; }

.spec-list { list-style: none; padding: 0; margin: 0 0 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-list li { display: grid; grid-template-columns: 200px 1fr; gap: 1rem; padding: .85rem 1.1rem; border-top: 1px solid var(--line); }
.spec-list li:first-child { border-top: 0; }
.spec-list li:nth-child(odd) { background: var(--bg-soft); }
.spec-list b { color: var(--ink); }
@media (max-width: 600px) { .spec-list li { grid-template-columns: 1fr; gap: .1rem; } }

/* Gallery ---------------------------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.gallery-grid button {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; position: relative; background: var(--navy-deep);
  aspect-ratio: 4 / 3;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .3s; }
.gallery-grid button:hover img { transform: scale(1.05); opacity: .85; }
.gallery-grid .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.5rem .9rem .7rem; text-align: left;
  background: linear-gradient(transparent, rgba(14,12,38,.85));
  color: #fff; font-weight: 500; font-size: .95rem;
}

.lightbox {
  border: 0; padding: 0; margin: 0; max-width: none; max-height: none;
  width: 100vw; height: 100vh; height: 100dvh;
  background: rgba(8, 8, 20, .94); color: #fff;
}
.lightbox::backdrop { background: rgba(8, 8, 20, .94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; max-width: min(92vw, 1400px); text-align: center; }
.lightbox img { max-width: 100%; max-height: 80vh; max-height: 80dvh; margin: 0 auto; border-radius: 6px; }
.lightbox figcaption { margin-top: .9rem; color: #d7d9ea; }
.lightbox .count { color: #8f93b3; margin-left: .6rem; font-size: .9rem; }
.lb-btn {
  position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  transition: background .2s;
}
.lb-btn:hover { background: var(--red); }
.lb-btn svg { width: 26px; height: 26px; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; } }

/* Contact ---------------------------------------------------------------- */
.contact-layout > * { min-width: 0; }
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: .35rem; font-size: .98rem; }
.field label .opt { font-weight: 400; color: var(--muted); font-size: .88rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .75rem .9rem; border: 1.5px solid #cfd2dd; border-radius: 6px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(39,35,99,.15); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--red); }
.field .err { color: var(--red-dark); font-size: .9rem; margin-top: .3rem; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .9rem; color: var(--muted); margin: 1rem 0 0; }
.alert { border-radius: 8px; padding: 1rem 1.2rem; margin-bottom: 1.5rem; font-weight: 500; }
.alert-error { background: #fdecee; color: #8f1520; border: 1px solid #f6c3c8; }
.alert-ok { background: #eaf7ee; color: #17602f; border: 1px solid #bfe5cb; }

.info-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.info-list li { display: flex; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.info-list svg { width: 24px; height: 24px; color: var(--red); flex: none; margin-top: .2rem; }
.info-list b { display: block; color: var(--ink); font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; font-size: 1.05rem; }

.team { display: grid; gap: 1rem; }
.team .person { background: var(--bg-soft); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.team .person b { display: block; color: var(--ink); font-size: 1.08rem; }
.team .person em { font-style: normal; color: var(--muted); font-size: .92rem; display: block; margin-bottom: .3rem; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--navy-ink); color: #a9acc7; font-size: .97rem; }
.site-footer a { color: #e6e7f3; text-decoration: none; }
.site-footer a:hover { color: #ff8a92; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; padding-block: 3.5rem 2.5rem; }
.footer-grid h4 { color: #fff; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .45rem; }
.footer-logo { width: 190px; margin-bottom: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.25rem; font-size: .88rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* Mobile call bar -------------------------------------------------------- */
.call-bar { display: none; }
@media (max-width: 700px) {
  .call-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    box-shadow: 0 -4px 16px rgba(14,12,38,.2);
  }
  .call-bar a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .95rem .5rem; color: #fff; text-decoration: none;
    font-family: var(--font-head); font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  }
  .call-bar svg { width: 20px; height: 20px; }
  .call-bar .call { background: var(--red); }
  .call-bar .quote { background: var(--navy); }
  body { padding-bottom: 58px; }
}

/* Utilities -------------------------------------------------------------- */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.team a, .info-list a, .footer-grid a { overflow-wrap: anywhere; }
@media (max-width: 700px) { .topbar .container > span:last-child { display: none; } }
.prose .btn { margin: 0 .5rem .6rem 0; }
