:root {
  --blue: #1c4ea8;
  --blue-deep: #163d86;
  --ink: #111827;
  --muted: #5b6472;
  --line: #e6e8ee;
  --bg: #f5f6f8;
  --white: #ffffff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Barlow", "Segoe UI", system-ui, sans-serif;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.topbar {
  height: 112px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 36px;
  gap: 28px;
  position: sticky; top: 0; z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.brand img {
  height: 100px;
  width: auto;
  object-fit: contain;
  background: transparent;
}
.brand-text { display: none; }
.brand-text { line-height: 1.05; }
.brand-text strong {
  display: block;
  font-size: 15px;
  letter-spacing: .14em;
  font-weight: 800;
}
.brand-text span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  letter-spacing: .30em;
  color: var(--blue);
  font-weight: 700;
}
.nav-shell {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 28px;
}
.nav-panel {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 28px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 10px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 1px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-shell.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-shell.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-shell.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-overlay { display: none; }
nav {
  display: flex;
  gap: 26px;
  margin-left: 18px;
  font-size: 14px;
  font-weight: 600;
  color: #2a3140;
}
nav a.active { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); padding-bottom: 4px; }
nav a:hover { color: var(--blue); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.phone { font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: .01em; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 18px; border-radius: 6px;
  font-weight: 700; font-size: 14px; border: 0; cursor: default;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.85); }
.btn-white { background: #fff; color: var(--ink); border: 1px solid var(--line); }

.hero {
  position: relative;
  min-height: 560px;
  background: #0b1220 url("/hero.jpg") center/cover no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,12,22,.78) 0%, rgba(8,12,22,.45) 46%, rgba(8,12,22,.12) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 72px 72px; max-width: 720px; }
.eyebrow {
  font-size: 12px; letter-spacing: .22em; font-weight: 700; color: #c9d4ea; margin-bottom: 14px; text-transform: uppercase;
}
h1 { font-size: 48px; line-height: 1.08; letter-spacing: -.02em; font-weight: 800; margin-bottom: 16px; }
.lede { font-size: 18px; line-height: 1.5; color: #e7ebf3; max-width: 540px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; margin-bottom: 28px; }
.serving { font-size: 13px; color: #c5cddd; letter-spacing: .04em; }

.section { padding: 56px 72px 72px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px 22px 26px;
}
.icon {
  width: 36px; height: 36px; border-radius: 8px; background: #eaf0fb; color: var(--blue);
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 14px; font-size: 16px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.5; }

.page-hero {
  position: relative; height: 220px;
  background: #111 url("/clay.jpg") center/cover no-repeat; color: #fff;
  display: flex; align-items: flex-end;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,12,22,.25), rgba(8,12,22,.7));
}
.page-hero .inner { position: relative; z-index: 1; padding: 0 72px 32px; }
.page-hero h1 { font-size: 40px; margin-bottom: 6px; }
.page-hero p { color: #dde3ee; font-size: 16px; }

.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.process {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--blue); color: #fff; margin: 0 72px 56px; border-radius: 12px; overflow: hidden;
}
.process div { padding: 22px 18px; text-align: center; border-right: 1px solid rgba(255,255,255,.18); }
.process div:last-child { border-right: 0; }
.process b { display: block; font-size: 22px; margin-bottom: 4px; }
.process span { font-size: 14px; letter-spacing: .04em; }

.layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; }
form { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted); margin: 12px 0 6px; text-transform: uppercase; }
input, select, textarea {
  width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 6px;
  padding: 0 12px; font: inherit; background: #fff; color: var(--ink);
}
textarea { height: 92px; padding: 10px 12px; resize: none; }
form .btn { width: 100%; height: 46px; margin-top: 16px; }
.hint { font-size: 12px; color: var(--muted); text-align: center; margin-top: 10px; }
.side { display: flex; flex-direction: column; gap: 14px; }
.map {
  background: #d7e3f7; border-radius: 12px; min-height: 220px; padding: 24px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--blue-deep); font-weight: 800; letter-spacing: .08em;
  background-image: radial-gradient(circle at 40% 40%, #1c4ea8 0 38%, transparent 40%),
                    radial-gradient(circle at 62% 58%, rgba(28,78,168,.35) 0 28%, transparent 30%);
  background-color: #dce6f6;
}
.map span { background: rgba(255,255,255,.86); padding: 8px 12px; border-radius: 8px; }
.info { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; font-size: 14px; }
.info b { display: block; font-size: 11px; letter-spacing: .08em; color: var(--blue); margin-bottom: 4px; }

footer {
  background: #0e1420; color: #c5cbd6; padding: 22px 72px;
  display: flex; align-items: center; gap: 14px; font-size: 13px;
}
footer img { height: 52px; width: auto; object-fit: contain; }
footer .grow { margin-left: auto; color: #8b93a3; }

.page-hero.about-hero { background-image: url("/hero.jpg"); }
.story { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; }
.story .lede { color: var(--muted); max-width: none; }
.story p { color: var(--muted); font-size: 16px; line-height: 1.6; margin-bottom: 16px; }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.who .card p { margin: 0; }
.how-list { margin: 0; padding: 0; list-style: none; }
.how-list li {
  display: grid; grid-template-columns: 48px 1fr; gap: 14px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.how-list li:first-child { border-top: 1px solid var(--line); }
.how-list strong { display: block; margin-bottom: 4px; }
.towns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.towns span {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; font-size: 13px; font-weight: 600;
}
.cta-band {
  margin: 0 72px 56px; background: var(--blue); color: #fff;
  border-radius: 12px; padding: 28px 32px; display: flex; align-items: center; gap: 20px;
}
.cta-band p { margin: 0; font-size: 18px; font-weight: 700; flex: 1; }
.cta-band .btn { background: #fff; color: var(--blue); }
.contact-page .lede { color: var(--muted); max-width: none; }

.area-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}


/* Blazor extras: keep marketing look, error UI, form confirmation */
button.btn { font-family: inherit; }
#blazor-error-ui {
  color-scheme: light only;
  background: lightyellow;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}
#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}
.confirm {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
}
.confirm h3 { font-size: 22px; margin-bottom: 8px; }
.confirm p { color: var(--muted); font-size: 16px; line-height: 1.5; }
.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #e50000; font-size: 12px; }
h1:focus { outline: none; }

@media (max-width: 1024px) {
  .topbar {
    height: auto;
    min-height: 72px;
    padding: 8px 32px;
    gap: 18px;
  }
  .brand img { height: 64px; }
  .nav-shell, .nav-panel { gap: 18px; }
  nav { gap: 18px; margin-left: 8px; }
  .hero-inner { padding: 56px 32px; }
  .section { padding: 40px 32px 56px; }
  .page-hero .inner { padding: 0 32px 28px; }
  .process { margin: 0 32px 40px; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.18); }
  .process div { border-right: 0; background: var(--blue); }
  .cta-band { margin: 0 32px 40px; }
  footer { padding: 22px 32px; }
  .cards, .grid-6 { grid-template-columns: 1fr 1fr; }
  .layout, .story { grid-template-columns: 1fr; gap: 24px; }
  h1 { font-size: 40px; }
  .page-hero h1 { font-size: 34px; }
}

@media (max-width: 768px) {
  .topbar { padding: 8px 16px; }
  .brand img { height: 52px; }
  .nav-toggle { display: flex; }
  .nav-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px;
    box-shadow: 0 12px 24px rgba(14, 20, 32, .08);
  }
  .nav-shell.is-open .nav-panel { display: flex; }
  .nav-shell.is-open .nav-overlay {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 100vh;
    background: rgba(14, 20, 32, .4);
  }
  nav {
    flex-direction: column;
    gap: 0;
    margin: 0;
  }
  nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 4px;
  }
  nav a.active { box-shadow: none; padding-bottom: 0; font-weight: 800; }
  .top-right {
    margin: 8px 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .top-right .btn {
    width: 100%;
    height: auto;
    min-height: 44px;
    padding: 10px 18px;
  }
  .hero { min-height: 0; }
  .hero-inner { padding: 36px 20px 44px; }
  h1 { font-size: 32px; }
  .lede { font-size: 16px; }
  .hero-actions {
    flex-wrap: wrap;
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
    height: auto;
    min-height: 44px;
    padding: 10px 18px;
  }
  .section { padding: 32px 20px 40px; }
  .page-hero { height: auto; min-height: 160px; }
  .page-hero .inner { padding: 48px 20px 24px; }
  .page-hero h1 { font-size: 28px; }
  .cards, .grid-6, .who { grid-template-columns: 1fr; }
  .process { margin: 0 20px 32px; grid-template-columns: 1fr; }
  form { padding: 20px; }
  .cta-band {
    margin: 0 20px 32px;
    padding: 22px 20px;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .cta-band .btn {
    width: 100%;
    height: auto;
    min-height: 44px;
    padding: 10px 18px;
  }
  footer {
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  footer .grow { margin-left: 0; }
}
