/* =========================================================
   Wellian Residential — design tokens
   Palette: pale bayou-morning blue, cypress-water teal,
   deep cypress ink, muted moss, weathered cypress-wood tan.
   ========================================================= */
:root {
  --bg:            #EAF3F2;
  --bg-deep:       #D9E9E7;
  --card:          #F5FAF9;
  --water:         #3E7488;
  --water-dark:    #24506080;
  --water-deep:    #1F3B3E;
  --ink:           #1B3336;
  --ink-soft:      #4A5F61;
  --moss:          #7C9473;
  --moss-dark:     #58694F;
  --cypress:       #A8825C;
  --cypress-dark:  #8A6844;
  --white:         #FFFFFF;
  --line:          #C3D8D6;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Public Sans', 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px -12px rgba(27, 51, 54, 0.25);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  border-left: 21px solid var(--moss);
  border-right: 21px solid var(--moss);
  box-shadow: inset 22px 0 0 -1px rgba(27, 51, 54, 0.15), inset -22px 0 0 -1px rgba(27, 51, 54, 0.15);
}

@media (max-width: 480px) {
  body {
    border-left-width: 12px;
    border-right-width: 12px;
    box-shadow: inset 13px 0 0 -1px rgba(27, 51, 54, 0.15), inset -13px 0 0 -1px rgba(27, 51, 54, 0.15);
  }
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--water-deep);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 1em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--moss-dark);
  display: inline-block;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.9em 1.6em;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:focus-visible {
  outline: 3px solid var(--cypress);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--water-deep);
  color: var(--bg);
  box-shadow: var(--shadow);
}
.btn-primary:hover { transform: translateY(-2px); background: #142a2c; }

.btn-ghost {
  background: transparent;
  border-color: var(--water-deep);
  color: var(--water-deep);
}
.btn-ghost:hover { background: rgba(27,51,54,0.06); }

.btn-cypress {
  background: var(--cypress);
  color: var(--white);
}
.btn-cypress:hover { transform: translateY(-2px); background: var(--cypress-dark); }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(234, 243, 242, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--water-deep);
}
.brand small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--moss-dark);
}
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  border-color: var(--cypress);
  color: var(--water-deep);
}
.nav-cta { display: none; }
@media (min-width: 760px) { .nav-cta { display: inline-flex; } }

.nav-toggle {
  display: inline-flex;
  background: none;
  border: 1px solid var(--water-deep);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
}
@media (min-width: 760px) { .nav-toggle { display: none; } }
@media (max-width: 759px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 66px;
    left: 0; right: 0;
    background: var(--bg);
    padding: 20px 28px 26px;
    border-bottom: 1px solid var(--line);
    gap: 16px;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #F4FAF9 0%, #DCEDEB 62%, #CBE3DF 100%);
  padding-top: 88px;
}
.hero .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 40px;
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
}
.hero-copy p.lede {
  font-size: 1.14rem;
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 1.6em;
}
.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 2.6em;
  flex-wrap: wrap;
}
.hero-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--water-deep);
}
.hero-stats div span {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.hero-scene { position: relative; }

.waterline {
  position: relative;
  z-index: 2;
  line-height: 0;
  margin-top: -2px;
}
.waterline svg { width: 100%; height: auto; display: block; }

/* Divider used between sections, reused motif of the hero's cypress line */
.divider {
  line-height: 0;
}
.divider svg { width: 100%; height: auto; display: block; }

/* ---------- Sections ---------- */
section { position: relative; }
.section-pad { padding: 88px 0; }
.bg-deep { background: var(--bg-deep); }
.bg-ink {
  background: var(--water-deep);
  color: var(--bg);
}
.bg-ink h2, .bg-ink h3 { color: var(--bg); }
.bg-ink p { color: #C9DAD8; }

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}
.about-art { border-radius: var(--radius); overflow: hidden; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 2.4em;
}
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.pillar .num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cypress-dark);
  margin-bottom: 10px;
  display: block;
}

/* How it works steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  counter-reset: step;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding: 28px 24px 24px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.step .step-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--water);
  opacity: 0.55;
  margin-bottom: 6px;
}

/* CTA banner */
.cta-banner {
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--water-deep), #2C5A5E);
  color: var(--bg);
  padding: 56px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--bg); margin-bottom: 0.25em; }
.cta-banner p { color: #C9DAD8; margin-bottom: 0; max-width: 44ch; }

/* ---------- Pricing (services page) ---------- */
.price-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.ledger {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}
.ledger-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  background: var(--water-deep);
  color: var(--bg);
}
.ledger-head h3 { color: var(--bg); margin: 0; }
.ledger-head .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #BFE0DC;
}
.ledger table {
  width: 100%;
  border-collapse: collapse;
}
.ledger th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 14px 28px 10px;
  border-bottom: 1px dashed var(--line);
}
.ledger td {
  padding: 18px 28px;
  border-bottom: 1px dashed var(--line);
  vertical-align: top;
}
.ledger tr:last-child td { border-bottom: none; }
.ledger td.pkg {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--water-deep);
  font-size: 1.1rem;
  white-space: nowrap;
}
.ledger td.price {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cypress-dark);
  text-align: right;
  white-space: nowrap;
}
.ledger td.spec { color: var(--ink-soft); font-size: 0.95rem; }
.ledger-note {
  padding: 16px 28px 22px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--moss-dark);
  border-top: 1px dashed var(--line);
}

.services-hero {
  background: linear-gradient(180deg, #F4FAF9 0%, #DCEDEB 100%);
  padding: 130px 0 40px;
}

/* ---------- Request a service window ---------- */
.request-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) {
  .request-grid { grid-template-columns: 1fr; }
}
.contact-quicklist {
  list-style: none;
  margin: 40px auto 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 420px;
}
.contact-quicklist li { margin-bottom: 10px; }
.contact-quicklist li:last-child { margin-bottom: 0; }
.contact-quicklist a {
  color: var(--water-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.contact-quicklist a:hover { border-color: var(--water-deep); }

.request-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--moss-dark);
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75em 0.9em;
}
.form-field textarea { resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 3px solid var(--cypress);
  outline-offset: 1px;
  border-color: var(--water-deep);
}
.form-submit { width: 100%; justify-content: center; margin-top: 4px; }
.form-status {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}
.form-status[data-state="success"] { color: var(--moss-dark); }
.form-status[data-state="error"] { color: #A8443C; }

/* Honeypot field — hidden from real visitors, left for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px; height: 1px;
  padding: 0; margin: 0;
  overflow: hidden;
  border: 0;
}

/* ---------- Footer ---------- */
footer {
  background: var(--water-deep);
  color: #C9DAD8;
}
.footer-top { line-height: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding: 50px 0 34px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-grid ul { display: flex; flex-direction: column; align-items: center; }
}
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9FC7C2;
  margin-bottom: 14px;
}
.footer-grid p, .footer-grid a { color: #C9DAD8; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 0 26px;
  font-size: 0.82rem;
  color: #8FB8B3;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Reveal-on-scroll (subtle) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
