/* EastBridge Urban Development — styles */

:root {
  --paper: #fafbfa;
  --white: #ffffff;
  --ink: #2d353c;
  --graphite: #56636a;
  --rule: #d6dcdd;
  --survey: #24598a;
  --parcel: #e7eef3;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 600; font-stretch: 112%; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 251, 250, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; fill: var(--ink); flex: none; }
/* Wordmark follows the EastBridge logo: wide-tracked capitals, two lines */
.brand-name { display: flex; flex-direction: column; line-height: 1.1; text-transform: uppercase; }
.brand-word { font-weight: 500; font-stretch: 112%; font-size: 1.05rem; letter-spacing: 0.24em; }
.brand-sub { margin-top: 3px; font-weight: 400; font-size: 0.62rem; letter-spacing: 0.3em; color: var(--graphite); }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a { text-decoration: none; font-size: 0.95rem; color: var(--graphite); }
.site-nav a:hover { color: var(--ink); }
.site-nav .nav-cta { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--survey); padding-bottom: 2px; }

.nav-toggle {
  display: none;
  font: inherit; font-size: 0.95rem; background: none; border: 1px solid var(--rule);
  padding: 6px 12px; color: var(--ink); cursor: pointer;
}

/* Hero */
.hero { padding: clamp(48px, 8vw, 104px) 0 0; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.25rem);
  font-weight: 600;
  font-stretch: 120%;
  letter-spacing: -0.025em;
  line-height: 1.02;
}
.hero h1 .plus {
  display: block;
  font-weight: 300;
  font-stretch: 100%;
  color: var(--survey);
  line-height: 0.9;
  margin: 0.06em 0 0.02em -0.04em;
}

.lede { margin-top: 28px; max-width: 34em; font-size: 1.15rem; color: var(--graphite); }

.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-block; font: inherit; font-size: 0.98rem; font-weight: 600;
  padding: 14px 22px; text-decoration: none; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--survey); }
.btn-quiet { border-color: var(--rule); color: var(--ink); background: var(--white); }
.btn-quiet:hover { border-color: var(--ink); }

/* Site plan drawing */
.hero-plan { margin: 0; }
.plan { width: 100%; height: auto; display: block; background: var(--white); border: 1px solid var(--rule); }
.plan .contours path { fill: none; stroke: #b9c4c9; stroke-width: 1; stroke-dasharray: 4 5; }
.plan .streets line { stroke: var(--rule); stroke-width: 14; }
.plan .parcels rect, .plan .parcels line { fill: none; stroke: #9aa6ab; stroke-width: 1; }
.plan #hatch line { stroke: var(--survey); stroke-width: 1; opacity: 0.35; }
.plan .site-fill { fill: url(#hatch); }
.plan .site { fill: none; stroke: var(--survey); stroke-width: 2; }
.plan .footprint { fill: var(--parcel); stroke: var(--ink); stroke-width: 1.5; }
.plan .dim line { stroke: var(--graphite); stroke-width: 1; }
.plan .north circle { fill: none; stroke: var(--graphite); stroke-width: 1; }
.plan .north path { fill: var(--ink); }
.plan .scale-dark { fill: var(--ink); }
.plan .scale-light { fill: none; stroke: var(--ink); stroke-width: 1; }

.hero-plan figcaption { margin-top: 12px; font-size: 0.85rem; color: var(--graphite); }

/* One orchestrated moment: the site boundary and footprint draw in on load */
@media (prefers-reduced-motion: no-preference) {
  .plan .site { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.6s ease-out 0.3s forwards; }
  .plan .footprint {
    stroke-dasharray: 600; stroke-dashoffset: 600; fill-opacity: 0;
    animation: draw 1.4s ease-out 1.1s forwards, fillin 0.6s ease-out 2.2s forwards;
  }
  .plan .site-fill { opacity: 0; animation: fade 0.8s ease-out 1.6s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill-opacity: 1; } }
@keyframes fade { to { opacity: 1; } }

/* Capabilities strip */
.capabilities {
  list-style: none; margin: clamp(56px, 8vw, 96px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink);
}
.capabilities li { padding: 24px 24px 8px 0; }
.capabilities li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
.capabilities h2 { font-size: 1.1rem; font-stretch: 110%; }
.capabilities p { margin-top: 10px; font-size: 0.95rem; color: var(--graphite); }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-title { font-size: clamp(1.75rem, 3vw, 2.4rem); letter-spacing: -0.02em; font-stretch: 116%; }
.section-intro { margin-top: 16px; max-width: 38em; color: var(--graphite); }

.two-col { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }

.about { border-top: 1px solid var(--rule); margin-top: clamp(24px, 4vw, 48px); }
.prose p { max-width: 36em; font-size: 1.15rem; }
.prose p + p { margin-top: 20px; color: var(--graphite); font-size: 1.05rem; }

/* Services */
.services { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.service {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 6vw, 96px);
  padding: 36px 0; border-top: 1px solid var(--rule);
}
.services .section-title { margin-bottom: 40px; }
.service:last-child { border-bottom: 1px solid var(--rule); }
.service h3 { font-size: 1.35rem; font-stretch: 112%; letter-spacing: -0.01em; }
.service-body p { max-width: 38em; }
.service-body .topics { margin-top: 14px; font-size: 0.92rem; color: var(--graphite); padding-left: 14px; border-left: 2px solid var(--survey); }

/* Approach — a real sequence, so numbered */
.steps {
  list-style: none; counter-reset: step; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
}
.steps li { counter-increment: step; position: relative; isolation: isolate; padding: 52px 20px 0 0; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 34px; height: 34px; border: 1px solid var(--ink); border-radius: 50%;
  display: grid; place-items: center; font-weight: 600; font-size: 0.9rem; background: var(--paper);
}
.steps li::after {
  content: ""; position: absolute; top: 17px; left: 34px; right: 0; height: 1px; background: var(--rule); z-index: -1;
}
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.05rem; font-stretch: 108%; }
.steps p { margin-top: 8px; font-size: 0.93rem; color: var(--graphite); }

/* Visualization samples */
.samples { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
.sample { margin: 0; }
.sample-media { background: var(--ink); border: 1px solid var(--rule); aspect-ratio: 16 / 9; overflow: hidden; }
.sample-media video { width: 100%; height: 100%; display: block; object-fit: cover; }
.sample figcaption { margin-top: 18px; }
.sample-step { font-size: 0.85rem; font-weight: 600; color: var(--survey); }
.sample h3 { margin-top: 6px; font-size: 1.2rem; font-stretch: 110%; }
.sample p { margin-top: 8px; font-size: 0.95rem; color: var(--graphite); max-width: 32em; }
.samples-note { margin-top: 24px; font-size: 0.82rem; color: var(--graphite); }

/* Contact */
.contact { background: var(--ink); color: var(--white); }
.contact .section-title { color: var(--white); }
.contact-note { margin-top: 18px; color: #c5cfd4; max-width: 28em; }
.contact-location { margin-top: 28px; font-size: 0.95rem; color: #c5cfd4; }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-wide, .form-foot { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; font-weight: 600; }
.optional { font-weight: 400; color: #9fb0b8; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 1px solid transparent; padding: 12px 14px; width: 100%; border-radius: 0;
}
.field input, .field select { height: 48px; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid #7fb1dc; outline-offset: 0; }
.field.invalid input, .field.invalid textarea { border-color: #e7a6a0; box-shadow: 0 0 0 1px #e7a6a0; }

.honey { position: absolute; left: -9999px; }

.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.contact .btn-primary { background: var(--white); color: var(--ink); }
.contact .btn-primary:hover { background: #d9e6f0; }
.contact .btn-primary:disabled { opacity: 0.6; cursor: wait; }
.form-status { font-size: 0.95rem; color: #c5cfd4; }
.form-status.ok { color: #a9d8b8; }
.form-status.err { color: #f1b7b1; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 28px 0; font-size: 0.9rem; color: var(--graphite); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

/* Legal pages */
.legal { padding: clamp(56px, 8vw, 96px) 0; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-stretch: 118%; letter-spacing: -0.02em; }
.legal .updated { margin-top: 10px; color: var(--graphite); font-size: 0.95rem; }
.legal h2 { font-size: 1.2rem; margin-top: 40px; }
.legal p, .legal ul { margin-top: 14px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--survey); }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .two-col, .service { grid-template-columns: 1fr; }
  .capabilities { grid-template-columns: 1fr 1fr; }
  .capabilities li, .capabilities li + li { padding: 22px 20px 12px 0; border-left: 0; }
  .capabilities li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--rule); }
  .capabilities li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .samples { grid-template-columns: 1fr; gap: 40px; margin-top: 48px; }
  .steps li { padding: 4px 0 0 56px; }
  .steps li::after { top: 34px; left: 17px; right: auto; width: 1px; height: calc(100% - 6px); }
  .service { gap: 14px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 16px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; width: 100%; font-size: 1.05rem; }
  .site-nav .nav-cta { border-bottom: 0; }
  .capabilities { grid-template-columns: 1fr; }
  .capabilities li:nth-child(even) { padding-left: 0; border-left: 0; }
  .capabilities li + li { border-top: 1px solid var(--rule); }
  .contact-form { grid-template-columns: 1fr; }
}
