/* ==========================================================================
   Val's Family Care — shared stylesheet
   ========================================================================== */

:root {
  --navy-900: #1b2740;
  --navy-700: #2b4066;
  --navy-600: #35507e;
  --navy-100: #e4eaf3;
  --cream: #faf6ef;
  --cream-dark: #f1ebdf;
  --terracotta: #c96f4a;
  --terracotta-dark: #b05a38;
  --ink: #2b2a26;
  --ink-soft: #5c594f;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(27, 39, 64, 0.10);
  --font-head: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", Tahoma, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.06rem;
}

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

a {
  color: var(--navy-700);
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--navy-900);
  color: var(--navy-100);
  font-size: 0.9rem;
  padding: 0.4rem 0;
}

.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  justify-content: center;
}

.topbar a {
  color: var(--navy-100);
  text-decoration: none;
}

.topbar a:hover {
  text-decoration: underline;
}

.topbar-line {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .topbar .wrap {
    gap: 0.1rem 1.5rem;
  }

  .topbar-sep {
    display: none;
  }
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 48px;
  height: auto;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.2;
}

.brand-tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

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

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  transition: background 0.15s;
}

.site-nav a:hover {
  background: var(--navy-100);
}

.site-nav a.active {
  background: var(--navy-100);
  color: var(--navy-900);
}

.site-nav a.nav-cta {
  background: var(--terracotta);
  color: var(--white);
}

.site-nav a.nav-cta:hover {
  background: var(--terracotta-dark);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  background:
    radial-gradient(1100px 420px at 85% -10%, rgba(201, 111, 74, 0.16), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--white);
  padding: 4.5rem 0 4rem;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 600;
  line-height: 1.15;
  max-width: 22ch;
}

.hero p.lede {
  margin-top: 1.1rem;
  font-size: 1.18rem;
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.92);
}

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

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

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

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

.btn-ghost {
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-outline {
  border: 2px solid var(--navy-700);
  color: var(--navy-700);
}

.btn-outline:hover {
  background: var(--navy-100);
}

.hero-stats {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
}

.hero-stat span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: 4rem 0;
}

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

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--terracotta);
}

.section h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--navy-900);
  margin-top: 0.3rem;
}

.section-intro {
  max-width: 62ch;
  margin-top: 0.9rem;
  color: var(--ink-soft);
}

/* Services grid */

.services-grid {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.1rem;
}

.service {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow);
}

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

.service h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.service h3 svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--terracotta);
}

.service p {
  margin-top: 0.5rem;
  font-size: 0.97rem;
  color: var(--ink-soft);
}

/* Philosophy band */

.band {
  background: var(--navy-100);
  border-radius: var(--radius);
  padding: 2.2rem 2.4rem;
  margin-top: 2.5rem;
}

.band blockquote {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--navy-900);
  max-width: 60ch;
}

.band p {
  margin-top: 0.8rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Location cards
   -------------------------------------------------------------------------- */

.homes-grid {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.3rem;
}

.home-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.home-card-art {
  height: 150px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: linear-gradient(180deg, #cfdbeb 0%, #a9bdd8 100%);
}

.home-card-art.cary {
  background: linear-gradient(180deg, #ead9c6 0%, #d5b795 100%);
}

.home-card-art svg {
  width: 70%;
  height: auto;
}

.home-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-card-body {
  padding: 1.3rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.home-card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--navy-900);
}

.home-card .home-meta {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.chip {
  display: inline-block;
  background: var(--navy-100);
  color: var(--navy-900);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.15rem 0.7rem;
  margin-right: 0.3rem;
}

.chip.cary {
  background: #f3e3d3;
  color: #8a4a28;
}

.chip.soon {
  background: #f7e8d8;
  color: var(--terracotta-dark);
}

.home-card-art.soon {
  background: linear-gradient(180deg, var(--navy-100) 0%, #c9d4e6 100%);
}

.home-card-art.soon span {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy-700);
  letter-spacing: 0.06em;
  margin: auto;
}

.home-card .card-link {
  margin-top: auto;
  padding-top: 0.7rem;
  font-weight: 700;
  text-decoration: none;
}

.home-card .card-link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Location detail (locations.html)
   -------------------------------------------------------------------------- */

.location-detail {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 2.2rem;
  margin-top: 2rem;
  scroll-margin-top: 6.5rem;
}

.location-detail header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
  border-bottom: 2px solid var(--navy-100);
  padding-bottom: 0.9rem;
}

.location-detail h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--navy-900);
}

.location-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  margin-top: 1.4rem;
}

.location-cols ul {
  margin: 0.6rem 0 0 1.2rem;
  color: var(--ink-soft);
}

.location-cols li {
  margin-bottom: 0.35rem;
}

.contact-box {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  font-size: 0.98rem;
  align-self: start;
}

.contact-box h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  margin-bottom: 0.5rem;
}

.contact-box p {
  margin-bottom: 0.45rem;
}

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

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */

.founder {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.6rem;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 2.2rem;
  margin-top: 2rem;
}

.founder-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--navy-100);
}

.founder-photo.terra {
  border-color: #f3e3d3;
}

.founder h3 {
  font-family: var(--font-head);
  font-size: 1.45rem;
  color: var(--navy-900);
}

.founder .founder-role {
  color: var(--terracotta);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}

.founder ul {
  margin: 0.8rem 0 0 1.2rem;
  color: var(--ink-soft);
}

.founder li {
  margin-bottom: 0.3rem;
}

/* Photo slider (locations page) */

.carousel {
  position: relative;
  margin-top: 1.5rem;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 10px;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 380px;
  object-fit: cover;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--navy-900);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}

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

.carousel-btn.prev {
  left: 0.8rem;
}

.carousel-btn.next {
  right: 0.8rem;
}

@media (max-width: 760px) {
  .carousel-track img {
    height: 240px;
  }
}

/* Video tour + map embeds (locations page) */

.media-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.media-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 10px;
  background: var(--cream-dark);
}

.video-facade {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #000;
}

.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.facade-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border: none;
  border-radius: 50%;
  background: var(--terracotta);
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: background 0.15s, transform 0.15s;
}

.facade-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-left: 20px solid var(--white);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

.video-facade:hover .facade-play {
  background: var(--terracotta-dark);
  transform: translate(-50%, -50%) scale(1.06);
}

/* --------------------------------------------------------------------------
   Contact / visit section
   -------------------------------------------------------------------------- */

.visit-grid {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.3rem;
}

.visit-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.8rem;
}

.visit-card h3 {
  font-family: var(--font-head);
  color: var(--navy-900);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.visit-card p {
  margin-bottom: 0.4rem;
}

/* Contact form */

.form-card {
  grid-column: 1 / -1;
}

.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
  max-width: 560px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--cream-dark);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--navy-600);
  outline-offset: 1px;
  background: var(--white);
}

.contact-form button {
  border: none;
  cursor: pointer;
  justify-self: start;
  font: inherit;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy-900);
  color: var(--navy-100);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.site-footer h4 {
  font-family: var(--font-head);
  color: var(--white);
  margin-bottom: 0.7rem;
}

.site-footer a {
  color: var(--navy-100);
}

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

.site-footer li {
  margin-bottom: 0.4rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  font-size: 0.88rem;
  color: rgba(227, 234, 243, 0.75);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 760px) {
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .location-cols {
    grid-template-columns: 1fr;
  }

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

  .founder-photo {
    width: 100px;
    height: 100px;
  }
}
