/* ==========================================================================
   RoofBid.io - 2048 Management LLC
   Design system + page styles
   ========================================================================== */

:root {
  --navy-900: #08182a;
  --navy-800: #0d2742;
  --navy-700: #16395c;
  --navy-600: #1f4e7a;

  --accent:      #ff6b35;
  --accent-dark: #e2521d;
  --accent-soft: #fff1ea;

  --ink:    #10202f;
  --slate:  #56687b;
  --muted:  #7d8b9a;
  --line:   #e3eaf1;
  --bg:     #ffffff;
  --bg-soft:#f5f9fc;

  --radius:    18px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(13,39,66,.06), 0 2px 8px rgba(13,39,66,.05);
  --shadow-md: 0 4px 12px rgba(13,39,66,.07), 0 12px 32px rgba(13,39,66,.08);
  --shadow-lg: 0 10px 24px rgba(13,39,66,.10), 0 28px 64px rgba(13,39,66,.14);

  --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
  font-weight: 800;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1.02rem; font-weight: 700; }
p  { margin: 0 0 1.1em; }
img { max-width: 100%; display: block; }

a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--accent-dark); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-head);
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 1.05em 1.7em;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn svg { flex-shrink: 0; width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(255,107,53,.35); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; box-shadow: 0 10px 26px rgba(255,107,53,.42); }
.btn-dark { background: var(--navy-800); color: #fff; }
.btn-dark:hover { background: var(--navy-900); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; color: var(--navy-800); border-color: #fff; }
.btn-outline { background: transparent; color: var(--navy-800); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy-800); color: var(--navy-800); }
.btn-sm { padding: .8em 1.25em; font-size: .92rem; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-900);
  color: #a9c0d4;
  font-size: .84rem;
  letter-spacing: .01em;
}
.topbar .wrap {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  align-items: center; justify-content: space-between;
  padding-top: 10px; padding-bottom: 10px;
}
.topbar a { color: #fff; font-weight: 600; }
.topbar a:hover { color: var(--accent); }
.topbar .tb-item { display: inline-flex; align-items: center; gap: .5em; }
.topbar svg { width: 15px; height: 15px; flex-shrink: 0; opacity: .8; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding-top: 14px; padding-bottom: 14px;
  position: relative;
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand-mark {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--navy-700), var(--navy-900));
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(13,39,66,.25);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.08rem; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.brand-name em { font-style: normal; color: var(--accent); }
.brand-sub { font-size: .66rem; text-transform: uppercase; letter-spacing: .13em; color: var(--muted); font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  color: var(--ink); padding: .6em .85em; border-radius: 8px;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--navy-600); }
.main-nav a.is-active { color: var(--accent-dark); }
.header-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; padding: 0;
  place-items: center;
}
.nav-toggle i, .nav-toggle i::before, .nav-toggle i::after {
  content: ""; display: block; width: 19px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: .2s;
}
.nav-toggle i::before { transform: translateY(-6px); }
.nav-toggle i::after  { transform: translateY(4px); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero img.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 22%; z-index: -2;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(8,24,42,.94) 0%, rgba(8,24,42,.80) 45%, rgba(8,24,42,.42) 100%),
    linear-gradient(to top, rgba(8,24,42,.75), transparent 55%);
}
.hero .wrap { padding-top: 108px; padding-bottom: 108px; }
.hero-inner { max-width: 730px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero .lead { font-size: 1.16rem; color: #d3e2ee; max-width: 600px; margin-bottom: 2em; }
.hero .btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-head); font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--accent);
  margin-bottom: 1.3em;
}
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--accent); border-radius: 2px; }
.eyebrow.center { justify-content: center; }
.section-head .eyebrow { color: var(--accent-dark); }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 10px 12px;
  margin-top: 2.6em;
}
.hero-trust span {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .86rem; font-weight: 600; color: #e5eef6;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 100px; padding: .55em 1.05em;
  backdrop-filter: blur(6px);
}
.hero-trust svg { width: 15px; height: 15px; color: var(--accent); }

/* Page hero (interior pages) */
.page-hero { position: relative; color: #fff; isolation: isolate; }
.page-hero img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -2; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(8,24,42,.92), rgba(8,24,42,.58));
}
.page-hero .wrap { padding-top: 76px; padding-bottom: 76px; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: #cfe0ed; max-width: 640px; font-size: 1.08rem; margin: 0; }
.crumbs { font-size: .84rem; color: #92aec6; margin-bottom: 1.4em; font-weight: 500; }
.crumbs a { color: #cfe0ed; }
.crumbs a:hover { color: var(--accent); }
.crumbs em { font-style: normal; margin: 0 .5em; opacity: .5; }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 64px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.08rem; margin-bottom: 0; }

/* ---------- Service cards ---------- */
.card-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.svc-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc-card .thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-soft); }
.svc-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.svc-card:hover .thumb img { transform: scale(1.06); }
.svc-card .body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.svc-card h3 { margin-bottom: .5em; }
.svc-card h3 a { color: var(--ink); }
.svc-card:hover h3 a { color: var(--navy-600); }
.svc-card p { font-size: .96rem; margin-bottom: 1.3em; }
.svc-card .more {
  margin-top: auto; font-family: var(--font-head); font-weight: 700;
  font-size: .92rem; color: var(--accent-dark);
  display: inline-flex; align-items: center; gap: .45em;
}
.svc-card .more svg { width: 15px; height: 15px; transition: transform .2s ease; }
.svc-card:hover .more svg { transform: translateX(4px); }

/* ---------- Feature / icon grid ---------- */
.feature-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature .ico {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent-dark);
  display: grid; place-items: center; margin-bottom: 20px;
}
.feature .ico svg { width: 25px; height: 25px; }
.feature h3 { margin-bottom: .45em; }
.feature p { font-size: .96rem; margin-bottom: 0; }

/* ---------- Split ---------- */
.split { display: grid; gap: 60px; grid-template-columns: 1fr 1fr; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; }
.split-media .badge {
  position: absolute; right: -18px; bottom: -22px;
  background: var(--accent); color: #fff;
  border-radius: 16px; padding: 20px 26px;
  box-shadow: var(--shadow-lg); text-align: center;
  font-family: var(--font-head);
}
.split-media .badge strong { display: block; font-size: 2rem; line-height: 1; font-weight: 800; }
.split-media .badge span { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; opacity: .95; }
.split-body h2 { margin-bottom: .5em; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 1.6em; display: grid; gap: 13px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: .99rem; }
.checklist svg { width: 21px; height: 21px; flex-shrink: 0; color: var(--accent); margin-top: 3px; }
.checklist.two { grid-template-columns: 1fr 1fr; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--navy-800); color: #fff; padding: 62px 0; }
.stats-band .grid { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); text-align: center; }
.stats-band strong {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: 2.9rem; line-height: 1; color: var(--accent); margin-bottom: .3em;
  letter-spacing: -.03em;
}
.stats-band span { font-size: .92rem; color: #a9c3d8; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: s; }
.step { position: relative; padding-top: 8px; }
.step .num {
  counter-increment: s;
  font-family: var(--font-head); font-weight: 800; font-size: 2.6rem;
  color: var(--line); line-height: 1; display: block; margin-bottom: 14px;
  letter-spacing: -.04em;
}
.step .num::before { content: "0" counter(s); }
.step h3 { margin-bottom: .45em; }
.step p { font-size: .95rem; margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; color: #fff; isolation: isolate; text-align: center; }
.cta-band img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(8,24,42,.90), rgba(8,24,42,.90)); }
.cta-band .wrap { padding-top: 88px; padding-bottom: 88px; }
.cta-band h2 { color: #fff; max-width: 720px; margin-left: auto; margin-right: auto; }
.cta-band p { color: #cfe0ed; max-width: 620px; margin: 0 auto 2em; font-size: 1.08rem; }
.cta-band .btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Contact / form ---------- */
.contact-layout { display: grid; gap: 52px; grid-template-columns: 1.35fr 1fr; align-items: start; }
.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm);
}
.info-card + .info-card { margin-top: 24px; }
.info-card h3 { margin-bottom: 1em; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.info-list li { display: flex; gap: 15px; align-items: flex-start; }
.info-list .ico {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent-dark);
  display: grid; place-items: center;
}
.info-list .ico svg { width: 19px; height: 19px; }
.info-list .lbl { display: block; font-family: var(--font-head); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .25em; }
.info-list a { font-weight: 600; color: var(--ink); }
.info-list a:hover { color: var(--accent-dark); }

.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: .6em 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.hours li:last-child { border-bottom: 0; }
.hours strong { color: var(--ink); font-weight: 600; }

.form-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow-md);
}
.embed-form { min-height: 800px; }
.embed-form iframe { width: 100%; min-height: 800px; border: none; border-radius: var(--radius-sm); }

.consent-note {
  margin-top: 24px; padding: 20px 22px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: .87rem; line-height: 1.65; color: var(--slate);
}
.consent-note strong { color: var(--ink); }

/* ---------- Policy pages ---------- */
.policy { max-width: 840px; }
.policy h1 { margin-bottom: .3em; }
.policy h2 { font-size: 1.42rem; margin-top: 2em; }
.policy h3 { font-size: 1.05rem; margin-top: 1.7em; margin-bottom: .5em; color: var(--navy-700); }
.policy .updated { color: var(--muted); font-size: .92rem; }
.policy ul { padding-left: 1.3em; margin-bottom: 1.2em; }
.policy li { margin-bottom: .5em; }
.policy hr { border: 0; border-top: 1px solid var(--line); margin: 2.6em 0; }
.policy .lede-box {
  background: var(--accent-soft); border: 1px solid #ffd9c7;
  border-radius: var(--radius-sm); padding: 22px 26px; margin-bottom: 2em;
}
.policy .lede-box p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--navy-900); color: #93aec6; font-size: .93rem; padding: 74px 0 0; }
footer.site-footer .cols { display: grid; gap: 44px; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; }
footer.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .13em; margin-bottom: 1.5em; }
footer.site-footer a { color: #cbdcea; }
footer.site-footer a:hover { color: var(--accent); }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
footer.site-footer .brand { margin-bottom: 20px; }
footer.site-footer .brand-name { color: #fff; }
footer.site-footer .brand-sub { color: #7794ae; }
footer.site-footer .f-about { max-width: 330px; margin-bottom: 20px; }
.legal-strip {
  border-top: 1px solid rgba(255,255,255,.10);
  margin-top: 62px; padding: 26px 0 34px;
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between;
  font-size: .85rem; color: #7794ae;
}
.entity-note {
  border-top: 1px solid rgba(255,255,255,.10);
  margin-top: 46px; padding-top: 26px;
  font-size: .82rem; color: #7794ae; line-height: 1.7;
}
.entity-note strong { color: #b9cfe2; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .split { grid-template-columns: 1fr; gap: 42px; }
  .split.reverse .split-media { order: 0; }
  .split-media .badge { right: 16px; bottom: -18px; }
  .contact-layout { grid-template-columns: 1fr; }
  footer.site-footer .cols { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: grid; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .85em .6em; border-radius: 8px; }
  .header-cta .btn { display: none; }
  .section { padding: 66px 0; }
  .hero .wrap { padding-top: 74px; padding-bottom: 74px; }
  .checklist.two { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .topbar .wrap { justify-content: center; text-align: center; }
  .section-head { margin-bottom: 40px; }
  footer.site-footer .cols { grid-template-columns: 1fr; }
  .stats-band strong { font-size: 2.4rem; }
  .btn { width: 100%; justify-content: center; white-space: normal; }
  .hero .btn-row, .cta-band .btn-row { flex-direction: column; }
}
