/* ============================================
   RBCAT Rehab - rbcat.org
   Style: Luxury Retreat (#7)
   Architecture: Classic Multi-Page (#1)
   Generated: 2026-02-22
   ============================================ */

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

:root {
  --primary: #2C3E50;
  --secondary: #8B7355;
  --accent: #D4AF37;
  --text: #1A1A1A;
  --text-light: #555;
  --bg: #FAF8F5;
  --bg-white: #FFFFFF;
  --bg-dark: #1a2332;
  --gold-light: rgba(212,175,55,0.12);
  --shadow: 0 2px 16px rgba(44,62,80,0.08);
  --shadow-hover: 0 8px 32px rgba(44,62,80,0.14);
  --radius: 3px;
  --transition: 0.3s ease;
  --font-heading: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Lato', 'Raleway', Helvetica, Arial, sans-serif;
  --max-width: 1200px;
}

html { scroll-behavior: smooth; font-size: 16px; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--secondary); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.25;
  font-weight: 600;
}
h1 { font-size: 2.75rem; margin-bottom: 1rem; }
h2 { font-size: 2.1rem; margin-bottom: 0.85rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.7rem; }
h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* === Gold Accent Line === */
.gold-line { width: 60px; height: 3px; background: var(--accent); margin: 0 auto 1.5rem; }
.gold-line--left { margin: 0 0 1.5rem; }

/* === Buttons === */
.btn {
  display: inline-block; padding: 14px 36px;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 400;
  letter-spacing: 1.5px; text-transform: uppercase;
  border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: all var(--transition);
  text-align: center;
}
.btn--primary {
  background: var(--accent); color: var(--primary); border-color: var(--accent);
}
.btn--primary:hover { background: #c9a030; border-color: #c9a030; color: #fff; }
.btn--secondary {
  background: transparent; color: var(--accent); border-color: var(--accent);
}
.btn--secondary:hover { background: var(--accent); color: var(--primary); }
.btn--dark {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.btn--dark:hover { background: #1a2a3a; border-color: #1a2a3a; }

/* === Header === */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid rgba(212,175,55,0.2);
  backdrop-filter: blur(8px);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.header-top {
  background: var(--primary); color: #fff;
  padding: 6px 0; font-size: 0.85rem;
}
.header-top .container {
  display: flex; justify-content: space-between; align-items: center;
}
.header-top a { color: var(--accent); }
.header-top a:hover { color: #fff; }

.header-main .container {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; padding-bottom: 12px;
}
.logo {
  font-family: var(--font-heading); font-size: 1.6rem;
  color: var(--primary); font-weight: 600; letter-spacing: 0.5px;
}
.logo span { color: var(--accent); }

/* === Navigation === */
.main-nav ul {
  list-style: none; display: flex; gap: 2px; align-items: center;
}
.main-nav li { position: relative; }
.main-nav a {
  display: block; padding: 10px 18px;
  color: var(--text); font-size: 0.9rem;
  font-weight: 400; letter-spacing: 0.5px;
  text-transform: uppercase; transition: color var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--accent); }

/* Dropdown */
.main-nav .dropdown-menu {
  position: absolute; top: 100%; left: 0;
  background: var(--bg-white); min-width: 220px;
  border: 1px solid rgba(212,175,55,0.15);
  box-shadow: var(--shadow); opacity: 0;
  visibility: hidden; transform: translateY(8px);
  transition: all var(--transition); z-index: 100;
}
.main-nav li:hover .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.main-nav .dropdown-menu a {
  padding: 10px 20px; font-size: 0.85rem;
  text-transform: none; border-bottom: 1px solid rgba(0,0,0,0.04);
}
.main-nav .dropdown-menu a:hover { background: var(--gold-light); }

.header-cta {
  display: flex; align-items: center; gap: 16px;
}
.header-phone {
  font-family: var(--font-heading); font-size: 1.15rem;
  color: var(--primary); font-weight: 600;
}
.header-phone a { color: var(--primary); }
.header-phone a:hover { color: var(--accent); }

/* Mobile Nav Toggle */
.nav-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 26px; height: 2px;
  background: var(--primary); margin: 6px 0;
  transition: all var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,6px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-6px); }

/* === Hero Section === */
.hero {
  position: relative; min-height: 85vh;
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
  margin-top: 100px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,35,50,0.82) 0%, rgba(44,62,80,0.6) 100%);
}
.hero__content {
  position: relative; z-index: 2; text-align: center;
  max-width: 750px; padding: 40px 24px;
}
.hero__content h1 {
  color: #fff; font-size: 3.2rem; margin-bottom: 0.6rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero__content .gold-line { background: var(--accent); margin: 0 auto 1.2rem; }
.hero__content p {
  color: rgba(255,255,255,0.9); font-size: 1.15rem;
  margin-bottom: 2rem; font-weight: 300;
}
.hero__buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Inner Page Hero */
.hero--inner {
  min-height: 40vh; margin-top: 100px;
}
.hero--inner h1 { font-size: 2.6rem; }

/* === Trust Bar === */
.trust-bar {
  background: var(--primary); padding: 24px 0;
  border-bottom: 3px solid var(--accent);
}
.trust-bar .container {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 12px;
  color: #fff; font-size: 0.95rem;
}
.trust-item svg { width: 28px; height: 28px; fill: var(--accent); flex-shrink: 0; }

/* === Section Styles === */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-white); }
.section--dark { background: var(--bg-dark); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__header { text-align: center; margin-bottom: 48px; }
.section__header h2 { margin-bottom: 0.5rem; }

/* === Card Styles === */
.card {
  background: var(--bg-white); border: 1px solid rgba(212,175,55,0.12);
  box-shadow: var(--shadow); transition: all var(--transition);
  overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.card__img { width: 100%; height: 220px; object-fit: cover; }
.card__body { padding: 28px; }
.card__body h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.card__body p { color: var(--text-light); font-size: 0.95rem; }
.card__footer {
  padding: 16px 28px; border-top: 1px solid rgba(0,0,0,0.06);
}

/* === Grid Layouts === */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* === Programs Cards === */
.program-card {
  background: var(--bg-white); border: 1px solid rgba(212,175,55,0.12);
  padding: 36px 28px; text-align: center;
  box-shadow: var(--shadow); transition: all var(--transition);
  position: relative; overflow: hidden;
}
.program-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: var(--accent);
}
.program-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.program-card__icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  background: var(--gold-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.program-card__icon svg { width: 32px; height: 32px; fill: var(--accent); }
.program-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.program-card p { color: var(--text-light); font-size: 0.9rem; }

/* === Stats Bar === */
.stats { display: flex; justify-content: center; gap: 64px; flex-wrap: wrap; padding: 48px 0; }
.stat { text-align: center; }
.stat__number {
  font-family: var(--font-heading); font-size: 2.8rem;
  color: var(--accent); font-weight: 600; line-height: 1;
}
.stat__label {
  font-size: 0.9rem; color: rgba(255,255,255,0.75);
  text-transform: uppercase; letter-spacing: 1px; margin-top: 8px;
}

/* === Testimonials === */
.testimonial {
  background: var(--bg-white); border-left: 4px solid var(--accent);
  padding: 32px 36px; box-shadow: var(--shadow);
  margin-bottom: 24px; position: relative;
}
.testimonial::before {
  content: '\201C'; font-family: var(--font-heading);
  font-size: 4rem; color: var(--gold-light); position: absolute;
  top: -8px; left: 16px; line-height: 1;
}
.testimonial p { font-style: italic; color: var(--text-light); margin-bottom: 12px; font-size: 1.05rem; }
.testimonial__author { font-weight: 600; color: var(--primary); font-size: 0.9rem; }
.testimonial__program { color: var(--secondary); font-size: 0.85rem; }

/* === Gallery Grid === */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.gallery-grid img {
  width: 100%; height: 200px; object-fit: cover;
  transition: transform var(--transition);
  cursor: pointer;
}
.gallery-grid img:hover { transform: scale(1.03); }

/* === Amenities List === */
.amenity-list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  list-style: none;
}
.amenity-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: var(--gold-light);
  font-size: 0.95rem;
}
.amenity-list li::before {
  content: '✦'; color: var(--accent); font-size: 0.8rem;
}

/* === FAQ Accordion === */
.faq-item { border-bottom: 1px solid rgba(212,175,55,0.15); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; cursor: pointer; font-weight: 400;
  font-size: 1.05rem; color: var(--primary);
  font-family: var(--font-heading);
}
.faq-question::after {
  content: '+'; font-size: 1.5rem; color: var(--accent);
  transition: transform var(--transition);
}
.faq-item.active .faq-question::after { content: '−'; }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-answer__inner { padding: 0 0 20px; color: var(--text-light); line-height: 1.7; }

/* === Insurance Grid === */
.insurance-grid {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center;
}
.insurance-badge {
  padding: 12px 24px; background: var(--bg-white);
  border: 1px solid rgba(212,175,55,0.2); font-size: 0.9rem;
  color: var(--primary); font-weight: 400;
}

/* === Blog Cards === */
.blog-card { overflow: hidden; }
.blog-card__img { height: 200px; object-fit: cover; width: 100%; }
.blog-card__body { padding: 24px; }
.blog-card__category {
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--accent); margin-bottom: 8px;
}
.blog-card__title {
  font-family: var(--font-heading); font-size: 1.15rem;
  color: var(--primary); margin-bottom: 10px;
  line-height: 1.35;
}
.blog-card__excerpt { font-size: 0.9rem; color: var(--text-light); margin-bottom: 12px; }
.blog-card__meta { font-size: 0.8rem; color: #999; }

/* === CTA Section === */
.cta-section {
  background: var(--primary); padding: 72px 0; text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(212,175,55,0.08) 0%, transparent 100%);
}
.cta-section h2 { color: #fff; margin-bottom: 0.5rem; position: relative; }
.cta-section p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; position: relative; }
.cta-section .gold-line { position: relative; }
.cta-phone {
  font-family: var(--font-heading); font-size: 2rem;
  color: var(--accent); margin-bottom: 1.5rem; position: relative;
}
.cta-phone a { color: var(--accent); }
.cta-phone a:hover { color: #fff; }

/* === Breadcrumbs === */
.breadcrumbs {
  padding: 16px 0; font-size: 0.85rem; color: var(--text-light);
}
.breadcrumbs a { color: var(--secondary); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 8px; color: #ccc; }

/* === Sidebar === */
.page-layout {
  display: grid; grid-template-columns: 1fr 300px; gap: 48px;
  padding: 48px 0;
}
.sidebar { position: sticky; top: 120px; align-self: start; }
.sidebar__widget {
  background: var(--bg-white); border: 1px solid rgba(212,175,55,0.12);
  padding: 28px; margin-bottom: 24px; box-shadow: var(--shadow);
}
.sidebar__widget h4 {
  font-size: 1rem; margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 2px solid var(--accent);
}
.sidebar__widget ul { list-style: none; }
.sidebar__widget li { margin-bottom: 8px; }
.sidebar__widget li a {
  color: var(--text); font-size: 0.9rem; display: block; padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.sidebar__widget li a:hover { color: var(--accent); padding-left: 4px; }

/* === Contact Info === */
.contact-info { list-style: none; }
.contact-info li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.05);
}
.contact-info svg { width: 20px; height: 20px; fill: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* === Map === */
.map-container { width: 100%; }
.map-container iframe { width: 100%; height: 400px; border: none; }

/* === Timeline === */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: ''; position: absolute; left: 15px; top: 0; bottom: 0;
  width: 2px; background: var(--accent);
}
.timeline__item { position: relative; margin-bottom: 32px; }
.timeline__item::before {
  content: ''; position: absolute; left: -33px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg);
}
.timeline__item h4 { margin-bottom: 4px; }
.timeline__item p { color: var(--text-light); font-size: 0.9rem; }

/* === Daily Schedule === */
.schedule-table { width: 100%; border-collapse: collapse; }
.schedule-table th {
  text-align: left; padding: 12px 16px;
  background: var(--primary); color: #fff;
  font-family: var(--font-heading); font-weight: 400;
}
.schedule-table td {
  padding: 12px 16px; border-bottom: 1px solid rgba(0,0,0,0.06);
}
.schedule-table tr:nth-child(even) { background: var(--gold-light); }

/* === Comparison Table === */
.comparison-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.comparison-table th {
  background: var(--primary); color: #fff;
  padding: 14px 16px; text-align: left;
  font-family: var(--font-heading); font-weight: 400;
}
.comparison-table td { padding: 12px 16px; border-bottom: 1px solid rgba(0,0,0,0.06); }
.comparison-table tr:nth-child(even) { background: rgba(212,175,55,0.05); }

/* === Team === */
.team-card {
  text-align: center; padding: 32px 20px;
  background: var(--bg-white); box-shadow: var(--shadow);
  border-top: 3px solid var(--accent);
}
.team-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.team-card .role { color: var(--accent); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.team-card .credentials { color: var(--secondary); font-size: 0.85rem; margin-bottom: 12px; }
.team-card p { font-size: 0.9rem; color: var(--text-light); }

/* === Footer === */
.site-footer {
  background: var(--bg-dark); color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 48px;
}
.footer-col h4 {
  color: #fff; font-size: 1rem; margin-bottom: 20px;
  padding-bottom: 12px; border-bottom: 2px solid var(--accent);
  font-family: var(--font-heading);
}
.footer-col p { font-size: 0.9rem; line-height: 1.6; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0; text-align: center; font-size: 0.85rem;
}

/* === Lightbox === */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.92); align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox__close {
  position: absolute; top: 20px; right: 24px;
  color: #fff; font-size: 2rem; cursor: pointer;
  background: none; border: none; z-index: 10;
}

/* === Scroll to Top === */
.scroll-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 48px; height: 48px; background: var(--accent);
  color: var(--primary); border: none; border-radius: 50%;
  font-size: 1.2rem; cursor: pointer;
  opacity: 0; visibility: hidden; transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 999;
  display: flex; align-items: center; justify-content: center;
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--primary); color: var(--accent); }

/* === Responsive === */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .amenity-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero { min-height: 70vh; }
  .hero__content h1 { font-size: 2.2rem; }
  .hero--inner { min-height: 35vh; }

  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
    background: var(--bg-white); padding: 80px 24px 24px;
    box-shadow: -4px 0 24px rgba(0,0,0,0.1);
    transition: right var(--transition); z-index: 999;
  }
  .main-nav.active { right: 0; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
  .main-nav .dropdown-menu {
    position: static; box-shadow: none; border: none;
    opacity: 1; visibility: visible; transform: none;
    padding-left: 16px; display: none;
  }
  .main-nav li:hover .dropdown-menu { display: block; }

  .header-cta .btn { display: none; }
  .trust-bar .container { gap: 24px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .amenity-list { grid-template-columns: 1fr; }
  .stats { gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .hero__content h1 { font-size: 1.8rem; }
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .gallery-grid { grid-template-columns: 1fr; }
}

/* === Print === */
@media print {
  .site-header, .site-footer, .scroll-top, .cta-section { display: none; }
  body { color: #000; background: #fff; }
  .hero { min-height: auto; padding: 24px 0; }
  .hero::before { display: none; }
  .hero__content h1 { color: #000; text-shadow: none; }
}
