/* ==========================================================
   ROOT VARIABLES
========================================================== */
:root {
  --font-serif: "Iowan Old Style", "Palatino Linotype", Baskerville, Georgia, serif;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --bg: #000000;
  --bg-soft: #efe9df;
  --surface: #fffdfa;
  --ink: #1b1b17;
  --muted: #858583;

  --olive: #929c85;
  --olive-2: #4d5a40;
  --line: #272726;
  --white: #fff;

  --shadow: 0 20px 60px rgba(29, 27, 22, 0.10);

  --radius: 2px;
  --shell: 1240px;
  --header-h: 78px;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 5rem;
  --space-2xl: 7rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================
   GLOBAL RESET & BASE
========================================================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.d-none {
	display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.site-shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.section-space {
  padding: var(--space-2xl) 0;
}

.section-space-sm {
  padding: var(--space-xl) 0;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================
   TYPOGRAPHY
========================================================== */
h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.02;
  margin: 0 0 1rem;
  letter-spacing: -0.025em;
  color: white;
}

h1 {
  font-size: clamp(3rem, 7vw, 5rem);
}

h2 {
  font-size: clamp(2.2rem, 4.2vw, 4.1rem);
}

h3 {
  font-size: clamp(1.4rem, 2vw, 2rem);
}

p {
  margin: 0 0 1.25rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--olive);
}

.lead,
.hero-copy {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--muted);
  max-width: 630px;
}

.centered {
  text-align: center;
  margin-inline: auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.section-heading p {
  color: white;
}

/* ==========================================================
   HEADER
========================================================== */
.site-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgb(0 0 0 / 94%);
  color: white;
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(216, 209, 197, 0.24);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1;
  color: white;
}

.primary-nav .menu,
.footer-nav .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

.primary-nav a,
.footer-nav a {
  font-size: 0.9rem;
}

.primary-nav a {
  position: relative;
}

.primary-nav a:after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 1px;
  background: currentColor;
  transition: right 0.25s var(--ease);
}

.primary-nav a:hover:after {
  right: 0;
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  padding: 0.4rem;
}

.menu-toggle span:not(.screen-reader-text) {
  display: block;
  width: 24px;
  height: 1px;
  background: white;
  margin: 5px 0;
}

/* ==========================================================
   BUTTONS & LINKS
========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 48px;
  padding: 0.8rem 1.3rem;
  border: 1px solid var(--ink);
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

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

.btn-dark {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--olive-2);
}

.btn-light {
  background: rgba(255, 255, 255, 0.92);
}

.btn-outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(3px);
}

.button-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.text-link {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 1.25rem;
}

.text-link.labelled {
  font-size: 0.9rem;
  margin-top: 1.25rem;
  color: white;
}

/* ==========================================================
   HERO
========================================================== */
.hero {
  min-height: 680px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    #f6f2e9 0 43%,
    rgba(246, 242, 233, 0.45) 65%,
    rgba(246, 242, 233, 0.05) 100%
  );
}

.hero-media {
   position: absolute;
  inset: 0;
  background-image: linear-gradient(
      90deg,
      #f6f2e9 0 34%,
      rgba(246, 242, 233, 0.82) 40%,
      rgba(246, 242, 233, 0.05) 52%
    ),
    var(--hero-image);
  background-size: cover;
  background-position: center right;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content > * {
  max-width: 620px;
}

.hero-content > h1 {
  color: black;
}

.hero-copy {
  max-width: 520px;
}

.hero .button-row {
  margin-top: 1.7rem;
}

/* ==========================================================
   SERVICE GRID
========================================================== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.service-card h3 {
  font-size: 1.35rem;
  margin-top: 1rem;
  margin-bottom: 0.35rem;
}

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

.service-image {
  aspect-ratio: 1 / 1.08;
  overflow: hidden;
  background: var(--bg-soft);
}

.service-image img {
  width: 100%;
  max-height: 293px;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.service-card:hover .service-image img {
  transform: scale(1.035);
}

/* ==========================================================
   SPLIT GRID
========================================================== */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: stretch;
  background: var(--surface);
}

.split-image {
  min-height: 520px;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-copy {
  padding: clamp(2rem, 6vw, 6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg);
}

.split-copy p {
  color: var(--muted);
  max-width: 580px;
}

.split-copy .btn {
  align-self: flex-start;
  margin-top: 0.8rem;
}

/* ==========================================================
   AUDIENCE GRID
========================================================== */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.audience-card {
  position: relative;
  min-height: 360px;
  background-image: var(--audience-image);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.audience-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 18, 13, 0.08), rgba(24, 28, 18, 0.72));
}

.audience-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 2.5rem;
  max-width: 540px;
}

.audience-content h2 {
  font-size: 2.5rem;
}

.audience-content p {
  color: rgba(255, 255, 255, 0.86);
}

/* ==========================================================
   JOBS & TESTIMONIAL GRID
========================================================== */
.jobs-testimonial-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: stretch;
}

.job-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
  transition: padding 0.25s var(--ease);
}

.job-row:hover {
  padding-left: 0.5rem;
}

.job-row strong,
.job-row small {
  display: block;
}

.job-row strong {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: white;
}

.job-row small {
  color: var(--muted);
}

.testimonial {
  position: relative;
  min-height: 330px;
  background: var(--surface);
  overflow: hidden;
}

.testimonial > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem);
  max-width: 100%;
  background: rgba(255, 255, 255, 0.7);
  text-shadow: 1px 1px;
}

.testimonial-copy blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.testimonial-copy cite {
  font-style: normal;
  font-size: 0.85rem;
  color: black;
}

/* ==========================================================
   INNER HERO
========================================================== */
.inner-hero {
  background: var(--bg);
}

.inner-hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 5rem;
  align-items: center;
}

.inner-hero-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.inner-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.soft-section {
  background: var(--olive);
}

/* ==========================================================
   THREE GRID / INFO CARDS
========================================================== */
.three-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.info-card {
  border: 1px solid var(--line);
  padding: 2rem;
  background: #fff;
}

.info-card > span,
.process-item > span {
  display: block;
  color: #a78b65;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

.info-card p,
.process-item p {
  color: var(--muted);
}

/* ==========================================================
   PROCESS SECTION
========================================================== */
.process-section {
  background: var(--olive);
  color: #fff;
}

.process-section .section-heading .eyebrow,
.process-section .section-heading p {
  color: rgba(255, 255, 255, 0.2);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.process-item {
  padding: 2rem;
  background: var(--olive);
}

.process-item p {
  color: rgba(255, 255, 255, 0.72);
}

/* ==========================================================
   CTA BAND
========================================================== */
.cta-band {
  background: #000;
  padding: 3rem 0;
}

.cta-band .site-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cta-band h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 0.4rem;
}

.cta-band p {
  margin: 0;
  color: #fff;
}

/* ==========================================================
   FOOTER
========================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  background: var(--bg);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

.footer-nav {
  justify-self: center;
}

.copyright {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

/* ==========================================================
   REVEAL ANIMATION
========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ==========================================================
   RESPONSIVE — 980px
========================================================== */
@media (max-width: 980px) {
  :root {
    --space-2xl: 5rem;
  }

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

  .service-card:last-child {
    grid-column: span 2;
  }

  .jobs-testimonial-grid,
  .inner-hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .primary-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 1.5rem 20px 2rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-140%);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s var(--ease);
  }

  .primary-nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .primary-nav .menu {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 620px;
  }

  .hero-media {
    background-image: linear-gradient(
        90deg,
        rgba(246, 242, 233, 0.96) 0 50%,
        rgba(246, 242, 233, 0.55) 75%,
        rgba(246, 242, 233, 0.18) 100%
      ),
      var(--hero-image);
  }
}

/* ==========================================================
   RESPONSIVE — 720px
========================================================== */
@media (max-width: 720px) {
  .site-shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .section-space {
    padding: 4rem 0;
  }

  .section-space-sm {
    padding: 3.5rem 0;
  }

  .hero {
    min-height: 660px;
    align-items: flex-end;
    padding-bottom: 3rem;
  }

  .hero-media {
    background-image: linear-gradient(
        180deg,
        rgba(246, 242, 233, 0.20) 0 36%,
        rgba(246, 242, 233, 0.93) 67%,
        #f6f2e9 100%
      ),
      var(--hero-image);
    background-position: 64% center;
  }

  .hero-content > * {
    max-width: 100%;
  }

  .service-grid,
  .three-grid,
  .audience-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .service-card:last-child {
    grid-column: auto;
  }

  .split-grid {
    grid-template-columns: 1fr;
  }

  .split-image {
    min-height: 320px;
  }

  .split-copy {
    padding: 2rem;
  }

  .audience-card {
    min-height: 320px;
  }

  .jobs-testimonial-grid {
    gap: 2rem;
  }

  .testimonial {
    min-height: 380px;
  }

  .testimonial-copy {
    max-width: 100%;
    background: linear-gradient(90deg, rgba(255, 253, 250, 0.96), rgba(255, 253, 250, 0.58));
  }

  .cta-band .site-shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer-nav {
    justify-self: start;
  }

  .footer-nav .menu {
    flex-wrap: wrap;
    gap: 0.9rem 1.3rem;
  }

  .copyright {
    justify-self: start;
  }
}

/* ==========================================================
   CUSTOM OVERRIDES
========================================================== */
.brand img {
  max-width: 80px;
  padding-top: 10px;
}

.info-card h3 {
  color: black;
}

.primary-nav {
  background: black;
}

.elderly-bottom-cta-inner p:last-child {
  color: white;
}

/* ----------------------------------------------------------
   Luxe Maison - Generic Form Page
   Add to the end of assets/css/main.css
---------------------------------------------------------- */
.form-page {
  background: var(--bg);
}

.form-page-hero {
  padding: clamp(72px, 9vw, 130px) 0 clamp(52px, 7vw, 90px);
  background: var(--bg-soft);
  overflow: hidden;
}

.form-page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
}

.form-page-hero__content {
  max-width: 720px;
}

.form-page-hero h1 {
  max-width: 760px;
  margin: 0.35rem 0 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(48px, 6.8vw, 92px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: black;
}

.form-page-hero__intro {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.7;
}

.form-page-hero__image {
  position: relative;
  min-height: 520px;
}

.form-page-hero__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form-page-content {
  background: var(--surface);
}

.form-page-content__inner {
  max-width: 1100px;
}

.form-page-content__editor {
  width: 100%;
}

/* Give shortcode forms breathing room */
.form-page-content .lmf-wrap {
  margin-inline: auto;
}

/* Remove extra top spacing when the shortcode is the first item */
.form-page-content__editor > .lmf-wrap:first-child {
  margin-top: 0;
}

/* Native editor content around the form */
.form-page-content__editor > p,
.form-page-content__editor > h2,
.form-page-content__editor > h3 {
  max-width: 800px;
  margin-inline: auto;
}

.form-page-content__editor > h2 {
  margin-top: 0;
  font-family: var(--font-serif);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 400;
  line-height: 1.08;
}

@media (max-width: 900px) {
  .form-page-hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-page-hero__image {
    min-height: 440px;
  }
}

@media (max-width: 640px) {
  .form-page-hero {
    padding: 60px 0 42px;
  }

  .form-page-hero h1 {
    font-size: clamp(42px, 13vw, 64px);
  }

  .form-page-hero__image {
    min-height: 360px;
  }
}