/* ============================================================
   Quanta Health - Main Stylesheet
   Site: https://www.quantahealth.co.uk/
   Font: Jost (Google Fonts)
   ============================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  --primary: #5f8f6b;                                               /* accent blue – buttons, h2, highlights */
  --primary-dark: #7A9E8E;                                               /* hover state */
  --dark: #232323;                                               /* body text, nav text, footer bg */
  --light-bg: #F2EDE6;                                               /* alternate section background */
  --white: #ffffff;
  --footer-text: #fafafa;
  --link-color: #6592e6;
  --border-color: #e0e0e0;
  --font: 'Jost', sans-serif;
  --transition: 0.3s ease;
}

/* ============================================================
   BASE / RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  color: var(--dark);
  background-color: var(--white);
  line-height: 1.7;
}

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

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

a:hover {
  color: var(--primary);
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  color: var(--dark);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 3rem);
  color: var(--primary);
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  color: #7A9E8E;
}

h4 {
  font-size: 1.2rem;
  color: var(--dark);
}

h5 {
  font-size: 1rem;
  color: var(--dark);
}

p {
  margin-bottom: 1rem;
}

blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--light-bg);
  font-style: italic;
  border-radius: 0 4px 4px 0;
}

blockquote p {
  margin-bottom: 0;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-light {
  background-color: var(--light-bg);
  padding: 5rem 0;
}

.section-dark {
  background-color: var(--dark);
  padding: 5rem 0;
  color: var(--footer-text);
}

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
  color: var(--white);
}

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

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

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

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

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  color: var(--white);
  background-color: #5f8f6b;
  border-color: #7A9E8E;
}

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

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

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

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

.btn-white:hover {
  background-color: var(--light-bg);
  color: var(--dark);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #F2EDE6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1300px;
  margin: 0 auto;
  gap: 1rem;
}

/* Logo */
.navbar-logo a {
  display: flex;
  align-items: center;
}

.navbar-logo img {
  height: 60px;
  width: auto;
}

/* Nav links */
.navbar-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.navbar-menu li a {
  color: var(--dark);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  transition: color var(--transition), background-color var(--transition);
}

.navbar-menu li a:hover, .navbar-menu li a.active {
  background-color: #C4B5A5;
  color: #F2EDE6;
}

/* Social icons in header */
.navbar-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-social a {
  color: var(--dark);
  font-size: 1.1rem;
  transition: color var(--transition);
}

.navbar-social a:hover {
  color: var(--primary);
}

/* Contact button in nav */
.navbar-contact .btn {
  padding: 0.5rem 1.4rem;
  font-size: 0.95rem;
}

/* Contact button in nav */
align-content: {
}

.button .btn {
  padding: 0.5rem 1.4rem;
  font-size: 0.95rem;
  margin: auto;
  width: 330px;
}

/* ── Dropdown submenu ── */
.has-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-caret {
  transition: transform var(--transition);
  flex-shrink: 0;
}

.has-dropdown.open > a .dropdown-caret, .has-dropdown:hover > a .dropdown-caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background-color: var(--white);
  min-width: 200px;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  z-index: 200;
  padding: 0.4rem 0;
  border-top: 3px solid;
  border-color: #c17f5e;
  margin-top: -6px;
}

.dropdown-menu li a {
  display: block;
  padding: 0.55rem 1.2rem;
  color: var(--dark);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 0;
}

.dropdown-menu li a:hover, .dropdown-menu li a.active {
  color: #c17f5e;
  background-color: #F2EDE6;
}

/* Show on hover (desktop) */
@media (min-width: 769px) {
  .has-dropdown:hover > .dropdown-menu {
    display: block;
  }
}

/* Hamburger toggle (mobile) */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.25rem;
}

.navbar-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--dark);
  transition: all var(--transition);
}

/* ============================================================
   HERO / PAGE HEADER
   ============================================================ */
.page-hero {
  background-color: var(--white);
  padding: 4rem 0 3rem;
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

.page-hero h2 {
  font-weight: 400;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
}

/* Homepage specific hero */
.home-hero {
  padding: 6rem 0 4rem;
  text-align: center;
}

.home-hero h1 {
  margin-bottom: 0.75rem;
  font-weight: lighter;
  font-size: 20px;
}

.home-hero h2 {
  font-size: clamp(3.1rem, 2vw, 1.6rem);
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.home-hero p {
  font-size: 1rem;
  color: var(--dark);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ============================================================
   SERVICE CARDS (Homepage)
   ============================================================ */
.services-section {
  padding: 4rem 0;
  background-color: var(--light-bg);
}

.service-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-body h3 {
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.service-card-body p {
  color: #555;
  font-size: 0.95rem;
  flex: 1;
}

.service-card-body a {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--primary);
}

/* ============================================================
   CONTENT SECTIONS (inner pages)
   ============================================================ */
.content-section {
  padding: 4rem 0;
}

.content-section + .content-section {
  border-top: 1px solid var(--border-color);
}

.content-media-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.content-media-text.reverse {
  direction: rtl;
}

.content-media-text.reverse > * {
  direction: ltr;
}

.content-media-text img {
  border-radius: 8px;
  width: 100%;
}

/* Symptom lists */
.symptom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.symptom-grid li {
  padding: 0.4rem 0.6rem;
  background-color: var(--light-bg);
  border-radius: 4px;
  font-size: 0.95rem;
  position: relative;
  padding-left: 1.2rem;
}

.symptom-grid li::before {
  content: '•';
  position: absolute;
  left: 0.4rem;
  color: var(--primary);
}

/* Standard bullet list */
.styled-list {
  margin: 1rem 0 1rem 0;
}

.styled-list li {
  padding: 0.3rem 0 0.3rem 1.4rem;
  position: relative;
}

.styled-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
  background-color: var(--light-bg);
  padding: 4rem 0;
}

.testimonial-card {
  background-color: var(--white);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-size: 5rem;
  color: var(--primary);
  opacity: 0.25;
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial-card p {
  font-style: italic;
  color: #444;
  margin-bottom: 1rem;
}

.testimonial-attribution {
  margin-top: 1rem;
}

.testimonial-attribution strong {
  display: block;
  font-weight: 700;
  color: var(--dark);
}

.testimonial-attribution span {
  font-size: 0.9rem;
  color: var(--primary);
}

/* Person testimonial (with photo) */
.testimonial-person {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background-color: var(--white);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  margin-bottom: 2rem;
}

.testimonial-person img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}

.testimonial-person-content h5 {
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.testimonial-person-content h6 {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

/* ============================================================
   QUALIFICATIONS / ABOUT
   ============================================================ */
.about-intro {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: start;
}

.about-intro img {
  border-radius: 8px;
  width: 100%;
}

.qualifications-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 1rem 0;
}

.qualifications-grid li {
  padding: 0.4rem 0.6rem 0.4rem 1.2rem;
  position: relative;
  font-size: 0.95rem;
}

.qualifications-grid li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info p {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.contact-info a {
  color: var(--dark);
  font-weight: 600;
}

.contact-info a:hover {
  color: var(--primary);
}

.pricing-table {
  margin-top: 2rem;
}

.pricing-category {
  margin-bottom: 2rem;
}

.pricing-category h4 {
  color: var(--primary);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
}

.pricing-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
  gap: 1rem;
}

.pricing-item:last-child {
  border-bottom: none;
}

.pricing-item-name {
  font-weight: 500;
  flex: 1;
}

.pricing-item-price {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

/* Social icons (contact) */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--light-bg);
  color: var(--dark);
  font-size: 1.1rem;
  transition: background-color var(--transition), color var(--transition);
}

.social-links a:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* ============================================================
   SOCIAL / BLOG PAGE
   ============================================================ */
.blog-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  text-align: center;
}

.blog-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.blog-card-body {
  padding: 2.5rem;
}

.blog-card-body h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--dark);
  margin-bottom: 1rem;
}

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta-strip {
  background-color: var(--primary);
  padding: 3rem 0;
  text-align: center;
}

.cta-strip h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.cta-strip .btn-group {
  justify-content: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--dark);
  color: var(--footer-text);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo img {
  height: 50px;
  width: auto;
  opacity: 0.9;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer-nav a {
  color: var(--footer-text);
  font-size: 0.95rem;
  opacity: 0.8;
  transition: opacity var(--transition), color var(--transition);
}

.footer-nav a:hover {
  opacity: 1;
  color: var(--primary);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.footer-hcpc img {
  height: 50px;
  width: auto;
  opacity: 0.85;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin: auto;
  width: 100%;
}

.footer-social a {
  color: var(--footer-text);
  font-size: 1.1rem;
  opacity: 0.7;
  transition: opacity var(--transition), color var(--transition);
}

.footer-social a:hover {
  opacity: 1;
  color: var(--primary);
}

.footer-bottom {
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

.footer-bottom a {
  color: var(--footer-text);
  opacity: 0.9;
}

.footer-bottom a:hover {
  color: var(--primary);
  opacity: 1;
}

/* ============================================================
   PHOTO GALLERY / SLIDESHOW (static grid version)
   ============================================================ */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin: 2rem 0;
}

.photo-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
}

/* ============================================================
   SECTION DIVIDER
   ============================================================ */
.divider {
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, rgba(71,181,237,0.1) 100%);
  border: none;
  margin: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
 {
}

@media (max-width: 1024px) {
  .navbar-menu li a {
    font-size: 0.88rem;
    padding: 0.4rem 0.6rem;
    text-align: center;
    display: block;
  }
  .photo img {
    display: none;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    gap: 0;
  }
  .navbar-menu.open {
    display: flex;
  }
  .navbar-menu li {
    width: 100%;
  }
  .navbar-menu li a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    font-size: 1rem;
  }
  .navbar-toggle {
    display: flex;
  }
  .navbar-social {
    display: none;
  }

  /* Mobile dropdown — expand inline */
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--primary);
    border-radius: 0;
    padding: 0 0 0.25rem 0.75rem;
    margin: 0 0 0.25rem 0;
    min-width: unset;
  }
  .dropdown-menu li a {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
  }
  .has-dropdown.open > .dropdown-menu {
    display: block;
  }
  .content-media-text, .about-intro, .contact-grid {
    grid-template-columns: 1fr;
  }
  .content-media-text.reverse {
    direction: ltr;
  }
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-right {
    align-items: center;
  }
  .footer-nav {
    justify-content: center;
  }
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonial-person {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .qualifications-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .home-hero {
    padding: 3rem 0 2rem;
  }
  .section, .section-light, .content-section {
    padding: 3rem 0;
  }
  .btn-group {
    flex-direction: column;
  }
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.card-heading {
  margin: auto;
}

.card-heading-older-adults {
  margin: auto;
  font-size: 28px;
  text-align: center;
}

.photo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-left: 100%;
}