:root {
  --cream: #f7f2ea;
  --paper: #fffdf8;
  --mist: #e8ede7;
  --spruce: #2f493c;
  --spruce-2: #496556;
  --ink: #1e2522;
  --muted: #69736d;
  --stone: #d7d0c5;
  --clay: #a4654b;
  --gold: #b99a55;
  --blue: #6f8792;
  --line: rgba(47, 73, 60, 0.16);
  --shadow: 0 22px 70px rgba(30, 37, 34, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(232, 237, 231, 0.95), rgba(247, 242, 234, 0.96) 46%, #f9f6ef),
    var(--cream);
}

a {
  color: inherit;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-160%);
  background: var(--spruce);
  color: white;
  padding: 0.7rem 0.9rem;
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 12px 34px rgba(30, 37, 34, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: fit-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(47, 73, 60, 0.14);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.7rem 0.78rem;
  border-radius: 6px;
  color: #34463c;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--mist);
  color: var(--spruce);
}

.site-nav .nav-cta {
  margin-left: 0.25rem;
  background: var(--spruce);
  color: var(--paper);
}

.site-nav .nav-cta:hover {
  background: #22372e;
  color: var(--paper);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 44px;
  height: 44px;
  color: var(--spruce);
  background: var(--paper);
}

.icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

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

.hero {
  position: relative;
  min-height: 660px;
  margin-top: -76px;
  padding: 142px 0 82px;
  background-image:
    linear-gradient(90deg, rgba(21, 35, 29, 0.88), rgba(47, 73, 60, 0.62) 42%, rgba(47, 73, 60, 0.1)),
    url("/assets/maine-shoreline-fall-v2.jpg");
  background-position: center;
  background-size: cover;
  color: var(--paper);
}

.hero-inner,
.section-inner,
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 360px;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}

.hero-grid > *,
.page-hero .hero-inner > *,
.detail-grid > *,
.section-heading > * {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
  color: var(--gold);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.6rem, 6.8vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p,
.page-hero p {
  max-width: 700px;
  margin: 1.35rem 0 0;
  color: rgba(255, 253, 248, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.38rem);
  line-height: 1.62;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.82rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 850;
  line-height: 1.15;
  text-decoration: none;
}

.button.primary {
  background: var(--clay);
  color: white;
}

.button.primary:hover {
  background: #8e533e;
}

.button.secondary {
  border-color: rgba(255, 253, 248, 0.44);
  background: rgba(255, 253, 248, 0.12);
  color: var(--paper);
}

.button.secondary:hover {
  background: rgba(255, 253, 248, 0.2);
}

.button.light {
  background: var(--paper);
  color: var(--spruce);
  border-color: var(--line);
}

.button.dark {
  background: var(--spruce);
  color: white;
}

.hero-card {
  background: rgba(255, 253, 248, 0.94);
  color: var(--ink);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.portrait-wrap {
  aspect-ratio: 4 / 5;
  background: var(--stone);
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-body {
  padding: 1.25rem;
}

.hero-card-body strong {
  display: block;
  color: var(--spruce);
  font-size: 1.05rem;
}

.hero-card-body p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.proof-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1180px, calc(100% - 32px));
  margin: 22px auto 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.proof-item {
  padding: 1.15rem;
  border-right: 1px solid var(--line);
}

.proof-item:last-child {
  border-right: 0;
}

.proof-item strong {
  display: block;
  color: var(--spruce);
  font-size: 1.3rem;
}

.proof-item span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.section {
  padding: clamp(3.4rem, 7vw, 6.5rem) 0;
}

.section.alt {
  background: var(--paper);
}

.section.media-band {
  background:
    linear-gradient(90deg, rgba(247, 242, 234, 0.98), rgba(247, 242, 234, 0.84)),
    url("/assets/warm-office-detail.png") center / cover;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.55rem;
}

.section-heading h2,
.page-section h2 {
  margin: 0;
  color: var(--spruce);
  font-size: clamp(1.9rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p,
.page-section > p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.path-grid,
.service-grid,
.detail-grid,
.card-grid {
  display: grid;
  gap: 1rem;
}

.path-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.detail-grid {
  grid-template-columns: 0.86fr 1.14fr;
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.path-card,
.service-card,
.note-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 12px 34px rgba(30, 37, 34, 0.05);
}

.path-card,
.service-card,
.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.35rem;
}

.path-card .icon,
.service-card .icon,
.card .icon {
  width: 24px;
  height: 24px;
  color: var(--clay);
  margin-bottom: 1rem;
}

.path-card h3,
.service-card h3,
.card h3 {
  margin: 0;
  color: var(--spruce);
  font-size: 1.24rem;
  line-height: 1.2;
}

.path-card p,
.service-card p,
.card p,
.note-panel p,
.note-panel li {
  color: var(--muted);
  line-height: 1.62;
}

.path-card p,
.service-card p,
.card p {
  margin: 0.8rem 0 1rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  color: var(--spruce);
  font-weight: 850;
  text-decoration: none;
}

.card-link:hover {
  color: var(--clay);
}

.quote-band {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.quote-photo {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quote-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.quote-copy blockquote {
  margin: 0;
  color: var(--spruce);
  font-size: clamp(1.8rem, 4vw, 3.3rem);
  line-height: 1.08;
  font-weight: 850;
}

.quote-copy p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.page-hero {
  padding: 7.5rem 0 4.3rem;
  background: var(--spruce);
  color: var(--paper);
}

.page-hero.compact {
  padding-bottom: 3.2rem;
}

.page-hero .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 2rem;
  align-items: end;
}

.page-hero aside {
  border-left: 1px solid rgba(255, 253, 248, 0.22);
  padding-left: 1.2rem;
}

.page-hero aside p {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
}

.page-section {
  padding: clamp(3rem, 6vw, 5.2rem) 0;
}

.service-photo-band {
  padding: clamp(1.4rem, 4vw, 2.6rem) 0 0;
  background: var(--spruce);
}

.service-photo-band .section-inner {
  position: relative;
  z-index: 1;
}

.service-photo-band img {
  width: 100%;
  height: clamp(460px, 48vw, 640px);
  display: block;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(255, 253, 248, 0.44);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.bullets {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.bullets li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 0.6rem;
  line-height: 1.55;
}

.bullets li::before {
  content: "";
  width: 11px;
  height: 11px;
  margin-top: 0.42rem;
  border-radius: 99px;
  background: var(--gold);
}

.note-panel {
  padding: 1.4rem;
}

.note-panel h3 {
  margin: 0 0 0.6rem;
  color: var(--spruce);
}

.note-panel ul {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
}

.inquiry-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.4rem;
}

.contact-option {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.contact-option h3 {
  margin: 0;
  color: var(--spruce);
}

.contact-option p {
  color: var(--muted);
  line-height: 1.6;
}

.source-note {
  color: var(--muted);
  font-size: 0.86rem;
}

.inquiry-section {
  padding-top: 0;
}

.custom-inquiry-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: clamp(1.1rem, 3vw, 2rem);
}

.form-heading {
  max-width: 760px;
  margin-bottom: 1.4rem;
}

.form-heading h2 {
  margin: 0;
  color: var(--spruce);
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.08;
}

.form-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.custom-inquiry-form label {
  display: grid;
  gap: 0.42rem;
}

.custom-inquiry-form label > span:first-child {
  color: var(--spruce);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.custom-inquiry-form input,
.custom-inquiry-form select,
.custom-inquiry-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0.82rem 0.9rem;
  outline: none;
}

.custom-inquiry-form textarea {
  resize: vertical;
}

.custom-inquiry-form input:focus,
.custom-inquiry-form select:focus,
.custom-inquiry-form textarea:focus {
  border-color: rgba(164, 101, 75, 0.76);
  box-shadow: 0 0 0 3px rgba(164, 101, 75, 0.16);
}

.custom-inquiry-form small {
  justify-self: end;
  color: var(--muted);
}

.personal-handoff {
  border: 1px solid rgba(47, 73, 60, 0.18);
  border-radius: 8px;
  background: #eef4ee;
  padding: 1.1rem;
}

.personal-handoff h3 {
  margin: 0;
  color: var(--spruce);
}

.personal-handoff p {
  max-width: 720px;
  margin: 0.55rem 0 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.full-span,
.ack-row,
.submit-button,
.form-status {
  grid-column: 1 / -1;
}

.ack-row {
  display: flex !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
  gap: 0.75rem !important;
  margin-top: 1rem;
  border: 1px solid rgba(185, 154, 85, 0.38);
  border-radius: 8px;
  background: #fff9ea;
  padding: 1rem;
  color: #5e4a20;
  line-height: 1.5;
}

.ack-row input {
  width: 18px;
  height: 18px;
  margin-top: 0.12rem;
  flex: 0 0 auto;
}

.submit-button {
  margin-top: 1rem;
  width: fit-content;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.form-status {
  display: none;
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  line-height: 1.5;
}

.form-status:not(:empty) {
  display: block;
}

.form-status.info {
  border-color: rgba(111, 135, 146, 0.34);
  background: #edf3f4;
  color: #31505b;
}

.form-status.success {
  border-color: rgba(47, 73, 60, 0.3);
  background: #edf5ee;
  color: var(--spruce);
}

.form-status.error {
  border-color: rgba(164, 101, 75, 0.38);
  background: #fff0ea;
  color: #813e2b;
}

.site-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 2.4rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

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

.site-footer p {
  margin: 0.35rem 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.footer-links a {
  font-weight: 750;
  color: var(--spruce);
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-header[data-open="true"] .site-nav {
    display: flex;
  }

  .site-nav .nav-cta {
    margin-left: 0;
  }

  .hero-grid,
  .page-hero .hero-inner,
  .quote-band,
  .detail-grid,
  .path-grid,
  .inquiry-panel,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    margin-top: -74px;
    padding-top: 128px;
    padding-bottom: 3rem;
  }

  .hero-card {
    max-width: 360px;
  }

  .proof-strip,
  .service-grid,
  .card-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero aside {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 640px) {
  .site-header {
    width: min(100% - 20px, 1180px);
    margin-top: 10px;
  }

  .hero-inner,
  .section-inner,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    min-height: 0;
    padding-top: 118px;
    padding-bottom: 2rem;
    background-position: 42% center;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.2rem, 11vw, 2.95rem);
    line-height: 1;
  }

  .hero p,
  .page-hero p {
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-actions,
  .action-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
    margin-top: 1.35rem;
  }

  .button,
  .card-link {
    width: 100%;
    min-height: 48px;
  }

  .card-link {
    justify-content: space-between;
    padding: 0.8rem 0;
  }

  .proof-strip,
  .service-grid,
  .card-grid.three {
    grid-template-columns: 1fr;
  }

  .proof-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-item:last-child {
    border-bottom: 0;
  }

  .section-heading,
  .site-footer {
    display: block;
  }

  .section,
  .page-section {
    padding: 3rem 0;
  }

  .path-card,
  .service-card,
  .card,
  .note-panel {
    padding: 1.1rem;
  }

  .quote-band {
    gap: 1.25rem;
  }

  .quote-copy blockquote {
    font-size: clamp(1.85rem, 9vw, 2.45rem);
  }

  .section-heading p {
    margin-top: 0.8rem;
  }

  .custom-inquiry-form {
    padding: 1rem;
  }

  .field-grid {
    gap: 0.85rem;
  }

  .custom-inquiry-form input,
  .custom-inquiry-form select,
  .custom-inquiry-form textarea {
    min-height: 46px;
    font-size: 16px;
  }

  .ack-row {
    padding: 0.85rem;
  }

  .submit-button {
    width: 100%;
  }

  .footer-links {
    margin-top: 1rem;
    display: grid;
    gap: 0.7rem;
  }

  .footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .service-photo-band img {
    height: clamp(300px, 78vw, 430px);
  }
}

@media (max-width: 360px) {
  .hero h1,
  .page-hero h1 {
    font-size: clamp(2rem, 10.5vw, 2.6rem);
  }

  .eyebrow {
    font-size: 0.72rem;
  }

  .hero-card {
    max-width: none;
  }
}
