/* ============================================================
   Reddy Care Ltd — Website Stylesheet
   Supported Living & Personal Care, Berkshire
   ============================================================
   Palette derived from the Reddy Care logo:
   - Deep teal (REDDY) + Warm coral (CARE + heart icon)
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Primary — deep teal (from logo "REDDY") */
  --color-primary: #1A4551;
  --color-primary-light: #256477;
  --color-primary-dark: #0F2F38;
  --color-primary-faded: rgba(26, 69, 81, 0.06);
  --color-primary-bg: rgba(26, 69, 81, 0.04);

  /* Accent — warm coral (from logo "CARE" + heart icon) */
  --color-accent: #C7514A;
  --color-accent-light: #D8706A;
  --color-accent-dark: #A8403A;
  --color-accent-faded: rgba(199, 81, 74, 0.08);
  --color-accent-bg: rgba(199, 81, 74, 0.06);

  /* Neutrals */
  --color-bg: #F9F7F5;
  --color-bg-alt: #F2EFEB;
  --color-white: #FFFFFF;
  --color-text: #2B2B2B;
  --color-text-light: #5A5A5A;
  --color-text-muted: #7A7A7A;
  --color-border: #E5E0DA;

  /* Typography — clean geometric sans-serif, logo-inspired */
  --font-heading: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-pad: clamp(3.5rem, 7vw, 5.5rem);
  --container-max: 1140px;
  --card-radius: 10px;
  --btn-radius: 6px;
  --nav-height: 68px;
  --wave-height: 75px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.10);

  /* Transitions */
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --- Skip link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--card-radius) var(--card-radius);
  z-index: 1000;
  font-weight: 600;
  font-size: 0.95rem;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
  color: var(--color-white);
  outline: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--color-primary-dark);
}

h1 { font-size: clamp(2.5rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }
h4 { font-size: 1.05rem; }

p + p { margin-top: 1rem; }

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Section Header --- */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--color-text-light);
  font-size: 1.05rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

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

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

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  color: var(--color-white);
}

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

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0 1.5rem;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-logo-img {
  height: 54px;
  width: auto;
}

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

.nav-links a {
  display: block;
  padding: 0.5rem 1.05rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--btn-radius);
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--color-accent);
  background: var(--color-accent-faded);
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--color-primary-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

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

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

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

/* --- Wave Divider --- */
.wave-divider {
  line-height: 0;
  font-size: 0;
  overflow: hidden;
  width: 100%;
  display: block;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: var(--wave-height);
}

/* ============================================================ */
/* Image Placeholders                                            */
/* ============================================================ */
.placeholder-img {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 8px,
      rgba(26, 69, 81, 0.04) 8px,
      rgba(26, 69, 81, 0.04) 10px
    ),
    linear-gradient(135deg, var(--color-primary-bg) 0%, var(--color-accent-bg) 100%);
  border-radius: var(--card-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.placeholder-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 47, 56, 0.85);
  color: var(--color-white);
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
}

.placeholder-label small {
  display: block;
  font-weight: 400;
  opacity: 0.7;
  font-size: 0.7rem;
  margin-top: 0.15rem;
}

/* ============================================================ */
/* Hero                                                          */
/* ============================================================ */
.hero {
  position: relative;
  padding: calc(var(--nav-height) + 5rem) 1.5rem 5rem;
  background:
    radial-gradient(ellipse 70% 60% at 20% 20%, rgba(26, 69, 81, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 70%, rgba(199, 81, 74, 0.06) 0%, transparent 60%),
    var(--color-white);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--color-primary-faded);
  z-index: 0;
  opacity: 0.7;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--color-accent-faded);
  z-index: 0;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 740px;
  margin: 0 auto;
}

.hero-content .section-tag {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 1rem;
}

.hero-content h1 {
  color: var(--color-primary-dark);
  margin-bottom: 1.25rem;
}

.hero-content p {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--color-text-light);
  margin-bottom: 2.25rem;
  line-height: 1.65;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ============================================================ */
/* Who We Are                                                    */
/* ============================================================ */
.who-we-are {
  padding: var(--section-pad) 0;
  background: var(--color-white);
}

.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.who-text h2 {
  margin-bottom: 1.25rem;
}

.who-text .lead {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.who-highlights {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.who-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.975rem;
  color: var(--color-text);
  line-height: 1.5;
}

.who-highlights .check-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  color: var(--color-accent);
}

.who-image-wrapper {
  position: relative;
}

.who-image-wrapper::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--color-accent-faded);
  border-radius: var(--card-radius);
  top: -12px;
  right: -12px;
  z-index: 0;
}

.who-image {
  position: relative;
  z-index: 1;
  border-radius: var(--card-radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-bg-alt);
}

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

/* ============================================================ */
/* Values                                                        */
/* ============================================================ */
.values {
  padding: var(--section-pad) 0;
  background: var(--color-primary-bg);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.value-card {
  background: var(--color-white);
  border-radius: var(--card-radius);
  border: none;
  border-top: 3px solid var(--color-accent);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.value-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-icon.integrity { background: rgba(26, 69, 81, 0.10); color: var(--color-primary); }
.value-icon.respect   { background: rgba(199, 81, 74, 0.10); color: var(--color-accent); }
.value-icon.inclusive  { background: rgba(26, 69, 81, 0.10); color: var(--color-primary-light); }

.value-icon svg {
  width: 28px;
  height: 28px;
}

.value-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.value-card p {
  color: var(--color-text-light);
  font-size: 1.025rem;
  line-height: 1.6;
}

/* ============================================================ */
/* Services — icon-led cards                                     */
/* ============================================================ */
.services {
  padding: var(--section-pad) 0;
  background: var(--color-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.service-card {
  background: var(--color-white);
  border: none;
  border-top: 3px solid transparent;
  border-radius: var(--card-radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

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

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent-faded);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

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

.service-card p {
  color: var(--color-text-light);
  font-size: 1rem;
  line-height: 1.65;
}

/* ============================================================ */
/* Your Home, Your Way                                           */
/* ============================================================ */
.alternating {
  padding: var(--section-pad) 0;
  background: var(--color-bg);
}

.alternating-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 4rem;
}

.alternating-block:last-child {
  margin-bottom: 0;
}

.alternating-block:nth-child(even) .alt-image {
  order: 2;
}

.alternating-block:nth-child(even) .alt-text {
  order: 1;
}

.alt-image {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-bg-alt);
  box-shadow: var(--shadow-md);
}

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

.alt-text h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.alt-text p {
  color: var(--color-text-light);
  font-size: 1.025rem;
  line-height: 1.7;
}

.alt-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

/* ============================================================ */
/* Care Model Callout                                            */
/* ============================================================ */
.care-model {
  padding: var(--section-pad) 0;
  background: var(--color-white);
}

.care-model-card {
  background: var(--color-bg);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--card-radius) var(--card-radius) 0;
  padding: 2.5rem;
  max-width: 820px;
  margin: 0 auto;
}

.care-model-card .section-tag {
  margin-bottom: 0.6rem;
}

.care-model-card h2 {
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
}

.care-model-card p {
  color: var(--color-text);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: none;
}

.care-model-card .accent-text {
  color: var(--color-accent);
  font-weight: 600;
}

/* ============================================================ */
/* Benefits Grid                                                 */
/* ============================================================ */
.benefits {
  padding: var(--section-pad) 0;
  background: var(--color-white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.benefit-card {
  text-align: center;
  padding: 2rem 1.25rem;
  background: var(--color-white);
  border-radius: var(--card-radius);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.benefit-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--color-accent-faded);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-icon svg {
  width: 26px;
  height: 26px;
}

.benefit-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.benefit-card p {
  font-size: 0.975rem;
  color: var(--color-text-light);
  line-height: 1.55;
}

/* ============================================================ */
/* Quality & Safety                                              */
/* ============================================================ */
.quality {
  padding: var(--section-pad) 0;
  background: var(--color-bg);
}

.quality-pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.pillar-card {
  background: var(--color-white);
  border-radius: var(--card-radius);
  border: none;
  border-top: 3px solid var(--color-primary);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.pillar-card:hover {
  transform: translateY(-3px);
  border-top-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.pillar-card .pillar-letter {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-accent);
  display: inline-block;
  width: 48px;
  height: 48px;
  line-height: 48px;
  border-radius: 50%;
  background: var(--color-accent-faded);
  margin-bottom: 0.85rem;
}

.pillar-card h4 {
  margin-bottom: 0.4rem;
  color: var(--color-primary-dark);
}

.pillar-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.55;
}

/* ============================================================ */
/* CQC Note                                                      */
/* ============================================================ */
.cqc-note {
  padding: 2.5rem 0;
  background: var(--color-primary-bg);
}

.cqc-note-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 740px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.cqc-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent-faded);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.cqc-icon svg {
  width: 24px;
  height: 24px;
}

.cqc-note p {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.6;
}

.cqc-note strong {
  color: var(--color-primary-dark);
}

/* ============================================================ */
/* CTA Section                                                   */
/* ============================================================ */
.cta-section {
  padding: var(--section-pad) 0;
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.cta-section > .container > p {
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.9;
  font-size: 1.05rem;
  line-height: 1.7;
}

.cta-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  text-align: left;
}

.cta-feature {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.cta-feature-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.cta-feature-icon svg {
  width: 14px;
  height: 14px;
}

.cta-feature p {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.92;
  margin: 0;
}

.cta-section .btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
  font-size: 1.05rem;
  padding: 0.95rem 2.25rem;
}

.cta-section .btn-primary:hover,
.cta-section .btn-primary:focus-visible {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
}

/* ============================================================ */
/* Contact                                                       */
/* ============================================================ */
.contact {
  padding: var(--section-pad) 0;
  background: var(--color-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.contact-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--color-bg);
  border-radius: var(--card-radius);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.contact-card:hover {
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.contact-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--color-accent-faded);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-card h4 {
  margin-bottom: 0.5rem;
}

.contact-card p,
.contact-card a {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.contact-card a:hover {
  color: var(--color-accent);
}

/* ============================================================ */
/* Footer                                                        */
/* ============================================================ */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 2rem;
  font-size: 0.95rem;
}

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

.footer h4 {
  color: var(--color-white);
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-brand p {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  font-size: 0.9rem;
}

.footer-brand p:last-of-type {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.footer-address {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 0.25rem;
}

.footer-contact li {
  margin-bottom: 0.25rem;
}

.footer-hours p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}


.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

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

.footer-bottom a:hover {
  color: var(--color-accent-light);
}

/* ============================================================ */
/* Responsive                                                    */
/* ============================================================ */

/* Tablet — 768px to 1023px */
@media (max-width: 1023px) {
  .who-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .who-image-wrapper {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }

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

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

  .alternating-block:nth-child(even) .alt-image,
  .alternating-block:nth-child(even) .alt-text {
    order: 0;
  }

  .alt-image {
    max-width: 500px;
    margin: 0 auto;
  }

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

  .quality-pillars {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

/* Mobile — below 768px */
@media (max-width: 767px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-lg);
    transition: right 0.3s ease;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.05rem;
    padding: 0.75rem 0;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: calc(var(--nav-height) + 3rem) 1.5rem 3rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .values-grid,
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

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

  .pillar-card:last-child {
    grid-column: span 2;
    max-width: 260px;
    justify-self: center;
  }

  .cta-features {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .who-image-wrapper::before {
    display: none;
  }

  .wave-divider svg {
    height: calc(var(--wave-height) * 0.5);
  }
}

/* Small mobile — below 480px */
@media (max-width: 479px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

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

  .quality-pillars {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin: 0 auto;
  }

  .pillar-card:last-child {
    grid-column: span 1;
    max-width: none;
  }

  .cqc-note-inner {
    flex-direction: column;
    text-align: center;
  }

  .care-model-card {
    padding: 1.75rem;
  }
}
