/* =========================================================
   Cover It Building — design system
   Brand: teal #398599 · lime #eae100 · grey #8b8b8a
   ========================================================= */

:root {
  --teal: #398599;
  --teal-dark: #2c6a7a;
  --teal-darker: #1f4e5b;
  --lime: #eae100;
  --grey: #8b8b8a;
  --ink: #25323a;
  --muted: #5a6a72;
  --line: #e2e8ea;
  --bg: #ffffff;
  --bg-soft: #f4f7f8;
  --bg-teal-soft: #eef4f6;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(31, 78, 91, .08);
  --shadow: 0 10px 30px rgba(31, 78, 91, .12);
  --shadow-lg: 0 24px 60px rgba(31, 78, 91, .18);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--teal-darker); }

h1, h2, h3, h4 {
  line-height: 1.12;
  margin: 0 0 .5em;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; }

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

.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section--teal { background: var(--teal-darker); color: #dff0f3; }
.section--teal h2, .section--teal h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .85rem;
}
.section--teal .eyebrow { color: var(--lime); }

.lead { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }
.section--teal .lead { color: #cfe6ea; }

.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.accent-bar {
  width: 64px; height: 5px; border-radius: 3px;
  background: var(--lime);
  margin: 0 0 1.5rem;
}
.center .accent-bar { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--teal-dark); color: #fff; }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: #d8d000; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--teal-dark); border-color: var(--teal); }
.btn--ghost:hover { background: var(--teal); color: #fff; }
.btn--light { background: #fff; color: var(--teal-darker); }
.btn--light:hover { background: var(--lime); color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 38px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 6px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  display: block; padding: .55rem .85rem; border-radius: 8px;
  font-weight: 600; color: var(--ink); font-size: .98rem;
}
.nav-links a:hover { background: var(--bg-teal-soft); color: var(--teal-darker); }
.nav-links a.active { color: var(--teal-dark); }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 8px; border-radius: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2.5px; background: var(--ink);
  border-radius: 2px; margin: 5px 0; transition: .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(120deg, rgba(31,78,91,.92), rgba(57,133,153,.78)), var(--hero-img, none);
  background-size: cover; background-position: center;
}
.hero__inner { padding-top: 96px; padding-bottom: 104px; max-width: 760px; }
.hero h1 { color: #fff; }
.hero .lead { color: #e4f1f3; font-size: 1.28rem; max-width: 54ch; }
.hero .accent-bar { margin-bottom: 1.6rem; }
.hero .btn-row { margin-top: 2rem; }

.hero-strip {
  display: flex; flex-wrap: wrap; gap: 28px;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.18);
  margin-top: 2.6rem;
  font-weight: 600; color: #dff0f3;
}
.hero-strip span { display: inline-flex; align-items: center; gap: .5rem; }
.hero-strip svg { flex: none; }

/* ---------- Page banner (interior pages) ---------- */
.page-banner {
  background: linear-gradient(120deg, var(--teal-darker), var(--teal));
  color: #fff; padding: 64px 0;
}
.page-banner h1 { color: #fff; margin-bottom: .35rem; }
.page-banner p { color: #d9edf0; margin: 0; max-width: 60ch; }
.crumbs { font-size: .9rem; color: #bfe0e6; margin-bottom: 1rem; }
.crumbs a { color: #bfe0e6; }
.crumbs a:hover { color: #fff; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Service cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe0e4; }
.card__icon {
  width: 54px; height: 54px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--bg-teal-soft); color: var(--teal-dark);
  margin-bottom: 18px;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: flex-start; gap: .7rem; }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px;
  border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checklist--columns { grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 32px; }

/* ---------- Split / feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split--reverse .split__media { order: 2; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat { text-align: center; }
.stat__num { font-size: 2.6rem; font-weight: 800; color: var(--teal); line-height: 1; }
.section--teal .stat__num { color: var(--lime); }
.stat__label { font-size: .95rem; color: var(--muted); margin-top: .35rem; }
.section--teal .stat__label { color: #cfe6ea; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.gallery figure {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  padding: 16px 18px; font-weight: 600; font-size: .96rem; color: var(--ink);
}
.gallery figcaption span { display: block; font-weight: 500; color: var(--teal-dark); font-size: .85rem; }

/* ---------- Areas / tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  padding: .5rem 1rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  background: var(--bg-teal-soft); color: var(--teal-darker);
}
.section--teal .tag { background: rgba(255,255,255,.1); color: #eaf6f8; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--teal-dark), var(--teal));
  color: #fff; border-radius: 20px; padding: 52px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  flex-wrap: wrap; box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { color: #dff0f3; margin: .4rem 0 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-item { display: flex; gap: 16px; margin-bottom: 26px; align-items: flex-start; }
.contact-item__icon {
  flex: none; width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; background: var(--bg-teal-soft); color: var(--teal-dark);
}
.contact-item h3 { margin: 0 0 .15rem; font-size: 1.05rem; }
.contact-item p, .contact-item a { margin: 0; color: var(--muted); }
.contact-item a { font-weight: 600; color: var(--teal-dark); }

.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field input, .field textarea {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); font: inherit; color: var(--ink);
  background: var(--bg-soft); transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 6px; }

/* ---------- Video ---------- */
.video-frame { max-width: 920px; margin: 0 auto; }
.video-portrait { max-width: 380px; margin: 0 auto; width: 100%; }
.video-frame video, .video-portrait video {
  width: 100%; display: block; background: #000;
  border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ---------- Footer ---------- */
.site-footer { background: #15323b; color: #b9d2d8; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; letter-spacing: .02em; }
.site-footer a { color: #b9d2d8; }
.site-footer a:hover { color: var(--lime); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-brand img { height: 46px; margin-bottom: 18px; }
.footer-brand p { color: #9fbcc3; font-size: .96rem; max-width: 34ch; }
.social { display: flex; gap: 12px; margin-top: 8px; }
.social a {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #d6e8ec;
}
.social a:hover { background: var(--lime); color: var(--ink); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .88rem; color: #88a8b0;
}
.footer-bottom a { color: #88a8b0; }
.footer-legal { margin: 14px 0 0; font-size: .78rem; color: #6f9098; line-height: 1.55; }

/* ---------- Utilities ---------- */
.mt-2 { margin-top: 2rem; }
.mt-1 { margin-top: 1rem; }
.stack > * + * { margin-top: 1rem; }

/* ---------- Responsive ---------- */
/* Nav collapses earlier than the rest of the layout — the full link row
   plus the phone CTA doesn't fit below ~1000px */
@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 16px 20px 22px; box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem 1rem; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split__media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .checklist--columns { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 28px; text-align: center; justify-content: center; }
  .cta-band .btn-row { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__inner { padding-top: 72px; padding-bottom: 80px; }
}
