/* ============================================
   Valebrook Care Homes — Public Site Styles
   Warm professional: slate-teal + sand + sage
   Fonts: Libre Baskerville + Outfit
   ============================================ */

:root {
  --teal:        #1B3A52;
  --teal-mid:    #2C5674;
  --teal-light:  #3F7A9E;
  --sage:        #5B8C7A;
  --sage-light:  #8BB5A6;
  --sage-pale:   #D4E8E2;
  --sand:        #F2EDE4;
  --sand-dark:   #E8E0D4;
  --cream:       #FAF8F3;
  --amber:       #C47B2E;
  --amber-light: #E09A50;
  --amber-pale:  #F5DFC0;
  --text:        #1A2830;
  --text-mid:    #3D5060;
  --text-light:  #6A7F8A;
  --text-subtle: #9AAFB8;
  --border:      rgba(27,58,82,0.10);
  --shadow-sm:   0 2px 12px rgba(27,58,82,0.08);
  --shadow-md:   0 8px 32px rgba(27,58,82,0.12);
  --shadow-lg:   0 24px 64px rgba(27,58,82,0.16);
  --radius:      12px;
  --radius-lg:   20px;
  --font-serif:  'Libre Baskerville', Georgia, serif;
  --font-sans:   'Outfit', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================
   GRAIN TEXTURE
   ============================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
  z-index: 9999;
}

/* ============================================
   REVEAL ANIMATION
   ============================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
[data-reveal].visible {
  opacity: 1;
  transform: none;
}

/* ============================================
   NAV
   ============================================ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(250, 248, 243, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
#nav.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo-mark {
  width: 38px; height: 38px;
  background: var(--teal);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}
.nav-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1.2;
}
.nav-sub {
  font-size: 0.7rem;
  color: var(--text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--amber);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--teal); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--teal);
  color: white !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--teal-mid) !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: 0.3s;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--amber);
  color: white;
  box-shadow: 0 4px 16px rgba(196,123,46,0.3);
}
.btn-primary:hover {
  background: var(--amber-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(196,123,46,0.35);
}
.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.25);
}

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 96px 0; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}
.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--teal);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 580px;
}
.section-intro { margin-bottom: 56px; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-image-wrap {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(27,58,82,0.82) 0%,
    rgba(27,58,82,0.65) 50%,
    rgba(27,58,82,0.3) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
  padding: 120px 32px 80px;
  color: white;
  max-width: 640px;
  margin-left: calc(50% - 580px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
  animation: fadeIn 0.8s ease forwards;
}
.hero-badge svg { color: var(--amber-light); }

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeUp 0.9s ease 0.1s both;
}
.hero-headline span { display: block; }
.hero-headline-accent {
  color: var(--amber-light);
  font-style: italic;
}
.hero-headline em {
  font-style: italic;
  color: var(--amber-light);
}

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  max-width: 480px;
  margin-bottom: 36px;
  animation: fadeUp 0.9s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fadeUp 0.9s ease 0.3s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 20px 28px;
  width: fit-content;
  animation: fadeUp 0.9s ease 0.4s both;
}
.hero-stat { text-align: center; padding: 0 24px; }
.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child { padding-right: 0; }
.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
  font-weight: 500;
}
.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ============================================
   ABOUT
   ============================================ */
.about-section { background: white; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-text p {
  color: var(--text-mid);
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.75;
}

.about-values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.value-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--sand);
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid var(--sand-dark);
}
.value-chip svg { color: var(--sage); }

.about-image-wrap {
  position: relative;
}
.about-img {
  border-radius: var(--radius-lg);
  aspect-ratio: 4/5;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.about-img-accent {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 140px;
  height: 140px;
  background: var(--sage-pale);
  border-radius: var(--radius-lg);
  z-index: -1;
}

/* ============================================
   OUR HOMES
   ============================================ */
.homes-section { background: var(--sand); }

.homes-tabs {
  display: flex;
  gap: 4px;
  background: var(--sand-dark);
  border-radius: 50px;
  padding: 4px;
  width: fit-content;
  margin: 0 auto 48px;
}
.home-tab {
  background: none;
  border: none;
  padding: 10px 24px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.25s;
}
.home-tab:hover { color: var(--teal); }
.home-tab.active {
  background: white;
  color: var(--teal);
  box-shadow: var(--shadow-sm);
}

.home-panel { display: none; }
.home-panel.active { display: block; animation: fadeUp 0.5s ease; }

.home-panel-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 56px;
  align-items: start;
  background: white;
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
}

.home-established {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 10px;
}
.home-panel-info h3 {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  color: var(--teal);
  margin-bottom: 18px;
  line-height: 1.2;
}
.home-panel-info p {
  color: var(--text-mid);
  margin-bottom: 14px;
  font-size: 0.97rem;
  line-height: 1.75;
}

.home-details {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.home-detail {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-mid);
}
.home-detail svg { flex-shrink: 0; color: var(--sage); margin-top: 2px; }
.home-detail a { color: var(--teal); font-weight: 600; }
.home-detail a:hover { color: var(--amber); }

.home-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--sand);
  margin-bottom: 20px;
}
.home-img { width: 100%; height: 100%; object-fit: cover; }

/* CIW Card */
.ciw-card {
  background: var(--teal);
  border-radius: var(--radius);
  padding: 20px 24px;
  color: white;
}
.ciw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.ciw-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  background: white;
  color: var(--teal);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}
.ciw-date {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}
.ciw-ratings { display: flex; flex-direction: column; gap: 8px; }
.ciw-rating {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}
.ciw-domain { color: rgba(255,255,255,0.75); }
.ciw-score {
  font-weight: 700;
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 50px;
}
.ciw-score.excellent {
  background: rgba(91,140,122,0.35);
  color: #9FD4C0;
  border: 1px solid rgba(91,140,122,0.4);
}
.ciw-score.good {
  background: rgba(196,123,46,0.3);
  color: #F0B870;
  border: 1px solid rgba(196,123,46,0.35);
}
.ciw-pending {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}
.ciw-pending svg { flex-shrink: 0; color: var(--amber-light); margin-top: 1px; }

/* ============================================
   RATINGS SECTION
   ============================================ */
.ratings-section { background: white; }

.ratings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.ratings-card {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--sand-dark);
}
.ratings-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sand-dark);
}
.ratings-card-header h4 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1.3;
}
.ratings-date {
  font-size: 0.7rem;
  color: var(--text-subtle);
  text-align: right;
  flex-shrink: 0;
  margin-left: 8px;
}
.ratings-domains { display: flex; flex-direction: column; gap: 8px; }
.rating-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-mid);
}
.badge-excellent {
  font-weight: 700;
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 50px;
  background: rgba(91,140,122,0.12);
  color: #3A7060;
  border: 1px solid rgba(91,140,122,0.25);
}
.badge-good {
  font-weight: 700;
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 50px;
  background: rgba(196,123,46,0.12);
  color: #9A5D1A;
  border: 1px solid rgba(196,123,46,0.25);
}
.ratings-card-pending {
  border: 1px dashed var(--sand-dark);
}
.ratings-pending-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.83rem;
  color: var(--text-light);
  line-height: 1.55;
}
.ratings-pending-note svg { color: var(--amber); flex-shrink: 0; margin-top: 1px; }

/* ============================================
   VALUES BANNER
   ============================================ */
.values-banner {
  padding: 0;
}
.values-banner-inner {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
}
.values-banner-image-wrap {
  position: absolute;
  inset: 0;
}
.values-banner-img { object-position: center 20%; }
.values-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(27,58,82,0.88) 0%, rgba(27,58,82,0.6) 100%);
}
.values-banner-content {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
  padding: 72px 32px;
  color: white;
  max-width: 700px;
  margin-left: calc(50% - 580px);
}
.values-banner-content blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 16px;
}
.values-banner-content cite {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  font-style: normal;
}

/* ============================================
   REPORTS & DOCUMENTS
   ============================================ */
/* Reports section — teal bg with ledger-style document rows */
.reports-section {
  background: var(--teal);
}
.reports-section .section-label { color: var(--amber-light); opacity: 1; }
.reports-section .section-heading { color: var(--sand); }
.reports-section .section-desc { color: rgba(242,237,228,0.55); }

/* Filter tabs */
.reports-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 48px;
  border-bottom: 1px solid rgba(242,237,228,0.1);
  padding-bottom: 0;
}
.filter-homes {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.filter-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(242,237,228,0.38);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 12px 12px;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.filter-btn:hover { color: rgba(242,237,228,0.75); }
.filter-btn.active {
  color: var(--sand);
  border-bottom-color: var(--amber);
}
.filter-type-select {
  background: rgba(242,237,228,0.08);
  border: 1px solid rgba(242,237,228,0.18);
  border-radius: 8px;
  color: rgba(242,237,228,0.75);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 32px 8px 12px;
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
  margin-bottom: 12px;
  transition: border-color 0.15s, background 0.15s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(242,237,228,0.5)' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.filter-type-select:hover {
  border-color: rgba(242,237,228,0.35);
  background-color: rgba(242,237,228,0.12);
}
.filter-type-select option {
  background: #1B3A52;
  color: #F2EDE4;
}

/* Document ledger rows */
.documents-grid {
  display: flex;
  flex-direction: column;
}
.doc-card {
  display: grid;
  grid-template-columns: 72px 1fr auto auto auto;
  align-items: center;
  gap: 0 28px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(242,237,228,0.08);
  border-left: none;
  border-right: none;
  border-top: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: background 0.15s;
}
.doc-card:first-child { border-top: 1px solid rgba(242,237,228,0.08); }
.doc-card:hover { background: rgba(242,237,228,0.04); }

/* Year column */
.doc-year-col {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: rgba(242,237,228,0.12);
  line-height: 1;
  flex-shrink: 0;
  text-align: right;
  padding-right: 4px;
  letter-spacing: -0.02em;
}

/* Body */
.doc-card-body { min-width: 0; }
.doc-title {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--sand);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.doc-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.doc-home-tag {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(242,237,228,0.4);
}
.doc-meta-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(242,237,228,0.2);
  flex-shrink: 0;
}
.doc-cat-tag {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 0;
  padding: 0;
  background: transparent;
}
.doc-cat-inspection { color: var(--sage-light); }
.doc-cat-annual { color: var(--amber-light); }

/* Category marker */
.doc-cat-marker {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  align-self: center;
}
.doc-card.doc-inspection .doc-cat-marker { background: var(--sage); }
.doc-card.doc-annual .doc-cat-marker { background: var(--amber); }

/* Download */
.doc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.doc-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: rgba(242,237,228,0.07);
  border: 1px solid rgba(242,237,228,0.14);
  color: rgba(242,237,228,0.7);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.doc-view-btn:hover {
  background: rgba(242,237,228,0.14);
  color: var(--sand);
}
.doc-download-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid rgba(242,237,228,0.14);
  color: rgba(242,237,228,0.45);
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.doc-download-icon:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: white;
}
.doc-download-btn { display: none; }

.doc-filename { display: none; }
.doc-year { display: none; }

.docs-loading, .docs-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 72px 32px;
  color: rgba(242,237,228,0.25);
  font-size: 0.9rem;
}

.spinner {
  width: 28px; height: 28px;
  border: 2px solid rgba(242,237,228,0.1);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   CONTACT
   ============================================ */
.contact-section { background: white; }

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--teal);
  color: white;
  padding: 28px 36px;
  border-radius: var(--radius-lg);
}
.contact-card-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-card-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
}
.contact-card-value {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: white;
  transition: color 0.2s;
}
.contact-card-value:hover { color: var(--amber-light); }

.contact-homes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.contact-home-card {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 20px 24px;
  border: 1px solid var(--sand-dark);
}
.contact-home-name {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 6px;
}
.contact-home-address {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 12px;
}
.contact-home-tel {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--teal);
  transition: color 0.2s;
}
.contact-home-tel:hover { color: var(--amber); }
.contact-home-tel svg { color: var(--sage); }

.contact-reg {
  margin-top: 32px;
  font-size: 0.78rem;
  color: var(--text-subtle);
  text-align: center;
  line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--teal);
  color: rgba(255,255,255,0.7);
  padding: 32px 0;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-links a:hover { color: white; }
.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .ratings-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-homes-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 48px; }
  .home-panel-grid { grid-template-columns: 1fr; gap: 32px; }
  .home-panel-right { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .home-img-wrap { margin-bottom: 0; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(250,248,243,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 32px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a::after { display: none; }
  .nav-cta { width: 100%; justify-content: center; }

  .hero-content { margin-left: 0; padding: 100px 24px 64px; }
  .hero-stats { flex-wrap: wrap; }

  .about-grid { grid-template-columns: 1fr; }
  .about-image-wrap { order: -1; }
  .about-img { aspect-ratio: 16/9; }
  .about-img-accent { display: none; }

  .homes-tabs { width: 100%; overflow-x: auto; justify-content: stretch; }
  .home-tab { flex: 1; text-align: center; white-space: nowrap; font-size: 0.8rem; padding: 9px 16px; }
  .home-panel-grid { padding: 28px 24px; }
  .home-panel-right { grid-template-columns: 1fr; }

  .ratings-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .contact-homes-grid { grid-template-columns: 1fr 1fr; }

  .reports-filters { flex-wrap: wrap; }
  .doc-download-btn { padding: 8px 12px; font-size: 0.74rem; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .ratings-grid { grid-template-columns: 1fr; }
  .contact-homes-grid { grid-template-columns: 1fr; }
  .hero-stats { display: none; }
  .homes-tabs { border-radius: 12px; }
  .values-banner-content { margin-left: 0; padding: 48px 24px; }
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--teal);
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
  animation: slideUpBanner 0.35s ease;
}
@keyframes slideUpBanner {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.cookie-banner-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.cookie-banner-text {
  flex: 1;
  color: rgba(242,237,228,0.9);
  font-size: 0.88rem;
  line-height: 1.5;
}
.cookie-banner-text strong {
  display: block;
  color: #F2EDE4;
  font-size: 0.92rem;
  margin-bottom: 3px;
}
.cookie-banner-text a {
  color: var(--amber-light, #E8A84A);
  text-decoration: underline;
}
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 9px 20px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  border: none;
}
.cookie-btn-accept {
  background: var(--amber, #C47B2E);
  color: white;
}
.cookie-btn-accept:hover { filter: brightness(1.1); }
.cookie-btn-decline {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(242,237,228,0.75);
}
.cookie-btn-decline:hover { background: rgba(255,255,255,0.18); }
@media (max-width: 640px) {
  .cookie-banner-inner { flex-direction: column; gap: 14px; padding: 18px 20px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}
