:root {
  --ink: #102736;
  --muted: #627987;
  --line: #dbe5ea;
  --blue: #0077a8;
  --deep: #0b4a62;
  --aqua: #39c6d8;
  --sand: #faf6ef;
  --white: #ffffff;
  --shadow: 0 16px 42px rgba(8, 40, 54, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }

.site-header {
  position: fixed;
  top: 0;
  z-index: 20;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(8, 67, 89, 0.92), rgba(8, 67, 89, 0.76));
  transition: background 180ms ease, box-shadow 180ms ease;
}
.site-header.scrolled { background: rgba(8, 67, 89, 0.95); box-shadow: var(--shadow); }
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 10px 8px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.08));
  box-shadow: 0 14px 32px rgba(0,0,0,0.14), 0 0 0 1px rgba(57,198,216,0.12) inset;
  backdrop-filter: blur(12px);
  font-weight: 800;
}
.brand-logo {
  width: clamp(250px, 23vw, 360px);
  height: auto;
  filter: drop-shadow(0 8px 15px rgba(0,0,0,0.2));
}
.brand-slogan {
  color: var(--aqua);
  font-size: clamp(12px, 1.05vw, 16px);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 8px 18px rgba(0,0,0,0.28);
}
.site-nav { display: flex; align-items: center; gap: 20px; font-weight: 700; font-size: 14px; }
.nav-cta { padding: 10px 14px; border-radius: 8px; background: var(--aqua); color: var(--deep); }
.menu-toggle { display: none; border: 0; background: var(--white); color: var(--deep); border-radius: 8px; padding: 9px 12px; }

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 450px);
  align-items: end;
  gap: clamp(22px, 5vw, 64px);
  padding: 210px clamp(18px, 4vw, 56px) 56px;
  overflow: hidden;
}
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 35, 50, 0.68), rgba(4, 35, 50, 0.28) 52%, rgba(4, 35, 50, 0.08)); }
.hero-content, .lead-card { position: relative; z-index: 1; }
.hero-content { max-width: 760px; color: var(--white); padding-bottom: 30px; }
.eyebrow { margin: 0 0 10px; color: var(--blue); text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; font-weight: 900; }
.hero .eyebrow, .dashboard.dark .eyebrow { color: var(--aqua); }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; max-width: 720px; font-size: clamp(44px, 7vw, 82px); line-height: 0.98; letter-spacing: 0; }
h2 { margin: 0 0 14px; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; }
h3 { margin: 14px 0 4px; font-size: 20px; }
.hero-copy { max-width: 640px; font-size: 20px; color: rgba(255, 255, 255, 0.88); }
.hero-protection {
  max-width: 700px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 8px;
  background: rgba(8, 67, 89, 0.42);
  color: var(--white);
  backdrop-filter: blur(10px);
}
.hero-protection strong {
  display: block;
  color: var(--aqua);
  font-size: 18px;
}
.hero-protection p {
  margin: 8px 0 12px;
  color: rgba(255,255,255,0.86);
  font-weight: 750;
}
.hero-protection div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-protection span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
  font-size: 13px;
  font-weight: 850;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 850;
}
.button.primary { background: var(--aqua); color: var(--deep); }
.button.secondary { background: var(--white); color: var(--deep); }
.button.ghost { border-color: rgba(255,255,255,0.46); color: var(--white); background: rgba(255,255,255,0.08); }
.button.full { width: 100%; }

.lead-card, .dashboard, .estimate-card, .calc-panel {
  background: var(--white);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.lead-card { padding: 22px; }
.lead-card h2 { font-size: 24px; }
label { display: grid; gap: 6px; margin: 0 0 12px; color: var(--ink); font-weight: 750; font-size: 14px; }
.range-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.range-label strong { color: var(--blue); font-size: 16px; white-space: nowrap; }
input, select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.captcha { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.captcha input { width: auto; min-height: 0; }
.form-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.form-note.success { color: #0f7c45; font-weight: 800; }
.form-submit-frame {
  position: absolute;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.form-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(8, 67, 89, 0.46);
}
.form-success-overlay.open { display: grid; }
.form-success-card {
  width: min(440px, 100%);
  padding: 28px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}
.form-success-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--deep);
  font-size: 24px;
  line-height: 1.15;
}
.form-success-card p {
  margin: 0;
  color: var(--muted);
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-band div { background: var(--white); padding: 26px clamp(18px, 4vw, 56px); }
.trust-band strong { display: block; font-size: 26px; }
.trust-band span { color: var(--muted); }

.section { padding: 82px clamp(18px, 4vw, 56px); }
.two-col, .design-intake, .scheduler { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr); gap: clamp(22px, 5vw, 64px); align-items: center; }
.section-heading { max-width: 760px; margin-bottom: 28px; }
.workflow { display: grid; gap: 12px; }
.workflow div { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font-weight: 800; }
.workflow span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--white); background: var(--blue); }
.what-we-do { background: var(--white); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service-grid article {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f7fcff);
}
.service-grid span {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(57, 198, 216, 0.16);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.service-grid h3 { margin: 0; font-size: 25px; }
.service-grid p { margin: 0; color: var(--muted); }
.design-intake { background: #f9fdff; }
.design-intake > div > p { max-width: 660px; }
.design-upload-form {
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.design-upload-form h3 { margin: 0; font-size: 28px; }
.design-upload-form textarea { resize: vertical; min-height: 110px; }

.calculator-section { background: var(--sand); }
.calculator { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: 24px; }
.calc-panel, .estimate-card, .dashboard { padding: 24px; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.checks label { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #f9fdff; }
.checks input { width: auto; min-height: 0; }
.estimate-card { display: grid; align-content: start; gap: 12px; }
.estimate-card strong { font-size: 30px; }
.estimate-disclaimer { margin: -6px 0 2px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.stat-label { color: var(--muted); font-size: 13px; font-weight: 850; text-transform: uppercase; letter-spacing: 0.08em; }

.portfolio-grid, .feature-columns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.portfolio-grid article, .feature-columns article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}
.portfolio-grid img { height: 210px; width: 100%; object-fit: cover; }
.portfolio-grid article p, .portfolio-grid h3, .feature-columns article { padding: 0 16px 16px; }
.feature-columns article { padding-top: 18px; }
.feature-columns h2 { font-size: 24px; }
.city-gallery-heading { margin-top: 56px; }
.city-gallery article { background: #ffffff; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.filter { border: 1px solid var(--line); border-radius: 999px; background: var(--white); padding: 9px 13px; cursor: pointer; }
.filter.active { background: var(--deep); color: var(--white); }
.service-area-section > div { max-width: 1180px; }
.project-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 0; list-style: none; }
.project-list li { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 10px 28px rgba(4, 24, 35, 0.07); }
.project-list img { width: 100%; height: 150px; object-fit: cover; }
.project-list div { padding: 12px; }
.project-list strong, .project-list span { display: block; }
.project-list span { color: var(--muted); }
.project-meta { margin: 8px 0 0; color: var(--blue); font-weight: 900; }
.timeline { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.timeline button { min-height: 92px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); padding: 12px; text-align: left; cursor: pointer; }
.timeline button.active { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,119,168,0.14); }

.protection-section { background: #f9fdff; }
.protection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.protection-grid article {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(4, 24, 35, 0.06);
}
.protection-grid h3 { margin: 8px 0 0; font-size: 22px; }
.protection-grid p { margin-bottom: 0; color: var(--muted); }
.protection-grid article > span[aria-hidden="true"] {
  display: grid;
  place-items: center;
  width: 42px;
  height: 34px;
  border-radius: 50%;
  background: var(--aqua);
  color: var(--deep);
  font-size: 12px;
  font-weight: 950;
}
.protection-highlight {
  grid-column: span 2;
  background: linear-gradient(135deg, #0b5c78, #0d7890) !important;
  color: var(--white);
}
.protection-highlight .stat-label { color: var(--aqua); }
.protection-highlight p { color: rgba(255,255,255,0.76); }

.portal-section { background: #faf6ef; }
.portal-shell { display: grid; grid-template-columns: minmax(280px, 420px) minmax(0, 1fr); gap: 24px; align-items: start; }
.portal-login {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.portal-login h2 { font-size: 28px; }
.customer-dashboard[hidden] { display: none; }
.status-ring {
  display: grid;
  place-items: center;
  width: 122px;
  height: 122px;
  border-radius: 50%;
  margin: 14px 0;
  color: var(--deep);
  background: conic-gradient(var(--aqua) 0 72%, #d9eef2 72% 100%);
  font-size: 30px;
  font-weight: 950;
}
.dashboard-list { display: grid; grid-template-columns: minmax(100px, 0.45fr) 1fr; gap: 10px; margin-top: 18px; }
.dashboard-list span { color: var(--muted); }
.pipeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; }
.pipeline span { padding: 12px; border-radius: 8px; background: rgba(255,255,255,0.12); font-size: 13px; font-weight: 800; }

.scheduler { background: linear-gradient(135deg, #0b5c78, #0d7890); color: var(--white); }
.schedule-form { display: grid; gap: 12px; padding: 20px; border-radius: 8px; background: var(--white); }
.schedule-form .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 40px clamp(18px, 4vw, 56px);
  background: #0b3548;
  color: var(--white);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 14px; align-content: start; }

.subpage { background: #ffffff; }
.subpage-header {
  position: sticky;
  background: rgba(8, 67, 89, 0.95);
  box-shadow: var(--shadow);
}
.subpage-nav { display: flex; }
.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding-top: 72px;
}
.about-hero .hero-copy { color: #42515c; }
.about-hero img {
  min-height: 420px;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.about-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.about-card h2 { font-size: 28px; }
.about-card ul { display: grid; gap: 10px; margin: 0; padding-left: 20px; }
.values-section { background: var(--sand); }
.about-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, #0b5c78, #0d7890);
  color: var(--white);
}
.about-cta p { max-width: 760px; color: rgba(255,255,255,0.84); }

.chat-launch {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  border: 0;
  border-radius: 999px;
  background: var(--aqua);
  color: var(--deep);
  padding: 14px 18px;
  box-shadow: var(--shadow);
  font-weight: 900;
  cursor: pointer;
}
.chatbot {
  position: fixed;
  right: 18px;
  bottom: 78px;
  z-index: 30;
  display: none;
  width: min(360px, calc(100vw - 36px));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}
.chatbot.open { display: block; }
.chatbot header { padding: 14px 16px; background: var(--deep); color: var(--white); font-weight: 900; }
.chat-messages { max-height: 250px; overflow: auto; padding: 14px; }
.chat-messages p { margin: 0 0 10px; padding: 10px; border-radius: 8px; background: #eef7fa; }
#chat-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
#chat-form button { border: 0; border-radius: 8px; background: var(--deep); color: var(--white); padding: 0 14px; }

@media (max-width: 980px) {
  .hero, .two-col, .design-intake, .portal-shell, .scheduler, .calculator, .about-hero { grid-template-columns: 1fr; }
  .hero { padding-top: 176px; min-height: auto; }
  .brand { padding: 6px 8px; border-radius: 14px; }
  .brand-logo { width: 220px; }
  .brand-slogan { font-size: 12px; letter-spacing: 0.06em; }
  .lead-card { max-width: 560px; }
  .trust-band, .portfolio-grid, .feature-columns, .protection-grid, .service-grid { grid-template-columns: repeat(2, 1fr); }
  .project-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .protection-highlight { grid-column: span 2; }
  .timeline { grid-template-columns: repeat(3, 1fr); }
  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 18px;
    display: none;
    width: min(300px, calc(100vw - 36px));
    padding: 16px;
    border-radius: 8px;
    background: var(--deep);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: grid; }
  .menu-toggle { display: inline-flex; }
  .subpage-nav {
    position: static;
    display: flex;
    width: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
}

@media (max-width: 640px) {
  .hero-actions, .site-footer, .about-cta { flex-direction: column; align-items: flex-start; }
  .trust-band, .portfolio-grid, .feature-columns, .form-grid, .checks, .timeline, .pipeline, .protection-grid, .service-grid, .project-list { grid-template-columns: 1fr; }
  .schedule-form .form-grid { grid-template-columns: 1fr; }
  .protection-highlight { grid-column: auto; }
  h1 { font-size: 42px; }
  .section { padding-block: 58px; }
  .brand-logo { width: 190px; }
  .brand-slogan { font-size: 11px; }
  .subpage-header { flex-wrap: wrap; }
  .subpage-nav { flex-wrap: wrap; gap: 12px; }
}

