/* ============================================================
   FAR FILLIMORE CARE HOMES — LANDING PAGE
   landing.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;1,400&family=Inter:wght@400;500;600;700;800&display=swap');

/* --- Theme Variables --- */
:root {
  --primary: #1e3d6b;
  --primary-dark: #0f223f;
  --primary-light: #2a4e85;
  --accent: #b05c3a;
  --accent-hover: #c46840;
  --accent-gold: #c5a059;
  --accent-green: #3cd070;
  --bg-light: #f5f0e8;
  --bg-dark: #1e1e1e;
  --card-bg: #ffffff;
  
  --text-dark: #2e2a22;
  --text-muted: #6a6058;
  --text-light: #f5f0e8;
  
  --glass-bg: rgba(30, 61, 107, 0.88);
  --glass-border: rgba(255, 255, 255, 0.12);
  --card-shadow: 0 8px 30px rgba(30, 61, 107, 0.05);
  --hover-shadow: 0 16px 40px rgba(30, 61, 107, 0.12);
  --glow-gold: 0 0 15px rgba(197, 160, 89, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

h1, h2, h3, .h-title {
  font-family: 'Lora', serif;
  font-weight: 500;
  color: var(--primary-dark);
}

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

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

/* --- Typography Helpers --- */
.section-title {
  font-size: 32px;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 16px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

/* --- Header --- */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30, 61, 107, 0.08);
  padding: 14px 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.02);
}

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

.logo-block {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: 'Lora', serif;
  font-size: 19px;
  font-weight: 500;
  color: var(--primary-dark);
  letter-spacing: 0.01em;
}

.logo-desc {
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 61, 107, 0.05);
  border: 1px solid rgba(30, 61, 107, 0.1);
  padding: 8px 16px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 14px;
  color: var(--primary-dark);
  transition: all 0.3s ease;
}

.header-phone:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  color: var(--text-light);
  overflow: hidden;
  padding: 80px 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-size: cover;
  background-position: center;
  animation: slowPan 25s infinite alternate ease-in-out;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 34, 63, 0.88) 0%, rgba(30, 61, 107, 0.75) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hero-sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(176, 92, 58, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* --- Trust Bar --- */
.trust-bar {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.9);
  padding: 16px 0;
  border-bottom: 2px solid var(--accent-gold);
}

.trust-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px 10px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.trust-item i {
  color: var(--accent-gold);
  font-size: 18px;
}

/* --- Benefit Blocks --- */
.benefits-section {
  background-color: #ffffff;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 20px;
}

.benefit-card {
  display: flex;
  background-color: var(--bg-light);
  border: 1px solid rgba(30, 61, 107, 0.06);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
  border-color: rgba(197, 160, 89, 0.4);
}

.benefit-img-wrap {
  width: 45%;
  flex-shrink: 0;
  position: relative;
}

.benefit-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.benefit-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.benefit-content h3 {
  font-size: 20px;
  color: var(--primary-dark);
}

.benefit-content p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --- Reviews Section --- */
.reviews-section {
  background-color: var(--bg-light);
}

.reviews-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.reviews-sidebar {
  flex: 0 0 280px;
  background: #ffffff;
  border: 1px solid rgba(30, 61, 107, 0.08);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.score-badge {
  background: var(--primary);
  color: #ffffff;
  padding: 20px;
  border-radius: 50%;
  width: 96px;
  height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 6px 20px rgba(30, 61, 107, 0.15);
}

.score-num {
  font-size: 26px;
  font-weight: 800;
  font-family: 'Lora', serif;
  line-height: 1;
}

.score-max {
  font-size: 11px;
  opacity: 0.7;
}

.score-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
}

.score-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.reviews-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.review-card {
  background: #ffffff;
  border: 1px solid rgba(30, 61, 107, 0.06);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-stars {
  color: var(--accent-gold);
  font-size: 16px;
}

.review-text {
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-dark);
}

.review-author {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 600;
}

/* --- Fees & Funding --- */
.fees-section {
  background-color: #ffffff;
}

.fees-layout {
  display: flex;
  gap: 40px;
  align-items: stretch;
}

.fees-card {
  flex: 1;
  background: var(--bg-light);
  border: 1px solid rgba(30, 61, 107, 0.06);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fee-header {
  margin-bottom: 24px;
}

.fee-sub {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fee-headline {
  font-size: 38px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 4px;
}

.fee-headline span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
}

.fee-includes-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.fee-includes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fee-includes-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-dark);
}

.fee-includes-list li i {
  color: var(--accent-green);
  font-size: 16px;
}

.funding-card {
  flex: 1;
  border: 1.5px solid rgba(30, 61, 107, 0.1);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.funding-block h3 {
  font-size: 18px;
  color: var(--primary-dark);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.funding-block h3 i {
  color: var(--primary);
  font-size: 20px;
}

.funding-block p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --- Enquiry Form --- */
.form-section {
  background-color: var(--bg-light);
}

.form-layout {
  max-width: 680px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid rgba(30, 61, 107, 0.08);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.form-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 8px;
}

.form-desc {
  text-align: center;
  color: var(--text-muted);
  font-size: 14.5px;
  margin-bottom: 32px;
}

.enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
}

.form-control {
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  padding: 12px 16px;
  background: var(--bg-light);
  border: 1px solid rgba(30, 61, 107, 0.12);
  border-radius: 8px;
  color: var(--text-dark);
  outline: none;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 61, 107, 0.15);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

.btn-form {
  margin-top: 10px;
  background: var(--accent);
  color: #ffffff;
  font-size: 16px;
  padding: 16px;
  border-radius: 8px;
}

.btn-form:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(176, 92, 58, 0.3);
}

/* --- Footer --- */
.footer {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
  font-size: 14px;
}

.footer-layout {
  display: flex;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo-text {
  color: #ffffff;
  font-family: 'Lora', serif;
  font-size: 20px;
  font-weight: 500;
}

.footer-addr {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-addr-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-addr-item i {
  color: var(--accent-gold);
  font-size: 16px;
  margin-top: 3px;
}

.footer-map-wrap {
  flex: 0 0 360px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #2a3c54;
  position: relative;
}

.footer-map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.footer-map-placeholder i {
  font-size: 28px;
  color: var(--accent-gold);
}

.footer-map-placeholder span {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* --- Mobile Bottom Sticky CTA --- */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--primary-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  padding: 12px 20px;
  z-index: 99;
}

.sticky-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background-color: var(--accent);
  color: #ffffff;
  font-weight: 700;
  padding: 14px;
  border-radius: 8px;
  font-size: 15px;
}

.sticky-cta-btn:hover {
  background-color: var(--accent-hover);
}

/* --- Care Categories --- */
.categories-section {
  background-color: var(--bg-light);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.category-card {
  background: #ffffff;
  border: 1px solid rgba(30, 61, 107, 0.06);
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
  border-color: rgba(197, 160, 89, 0.4);
}

.category-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(30, 61, 107, 0.05);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: inset 0 2px 6px rgba(30, 61, 107, 0.02);
}

.category-card h3 {
  font-family: 'Lora', serif;
  font-size: 19px;
  color: var(--primary-dark);
}

.category-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --- Amenities Checklist --- */
.amenities-section {
  background-color: #ffffff;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 48px;
}

.amenity-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.amenity-item i {
  color: var(--accent-gold);
  font-size: 26px;
  flex-shrink: 0;
  margin-top: 2px;
}

.amenity-item h4 {
  font-family: 'Lora', serif;
  font-size: 17.5px;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.amenity-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Locations We Serve --- */
.locations-section {
  background-color: #ffffff;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.location-card {
  background: var(--bg-light);
  border: 1px solid rgba(30, 61, 107, 0.06);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.location-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--hover-shadow);
  border-color: rgba(197, 160, 89, 0.3);
}

.location-card i {
  color: var(--accent-gold);
  font-size: 24px;
}

.location-card h4 {
  font-family: 'Lora', serif;
  font-size: 16.5px;
  color: var(--primary-dark);
}

.location-card span {
  font-size: 12.5px;
  color: var(--text-muted);
}

.locations-note {
  background: rgba(197, 160, 89, 0.07);
  border-left: 4px solid var(--accent-gold);
  border-radius: 4px 12px 12px 4px;
  padding: 20px 24px;
  margin-top: 40px;
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.6;
}

.locations-note i {
  color: var(--accent-gold);
  font-size: 18px;
  margin-right: 4px;
  vertical-align: middle;
}

/* --- Animations --- */
@keyframes slowPan {
  0% { transform: scale(1.0); }
  100% { transform: scale(1.1); }
}

/* ============================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ============================================================ */

/* --- Tablet / Large Viewports (max-width: 1024px) --- */
@media (max-width: 1024px) {
  .hero h1 { font-size: 38px; }
  .benefits-grid { gap: 24px; }
  .benefit-card { flex-direction: column; }
  .benefit-img-wrap { width: 100%; height: 200px; }
  .reviews-layout { flex-direction: column; align-items: stretch; gap: 32px; }
  .reviews-sidebar { flex: auto; flex-direction: row; justify-content: flex-start; text-align: left; padding: 24px; }
  .fees-layout { flex-direction: column; }
  .footer-map-wrap { flex: 0 0 280px; }

  /* New section responsive styles */
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .locations-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* --- Mobile Viewports (max-width: 760px) --- */
@media (max-width: 760px) {
  .section-padding { padding: 60px 0; }
  .section-title { font-size: 26px; }
  .hero { min-height: 480px; padding: 60px 0 100px; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
  
  .benefits-grid { grid-template-columns: 1fr; }
  
  .reviews-sidebar { flex-direction: column; align-items: center; text-align: center; }
  .review-card { padding: 20px; }
  
  .fees-card { padding: 24px; }
  .funding-card { padding: 24px; }
  
  .form-layout { padding: 24px 20px; }
  
  .footer-layout { flex-direction: column; gap: 32px; }
  .footer-map-wrap { flex: auto; width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* New section responsive styles */
  .categories-grid { grid-template-columns: 1fr; gap: 16px; }
  .amenities-grid { grid-template-columns: 1fr; gap: 24px; }
  .locations-grid { grid-template-columns: 1fr; gap: 16px; }
  .locations-note { padding: 16px 20px; margin-top: 24px; }

  /* Body space adjustment for bottom sticky bar */
  body {
    padding-bottom: 70px;
  }

  /* Sticky call CTA floats in on mobile */
  .mobile-sticky-cta {
    display: block;
  }
}

/* --- Micro Devices (max-width: 400px) --- */
@media (max-width: 400px) {
  .hero h1 { font-size: 26px; }
  .logo-title { font-size: 16px; }
  .btn { padding: 12px 20px; font-size: 14px; }
}
