:root {
  /* Harbor sunset — pulled from hero photo (navy shirt, sand khakis, golden water) */
  --green: #2f4d6e;
  --green-dark: #243d58;
  --green-deep: #1a2b3d;
  --green-mid: #2a425c;
  --mist: #e7eef5;
  --fog: #f3efe8;
  --surface: #e4ddd0;
  --pale: #b4c2d1;
  --text: #1a2b3d;
  --muted: #5a6574;
  --on-dark: #f5f1ea;
  --copper: #c45e2c;
  --copper-cream: #faf6f0;
  --max: 720px;
  --radius: 14px;
}

@media (min-width: 900px) {
  :root {
    --max: 960px;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--fog);
  padding-bottom: 4.25rem;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

h1,
h2,
h3 {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  color: var(--green-deep);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(1.75rem, 5.5vw, 2.6rem);
}

h2 {
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
}

h3 {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--green);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hero-copy .wrap {
  max-width: 42rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 0.75rem;
}

.eyebrow--on-dark {
  color: var(--pale);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 239, 232, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pale);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
}

.logo-link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: inherit;
  padding-bottom: 0.9rem;
}

.logo-link img {
  height: 34px;
  width: auto;
  display: block;
}

.logo-since {
  position: absolute;
  left: 35.5%; /* under “Appraisals” in the logo SVG */
  top: 2.05rem;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
  line-height: 1;
  opacity: 0.85;
}

.header-phone {
  display: inline-flex;
  padding: 0.5rem 1rem;
  background: var(--green);
  color: var(--on-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 999px;
}

.header-phone:hover {
  background: var(--green-dark);
  color: var(--on-dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  text-align: center;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--green);
  color: var(--on-dark);
}

.btn-primary:hover {
  background: var(--green-dark);
  color: var(--on-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--green-deep);
  border-color: var(--pale);
}

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green-deep);
}

.btn-on-dark {
  background: var(--on-dark);
  color: var(--green-deep);
}

.btn-on-dark:hover {
  background: #fff;
  color: var(--green-deep);
}

.btn-lg {
  font-size: 1.05rem;
  padding: 1rem 1.4rem;
}

.btn-call {
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 1.35rem;
  line-height: 1.2;
}

.btn-call__label {
  font-size: 0.9375rem;
}

.btn-call__number {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Hero — full-bleed photo + copy */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--fog);
}

.hero-media {
  position: relative;
  min-height: 42vh;
  max-height: 52vh;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(18, 46, 41, 0.35) 100%);
  pointer-events: none;
}

.hero-copy {
  padding: 1.75rem 0 2.25rem;
  background: linear-gradient(165deg, var(--mist) 0%, var(--fog) 55%, var(--surface) 100%);
}

.cred-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
}

.cred-line__role {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  border-radius: 10px;
  background: var(--green-deep);
  color: var(--on-dark);
}

.cred-badge {
  display: none;
}

.hook-lead {
  font-size: 1.05rem;
  max-width: 38rem;
  color: var(--muted);
}

.hook-lead strong {
  color: var(--text);
  font-weight: 700;
}

.hook-underline {
  position: relative;
  display: inline-block;
  color: var(--text);
  font-weight: 700;
}

.hook-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.05em;
  height: 0.14em;
  background: var(--copper);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left center;
  animation: hook-underline-draw 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
}

@keyframes hook-underline-draw {
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hook-underline::after {
    animation: none;
    transform: scaleX(1);
  }
}

.hero-title {
  line-height: 1.15;
}

.hook-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.35rem 0 0.85rem;
}

.hook-note {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--copper);
  margin: 0;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(320px, 42%) 1fr;
    min-height: min(78vh, 720px);
  }

  .hero-media {
    min-height: 100%;
    max-height: none;
  }

  .hero-media::after {
    background: linear-gradient(to right, transparent 60%, rgba(243, 239, 232, 0.2) 100%);
  }

  .hero-copy {
    display: flex;
    align-items: center;
    padding: 2.5rem 0;
  }

  .hero-copy-inner {
    padding-left: 2rem;
    padding-right: 2.5rem;
  }
}

/* Empathy */
.empathy {
  padding: 2.5rem 0;
  background: var(--surface);
}

.empathy p {
  color: var(--muted);
  max-width: 40rem;
}

/* Trouble — the key insight */
.trouble {
  --trouble-bg: #e6ebf1;
  --trouble-bg-end: #eef1f5;
  --trouble-accent: #5f738a;
  --trouble-ink: #2a3646;
  padding: 2.75rem 0;
  background: linear-gradient(
    180deg,
    var(--fog) 0%,
    var(--trouble-bg) 18%,
    var(--trouble-bg-end) 100%
  );
  color: var(--trouble-ink);
}

.trouble h2 {
  color: var(--trouble-ink);
  max-width: 28ch;
}

.trouble-example {
  max-width: 40rem;
  margin: 1.25rem 0 1.75rem;
}

.trouble-example p {
  color: #4f5d6e;
}

.trouble-punch {
  padding: 1rem 1.15rem;
  background: #f7f9fb;
  border-radius: var(--radius);
  border-left: 5px solid var(--trouble-accent);
  font-size: 1.05rem;
  color: var(--trouble-ink);
}

.trouble-punch strong {
  color: var(--trouble-ink);
}

.trouble-late {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid #c5ced8;
  border-radius: var(--radius);
  background: rgba(247, 249, 251, 0.8);
}

.trouble-late h3 {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  color: var(--trouble-ink);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.trouble-late p {
  margin: 0;
  color: #4f5d6e;
  font-size: 0.95rem;
}

.trouble .btn-primary {
  background: var(--green);
  color: var(--on-dark);
}

.trouble .btn-primary:hover {
  background: var(--green-dark);
  color: var(--on-dark);
}

/* Why */
.why {
  padding: 2.75rem 0;
  background: var(--fog);
}

.why-grid {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 560px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.why-grid li {
  background: var(--mist);
  border: 1px solid var(--pale);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.why-grid strong {
  display: block;
  color: var(--green-deep);
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.why-grid span {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Services */
.services {
  padding: 2.75rem 0;
  background: var(--mist);
}

.services-lead {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.service {
  background: var(--fog);
  border: 1px solid var(--pale);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}

.service p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.service--lead {
  background: var(--green);
  border-color: transparent;
}

.service--lead h3,
.service--lead p {
  color: var(--on-dark);
}

.service--lead p {
  opacity: 0.9;
}

/* Pricing */
.pricing {
  padding: 2.5rem 0;
  background: var(--surface);
}

.pricing-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

.pricing p {
  color: var(--muted);
  max-width: 40rem;
}

/* Area */
.area {
  padding: 2.25rem 0;
  background: var(--fog);
}

.area p {
  color: var(--muted);
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.area-tags li {
  padding: 0.35rem 0.8rem;
  background: var(--mist);
  border: 1px solid var(--pale);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--green-deep);
}

/* Contact */
.contact {
  padding: 2.75rem 0;
  background: linear-gradient(160deg, var(--mist) 0%, var(--surface) 100%);
}

.contact-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-copy p {
  color: var(--muted);
  max-width: 36rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.contact-aside {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--green-deep);
  color: var(--pale);
  padding: 1.75rem 0;
  font-size: 0.875rem;
}

.site-footer strong {
  color: var(--on-dark);
}

.footer-inner p {
  margin-bottom: 0.35rem;
}

.footer-copy {
  margin-top: 0.75rem !important;
  opacity: 0.7;
  font-size: 0.8rem;
}

/* Mobile call bar */
.call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1rem;
  padding-bottom: max(0.9rem, env(safe-area-inset-bottom));
  background: var(--green);
  color: var(--on-dark);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 -6px 24px rgba(18, 46, 41, 0.25);
}

.call-bar:hover {
  background: var(--green-dark);
  color: var(--on-dark);
}

@media (min-width: 768px) {
  .call-bar {
    display: none;
  }
}
