/* ============================================
   Exceptional Care Home - Main Stylesheet
   Color Palette: Gold (#D4A843) & White (#FFFFFF)
   Designed for elderly-friendly readability
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --gold: #D4A843;
  --gold-dark: #B8912A;
  --gold-light: #E8C96A;
  --gold-pale: #FBF5E6;
  --white: #FFFFFF;
  --off-white: #FAFAF7;
  --light-gray: #F5F3EE;
  --medium-gray: #8A8475;
  --dark: #2C2A25;
  --dark-soft: #3D3A33;
  --text-primary: #2C2A25;
  --text-secondary: #5A5750;
  --text-light: #8A8475;
  --shadow-sm: 0 2px 8px rgba(44, 42, 37, 0.08);
  --shadow-md: 0 4px 20px rgba(44, 42, 37, 0.12);
  --shadow-lg: 0 8px 40px rgba(44, 42, 37, 0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
  /* Elderly-friendly: larger base font */
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px; /* Larger base for elderly readability */
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

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

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

a {
  color: var(--gold-dark);
  text-decoration: none;
  transition: var(--transition);
}

a:hover, a:focus {
  color: var(--gold);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.3;
}

/* ---------- Skip Link (Accessibility) ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--gold);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 10000;
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

/* ---------- Container ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Top Bar ---------- */
.top-bar {
  background: var(--gold);
  color: var(--white);
  padding: 0.5rem 0;
  font-size: 0.85rem;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-contact {
  display: flex;
  gap: 1.5rem;
}

.top-bar-contact a,
.top-bar-social a {
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.top-bar-contact a:hover,
.top-bar-social a:hover {
  color: var(--gold-pale);
}

.top-bar-social a {
  font-size: 1rem;
}

/* ---------- Header ---------- */
.header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo:hover {
  opacity: 0.9;
}

.logo-icon svg {
  width: 55px;
  height: 46px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.5px;
}

.logo-subtitle {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--gold-dark);
  letter-spacing: 1px;
}

/* Navigation */
.nav-list {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}

.nav-link {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: var(--gold-dark);
  background: var(--gold-pale);
}

.btn-nav {
  background: var(--gold) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.6rem 1.25rem !important;
}

.btn-nav:hover,
.btn-nav:focus {
  background: var(--gold-dark) !important;
  color: var(--white) !important;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  line-height: 1.4;
}

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

.btn-primary:hover,
.btn-primary:focus {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--gold-dark);
  border-color: var(--gold-dark);
}

.btn-outline:hover,
.btn-outline:focus {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-white {
  background: var(--white);
  color: var(--gold-dark);
  border-color: var(--white);
}

.btn-white:hover,
.btn-white:focus {
  background: var(--gold-pale);
  color: var(--gold-dark);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: var(--white);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 60%, var(--gold-pale) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  padding: 4rem 0;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero .btn-outline {
  color: var(--gold-dark);
  border-color: var(--gold-dark);
}

.hero .btn-outline:hover {
  background: var(--gold);
  color: var(--white);
}

/* ---------- Sections ---------- */
.section {
  padding: 5rem 0;
}

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

.section-light {
  background: var(--light-gray);
}

.section-gold {
  background: var(--gold-pale);
  color: var(--text-primary);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto;
  border-radius: 2px;
}

.text-gold {
  color: var(--gold-dark);
}

.text-center {
  text-align: center;
}

/* ---------- Welcome Section ---------- */
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.welcome-text .lead-text {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.welcome-text p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.welcome-text .btn {
  margin-top: 0.5rem;
}

.image-placeholder {
  background: linear-gradient(135deg, var(--gold-pale) 0%, var(--light-gray) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 380px;
  border: 2px dashed var(--gold);
  color: var(--gold-dark);
}

.image-placeholder i {
  font-size: 3rem;
  opacity: 0.6;
}

.image-placeholder span {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ---------- Services Grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(212, 168, 67, 0.1);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: var(--gold-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.6rem;
  color: var(--gold-dark);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--gold);
  color: var(--white);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ---------- Features Grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  opacity: 0.5;
}

.feature-item h3 {
  font-size: 1.3rem;
}

.feature-item p {
  color: var(--text-secondary);
}

/* ---------- Testimonial / Quote ---------- */
.quote-icon {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.testimonial-quote {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-style: italic;
  color: var(--text-primary);
  max-width: 800px;
  margin: 0 auto 1rem;
  line-height: 1.5;
}

.testimonial-caption {
  font-size: 1rem;
  color: var(--gold-dark);
}

/* ---------- CTA Box ---------- */
.cta-box {
  background: var(--gold-pale);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border: 1px solid rgba(212, 168, 67, 0.2);
}

.cta-content h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.cta-content p {
  color: var(--text-secondary);
  max-width: 500px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ---------- Contact Grid ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.contact-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--gold-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.3rem;
  color: var(--gold-dark);
}

.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  word-break: break-word;
}

.contact-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.contact-link:hover {
  gap: 0.6rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--white);
  color: var(--text-secondary);
  padding: 3.5rem 0 0;
  border-top: 3px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo span {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

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

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--gold-dark);
  padding-left: 5px;
}

.footer-contact li {
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.footer-contact li i {
  color: var(--gold);
  margin-top: 4px;
  flex-shrink: 0;
}

.footer-contact a {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-contact a:hover {
  color: var(--gold-dark);
}

.footer-social {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--gold-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  font-size: 1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--light-gray);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ---------- Page Header (for inner pages) ---------- */
.page-header {
  background: var(--gold-pale);
  padding: 4rem 0 3rem;
  text-align: center;
  border-bottom: 2px solid var(--gold);
}

.page-header h1 {
  color: var(--text-primary);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-header .breadcrumb {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.page-header .breadcrumb a {
  color: var(--gold-dark);
}

.page-header .breadcrumb a:hover {
  color: var(--gold);
}

/* ---------- Inner Page Content ---------- */
.page-content {
  padding: 4rem 0;
}

.page-content h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.page-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.page-content p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

/* ---------- Reviews Section ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.review-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--gold);
}

.review-stars {
  color: var(--gold);
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.review-text {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.review-author {
  font-weight: 600;
  color: var(--text-primary);
}

/* ---------- Payments Section ---------- */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.payment-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  border: 1px solid rgba(212, 168, 67, 0.1);
  transition: var(--transition);
}

.payment-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.payment-card .payment-icon {
  width: 70px;
  height: 70px;
  background: var(--gold-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.6rem;
  color: var(--gold-dark);
}

.payment-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.payment-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ---------- Calendly Embed ---------- */
.calendly-container {
  max-width: 800px;
  margin: 0 auto;
  min-height: 700px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ---------- Form Styles ---------- */
.form-group {
  margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: var(--font-body);
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.2);
}

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

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

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

  .cta-box {
    flex-direction: column;
    text-align: center;
  }

  .cta-content p {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 16px;
  }

  .top-bar-contact {
    flex-direction: column;
    gap: 0.25rem;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    padding: 5rem 2rem 2rem;
    transition: right 0.35s ease;
    overflow-y: auto;
  }

  .nav.open {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 0.25rem;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.85rem 1rem;
  }

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

  .hero-subtitle {
    font-size: 1.05rem;
  }

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

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

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

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

  .testimonial-quote {
    font-size: 1.4rem;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

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

  .section {
    padding: 3.5rem 0;
  }
}

/* ---------- Mobile Overlay ---------- */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.nav-overlay.active {
  display: block;
}

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ---------- Under Construction Banner ---------- */
.under-construction {
  background: var(--gold-pale);
  border: 2px dashed var(--gold);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}

.under-construction h3 {
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}

.under-construction p {
  color: var(--text-secondary);
}
