/* Warm Earth-Tone Theme for Paradisi Manor */
:root {
  /* Primary Colors - Warm Earth Tones */
  --primary: #8B6F47;          /* Warm Brown */
  --primary-light: #A6896A;    /* Light Warm Brown */
  --primary-dark: #6B5435;     /* Deep Brown */

  /* Secondary/Accent - Warm Sage Green */
  --secondary: #8FAF7E;        /* Sage Green */
  --secondary-light: #B3D4A0;  /* Light Sage */
  --secondary-dark: #6D8C5E;   /* Deep Sage */

  /* Accent - Warm Terra Cotta */
  --accent: #C7956D;           /* Terra Cotta */
  --accent-light: #E0B894;     /* Light Terra Cotta */

  /* Success/Positive */
  --success: #7FA060;

  /* Error */
  --error: #C77A6D;

  /* Backgrounds - Warm Neutrals */
  --background: #FAF8F5;       /* Warm Off-White */
  --surface: #FFFFFF;          /* Pure White */
  --surface-variant: #F5F2ED;  /* Warm Light Beige */

  /* Text - Warm Blacks and Grays */
  --text: rgba(60, 50, 40, 0.90);          /* Warm Dark Brown-Black */
  --text-medium: rgba(80, 70, 60, 0.70);   /* Medium Warm Gray */
  --text-disabled: rgba(100, 90, 80, 0.45);/* Disabled Warm Gray */
  --text-light: rgba(90, 80, 70, 0.65);    /* Light Warm Gray */

  /* Dividers */
  --border: rgba(139, 111, 71, 0.15);      /* Subtle Warm Border */
  --divider: rgba(139, 111, 71, 0.12);

  /* Overlays */
  --overlay-light: rgba(139, 111, 71, 0.04);
  --overlay-medium: rgba(139, 111, 71, 0.08);
  --overlay-dark: rgba(139, 111, 71, 0.12);

  /* Cards & Components */
  --header-bg: rgba(255, 255, 255, 0.85);
  --hero-bg: rgba(255, 255, 255, 0.65);
  --card-bg: #FFFFFF;
  --input-bg: #FFFFFF;
  --btn-color: white;

  /* Elevation shadows - Warm tinted */
  --elevation-1: 0px 2px 1px -1px rgba(139, 111, 71, 0.2), 0px 1px 1px 0px rgba(139, 111, 71, 0.14), 0px 1px 3px 0px rgba(139, 111, 71, 0.12);
  --elevation-2: 0px 3px 1px -2px rgba(139, 111, 71, 0.2), 0px 2px 2px 0px rgba(139, 111, 71, 0.14), 0px 1px 5px 0px rgba(139, 111, 71, 0.12);
  --elevation-3: 0px 3px 3px -2px rgba(139, 111, 71, 0.2), 0px 3px 4px 0px rgba(139, 111, 71, 0.14), 0px 1px 8px 0px rgba(139, 111, 71, 0.12);
  --elevation-4: 0px 2px 4px -1px rgba(139, 111, 71, 0.2), 0px 4px 5px 0px rgba(139, 111, 71, 0.14), 0px 1px 10px 0px rgba(139, 111, 71, 0.12);
  --elevation-6: 0px 3px 5px -1px rgba(139, 111, 71, 0.2), 0px 6px 10px 0px rgba(139, 111, 71, 0.14), 0px 1px 18px 0px rgba(139, 111, 71, 0.12);
  --elevation-8: 0px 5px 5px -3px rgba(139, 111, 71, 0.2), 0px 8px 10px 1px rgba(139, 111, 71, 0.14), 0px 3px 14px 2px rgba(139, 111, 71, 0.12);

  /* Gradients */
  --gradient-start: #8B6F47;
  --gradient-end: #6B5435;
}

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

html {
  scroll-behavior: smooth;
  font-size: 17px; /* slightly larger base than the browser default 16px — this audience skews older, and every rem-based size in this file benefits */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
  transition: background-color 0.3s ease, color 0.3s ease;
  padding-top: 4.5rem;
}

/* Warm display serif for headings and the logo — the system-font-only look read as generic;
   Fraunces pairs naturally with the earth-tone palette without needing any other color changes. */
h1, h2, h3,
.logo,
.hero-title,
.section-title,
.page-hero h1 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Visible keyboard-focus outline everywhere interactive — WCAG 2.2 target,
   and this audience is more likely than most to navigate by keyboard/switch device. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.faq-item summary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--primary-light);
  color: var(--btn-color);
  transform: translateY(-2px);
  box-shadow: var(--elevation-4);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.section {
  padding: 5rem 0;
}

.section-dark {
  background: var(--surface-variant);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

/* Header Component Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(30px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.logo:hover {
  color: var(--text);
}

.logo-icon {
  flex-shrink: 0;
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0 auto;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-left: auto;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
}

/* Hero Component Styles */
.hero {
  min-height: 100vh;
  margin-top: -4.5rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-background picture,
.hero-background img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(42, 37, 31, 0.78) 0%, rgba(42, 37, 31, 0.55) 100%);
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
  z-index: 1;
  background: rgba(20, 17, 14, 0.15);
  border-radius: 1.5rem;
  backdrop-filter: blur(0%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--overlay-dark);
  color: var(--primary);
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.badge-icon {
  font-size: 1rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: white;
}

.hero-highlight {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 700px;
  line-height: 1.8;
}

.hero-actions .btn-secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-actions .btn {
  gap: 0.5rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Services/Care Levels Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: var(--elevation-2);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.service-card:hover {
  box-shadow: var(--elevation-6);
  border-color: var(--primary-light);
  transform: translateY(-4px);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: var(--overlay-medium);
  border-radius: 1rem;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.service-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

.service-description {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  margin-top: 1rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--text);
}

.service-features svg {
  color: var(--secondary);
  flex-shrink: 0;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--elevation-4);
}

.about-image picture,
.about-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.about-description {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.about-values {
  list-style: none;
}

.about-values li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-size: 1rem;
  color: var(--text);
}

.about-values svg {
  color: var(--secondary);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Amenities Grid */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.amenity-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--elevation-2);
  transition: all 0.3s ease;
  text-align: center;
}

.amenity-card:hover {
  box-shadow: var(--elevation-4);
  transform: translateY(-4px);
}

.amenity-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--overlay-medium);
  border-radius: 50%;
  font-size: 1.75rem;
  margin: 0 auto 1rem;
  color: var(--secondary);
}

.amenity-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.amenity-description {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Gallery Carousel */
.gallery-carousel {
  margin-top: 3rem;
}

.carousel-slide {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--overlay-light) 0%, var(--overlay-medium) 100%);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--elevation-4);
}

.carousel-slide-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.carousel-slide-image picture,
.carousel-slide-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel-slide-image.active {
  opacity: 1;
  z-index: 1;
}

.carousel-caption {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(42, 37, 31, 0.9), transparent);
  color: white;
  padding: 2rem 1.5rem 1.25rem;
  font-size: 1.25rem;
  font-weight: 600;
  animation: caption-fade-in 0.5s ease;
}

@keyframes caption-fade-in {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.carousel-nav-btn {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(42, 37, 31, 0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.carousel-nav-btn:hover {
  background: rgba(42, 37, 31, 0.8);
}

.carousel-nav-prev {
  left: 1rem;
}

.carousel-nav-next {
  right: 1rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.carousel-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  border: none;
  background: var(--overlay-medium);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot.active {
  background: var(--primary-light);
  transform: scale(1.25);
}

/* Contact Component Styles */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.contact-description {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.method-icon {
  font-size: 1.5rem;
  background: var(--overlay-medium);
  padding: 1rem;
  border-radius: 50%;
  color: var(--primary);
  flex-shrink: 0;
}

.method-details h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.method-details a {
  color: var(--primary);
  text-decoration: none;
}

.method-details a:hover {
  text-decoration: underline;
}

.method-details span {
  color: var(--text-light);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--overlay-medium);
  color: var(--primary);
  transition: all 0.2s ease;
}

.social-link:hover {
  background: var(--primary);
  color: var(--btn-color);
  transform: translateY(-2px);
}

.contact-form {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--elevation-2);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--input-bg);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-message {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.form-message-success {
  background: rgba(127, 160, 96, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
}

.form-message-error {
  background: rgba(199, 122, 109, 0.1);
  border: 1px solid var(--error);
  color: var(--error);
}

.btn:disabled {
  background: var(--overlay-light);
  cursor: not-allowed;
  opacity: 0.6;
  color: var(--text-disabled);
}

.btn:disabled:hover {
  background: var(--overlay-light);
  transform: none;
}

.btn-full {
  width: 100%;
}

/* Footer Component Styles */
.footer {
  background: var(--surface-variant);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-tagline {
  color: var(--text-light);
  margin-top: 1rem;
  line-height: 1.6;
}

.footer-links h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Divider Component Styles */
.divider-container {
  width: 100%;
  padding: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider-line {
  width: 100%;
  max-width: 1100px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--primary) 20%,
    var(--accent) 50%,
    var(--primary) 80%,
    transparent 100%
  );
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.divider-line:hover {
  opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 4.5rem;
    left: 0;
    right: 0;
    background: var(--header-bg);
    flex-direction: column;
    gap: 0;
    box-shadow: var(--elevation-4);
    backdrop-filter: blur(10px);
    z-index: 999;
    padding: 1rem 0;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    margin: 0;
    padding: 0;
    text-align: center;
  }

  .nav-links li a {
    display: block;
    padding: 0.875rem 1.5rem;
    width: 100%;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu-btn.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-actions .btn {
    display: none;
  }

  .hero {
    margin-top: 0;
    min-height: calc(100vh - 4.5rem);
  }

  .hero-overlay {
    background: rgba(20, 17, 14, 0.7);
    backdrop-filter: blur(6px);
  }

  .hero-content {
    background: none;
    backdrop-filter: none;
    border-radius: 0;
    padding: 2rem 1.5rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 2rem;
  }

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

  .carousel-caption {
    font-size: 1rem;
    padding: 1.5rem 1rem 1rem;
  }

  .amenities-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Added for the static rebuild (not present in the original component CSS)
   ========================================================================== */

/* Accessibility: skip-to-content link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 0.375rem;
  z-index: 2000;
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  color: white;
}

/* Interior page hero (About, Services, Gallery, Contact, Careers, Legal) */
.page-hero {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  padding: 4rem 0 3rem;
  text-align: center;
  color: white;
}

.page-hero .breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  opacity: 0.85;
}

.page-hero .breadcrumb a {
  color: white;
  text-decoration: underline;
}

.page-hero .breadcrumb a:hover {
  color: var(--accent-light);
}

.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.page-hero p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  opacity: 0.95;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .page-hero h1 {
    font-size: 1.85rem;
  }
}

/* Service detail pages (Assisted Living / Memory Care / Respite Care) */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

.service-detail-image {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--elevation-3);
  aspect-ratio: 4 / 3;
}

.service-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-detail-content h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.service-detail-content p {
  color: var(--text-medium);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.related-services {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--divider);
}

.related-services h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* Legal pages (Privacy / Terms) */
.legal-page {
  padding: 3rem 0 5rem;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.legal-content .last-updated {
  color: var(--text-light);
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
}

.legal-content section {
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
}

.legal-content h3 {
  font-size: 1.05rem;
  margin: 1rem 0 0.5rem;
}

.legal-content p {
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.legal-content ul {
  color: var(--text-medium);
  line-height: 1.8;
  margin: 0 0 1rem 1.5rem;
}

.legal-content a {
  text-decoration: underline;
}

.legal-content .back-link {
  margin-top: 3rem;
}

/* Contact form success state (toggled via JS, replaces React conditional render) */
.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}

.form-success.visible {
  display: block;
}

.form-success .icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.form-success h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--success);
}

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

.contact-form.hidden {
  display: none;
}

/* Simple photo gallery grid + lightbox (vanilla JS version) */
.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0 3rem;
}

.photo-gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 0.75rem;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--elevation-1);
  background: var(--surface-variant);
}

.photo-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.photo-gallery-item:hover img {
  transform: scale(1.05);
}

.photo-gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
  color: white;
  font-size: 0.85rem;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 12, 0.9);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-content {
  max-width: 1100px;
  width: 100%;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 0.5rem;
  object-fit: contain;
}

.lightbox-caption {
  color: white;
  margin-top: 1rem;
  font-size: 1rem;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

/* Careers page reuses .amenity-card grid, add specific spacing */
.careers-apply {
  text-align: center;
  margin-top: 4rem;
}

.careers-apply h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.careers-apply p {
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--text-medium);
}

/* FAQ accordion (native <details>/<summary>, no JS needed) */
.faq-section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--divider);
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  line-height: 1;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 1.4rem 1.25rem;
  color: var(--text-medium);
  line-height: 1.8;
}

/* Extra content sections on service pages (e.g. "Who It's For", "What to Expect") */
.info-section {
  margin: 3rem 0;
}

.info-section h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.info-section p {
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.info-section ul {
  color: var(--text-medium);
  line-height: 1.9;
  margin: 0 0 1rem 1.5rem;
}
