:root {
  --ivory: #f8f3ec;
  --warm-white: #fffaf4;
  --sand: #e7d5c2;
  --sage: #8b9b85;
  --sage-dark: #526350;
  --blue: #6d96a4;
  --terracotta: #b76f4b;
  --terracotta-dark: #8f5338;
  --charcoal: #23302d;
  --muted: #68736f;
  --line: rgba(35, 48, 45, 0.15);
  --shadow: 0 18px 48px rgba(35, 48, 45, 0.15);
  --header-height: 82px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--charcoal);
  background: var(--ivory);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-150%);
  background: var(--charcoal);
  color: var(--warm-white);
  padding: 10px 14px;
  border-radius: 4px;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--warm-white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
body.contact-page .site-header {
  background: rgba(255, 250, 244, 0.92);
  color: var(--charcoal);
  box-shadow: 0 10px 30px rgba(35, 48, 45, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-weight: 700;
  letter-spacing: 0;
}

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

.brand strong {
  font-size: 1rem;
  line-height: 1.15;
}

.brand small {
  margin-top: 2px;
  font-size: 0.76rem;
  color: currentColor;
  opacity: 0.78;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 34px);
  font-size: 0.92rem;
  font-weight: 650;
}

.site-nav a {
  position: relative;
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  place-items: center;
  padding: 0;
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin: 3px auto;
}

.hero,
.image-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero {
  min-height: 86svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 48px) clamp(20px, 6vw, 80px) 70px;
}

.hero-media,
.band-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img,
.band-media img {
  width: 100%;
  height: 116%;
  object-fit: cover;
  transform: translate3d(0, var(--parallax-y, 0), 0);
  will-change: transform;
}

.hero-media img {
  object-position: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(25, 34, 31, 0.7), rgba(25, 34, 31, 0.22) 52%, rgba(25, 34, 31, 0.08)),
    linear-gradient(0deg, rgba(35, 48, 45, 0.16), transparent 52%);
}

.hero-content {
  max-width: 940px;
  color: var(--warm-white);
  text-wrap: balance;
}

.hero-heading {
  display: flex;
  align-items: end;
  gap: clamp(18px, 3vw, 28px);
  margin-bottom: 18px;
}

.hero-portrait {
  flex: 0 0 auto;
  width: clamp(96px, 12vw, 154px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 7px solid rgba(255, 250, 244, 0.9);
  box-shadow: 0 18px 44px rgba(10, 16, 15, 0.34);
}

.hero-heading h1 {
  max-width: 760px;
  font-size: clamp(3.6rem, 8.8vw, 7.2rem);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--terracotta);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow,
.image-band .eyebrow {
  color: #ffd8bd;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
}

h1 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 12vw, 8.8rem);
  font-weight: 500;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  font-weight: 500;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.hero-copy {
  max-width: 610px;
  margin-bottom: 30px;
  font-size: clamp(1.05rem, 2vw, 1.42rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.reviews-section {
  overflow: hidden;
  padding: clamp(52px, 7vw, 82px) 0;
  background:
    linear-gradient(90deg, rgba(248, 243, 236, 1), rgba(255, 250, 244, 0.92), rgba(248, 243, 236, 1)),
    var(--ivory);
}

.reviews-heading {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto 30px;
}

.reviews-heading h2 {
  max-width: 760px;
  margin-bottom: 12px;
}

.reviews-heading p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.review-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.review-marquee::before,
.review-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: clamp(34px, 8vw, 120px);
  pointer-events: none;
}

.review-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--ivory), rgba(248, 243, 236, 0));
}

.review-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--ivory), rgba(248, 243, 236, 0));
}

.review-track {
  display: flex;
  width: max-content;
  max-width: none;
  flex-wrap: nowrap;
  gap: 18px;
  padding: 8px 18px 18px;
  animation: review-scroll 74s linear infinite;
}

.review-marquee:hover .review-track,
.review-marquee:focus-within .review-track {
  animation-play-state: paused;
}

.review-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: clamp(280px, 28vw, 390px);
  min-height: 248px;
  padding: 25px;
  border: 1px solid rgba(35, 48, 45, 0.12);
  border-radius: 8px;
  background: var(--warm-white);
  box-shadow: 0 14px 36px rgba(35, 48, 45, 0.09);
}

.review-card p {
  margin-bottom: 24px;
  color: var(--charcoal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  line-height: 1.48;
}

.review-card footer {
  color: var(--charcoal);
  font-size: 0.95rem;
  font-weight: 800;
}

.review-card span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

@keyframes review-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

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

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--terracotta-dark);
}

.button-secondary {
  border-color: rgba(255, 250, 244, 0.72);
  color: var(--warm-white);
  background: rgba(255, 250, 244, 0.08);
}

.section {
  padding: clamp(72px, 10vw, 126px) clamp(20px, 5vw, 72px);
}

.content-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: center;
}

.about-section {
  background: var(--warm-white);
}

.about-grid p {
  max-width: 670px;
  color: var(--muted);
  font-size: 1.03rem;
}

.inline-links {
  margin-top: 24px;
}

.inline-links a,
.contact-aside a,
.site-footer a {
  color: var(--terracotta-dark);
  font-weight: 750;
  text-underline-offset: 4px;
}

.profile-panel {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 22px;
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(231, 213, 194, 0.48), rgba(255, 250, 244, 0.92));
  box-shadow: var(--shadow);
}

.contact-aside img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 8px solid var(--warm-white);
  box-shadow: 0 16px 36px rgba(35, 48, 45, 0.12);
}

.profile-panel p {
  margin-bottom: 0;
}

.services-section {
  background: #f0e4d6;
}

.section-heading {
  width: min(1000px, 100%);
  margin: 0 auto 36px;
}

.service-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 270px;
  padding: 26px;
  border-radius: 8px;
  background: var(--warm-white);
  border: 1px solid rgba(35, 48, 45, 0.1);
  box-shadow: 0 14px 36px rgba(35, 48, 45, 0.09);
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  border-radius: 50%;
  background: #e9f0ef;
  color: var(--sage-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.image-band {
  min-height: 540px;
  display: grid;
  place-items: center;
  padding: 80px 20px;
  color: var(--warm-white);
}

.image-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(20, 29, 27, 0.68), rgba(20, 29, 27, 0.22));
}

.band-content {
  width: min(840px, 100%);
  margin-right: auto;
  padding-left: clamp(0px, 4vw, 52px);
}

.band-content p:not(.eyebrow) {
  max-width: 620px;
  font-size: 1.18rem;
}

.areas-section {
  background: var(--warm-white);
}

.areas-grid {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
}

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.area-list span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 15px;
  border-radius: 999px;
  background: #edf3f1;
  color: var(--sage-dark);
  font-weight: 700;
}

.cta-section {
  padding: clamp(76px, 10vw, 120px) 20px;
  background: var(--sage-dark);
  color: var(--warm-white);
}

.cta-inner {
  width: min(860px, 100%);
  margin: 0 auto;
  text-align: center;
}

.cta-inner p:not(.eyebrow) {
  max-width: 650px;
  margin: 0 auto 28px;
  color: rgba(255, 250, 244, 0.84);
  font-size: 1.12rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  background: var(--charcoal);
  color: var(--warm-white);
  font-size: 0.94rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #ffd8bd;
}

.contact-hero {
  min-height: 430px;
  display: grid;
  align-items: end;
  padding: calc(var(--header-height) + 70px) clamp(20px, 5vw, 72px) 70px;
  background:
    linear-gradient(125deg, rgba(82, 99, 80, 0.95), rgba(109, 150, 164, 0.76)),
    url("../img/california-living-parallax.jpg") center / cover;
  color: var(--warm-white);
}

.contact-intro {
  width: min(900px, 100%);
}

.contact-intro h1 {
  font-size: clamp(3rem, 8vw, 6.2rem);
}

.contact-intro p {
  max-width: 680px;
  font-size: 1.12rem;
  color: rgba(255, 250, 244, 0.86);
}

.contact-section {
  background: var(--ivory);
}

.contact-layout {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: start;
}

.contact-aside {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  padding: 28px;
  border-radius: 8px;
  background: var(--warm-white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-aside img {
  margin-bottom: 22px;
}

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

.contact-form {
  padding: clamp(22px, 4vw, 38px);
  border-radius: 8px;
  background: var(--warm-white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

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

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--charcoal);
  font-weight: 750;
}

.contact-form label span {
  font-size: 0.92rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(35, 48, 45, 0.22);
  border-radius: 5px;
  background: #fffdf9;
  color: var(--charcoal);
  padding: 12px 13px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form select:has(option[value=""]:checked),
.contact-form select option[value=""] {
  color: rgba(35, 48, 45, 0.52);
}

.contact-form select option:not([value=""]) {
  color: var(--charcoal);
}

.contact-form textarea {
  resize: vertical;
  min-height: 160px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(109, 150, 164, 0.18);
}

.contact-form .field-error {
  border-color: var(--terracotta-dark);
}

.full-field {
  grid-column: 1 / -1;
}

.form-note {
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 0.94rem;
}

.form-status {
  margin: 16px 0 0;
  min-height: 24px;
  color: var(--sage-dark);
  font-weight: 750;
}

.form-status.is-error {
  color: var(--terracotta-dark);
}

.form-status.is-success {
  color: var(--sage-dark);
}

@media (max-width: 920px) {
  .site-header {
    min-height: 72px;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: calc(100% - 8px);
    right: clamp(18px, 4vw, 40px);
    width: min(280px, calc(100vw - 36px));
    display: grid;
    gap: 0;
    padding: 10px;
    border-radius: 8px;
    background: var(--warm-white);
    color: var(--charcoal);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-header.nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 12px;
  }

  .content-grid,
  .areas-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .contact-aside {
    position: static;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 72px;
  }

  .site-header {
    padding: 14px 18px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 82svh;
    align-items: end;
    padding: calc(var(--header-height) + 36px) 20px 56px;
  }

  h1 {
    font-size: clamp(3.35rem, 18vw, 5.5rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-heading {
    align-items: start;
    flex-direction: column;
  }

  .hero-portrait {
    width: 98px;
    border-width: 5px;
  }

  .hero-media img,
  .band-media img {
    height: 100%;
    transform: none;
  }

  .review-track {
    animation-duration: 96s;
  }

  .review-card {
    min-height: 286px;
  }

  .service-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .image-band {
    min-height: 470px;
    place-items: end start;
  }

  .band-content {
    padding-left: 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .parallax-image {
    transform: none !important;
  }

  .review-track {
    transform: none !important;
    scroll-snap-type: x mandatory;
    animation: none;
  }

  .review-marquee {
    overflow-x: auto;
  }

  .review-card {
    scroll-snap-align: start;
  }
}
