/* Common Ground Retirement Living - Debut Websites by C i Marketing */

:root {
  --primary: #30463B;
  --secondary: #D8D0C4;
  --accent: #F6F2EB;
  --text: #343A37;
  --clay: #A8654B;
  --text-light: #6B6B69;
  --bg: #F6F2EB;
  --bg-stone: #D8D0C4;
  --heading-font: 'DM Sans', sans-serif;
  --body-font: 'DM Sans', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--heading-font);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin-bottom: 1.1rem;
}

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

a {
  color: var(--primary);
  text-underline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  z-index: 10000;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

header :focus-visible,
footer :focus-visible,
.panel-green :focus-visible {
  outline-color: #fff;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Motion */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes banner-zoom {
  from {
    transform: scale(1.07);
  }
  to {
    transform: scale(1);
  }
}

.reveal-load {
  animation: rise-in 0.9s ease-out both;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-banner-media img,
.image-strip img {
  animation: banner-zoom 14s ease-out both;
}

.split-media img,
.amenities-grid img {
  transition: transform 0.5s ease;
}

.split-media img:hover,
.amenities-grid img:hover {
  transform: scale(1.02);
}

.btn {
  transition: background 0.25s ease, transform 0.25s ease;
}

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

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

  .reveal-load,
  .hero-banner-media img,
  .image-strip img {
    animation: none;
  }

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

  .split-media img,
  .amenities-grid img,
  .btn {
    transition: none;
  }

  .split-media img:hover,
  .amenities-grid img:hover,
  .btn:hover {
    transform: none;
  }
}

/* Header and navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo-pill {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  border-radius: 999px;
  padding: 8px 20px;
}

.logo-pill img {
  height: 38px;
  width: auto;
}

.nav-toggle {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  color: #fff;
  font-family: var(--body-font);
  font-size: 0.9rem;
  padding: 10px 20px;
  min-height: 44px;
  cursor: pointer;
}

.nav-menu {
  list-style: none;
  display: none;
  width: 100%;
  padding-bottom: 12px;
}

.nav-menu.open {
  display: block;
}

.nav-menu a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 12px 4px;
  min-height: 44px;
  font-size: 0.98rem;
}

.nav-menu a:hover {
  color: var(--secondary);
}

.nav-menu a.active {
  color: var(--secondary);
  font-weight: 600;
}

.nav-item.has-dropdown > a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  flex-shrink: 0;
}

.dropdown {
  list-style: none;
  display: none;
  padding-left: 16px;
}

.nav-item.dropdown-open > .dropdown {
  display: block;
}

@media (min-width: 1024px) {
  .nav-bar {
    flex-wrap: nowrap;
  }

  .logo-pill img {
    height: 46px;
  }

  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
    width: auto;
    align-items: center;
    gap: 6px;
    padding-bottom: 0;
  }

  .nav-menu a {
    padding: 26px 14px;
  }

  .nav-item {
    position: relative;
  }

  .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary);
    min-width: 220px;
    padding: 8px 0;
    border-radius: 0 0 14px 14px;
  }

  .dropdown a {
    padding: 10px 18px;
  }
}

/* Big banner hero */
.hero-banner-media img {
  width: 100%;
  height: 62vh;
  min-height: 400px;
  object-fit: cover;
}

.hero-panel {
  position: relative;
  background: var(--bg);
  border-radius: 26px;
  padding: 38px 26px 30px;
  margin-top: -80px;
}

.hero-panel .eyebrow {
  display: block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.hero-panel h1 {
  margin-bottom: 20px;
}

.hero-panel .lead {
  font-size: 1.12rem;
  color: var(--text-light);
  margin-bottom: 28px;
}

.hero-panel .lead + .lead {
  margin-top: -12px;
}

@media (min-width: 1024px) {
  .hero-banner-media img {
    height: 72vh;
    min-height: 540px;
  }

  .hero-panel {
    padding: 56px 64px 48px;
    margin-top: -130px;
  }
}

/* Page intro (no banner image) */
.page-intro {
  padding: 64px 0 0;
}

.page-intro h1 {
  margin-bottom: 20px;
}

.page-intro .lead {
  font-size: 1.12rem;
  color: var(--text-light);
}

@media (min-width: 1024px) {
  .page-intro {
    padding: 96px 0 0;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--clay);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 15px 32px;
  border-radius: 999px;
  border: none;
  font-family: var(--body-font);
  cursor: pointer;
  min-height: 44px;
}

.btn:hover {
  background: var(--primary);
}

.btn-light {
  background: var(--accent);
  color: var(--primary);
}

.btn-light:hover {
  background: var(--secondary);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.text-link {
  font-weight: 600;
  padding: 12px 4px;
  display: inline-block;
}

/* Content sections: cream throughout, generous space */
.section {
  padding: 72px 0;
}

@media (min-width: 1024px) {
  .section {
    padding: 104px 0;
  }
}

/* Split content: text beside image */
.split {
  display: grid;
  gap: 36px;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
  }

  .split-media img {
    min-height: 440px;
  }

  .split-reverse .split-copy {
    order: 2;
  }

  .split-reverse .split-media {
    order: 1;
  }

  .split-portrait {
    grid-template-columns: 6fr 5fr;
  }

  .split-portrait .split-media img {
    max-height: 620px;
  }
}

/* Full-bleed image strip */
.image-strip {
  overflow: hidden;
}

.image-strip img {
  width: 100%;
  height: 48vh;
  min-height: 340px;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .image-strip img {
    height: 60vh;
    min-height: 460px;
  }
}

/* Rounded colour panels instead of full-width bands */
.panel-green,
.panel-stone {
  border-radius: 26px;
  padding: 48px 28px;
}

.panel-green {
  background: var(--primary);
}

.panel-green h2,
.panel-green p {
  color: #fff;
}

.panel-green h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
}

.panel-green p {
  color: var(--secondary);
  margin-top: 22px;
}

.panel-green .day-lines {
  margin: 30px 0 26px;
}

.panel-green .day-lines p {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 400;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.4;
}

.panel-stone {
  background: var(--bg-stone);
}

.panel-stone h2 {
  margin-bottom: 0.8rem;
}

.panel-stone p {
  color: var(--text);
  margin-bottom: 28px;
}

@media (min-width: 1024px) {
  .panel-green,
  .panel-stone {
    padding: 72px 76px;
  }

  .panel-stone {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
  }

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

/* Prose sections (about story) */
.prose h2 {
  margin-top: 2.4rem;
}

.prose h2:first-child {
  margin-top: 0;
}

/* FAQ accordion */
.faq-section h2 {
  margin-bottom: 2rem;
}

.faq-item {
  background: var(--bg-stone);
  border-radius: 16px;
  margin-bottom: 12px;
}

.faq-question {
  margin: 0;
  font-size: 1rem;
}

.faq-question button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--body-font);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  padding: 19px 24px;
  min-height: 44px;
}

.faq-icon {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--primary);
}

.faq-icon::before {
  left: 0;
  top: 5px;
  width: 12px;
  height: 2px;
}

.faq-icon::after {
  left: 5px;
  top: 0;
  width: 2px;
  height: 12px;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-icon::after {
  transform: scaleY(0);
}

.faq-answer {
  display: none;
  padding: 0 24px 22px;
  color: var(--text);
}

.faq-item.open .faq-answer {
  display: block;
}

/* Amenities image grid (services) */
.amenities-grid {
  display: grid;
  gap: 16px;
}

.amenities-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 18px;
}

@media (min-width: 768px) {
  .amenities-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .amenities-grid img {
    height: 320px;
  }
}

/* Contact page */
.contact-grid {
  display: grid;
  gap: 48px;
}

.contact-block {
  margin-bottom: 28px;
}

.contact-block h3 {
  margin-bottom: 6px;
  color: var(--primary);
}

.contact-block p,
.contact-block address {
  font-style: normal;
  color: var(--text-light);
}

.contact-block a {
  font-weight: 600;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 5fr 6fr;
    gap: 80px;
    align-items: start;
  }
}

/* Forms */
.form-panel {
  background: var(--bg-stone);
  padding: 34px 28px;
  border-radius: 22px;
}

.form-panel h2 {
  font-size: 1.35rem;
  margin-bottom: 1.4rem;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--body-font);
  font-size: 1rem;
  color: var(--text);
  background: var(--accent);
  border: 1px solid var(--secondary);
  border-radius: 12px;
  padding: 12px 16px;
  min-height: 44px;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 0;
  border-color: var(--primary);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 14px;
}

/* Utility pages (thanks, 404) */
.page-simple {
  padding: 88px 0 110px;
}

.page-simple h1 {
  margin-bottom: 20px;
}

.page-simple p {
  color: var(--text-light);
  margin-bottom: 32px;
}

.big-404 {
  display: block;
  font-size: clamp(4.5rem, 12vw, 8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--primary);
  margin-bottom: 18px;
}

/* Privacy page */
.legal h2 {
  font-size: 1.3rem;
  margin-top: 2.2rem;
}

.legal p {
  color: var(--text-light);
}

/* Footer */
.site-footer {
  background: var(--primary);
  color: #fff;
  padding: 60px 0 28px;
}

.footer-grid {
  display: grid;
  gap: 36px;
  margin-bottom: 44px;
}

.footer-logo {
  margin-bottom: 18px;
}

.site-footer h2 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.site-footer p,
.site-footer address {
  color: var(--secondary);
  font-style: normal;
  font-size: 0.95rem;
}

.site-footer ul {
  list-style: none;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

.footer-links a {
  display: inline-block;
  padding: 6px 0;
}

.footer-meta {
  font-size: 0.85rem;
  color: var(--secondary);
}

.footer-meta a {
  color: var(--secondary);
  text-decoration: underline;
}

.footer-credit {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 10px;
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1.4fr;
    gap: 48px;
  }
}
