
/* ============================================================
   HOME HERO — SPACIOUS FULL-WIDTH DESIGN
   ============================================================ */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(620px, 80vh, 850px);
  padding: clamp(5rem, 8vw, 8rem) 0;
  background-image: url('../assets/Papillon/Papillon front(1).jpg');
  background-size: cover;
  background-position: center 52%;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

/* Gradient keeps the text readable without
   washing out the entire house photo. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(20, 30, 40, 0.94) 0%,
    rgba(20, 30, 40, 0.86) 28%,
    rgba(20, 30, 40, 0.62) 52%,
    rgba(20, 30, 40, 0.12) 100%
  );
}


/* Hero content starts closer to the left edge */
.hero-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: clamp(1.5rem, 3vw, 4rem);
}

/* Expand the text area into the red outlined space */
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;

  width: 100%;
  max-width: 1050px;

  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Small introductory text */
.hero-who {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 640px;
  margin: 0 0 1.5rem;

  color: #ffad55;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-who::before {
  content: "";
  display: block;
  flex: 0 0 30px;
  height: 2px;
  background: #f6921e;
  border-radius: 2px;
}

/* Main heading */

.hero-text h1 {
  max-width: 1000px;
  margin: 0 0 1.6rem;
  color: #ffffff;
  font-family: var(--font-ui);
  font-size: clamp(3rem, 5.2vw, 5.7rem);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-text .lead {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.85;
}


/* Buttons */
.hero-text .btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2.1rem;
}

.hero-text .btn-primary {
  background: #f6921e;
  border-color: #f6921e;
  color: #1c1c1e;
}

.hero-text .btn-primary:hover {
  background: #ffab4e;
  border-color: #ffab4e;
}

.hero-text .btn-outline {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #ffffff;
}

.hero-text .btn-outline:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* Location note */
.hero-note {
  max-width: 100%;
  margin: 2.3rem 0 0;
  padding-top: 1.25rem;

  border-top: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Staggered entrance animation */
.hero-anim {
  opacity: 0;
  transform: translateY(18px);
  animation: heroFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.1s + var(--i, 0) * 0.1s);
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 900px) {
  .hero {
    min-height: 650px;
    background-position: 58% center;
  }

  .hero::before {
    background: linear-gradient(
      90deg,
      rgba(20, 30, 40, 0.94) 0%,
      rgba(20, 30, 40, 0.78) 60%,
      rgba(20, 30, 40, 0.35) 100%
    );
  }

  .hero-text {
    max-width: 650px;
  }

  .hero-text h1 {
    font-size: clamp(2.8rem, 6.5vw, 4.5rem);
  }
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 600px) {
  .hero {
    min-height: auto;
    padding: 4.5rem 0;
    background-position: 60% center;
  }

  .hero::before {
    background: linear-gradient(
      180deg,
      rgba(20, 30, 40, 0.83) 0%,
      rgba(20, 30, 40, 0.95) 100%
    );
  }

  .hero-wrap {
    width: calc(100% - 2.5rem);
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-who {
    margin-bottom: 1.3rem;
    font-size: 0.68rem;
    letter-spacing: 0.09em;
  }

  .hero-who::before {
    flex-basis: 22px;
  }

  .hero-text h1 {
    font-size: clamp(2.45rem, 10vw, 3.6rem);
    line-height: 1.1;
    margin-bottom: 1.25rem;
  }

  .hero-text .lead {
    font-size: 1rem;
    line-height: 1.75;
  }

  .hero-text .btn-row {
    width: 100%;
    margin-top: 1.8rem;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-text .btn-row .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hero-note {
    margin-top: 1.9rem;
    font-size: 0.78rem;
  }
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
  .hero-anim {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ------------------------------------------------------------
   WHO WE HELP — section heading visible, icon accent
   ------------------------------------------------------------ */
.who-section {
  padding-block: var(--space-xl);
}

.who-section .section-head {
  max-width: 100%;
  margin-bottom: var(--space-lg);
}

.who-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(58,124,165,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-xs);
  flex-shrink: 0;
}

.who-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ------------------------------------------------------------
   OUR HOMES — image-led two-column preview cards
   ------------------------------------------------------------ */
.homes-section {
  padding-block: var(--space-2xl);
  background: var(--color-tint);
}

.homes-section .section-head {
  margin-bottom: var(--space-lg);
}

.homes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.home-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.home-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.home-card-photo {
  min-height: 220px;
  background: #dde8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-md);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.home-card-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}

.home-card-body h3 {
  font-size: 1.25rem;
  color: var(--color-dark);
}

.home-card-location {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.home-card-body p {
  color: var(--color-text);
  flex: 1;
}

/* ------------------------------------------------------------
   DAILY LIFE — alternating image + text rows
   ------------------------------------------------------------ */
.daily-section {
  padding-block: var(--space-xl);
}

.daily-section .section-head {
  margin-bottom: var(--space-lg);
}

.daily-rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.daily-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.daily-row.reverse { direction: rtl; }
.daily-row.reverse > * { direction: ltr; }

.daily-row-text h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
  color: var(--color-dark);
}

.daily-row-text p {
  color: var(--color-text);
}

.daily-row-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 240px;
  background: var(--color-tint);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-md);
  text-align: center;
}

/* ------------------------------------------------------------
   NURSING CARE — clean cards with accent top border
   ------------------------------------------------------------ */
.nursing-section {
  padding-block: var(--space-2xl);
  background: var(--color-tint);
}

.nursing-section .section-head {
  margin-bottom: var(--space-lg);
}

.nursing-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.nursing-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nursing-card h3 {
  font-size: 1.05rem;
  color: var(--color-dark);
}

.nursing-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  flex: 1;
}

/* ------------------------------------------------------------
   RIGHTS — visually distinct pillars
   ------------------------------------------------------------ */
.rights-band {
  padding-block: var(--space-2xl);
  background: var(--color-accent);
  color: var(--color-white);
}

.rights-band h2,
.rights-band p { color: var(--color-white); }

.rights-band .section-head {
  margin-bottom: var(--space-lg);
}

.rights-band .section-head p {
  color: rgba(255,255,255,0.85);
}

.rights-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.rights-pillar {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rights-pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rights-pillar-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-white);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rights-pillar strong {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--color-white);
  display: block;
}

.rights-pillar p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
  max-width: none;
}

.rights-band .btn-dark {
  background: var(--color-dark);
  border-color: var(--color-dark);
}

/* ------------------------------------------------------------
   CONTACT BAND — improved layout
   ------------------------------------------------------------ */
.contact-band {
  padding-block: var(--space-2xl);
  background: var(--color-dark);
  color: var(--color-white);
}

.contact-band-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-xl);
  align-items: center;
}

.contact-band h2 {
  color: var(--color-white);
  margin-bottom: var(--space-xs);
}

.contact-band p {
  color: rgba(255,255,255,0.75);
  max-width: 52ch;
}

.contact-band-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: flex-end;
}

.contact-band-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-end;
}

.contact-band-links a {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

.contact-band-links a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.contact-band-links span {
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255,255,255,0.45);
  margin-right: 0.35rem;
}

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .hero-wrap { padding-inline: var(--space-sm); }

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

  .daily-row,
  .daily-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

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

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

  .contact-band-inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .contact-band-actions { align-items: flex-start; }
  .contact-band-links { align-items: flex-start; }
}

@media (max-width: 700px) {
  .nursing-cards { grid-template-columns: 1fr; }
  .rights-pillars { grid-template-columns: 1fr 1fr; }
  .who-section .cards-3 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .rights-pillars { grid-template-columns: 1fr; }
}

/* ============================================================
   OUT-OF-AREA INQUIRY MODAL
   ============================================================ */
.oa-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(20, 30, 40, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.oa-backdrop.oa-visible {
  opacity: 1;
}

.oa-card {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(20, 30, 40, 0.22), 0 4px 16px rgba(20, 30, 40, 0.1);
  padding: 2.25rem 2rem 2rem;
  width: 100%;
  max-width: 460px;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  border-top: 4px solid #e07b39;
}
.oa-backdrop.oa-visible .oa-card {
  transform: translateY(0) scale(1);
}

.oa-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #d9d0c7;
  background: #f4f0eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5a5a5a;
  transition: background 0.15s, border-color 0.15s;
  padding: 0;
}
.oa-close:hover {
  background: #e07b39;
  border-color: #e07b39;
  color: #ffffff;
}
.oa-close svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.oa-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(224, 123, 57, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.oa-icon svg {
  width: 24px;
  height: 24px;
  stroke: #e07b39;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.oa-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e07b39;
  margin-bottom: 0.5rem;
  max-width: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.oa-eyebrow::before {
  content: '';
  display: inline-block;
  width: 1.25rem;
  height: 2px;
  background: #e07b39;
  border-radius: 2px;
  flex-shrink: 0;
}

.oa-title {
  font-family: var(--font-ui);
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: #1e2d3a;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.oa-desc {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: #5a5a5a;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  max-width: none;
}

.oa-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.oa-cta {
  flex-shrink: 0;
}

.oa-dismiss {
  background: none;
  border: none;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  color: #5a5a5a;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
  cursor: pointer;
  transition: color 0.15s;
}
.oa-dismiss:hover {
  color: #1e2d3a;
}

/* Mobile: bottom-sheet style */
@media (max-width: 600px) {
  .oa-backdrop {
    align-items: flex-end;
    padding: 0;
  }
  .oa-card {
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    border-top: 4px solid #e07b39;
    padding: 2rem 1.25rem 2.5rem;
    padding-bottom: calc(2.5rem + env(safe-area-inset-bottom));
    transform: translateY(40px);
  }
  .oa-backdrop.oa-visible .oa-card {
    transform: translateY(0);
  }
  .oa-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .oa-cta {
    text-align: center;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oa-backdrop,
  .oa-card {
    transition: none;
  }
}
