/* =====================================================================
   Grace Hill Ranch — site styles
   Warm desert-ranch palette from the logo: golden sun, sage saguaro,
   terracotta stucco. Tuned for senior-audience readability
   (large type, high contrast, generous spacing, big tap targets).
   ===================================================================== */

:root {
  --cream:        #faf6ee;
  --cream-2:      #f3ecdc;
  --cream-3:      #ede3cf;
  --white:        #ffffff;
  --ink:          #2a2724;
  --ink-soft:     #4a443c;
  --muted:        #6e655a;

  --gold:         #c9a227;
  --gold-deep:    #a07e17;
  --sage:         #9fb07e;
  --sage-deep:    #61703f;
  --sage-ink:     #47512f;
  --terracotta:   #b56a4b;
  --terracotta-deep:#96502f;

  --line:         rgba(42, 39, 36, .12);
  --line-strong:  rgba(42, 39, 36, .22);
  --shadow-sm:    0 1px 3px rgba(42,39,36,.08), 0 1px 2px rgba(42,39,36,.06);
  --shadow-md:    0 10px 30px -12px rgba(42,39,36,.25);
  --shadow-lg:    0 24px 60px -20px rgba(42,39,36,.35);

  --radius:       14px;
  --radius-lg:    22px;
  --container:    1180px;

  --ff-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --ff-sans:  "Nunito Sans", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: 1.125rem;         /* 18px base for readability */
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;          /* clip the off-canvas mobile menu (translated off-screen right) */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--gold-deep); }
h1, h2, h3, h4 {
  font-family: var(--ff-serif);
  font-weight: 500;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.35rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 2px; border-radius: 4px; }

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.15rem, 4vw, 2.5rem); }
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.bg-cream2 { background: var(--cream-2); }
.bg-sage   { background: linear-gradient(160deg, #f0f2e6, #e7ecd6); }
.eyebrow {
  font-family: var(--ff-sans);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .8rem;
  font-weight: 800;
  color: var(--sage-deep);
  margin: 0 0 .9rem;
}
.section-head { max-width: 44rem; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section-head p { color: var(--muted); font-size: 1.15rem; }
.lead { font-size: 1.28rem; color: var(--ink-soft); }
.text-center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--ff-sans); font-weight: 800; font-size: 1.02rem;
  line-height: 1; text-decoration: none; cursor: pointer;
  padding: 1rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn--primary { background: var(--gold); color: #3a2f08; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--gold-deep); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--dark { background: var(--sage-ink); color: #fff; }
.btn--dark:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--gold-deep); color: var(--gold-deep); background: #fff; }
.btn--ghost-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(4px); }
.btn--ghost-light:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }
.btn--lg { padding: 1.15rem 2rem; font-size: 1.1rem; }
.btn--block { display: flex; width: 100%; justify-content: center; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,246,238,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 1.25rem; padding-block: .7rem; }
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; margin-right: auto; }
.brand img { width: 60px; height: 60px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-family: var(--ff-serif); font-weight: 600; font-size: 1.34rem; color: var(--ink); letter-spacing: .01em; }
.brand-text span { font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: var(--sage-deep); font-weight: 700; margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; text-decoration: none; color: var(--ink-soft); font-weight: 700; font-size: 1rem;
  padding: .55rem .8rem; border-radius: 8px;
}
/* Desktop header: full-bleed bar (no page margins), larger logo mark, wider one-line wordmark, no-wrap nav items */
@media (min-width: 941px) {
  .site-header .container { max-width: none; }
  .brand img { width: 72px; height: 72px; }
  .brand-text b { font-size: 1.62rem; white-space: nowrap; }
  .brand-text span { font-size: .82rem; letter-spacing: .34em; }
  .nav-links a { white-space: nowrap; }
}
.nav-links a:hover { color: var(--gold-deep); background: var(--cream-2); }
.nav-links a[aria-current="page"] { color: var(--sage-ink); }
.nav-links a[aria-current="page"]::after { content: ""; display: block; height: 3px; border-radius: 3px; background: var(--gold); margin-top: 3px; }
.nav-cta { display: flex; align-items: center; gap: .6rem; margin-left: .35rem; }
.nav-phone { display: inline-flex; align-items: center; gap: .45rem; font-weight: 800; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-phone:hover { color: var(--gold-deep); }
.nav-phone svg { width: 1.05em; height: 1.05em; color: var(--sage-deep); }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: #fff; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .2s;
}
.nav-toggle span::before { transform: translateY(-7px); }
.nav-toggle span::after  { transform: translateY(4.5px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg) translateY(-1.7px); }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; top: 0; width: min(84vw, 340px);
    height: 100dvh; flex-direction: column; align-items: stretch; gap: .15rem;
    background: var(--cream); box-shadow: var(--shadow-lg);
    padding: 5.5rem 1.4rem 2rem; transform: translateX(100%); transition: transform .25s ease;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.2rem; padding: .85rem .7rem; border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-links .mobile-cta { margin-top: 1rem; }
  .nav-desktop-cta { display: none; }
  /* Collapse the header phone to an icon-only tap-to-call so it never crowds the toggle. */
  .nav-cta { margin-left: 0; }
  .nav-phone { width: 46px; height: 46px; justify-content: center; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; }
  .nav-phone span { display: none; }
  .nav-phone svg { width: 1.3em; height: 1.3em; }
  .brand { min-width: 0; }
  .brand-text span { display: none; }   /* hide "ASSISTED LIVING" subtext on mobile so the header never overflows */
}
@media (min-width: 941px) { .mobile-cta { display: none; } }
@media (max-width: 400px) { .brand img { width: 44px; height: 44px; } .brand-text b { font-size: 1.18rem; } }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(28,24,18,.30) 0%, rgba(28,24,18,.15) 35%, rgba(28,24,18,.62) 100%),
    linear-gradient(90deg, rgba(28,24,18,.55), rgba(28,24,18,.10) 60%);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-inner { padding-block: clamp(4.5rem, 12vw, 9rem); max-width: 46rem; }
.hero .eyebrow { color: #ffe9a8; }
.hero h1 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero p { font-size: 1.3rem; color: rgba(255,255,255,.94); max-width: 34rem; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.9rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.25); }
.hero-badge { display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: .98rem; }
.hero-badge svg { width: 1.4em; height: 1.4em; color: #ffe9a8; flex: none; }

/* ---------- generic grids ---------- */
.grid { display: grid; gap: clamp(1.1rem, 2.5vw, 1.8rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 4vw, 4rem); align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split-media.stack { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.split-media.stack img { aspect-ratio: 3/4; }
.split-media.stack img:first-child { margin-top: 0; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
}

/* ---------- cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: clamp(1.4rem, 2.5vw, 2rem); }

.feature {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--sage); }
.feature .ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 14px; margin-bottom: 1.1rem;
  background: linear-gradient(150deg, #f7edd0, #efe0be); color: var(--gold-deep);
}
.feature .ico svg { width: 30px; height: 30px; }
.feature h3 { margin-bottom: .4rem; }
.feature p { color: var(--muted); font-size: 1.02rem; margin: 0; }
.feature--sage .ico { background: linear-gradient(150deg, #e7ecd6, #d7e0bf); color: var(--sage-deep); }
.feature--terra .ico { background: linear-gradient(150deg, #f4ddd1, #ecc9b8); color: var(--terracotta-deep); }

/* ---------- checklist ---------- */
.checklist { list-style: none; margin: 1.3rem 0 0; padding: 0; display: grid; gap: .8rem; }
.checklist li { display: flex; align-items: flex-start; gap: .7rem; font-size: 1.06rem; }
.checklist svg { flex: none; width: 1.5rem; height: 1.5rem; color: var(--sage-deep); margin-top: .15rem; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat b { font-family: var(--ff-serif); display: block; font-size: clamp(2.1rem, 4vw, 3rem); color: var(--gold-deep); line-height: 1; }
.stat span { display: block; margin-top: .4rem; font-weight: 700; color: var(--muted); font-size: .98rem; }
@media (max-width: 620px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; } }

/* ---------- testimonials ---------- */
.quote-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem 1.7rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.quote-card .stars { color: var(--gold); letter-spacing: 2px; font-size: 1.05rem; margin-bottom: .8rem; }
.quote-card blockquote { margin: 0 0 1.1rem; font-size: 1.08rem; color: var(--ink-soft); }
.quote-card cite { margin-top: auto; font-style: normal; font-weight: 800; color: var(--ink); }
.quote-card cite span { display: block; font-weight: 600; color: var(--muted); font-size: .9rem; }

/* ---------- gallery ---------- */
.gallery { columns: 3 260px; column-gap: 1rem; }
.gallery button { display: block; width: 100%; margin: 0 0 1rem; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery img { border-radius: var(--radius); transition: transform .3s ease; width: 100%; }
.gallery button:hover img { transform: scale(1.04); }

.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(24,20,15,.9); padding: 1.5rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 88vh; width: auto; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox-close, .lightbox-nav button {
  position: absolute; background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.4);
  width: 52px; height: 52px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lightbox-close { top: 1.2rem; right: 1.2rem; }
.lightbox-nav .prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox-nav .next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-nav button:hover { background: #fff; color: var(--ink); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; color: #fff; text-align: center; isolation: isolate; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, var(--sage-ink), var(--sage-deep) 55%, var(--terracotta-deep)); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); font-size: 1.2rem; max-width: 40rem; margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 1.8rem; }

/* ---------- page hero (interior pages) ---------- */
.page-hero { position: relative; color: #fff; isolation: isolate; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(28,24,18,.45), rgba(28,24,18,.65)); }
.page-hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero-inner { padding-block: clamp(3.5rem, 8vw, 6rem); max-width: 48rem; }
.page-hero h1 { color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.page-hero p { color: rgba(255,255,255,.94); font-size: 1.22rem; max-width: 36rem; }
.breadcrumb { font-size: .92rem; color: rgba(255,255,255,.8); margin-bottom: 1rem; }
.breadcrumb a { color: #ffe9a8; text-decoration: none; }

/* ---------- rooms ---------- */
.room { overflow: hidden; }
.room img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.room .card-pad h3 { margin-bottom: .3rem; }
.room .card-pad p { color: var(--muted); margin: 0; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.15rem; }
.info-list li { display: flex; gap: .9rem; align-items: flex-start; }
.info-list .ico { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--cream-2); color: var(--sage-deep); display: flex; align-items: center; justify-content: center; }
.info-list .ico svg { width: 22px; height: 22px; }
.info-list b { display: block; color: var(--ink); }
.info-list a { color: var(--ink-soft); text-decoration: none; }
.info-list a:hover { color: var(--gold-deep); }

/* ---------- form ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow-md); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 800; font-size: .96rem; margin-bottom: .4rem; color: var(--ink); }
.field .req { color: var(--terracotta-deep); }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 1.05rem; color: var(--ink);
  padding: .85rem 1rem; border: 1.5px solid var(--line-strong); border-radius: 10px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,.22); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,.15); }
.field-error { color: #c0392b; font-size: .9rem; font-weight: 700; margin: .4rem 0 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; gap: 0; } }
.form-note { font-size: .9rem; color: var(--muted); margin-top: .8rem; }
.form-success {
  display: none; background: #eef4e2; border: 1.5px solid var(--sage);
  border-radius: var(--radius); padding: 1.5rem 1.6rem; text-align: center;
}
.form-success .ico { width: 54px; height: 54px; border-radius: 50%; background: var(--sage-deep); color: #fff; display: inline-flex; align-items: center; justify-content: center; margin-bottom: .7rem; }
.form-success h3 { color: var(--sage-ink); margin-bottom: .3rem; }
.form-success p { color: var(--ink-soft); margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: #211f1b; color: #c9c3b6; padding-block: clamp(3rem, 5vw, 4.5rem) 2rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { width: 84px; background: #fff; border-radius: 14px; padding: 8px; margin-bottom: 1rem; }
.footer-brand p { color: #a49d90; font-size: 1rem; }
.site-footer h4 { color: #fff; font-family: var(--ff-sans); font-weight: 800; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 1.1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-links a { color: #c9c3b6; text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.footer-contact { display: grid; gap: .7rem; font-size: 1rem; }
.footer-contact a { color: #c9c3b6; text-decoration: none; }
.footer-contact a:hover { color: var(--gold); }
.footer-contact .btn { justify-content: center; }   /* center the "Schedule a Tour" label */
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: .9rem; color: #8f887c; }
.footer-bottom a { color: #8f887c; text-decoration: none; }

/* ---------- misc ---------- */
.pill { display: inline-flex; align-items: center; gap: .45rem; background: var(--cream-2); color: var(--sage-ink); font-weight: 800; font-size: .85rem; padding: .4rem .9rem; border-radius: 999px; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; color: var(--ink); padding: .7rem 1rem; z-index: 200; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 1.6rem; } .mb-0 { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
