/*
  Solace Mindcare — New visual styling
  Purpose: Replace all previous styles with a pixel-accurate design
  Notes:
  - Colors, typography, spacing, and layout follow the provided references
  - Responsive at common breakpoints (1200, 992, 768, 576)
*/

/* Universal box-sizing and overflow prevention */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Prevent horizontal scrolling on all elements */
* {
  max-width: 100%;
}

/* Allow specific elements to exceed container width when needed */
.hero .team-photo img, 
.hero .hero-image img, 
.hero img.team-photo,
.registration-form .form-headbar,
.registration-form .form-footbar {
  max-width: none;
}

/* ------------------------------
   Design Tokens
------------------------------ */
:root {
  /* Base palette */
  --cream: #FAF1E4;            /* page background */
  --cream-2: #F5EAD6;          /* subtle contrast */
  --text: #4E4A45;             /* primary body text */
  --text-muted: #6E6A64;       /* nav text, helper */

  /* Brand greens */
  --green-900: #0E3A32;        /* deep hero background */
  --green-800: #103F35;
  --green-600: #1D5A49;
  --green-500: #2B6D57;

  /* Accents */
  --brown-700: #7B351B;        /* button bg */
  --brown-800: #6D3019;        /* button hover */
  --accent-yellow: #E3B300;    /* sofa accent seen in hero */

  /* Effects */
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;

  /* Animation Variables */
  --animation-duration-fast: 0.2s;
  --animation-duration-normal: 0.3s;
  --animation-duration-slow: 0.6s;
  --animation-easing: cubic-bezier(0.4, 0, 0.2, 1);
  --animation-easing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Webfonts */
@font-face {
  font-family: "Futura PT";
  src: url("assets/fonts/Futura/Futura_PT_Regular_wiBS19_gl-wRep20CUJim.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Alias so `font-family: "Futura"` resolves to our webfont */
@font-face {
  font-family: "Futura";
  src: url("assets/fonts/Futura/Futura_PT_Regular_wiBS19_gl-wRep20CUJim.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Futura PT Light (for thin titles) */
@font-face {
  font-family: "Futura PT";
  src: url("assets/fonts/Futura/FuturaPT-Light.ttf") format("truetype"),
       url("assets/fonts/Futura/Futura_PT_Light.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

/* Laurentian Pro (Regular) for section titles */
@font-face {
  font-family: "Laurentian Pro";
  src: url("assets/fonts/Laurentian Pro/Laurentian_Std_kQmixKX6MabPfzJGphhU-.woff2") format("woff2"),
       url("assets/fonts/Laurentian Pro/Laurentian_Std_jgLPwnTgCeYU-MY3RgjQl.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Yantramanav — Thin (100) and Light (200) for ultra-light headings */
/* (removed Yantramanav ultra-light faces; keeping brand fonts intact) */

/* ------------------------------
   Animation System
------------------------------ */

/* Page Load Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Page Transition Animation */
@keyframes pageTransition {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading Animation Classes - Improved Smoothness */
.animate-on-load {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-on-load-delay-1 {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s forwards;
}

.animate-on-load-delay-2 {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

.animate-on-load-delay-3 {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.45s forwards;
}

.animate-on-load-delay-4 {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards;
}

/* Scroll Animation Classes - Safe defaults + gated hidden states */
/* Default: visible (in case JS fails) */
.animate-on-scroll,
.animate-on-scroll-left,
.animate-on-scroll-right,
.animate-on-scroll-scale,
.animate-on-scroll-up {
  opacity: 1;
  transform: none;
  transition: none;
}

/* JS-enabled: hidden until intersected */
.animations-enabled .animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.animations-enabled .animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.animations-enabled .animate-on-scroll-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.animations-enabled .animate-on-scroll-left.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.animations-enabled .animate-on-scroll-right {
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.animations-enabled .animate-on-scroll-right.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.animations-enabled .animate-on-scroll-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.animations-enabled .animate-on-scroll-scale.animate-in {
  opacity: 1;
  transform: scale(1);
}

.animations-enabled .animate-on-scroll-up {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.animations-enabled .animate-on-scroll-up.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Page Transition */
body {
  animation: pageTransition var(--animation-duration-slow) var(--animation-easing);
}

/* Smooth Scrolling Enhancement */
html {
  scroll-behavior: smooth;
}

/* Enhanced Hover Effects */
.btn, button, .nav-link, .social-link, .clinical-member, .service-card {
  transition: all var(--animation-duration-normal) var(--animation-easing);
}

.btn:hover, button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.clinical-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* Smooth modal entrance */
@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .animate-on-load,
  .animate-on-load-delay-1,
  .animate-on-load-delay-2,
  .animate-on-load-delay-3,
  .animate-on-load-delay-4 {
    opacity: 1;
    animation: none;
  }
  
  .animate-on-scroll,
  .animate-on-scroll-left,
  .animate-on-scroll-right,
  .animate-on-scroll-scale {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------
   Global Reset & Base
------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  color: var(--text);
  background: var(--cream);
  font-family: "Yantramanav", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.65;
  animation: pageTransition var(--animation-duration-slow) var(--animation-easing);
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }

/* Futura PT — for navbar menu */
@font-face {
  font-family: "Futura PT";
  src: url("assets/fonts/Futura/Futura_PT_Regular_wiBS19_gl-wRep20CUJim.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Serif headline fallback for hero and section titles */
/* Laurentian Std — italic 600 for display/section titles */
@font-face {
  font-family: "Laurentian Std";
  /* First source must be a valid file; remove missing ky2F4... woff2 */
  src: url("assets/fonts/Laurentian Pro/Laurentian_Std_Italic_3rcH8A7n8ivbuJjVi0Mjb.woff2") format("woff2"),
       url("assets/fonts/Laurentian Pro/Laurentian_Std_Italic_ky2F4v1_JofNt6N_jQ60r.woff") format("woff");
  font-style: italic;
  font-weight: 600;
  font-display: swap;
}

/* Laurentian Std — regular 400 for footer headings */
@font-face {
  font-family: "Laurentian Std";
  src: url("assets/fonts/Laurentian Pro/Laurentian_Std_kQmixKX6MabPfzJGphhU-.woff2") format("woff2"),
       url("assets/fonts/Laurentian Pro/Laurentian_Std_jgLPwnTgCeYU-MY3RgjQl.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* Engage With Our Clinicians Section */
.engage-section {
  background: #ffffff;
  padding: 80px 0;
}

.engage-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.engage-left h2 {
  font-family: 'Laurentian Pro', serif;
  font-weight: 400;
  color: #82300e;
  font-size: 32px; /* Updated to 32px */
  margin: 0 0 30px 0;
  line-height: 1.2;
}

.social-links-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.social-links-list p {
  margin: 0;
  font-size: 16px;
  color: #333;
  line-height: 1.5;
}

.social-link {
  color: #82300e;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: #a03d12;
}

.engage-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.team-photo-container {
  width: 100%;
  max-width: 480px; /* Increased from 400px by 20%: 400 * 1.2 = 480px */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.engage-team-photo {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive Design for Engage Section */
@media (max-width: 768px) {
  .engage-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .engage-left h2 {
    font-size: 22.4px; /* Reduced from 28px by 20%: 28 * 0.8 = 22.4px */
  }
  
  .team-photo-container {
    max-width: 360px; /* Increased from 300px by 20%: 300 * 1.2 = 360px */
  }
}
/* cleanup: remove stray tokens that could break subsequent @font-face rules */
@font-face {
  font-family: "Laurentian Std";
  src: url("assets/fonts/Laurentian Pro/Laurentian_Std_SemiBold_zjUwH80dovESk5zh9m2a2.woff2") format("woff2"),
       url("assets/fonts/Laurentian Pro/Laurentian_Std_SemiBold_hJ0FDwVsg_LbWzxcIE4BE.woff") format("woff");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
h1, .display, .section-title {
  font-family: "Laurentian Std", Georgia, "Times New Roman", Times, serif;
  font-weight: 600;
  font-style: italic;
  margin-top: -100px; /* Move all h1 elements up by 100px */
}

/* Ensure headings aren’t hidden under the navigation on small screens */
@media (max-width: 900px) {
  h1, .display, .section-title {
    margin-top: 0 !important;
  }
}

/* Override for specific page headings - MUST come after general h1 rule */
section.team-hero h1 {
  font-weight: 700 !important;
  font-style: italic !important;
  font-family: "Laurentian Std", Georgia, "Times New Roman", Times, serif !important;
}

section.contact-hero h1 {
  font-weight: 700 !important;
  font-style: italic !important;
  font-family: "Laurentian Std", Georgia, "Times New Roman", Times, serif !important;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------------
   Header / Navigation
------------------------------ */
header, nav {
  background: var(--cream);
}

nav {
  position: relative;
  z-index: 1000000; /* Ensure nav container is above all other content */
  display: grid;
  grid-template-columns: auto 1fr auto auto; /* logo | links | cta | hamburger */
  align-items: center;
  gap: 16px;
  padding: 14px 28px;
  width: 90%; /* navbar content takes 90% of viewport width */
  margin: 0 auto;   /* center the navbar content */
  height: 126px; /* reduced by 10% from 140px */
  transition: all 0.3s ease; /* smooth transitions */
}

/* Logo */
nav .logo, header .logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
nav .logo img {
  max-height: 80px;
  height: auto;
  width: auto;
}

/* Center links */
nav .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px; /* slightly tighter spacing to match attachment */
  font-size: 17.28px;
  font-family: "Futura PT", Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #526f68;
  transition: all 0.3s ease; /* smooth transitions */
}
nav .nav-links a { 
  opacity: 0.9; 
  color: #526f68;
  transition: all 0.3s ease;
}
nav .nav-links a:hover { 
  opacity: 1; 
  color: #cda93c; /* golden hover color */
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  justify-self: end;
}

.hamburger-menu span {
  width: 25px;
  height: 3px;
  background-color: #132e2e; /* Updated to requested color */
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* WhatsApp CTA (right) */
.chat-btn, .whatsapp-btn {
  justify-self: end;
  background: #82300e;
  color: #fff;
  font-family: "Futura PT", Arial, sans-serif; /* Added Futura PT font family */
  font-size: 14.4px; /* Increased by 0.2x: 12px * 1.2 = 14.4px */
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 21.6px; /* Increased by 0.2x: 10px * 1.2 = 12px, 18px * 1.2 = 21.6px */
  border-radius: 9.6px; /* Increased by 0.2x: 8px * 1.2 = 9.6px */
  box-shadow: 0 1px 0 rgba(0,0,0,0.12) inset;
  transition: all 0.3s ease;
  transform: translateY(0);
}
.chat-btn:hover, .whatsapp-btn:hover { 
  background: #cda93c; /* golden hover background */
  transform: translateY(-2px); /* subtle upward translation */
}

/* ------------------------------
   Hero (dark green with pattern and team image)
------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  /* High‑res, type-aware background with density-aware candidates */
  background-image:
    linear-gradient(to right, #0b1b1b, transparent),
    url('assets/images/HeroBgPtn.jpeg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: scroll; /* fixed backgrounds can appear blurry when scaled */
  color: #F8F1E6;
}
.hero .container, .hero .hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Equal columns for text and image */
  align-items: center; /* Center align items vertically */
  gap: 40px;
  height: calc(70vh + 60px); /* Add 60px to current hero height */
  padding: 0 5%; /* Clean side padding */
  max-width: 100vw;
}
/* Hero text content container */
.hero .hero-content {
  width: 100%;
  max-width: none; /* Remove width restriction */
  text-align: left; /* Align text to left for desktop layout */
  margin-top: -140px; /* Lower content by 60px from previous position */
  padding-right: 20px; /* Add some spacing from the image */
}

.hero h1 {
  font-size: clamp(28px, 5.5vw, 56px); /* Improved scaling: better minimum size for mobile */
  line-height: 1.15;
  margin: 0 0 18px; /* Remove negative margin to prevent clipping */
  color: #cda93c; /* Updated to requested color */
  font-style: italic; /* Make title italic as requested */
  font-weight: 600; /* Match Laurentian Std weight */
  max-width: 100%; /* Ensure text uses full column width */
  text-align: left; /* Align title to left for desktop layout */
  /* Allow natural text wrapping for better responsiveness */
  white-space: normal; /* Allow natural wrapping */
  overflow-wrap: break-word; /* Break long words if needed */
  hyphens: auto; /* Enable hyphenation for better text flow */
  word-spacing: -0.05em; /* Slightly tighter word spacing for better fit */
}

/* Ensure br tags within hero h1 display as line breaks */
.hero h1 br {
  display: block;
}

/* Responsive typography adjustments */
@media (max-width: 1400px) {
  .hero h1 {
    font-size: clamp(26px, 5.2vw, 52px);
    line-height: 1.2;
  }
}

/* Media query for smaller screens - allow wrapping */
@media (max-width: 1200px) {
  .hero h1 {
    font-size: clamp(24px, 4.8vw, 48px);
    line-height: 1.25;
    white-space: normal; /* Allow wrapping on smaller screens */
  }
}

@media (max-width: 992px) {
  .hero h1 {
    font-size: clamp(22px, 4.5vw, 44px);
    line-height: 1.3;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: clamp(20px, 6vw, 36px);
    line-height: 1.35;
    margin-bottom: 16px;
    text-align: center; /* Ensure h1 is centered on mobile */
  }
  
  .hero h1 br {
    display: none; /* Hide manual line breaks on mobile */
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: clamp(18px, 7vw, 32px);
    line-height: 1.4;
    margin-bottom: 14px;
    text-align: center; /* Ensure h1 is centered on small mobile */
  }
}

/* Tablet and mobile specific adjustments removed - handled by main responsive query above */

/* Responsive: ensure hero stacks and spacing is comfortable on smaller screens */
@media (max-width: 900px) {
  .hero .container, .hero .hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    padding: 60px 8% 40px; /* Increased side padding for better text spacing */
    gap: 30px;
  }
  .hero .hero-content {
    margin-top: 0;
    max-width: 100%;
    text-align: center;
    padding-right: 0; /* Remove desktop padding */
  }
  .hero h1 {
    font-size: clamp(24px, 5.5vw, 40px);
    line-height: 1.3;
    margin: 0 0 24px;
    text-align: center;
    white-space: normal;
  }
  
  /* Ensure br tags display as blocks on mobile */
  .hero h1 br {
    display: block;
  }
  .hero .accent-line { margin-left: auto; margin-right: auto; }
  .hero .team-photo img, .hero .hero-image img, .hero img.team-photo {
    height: auto;                 /* natural height on mobile */
    width: 96vw !important;       /* fit viewport width */
    max-width: none;
    object-fit: contain;          /* avoid cropping faces */
    object-position: center bottom;
    transform: none;
  }
  .hero .hero-image {
    justify-self: center;
  }
  /* Better paragraph spacing on mobile/tablet */
  .hero p { 
    line-height: 1.6;
    max-width: 100%;
    text-align: center;
    padding: 0 5%; /* Add horizontal padding to paragraph text */
  }
  .hero .team-photo, .hero .hero-image { margin-top: 20px; }
}

.hero p {
  font-size: 20px; /* Adjusted from 22px to 20px */
  max-width: 100%; /* Changed from 680px to use full column width */
  color: #FFFFFF; /* White color for the description text */
  opacity: 1; /* Full opacity for better readability */
  text-align: left; /* Align paragraph text to left for desktop layout */
}

/* Team image positioned on the right side for desktop */
.hero .team-photo, .hero .hero-image {
  position: relative;
  align-self: stretch; /* fill the column height */
  justify-self: center; /* Center in its grid column */
  width: 100%;
  display: flex;
  justify-content: flex-end; /* anchor to right */
  align-items: flex-end; /* anchor to bottom */
  margin-top: 0; /* Remove top margin for desktop layout */
  overflow: visible; /* allow image to bleed outside container */
}
.hero .team-photo img, .hero .hero-image img, .hero img.team-photo {
  width: auto !important;  /* size by height */
  height: 100%;            /* fill container vertically */
  max-width: none;
  max-height: none;
  border-radius: 12px;
  object-fit: cover;       /* fill and crop naturally */
  object-position: right -200px bottom -200px; /* anchor bottom-right with precise 200px offset */
  transform: none; /* use object-position for offset to avoid compounding */
}

/* Decorative accent line (optional under title) */
.hero .accent-line {
  width: 64px;
  height: 3px;
  background: var(--accent-yellow);
  margin: 14px 0 18px;
  border-radius: 2px;
}

/* ------------------------------
   Understanding Mental Health (video section)
------------------------------ */
.video-section, .understanding-section {
  background: var(--cream);
  padding: 48px 0 56px;
}
.video-section .section-title, .understanding-section .section-title {
  text-align: center;
  color: var(--green-600);
  font-size: clamp(26px, 3.6vw, 36px);
  margin: 0 0 12px;
}
.video-section .section-desc, .understanding-section .section-desc,
.video-section .section-subtitle, .understanding-section .section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 20px;
  max-width: 720px;
  margin: 0 auto 22px;
}
.video-wrapper {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #000; /* for video letterboxing */
}
.video-wrapper iframe,
.video-wrapper video {
  display: block;
  width: 100%;
  height: clamp(220px, 45vw, 405px);
}

/* Video container and placeholder styles */
.video-container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  position: relative;
  aspect-ratio: 16 / 9; /* Maintain 16:9 aspect ratio */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
}

.video-placeholder {
  width: 100%;
  height: 100%;
  background-image: image-set(
    url('assets/images/optimized/IMG_5669-480.avif') type('image/avif') 1x,
    url('assets/images/optimized/IMG_5669-768.avif') type('image/avif') 2x,
    url('assets/images/optimized/IMG_5669-480.webp') type('image/webp') 1x,
    url('assets/images/optimized/IMG_5669-768.webp') type('image/webp') 2x
  );
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.play-button {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.play-button:hover {
  transform: scale(1.1);
}

.play-button svg {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* ------------------------------
   About Us Section
------------------------------ */
/* About Section - Accordion Style */
.about-section {
  background: #faf3e0;
  padding: 52px 0;
}

.about-section .section-title {
  text-align: center;
  color: var(--green-600);
  font-size: clamp(26px, 3.6vw, 36px);
  margin: 0 0 40px;
}

.accordion {
  width: 80vw;
  margin: 0 auto;
  padding: 0 20px;
}

.accordion-item {
  background: transparent;
  border-bottom: 1px solid #E0E0E0;
  transition: all 0.3s ease;
}

.accordion-item:first-child {
  border-top: 1px solid #E0E0E0;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: none;
  background: #faf3e0;
}

.accordion-header:hover {
  background-color: rgba(248, 246, 240, 0.5);
}

.accordion-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
  color: #6e2216;
  font-family: "Futura", Arial, sans-serif;
  font-style: normal;
}

.accordion-icon {
  width: 32px;
  height: 32px;
  border: 2px solid #6e2216;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 400;
  color: #6e2216;
  background-color: transparent;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.accordion-content {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
  max-height: 200px;
  padding: 0 24px 20px 24px;
}

.accordion-item.active .accordion-icon {
  background-color: #6e2216;
  color: #FFFFFF;
}

.accordion-content p {
  margin: 0;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

.chevron-circle {
  background: #D4AF37;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chevron-circle svg {
  width: 16px;
  height: 16px;
  fill: #FFFFFF;
}

/* ------------------------------
   Generic Sections (services/cta/footer)
------------------------------ */
section { padding: 52px 0; }

.section-heading {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-style: italic;
  color: var(--green-600);
  font-size: clamp(26px, 3.2vw, 34px);
  margin: 0 0 18px;
}

.text-muted { color: var(--text-muted); }

/* Hotlines & Crisis Support Section */
.hotlines-section { background: #F9F9F9; }
.hotlines-section .section-heading {
  text-align: center;
  color: #132e2e; /* match Contact hero heading */
  font-weight: 700; /* bold like Contact hero h1 */
  font-style: normal; /* ensure not italic */
  font-family: "Laurentian Std", Georgia, "Times New Roman", Times, serif;
  font-size: calc(0.8 * clamp(26px, 3.2vw, 34px)); /* reduce to 0.8x */
  margin: 0 0 18px;
}
.hotlines-lead {
  text-align: center;
  color: #132e2e; /* match Contact hero intro */
  font-style: normal;
  font-size: 20px;
  line-height: 1.6;
  max-width: 1100px;
  margin: 0 auto;
}

/* Hotlines grid and cards */
.hotlines-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 26px;
}

.hotline-card {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 22px;
  transition: transform 0.25s ease, background-color 0.25s ease,
              box-shadow 0.25s ease, border-color 0.25s ease;
}

.hotline-title {
  margin: 0 0 8px;
  color: #132e2e;
  font-weight: 700;
  font-style: normal;
  font-family: "Laurentian Std", Georgia, "Times New Roman", Times, serif;
}

.hotline-number {
  margin: 0 0 10px;
  font-size: calc(22px * 0.8); /* reduce by 20% */
  font-weight: 700;
  color: #132e2e;
}
.hotline-number a { color: inherit; text-decoration: none; }
.hotline-number a:hover { text-decoration: underline; }
.hotline-number.alt { margin-top: -6px; font-weight: 600; color: #0b5e3e; }

.hotline-desc {
  margin: 0;
  color: #132E2E; /* align with body text colour */
  line-height: 1.6;
  transition: color 0.25s ease;
}

/* Hover effects for Hotline and Local Services cards */
.hotlines-section .hotline-card:hover,
.local-services-section .hotline-card:hover {
  transform: translateY(-4px);
  background: #132E2E;
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

.hotlines-section .hotline-card:hover .hotline-title,
.local-services-section .hotline-card:hover .hotline-title,
.hotlines-section .hotline-card:hover .hotline-number,
.local-services-section .hotline-card:hover .hotline-number,
.hotlines-section .hotline-card:hover .hotline-desc,
.local-services-section .hotline-card:hover .hotline-desc {
  color: #FFFFFF;
}

/* Ensure phone links remain readable on hover */
.hotlines-section .hotline-card:hover .hotline-number a,
.local-services-section .hotline-card:hover .hotline-number a {
  color: inherit;
  text-decoration: none;
}

/* Responsive: stack to 2 columns then 1 */
@media (max-width: 1200px) {
  .hotlines-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .hotlines-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .hotlines-grid { grid-template-columns: 1fr; }
}

/* Services Section */
.services-section {
  background: #FFFFFF;
  padding: 52px 0;
}

/* ------------------------------
   HTML5 Dialog Styles (Home page services)
------------------------------ */
.service-dialog {
  padding: 0;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  max-width: min(640px, 92vw);
  max-height: 90vh;
  width: 100%;
  background: #ffffff;
}

.service-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-dialog[open]::backdrop {
  opacity: 1;
}
/* Animate inner content when dialog opens (avoids sticky/jitter issues) */
.service-dialog[open] .dialog-content-inner {
  animation: modalIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform, opacity;
  transform-origin: center top;
  backface-visibility: hidden;
  transform: translateZ(0);
  contain: paint;
}

.dialog-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 0; /* Reset padding - header will be flush with top */
  position: relative;
  max-height: 90vh;
  overflow: hidden; /* Hide overflow on main container */
  overscroll-behavior: contain; /* prevent scroll chaining to body */
  display: flex;
  flex-direction: column;
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #FFFFFF;
  border: none;
  font-size: 24px;
  color: #132E2E;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease;
  z-index: 3; /* Increased z-index to appear above sticky header */
}

.dialog-close:hover {
  background-color: #FFFFFF;
  color: #132E2E;
}

.dialog-content h3 {
  background: #132E2E;
  color: #ffffff;
  margin: 0;
  padding: 20px 24px;
  font-size: 20px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  /* header is static above the scroll area to reduce jank */
}

/* Content container with padding that starts after the header */
.dialog-content-inner {
  padding: 50px 24px 100px 24px; /* 50px top padding, 100px bottom padding */
  margin: 0;
  overflow-y: auto; /* Make only the content area scrollable */
  flex: 1; /* Take remaining space in flex container */
  scrollbar-gutter: stable both-edges; /* prevent layout shift when scrollbar appears */
  overscroll-behavior: contain; /* avoid scroll chaining */
}

/* Modal profile image */
.modal-profile-image {
  width: calc(100% - 48px); /* Account for 24px margins on both sides */
  max-height: 300px;
  object-fit: cover;
  border-radius: 16px;
  margin: 0 24px 20px 24px;
}

.dialog-content p {
  padding: 20px 24px;
  margin: 0;
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

/* Dialog content scrollbar styling */
.dialog-content { 
  scrollbar-width: thin;                 /* Firefox */
  scrollbar-color: #132E2E #E6EFEF;      /* thumb | track */
}
.dialog-content::-webkit-scrollbar {      /* WebKit */
  width: 12px;
}
.dialog-content::-webkit-scrollbar-track {
  background: #E6EFEF;
  border-radius: 10px;
}
.dialog-content::-webkit-scrollbar-thumb {
  background: #132E2E;
  border-radius: 10px;
  border: 3px solid #E6EFEF; /* inset effect */
}
.dialog-content::-webkit-scrollbar-thumb:hover {
  background: #0F2424;
}

/* Local Services & Support Groups heading — match Contact hero heading */
.local-services-section .section-heading {
  text-align: center;
  color: #132e2e;
  font-weight: 700;
  font-style: normal;
  font-family: "Laurentian Std", Georgia, "Times New Roman", Times, serif;
  font-size: calc(0.8 * clamp(26px, 3.2vw, 34px)); /* reduce to 0.8x */
  margin: 0 0 18px;
}

/* Ensure Local Services cards span the full container with three equal columns */
.local-services-section .hotlines-grid {
  grid-template-columns: repeat(3, 1fr);
}

.services-section .section-title {
  text-align: center;
  color: var(--green-600);
  font-size: clamp(26px, 3.6vw, 36px);
  margin: 0 0 12px;
}

.services-section .section-subtitle {
  text-align: center;
  color: #6e2216;
  font-size: 20px;
  max-width: 720px;
  margin: 0 auto 40px;
}

/* Services grid (homepage/services page) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card, .category-card {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.service-card:hover, .category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Service card icons */

.service-card h3, .category-card h3 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 600;
  font-style: italic;
  font-family: "Laurentian Std", Georgia, "Times New Roman", Times, serif;
  color: #132e2e;
}
.service-card p, .category-card p {
  margin: 0 0 24px;
  font-size: 20px;
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
}

/* Service card chevron icon */
.service-card .chevron-icon, .category-card .chevron-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
  margin-top: 0;
}

.service-card .chevron-circle, .category-card .chevron-circle {
  width: 30px;
  height: 30px;
  background: #D4AF37;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
  cursor: pointer;
}

.service-card .chevron-circle:hover, .category-card .chevron-circle:hover {
  background: #132e2e;
  transform: translateY(-2px);
}

.service-card .chevron-circle svg, .category-card .chevron-circle svg {
  width: 18px;
  height: 18px;
  fill: #FFFFFF;
  stroke: #FFFFFF;
  stroke-width: 2;
}

/* CTA Section */
.cta-section {
  /* High‑res, type-aware background with density-aware candidates */
  background-image:
    linear-gradient(rgba(110, 34, 22, 0.8), rgba(110, 34, 22, 0.8)),
    url('assets/images/NewsLetterSectionPtn.jpeg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 120px 0;
  margin-top: 150px;
  color: #FFFFFF;
  /* Removed paint containment to avoid potential 1px seam at section boundary */
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.cta-left {
  display: flex;
  align-items: center;
}

.cta-headline {
  margin: 0;
  color: #FFFFFF;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
  font-size: clamp(36px, 4.8vw, 56px);
}

.cta-content {
  max-width: 560px;
  /* Scroll-driven animations: each child animates as it enters viewport */
  /* Modern browsers: View Timelines (scroll-driven, reversible) */
}

/* Keyframes for content reveal (used with scroll timelines) */
@keyframes ctaReveal {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Apply view-timeline to CTA content children */
.cta-section .cta-content > * {
  /* Declare both longhand and shorthand to maximize engine compatibility */
  view-timeline-name: --ctaContentView;
  view-timeline-axis: block;
  view-timeline: --ctaContentView block;
  animation-name: ctaReveal;
  animation-timeline: --ctaContentView;
  animation-duration: 1s; /* length of progression along the timeline */
  animation-fill-mode: both;
  animation-range: entry 10% cover 40%; /* starts when element begins entering */
}

/* Gentle stagger via nth-child offsets */
.cta-section .cta-content > *:nth-child(1) { animation-range: entry 5% cover 35%; }
.cta-section .cta-content > *:nth-child(2) { animation-range: entry 10% cover 40%; }
.cta-section .cta-content > *:nth-child(3) { animation-range: entry 15% cover 45%; }
.cta-section .cta-content > *:nth-child(4) { animation-range: entry 20% cover 50%; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cta-section .cta-content > * {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Fallback for browsers when view-timeline features are not fully supported */
@supports not ((animation-timeline: --x) and (view-timeline-name: --y) and (animation-range: entry 0% cover 100%)) {
  .cta-section .cta-content > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .cta-section .cta-content > *.animate-in {
    opacity: 1;
    transform: translateY(0);
  }

  @media (prefers-reduced-motion: reduce) {
    .cta-section .cta-content > * {
      opacity: 1;
      transform: none;
      transition: none;
    }
  }
}

/* Attribute-driven CTA fallback: used when page JS sets data-cta-fallback */
.cta-section[data-cta-fallback] .cta-content > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.cta-section[data-cta-fallback] .cta-content > *.animate-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .cta-section[data-cta-fallback] .cta-content > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.cta-label {
  margin: 0 0 12px;
  color: #D4AF37;
  font-size: 1.4em;
  font-weight: 400; /* regular weight */
  letter-spacing: 0.02em;
  font-family: "Laurentian Pro", "Laurentian Std", Georgia, "Times New Roman", Times, serif;
  font-style: normal;
}
/* Keep CTA label gold within CTA content */
.cta-content .cta-label { color: #D4AF37; font-size: 1.4em; font-style: normal; }

.cta-content p:not(.cta-label) {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 20px;
  color: #FFFFFF;
  opacity: 0.95;
}

.cta-button-large {
  display: inline-block;
  background: #D4AF37;
  color: #FFFFFF;
  font-family: "Futura", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.02em;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  margin: 10px 0 14px;
}

.cta-button-large:hover {
  background: #b8891b;
  transform: translateY(-2px);
}

.cta-contact {
  font-size: 14px;
  margin: 0;
  color: #FFFFFF;
  opacity: 0.85;
}

.cta-contact strong {
  font-weight: 700;
  color: #D4AF37;
}

/* Newsletter form (CTA) */
.cta-form {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

.cta-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  color: #FFFFFF;
  outline: none;
}

.cta-input::placeholder {
  color: rgba(255,255,255,0.20);
}

.cta-send {
  padding: 12px 32px;
  border-radius: 8px;
  border: none;
  background: #432F02; /* requested color */
  color: #FFFFFF;
  font-family: "Futura", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}
 
.cta-send:hover {
  background: #3A2902;
  transform: translateY(-2px);
}

/* Tablet and mobile responsive styles for CTA section */
@media (max-width: 768px) {
  .cta-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 30px;
    text-align: center;
  }
  
  .cta-left {
    justify-content: center;
  }
}

@media (max-width: 540px) {
  .cta-form { flex-direction: column; align-items: stretch; }
  .cta-send { width: 100%; }
}

/* CTA blocks */
.cta {
  background: var(--cream-2);
  border-radius: var(--radius-md);
  padding: 22px;
}
.cta .btn {
  display: inline-block;
  background: var(--brown-700);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
}
.cta .btn:hover { background: var(--brown-800); }

.cta-title {
    font-size: clamp(26px, 3.6vw, 36px);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.cta-subtitle {
    font-size: 20px;
    color: #7f8c8d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Footer */
footer {
  background: linear-gradient(270deg, #132e2e 0%, #233f39 100%);
  color: #526f68; /* footer text color */
  padding: 0 0 24px; /* remove spacing above sitemap */
  /* Prevent any child overflow from causing horizontal scroll */
  overflow-x: clip;
}
footer .container.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 40px;
  row-gap: 0; /* remove vertical spacing below sitemap */
  align-items: start;
}

.footer-section h3 {
  font-size: 18px;
  letter-spacing: 0.3px;
  color: #d4af37; /* golden accent */
  margin: 0 0 12px; /* remove default top margin to tighten under sitemap */
  font-family: "Laurentian Std", Georgia, "Times New Roman", Times, serif;
  font-weight: 400;
  font-style: normal !important;
  /* prevent browser from synthesizing italics if normal face is missing */
  font-synthesis-style: none;
  font-synthesis: none;
}
.footer-section p {
  font-size: 14px;
  line-height: 1.7;
  color: #526f68;
}

.footer-list { display: grid; gap: 10px; }
.footer-list-item .term { color: #526f68; font-weight: 600; margin-right: 8px; }
.footer-list-item .desc { color: #526f68; font-style: italic; }

/* Center the middle footer column */
.footer-holistic { text-align: center; }
.footer-holistic .footer-list { justify-items: center; }
/* Condensed tagline style */
.footer-holistic .footer-tagline { color: #ffffff; font-weight: 400; }
/* Make questionnaire description text white */
.footer-survey p { color: #ffffff; }

.footer-button {
  display: inline-block;
  padding: 10px 16px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: #132E2E; /* initial colour as requested */
  color: #ffffff;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.footer-button:hover { background: rgba(255,255,255,0.1); border-color: #d4af37; color: #d4af37; }
.footer-button:hover { background: #cda93c; border-color: #cda93c; color: #0e3a32; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(205,169,60,0.35); }

.social-links { display: flex; gap: 12px; }
.social-icon {
  width: 40px; height: 40px; border-radius: 50%;
  border: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: #83A298; background: rgba(255,255,255,0.08);
  transition: all 0.2s ease;
}
.social-icon:hover { color: #cda93c; box-shadow: 0 0 12px rgba(205,169,60,0.60); }
.social-icon svg { width: 100%; height: 100%; display: block; }

.footer-logo img { max-width: 128px; margin-top: 18px; }

.footer-divider { grid-column: 1 / -1; height: 1px; background: rgba(255,255,255,0.12); margin: 22px 0 16px; }
.footer-bottom { grid-column: 1 / -1; padding-top: 8px; font-size: 12px; color: #526f68; text-align: center; }
/* Footer sitemap menu */
.footer-sitemap {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center; /* centered as requested */
  align-items: center;
  gap: 22px;
  padding: 0; /* remove padding */
  margin: 0; /* no margin */
  background: transparent; /* no background color */
  width: 100%;
  text-align: center;
  /* Allow links to wrap to next line on small screens */
  flex-wrap: wrap;
}
.footer-sitemap a {
  font-family: "Futura PT", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 14px;
  color: #526f68;
  opacity: 0.95;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.footer-sitemap a:hover { color: #7b9a91; opacity: 1; }

/* Footer responsive adjustments */
@media (max-width: 992px) {
  footer .container.footer-grid {
    grid-template-columns: 1fr 1fr; /* reduce to two columns on tablets */
    column-gap: 24px;
  }
}

@media (max-width: 768px) {
  .footer-sitemap { gap: 16px; }
  .social-links { gap: 10px; }
  .social-icon { width: 34px; height: 34px; }
}

@media (max-width: 576px) {
  footer .container.footer-grid {
    grid-template-columns: 1fr; /* stack columns on phones */
    row-gap: 18px;
  }
  .footer-sitemap { gap: 12px; }
  .footer-sitemap a { font-size: 12px; letter-spacing: 0.08em; }
  .footer-logo img { max-width: 96px; display: block; margin: 0 auto; }
  /* Center content when columns collapse into rows */
  .footer-section { text-align: center; }
  .footer-list { justify-items: center; }
  .social-links { justify-content: center; }
  .footer-logo { text-align: center; }
  /* Add gap specifically between social icons and logo when stacked */
  .social-links + .footer-logo { margin-top: 12px; }
  .footer-logo + .social-links { margin-top: 12px; }
}

/* ------------------------------
   Meet The Team page (hero + grid)
------------------------------ */
.team-hero {
  background: #ffffff;
  color: #132e2e;
  padding: 48px 0 80px 0;
  border-bottom: 2px solid #82300e;
}
.team-hero .container { 
  padding: 48px 24px; 
  text-align: center;
}
.team-hero h1 {
  margin-top: 0;
  margin-bottom: 48px;
  font-weight: bold; /* bold */
  font-style: normal; /* ensure not italic */
  color: #132e2e; /* requested color */
}

.team-hero .team-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.team-hero .team-image {
  display: flex;
  justify-content: center;
}

.team-hero .team-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
}

.team-hero .team-description {
  padding: 0 20px;
}

.team-hero .team-description p {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
  margin: 0;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
  .team-hero .team-content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .team-hero .team-description {
    padding: 0 10px;
  }
  
  /* Responsive design for team member card */
  .team-member-card {
    flex-direction: column;
    max-width: 90%;
  }

  /* Ensure reversed layout stacks like others on mobile */
  .team-member-card.team-member-card-reverse {
    flex-direction: column;
  }
  
  .team-member-image {
    flex: 0 0 250px;
  }
  
  .team-member-image img {
    border-radius: 12px 12px 0 0;
  }
  
  .team-member-content {
    padding: 30px 20px;
  }
}

/* Clinical Team Section */
.clinical-team-section {
  background: #ffffff;
  padding: 60px 0;
}

.clinical-team-heading {
  font-family: 'Laurentian Pro', serif;
  font-weight: 400; /* regular weight */
  color: #82300e;
  font-size: 36px;
  text-align: center;
  margin: 0 0 40px 0;
}

/* Team Member Card Styles */
.team-member-card {
  display: flex;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto 40px auto;
  min-height: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.team-member-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Reversed Layout for Team Member Card */
.team-member-card-reverse {
  flex-direction: row-reverse;
}

.team-member-image {
  flex: 0 0 30%; /* Adjusted to 30% for slightly smaller than original 40% */
  position: relative;
  padding: 20px;
}

.team-member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.team-member-content {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.team-member-name {
  font-family: 'Laurentian Pro', serif;
  font-size: 24px;
  font-weight: 400;
  color: #82300e;
  margin: 0 0 20px 0;
  font-style: italic;
}

.team-member-description {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
  margin: 0;
  flex: 1;
}

/* Team Member Card Chevron - using services card styling */
.team-member-card .chevron-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
  margin-top: 20px;
}

.team-member-card .chevron-circle {
  width: 30px;
  height: 30px;
  background: #D4AF37;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.team-member-card .chevron-circle:hover {
  background: #132e2e;
  transform: translateY(-2px);
}

.team-member-card .chevron-circle svg {
  width: 18px;
  height: 18px;
  fill: #FFFFFF;
  stroke: #FFFFFF;
  stroke-width: 2;
}

/* Team Section Styles */
/* Clinical Team Section */
.clinical-team {
  background: #f8f8f8;
  padding: 60px 0;
  border-top: 2px solid #82300e;
  border-bottom: 2px solid #82300e;
  width: 60%;
  margin: 0 auto;
}

.clinical-team h2 {
  font-family: 'Laurentian Pro', serif;
  font-weight: 400;
  color: #82300e;
  font-size: 32px; /* Updated to 32px */
  text-align: center;
  margin: 0 0 20px 0;
}

.clinical-team p {
  text-align: center;
  color: #666;
  margin: 0 0 40px 0;
  font-size: 18px;
}

.clinical-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.clinical-member {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 400px;
  margin: 0 auto;
}

.clinical-member:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.clinical-photo-container {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.clinical-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top; /* Align image to top to prevent heads from being cut off */
  transition: transform 0.3s ease;
}

.clinical-member:hover .clinical-photo {
  transform: scale(1.05);
}

.clinical-overlay {
  position: absolute;
  bottom: -30px; /* Lowered by 30px total */
  left: 0;
  right: 0;
  background: #132e2e; /* Updated to darker teal background */
  color: white;
  padding: 12px 15px; /* Better padding for clean appearance */
  text-align: center; /* Center-aligned text */
  height: auto; /* Let content determine height */
  display: block; /* Simplified display */
  box-sizing: border-box; /* Ensure padding is included in height calculation */
  overflow: hidden; /* Prevent text from overflowing the background */
}

.clinical-name {
  font-size: 14px; /* Updated to 14px as requested */
  font-weight: 700;
  color: #ffffff !important; /* Force white color with !important */
  margin: 0 0 2px 0; /* Small margin for separation */
  font-family: 'Laurentian Pro', serif; /* Laurentian Pro font */
  line-height: 1.2; /* Better line height for readability */
  display: block; /* Ensure visibility */
  text-shadow: 0 1px 2px rgba(0,0,0,0.3); /* Add subtle text shadow for better contrast */
}

.clinical-title {
  font-size: 12px !important; /* Updated to 12px with !important to override any conflicting styles */
  color: #ffffff !important; /* Force white color with !important */
  margin: 0;
  font-family: 'Yantramanav', sans-serif; /* Changed to Yantramanav font */
  font-weight: 400;
  line-height: 1.2; /* Better line height for readability */
  display: block; /* Ensure visibility */
  text-shadow: 0 1px 2px rgba(0,0,0,0.3); /* Add subtle text shadow for better contrast */
}

/* Team Photo Section */
/* Responsive Design for Team Sections */
@media (max-width: 768px) {
  .clinical-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .clinical-grid {
    grid-template-columns: 1fr;
  }
}

.team-card { background: var(--cream-2); border-radius: var(--radius-md); padding: 18px; }
.team-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.team-card p {
    font-size: 20px;
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
}

/* ------------------------------
   Contact page — location cards
------------------------------- */
.location-grid, .locations-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.location-card { 
  background: #132e2e; 
  border-radius: var(--radius-md); 
  padding: 18px; 
  padding-top: 24px; 
  padding-bottom: 24px; 
  color: #ffffff; /* ensure readable text on dark bg */
  text-align: center; /* center text content */
  display: flex; 
  flex-direction: column; 
  align-items: center; /* center all children */
  gap: 10px;
}
.location-icon { margin-bottom: 6px; }
.location-icon svg { width: 36px; height: 36px; }
.location-card .location-title { 
  color: #cda93c; 
  font-weight: 200; /* thin (uses Futura Light if present) */
  font-family: "Futura PT", Arial, sans-serif; 
  font-style: normal; 
  font-size: 2em; /* 2x current size */
}
.location-address, .location-contact { text-align: center; }
.location-card .location-address p, 
.location-card .location-contact p { color: #ffffff; line-height: 1.4; }
.location-card .location-divider { height: 1px; border: none; background: rgba(255,255,255,0.25); margin: 8px 0 14px; }

/* Contact cards — refinements per request */
.location-icon { margin-bottom: 4px; } /* reduce space between icon and heading */
.location-card .location-title {
  font-weight: 200; /* ensure consistent thin selection */
  margin-top: 0;   /* tighten spacing under icon */
}
.location-card .location-divider { background: #526f68; height: 1px; width: 60%; margin: 4px auto 8px; border: none; } /* thinner linebreaker */

/* Map button: reduce vertical padding and white on hover */
/* removed duplicate padding rule to avoid conflicts */
/* .map-button { padding: 12px 24px; } */
.map-button:hover { background: #ffffff; color: #132e2e; transform: translateY(-2px); }

/* Map button styling */
.map-button { 
  display: inline-block; 
  background: transparent; 
  border: 1px solid #ffffff; 
  color: #ffffff; 
  border-radius: 4px; 
  padding: 8px 16px; /* reduced vertical padding for a tighter button */
  text-decoration: none; 
  transition: background-color 0.2s ease, transform 0.2s ease; 
}

/* Further tighten space after the heading */
.location-card .location-title { margin-bottom: 4px; line-height: 1.1; }
 .map-button:hover { background: #ffffff; color: #132e2e; transform: translateY(-2px); }

/* ------------------------------
   Services page — category cards styled like contact cards
------------------------------- */
.service-categories .category-card {
  background: #132e2e;
  border: none;
  box-shadow: none;
  color: #ffffff;
  text-align: center;
  align-items: center;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  overflow: visible;
  position: relative;
}

.service-categories .category-card .category-icon { 
  margin-bottom: 8px; 
}

.service-categories .category-card .category-title {
  color: #cda93c;
  font-family: "Futura PT", Arial, sans-serif;
  font-style: normal;
  font-weight: 300;
  font-size: 1.8em;
  margin: 0 0 12px 0;
  line-height: 1.1;
}

.service-categories .category-card .category-description {
  color: #ffffff;
  line-height: 1.3;
  margin: 16px 0;
  flex: 1;
  display: flex;
  align-items: center;
}

/* Disable the white-card hover effect for dark service category cards */
.service-categories .category-card:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

/* Services page — 2x2 centered grid for category cards */
.service-categories .category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    max-width: 1080px;
    margin: 0 auto;
}

/* Responsive layout for service categories */

/* Tablet landscape and smaller desktops */
@media (max-width: 1200px) {
    .service-categories .category-grid {
        max-width: 900px;
        gap: 20px;
    }
    
    .service-categories .category-card {
        padding: 28px 20px;
        min-height: 320px;
    }
    
    .service-categories .category-card .category-title {
        font-size: 1.8em;
        margin: 0 0 14px 0;
    }
}

/* Tablet portrait */
@media (max-width: 992px) {
    .service-categories .category-grid {
        max-width: 100%;
        padding: 0 20px;
        gap: 18px;
    }
    
    .service-categories .category-card {
        padding: 24px 18px;
        min-height: 300px;
    }
    
    .service-categories .category-card .category-title {
        font-size: 1.6em;
        margin: 0 0 12px 0;
    }
}

/* Mobile landscape and smaller tablets */
@media (max-width: 768px) {
    .service-categories .category-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 0 20px;
        gap: 16px;
    }
    
    .service-categories .category-card {
        padding: 24px 20px;
        min-height: 280px;
    }
    
    .service-categories .category-card .category-title {
        font-size: 1.5em;
        margin: 0 0 12px 0;
        line-height: 1.2;
    }
    
    .service-categories .category-card .category-description {
        font-size: 16px;
        line-height: 1.5;
        margin: 0 0 12px 0;
    }
}

/* Mobile portrait */
@media (max-width: 576px) {
    .service-categories .category-grid {
        padding: 0 16px;
        gap: 14px;
    }
    
    .service-categories .category-card {
        padding: 20px 16px;
        min-height: 260px;
    }
    
    .service-categories .category-card .category-title {
        font-size: 1.3em;
        margin: 0 0 10px 0;
    }
    
    .service-categories .category-card .category-description {
        font-size: 15px;
        line-height: 1.4;
        margin: 0 0 10px 0;
    }
    
    .service-card .chevron-icon, .category-card .chevron-icon {
        padding: 6px;
    }
    
    .service-card .chevron-circle, .category-card .chevron-circle {
        width: 26px;
        height: 26px;
    }
    
    .service-card .chevron-circle svg, .category-card .chevron-circle svg {
        width: 15px;
        height: 15px;
    }
}

/* ------------------------------
   Contact page — info section
------------------------------ */
.contact-info {
  background: rgba(234, 234, 234, 0.4);
  border-radius: 8px;
  padding: 22px;
  width: 80vw; /* 80% of viewport width */
  margin: 0 auto; /* center the section */
  margin-bottom: 200px; /* requested extra spacing below section */
}
.contact-info h2, .contact-info h3 {
  font-family: "Laurentian Pro", Georgia, "Times New Roman", Times, serif;
  font-weight: 700;
  font-style: normal;
}

/* Contact page — accordion visual style to match screenshot */
/* Keep original panel and reduce section to 80% width */
.contact-info { background: #F9F9F9; padding: 72px 22px; border-radius: 8px; width: 75%; margin: 16px auto 0; }
/* Make accordion 80% of the section width */
.contact-info .accordion { width: 90%; margin: 0 auto; padding: 0; }
.contact-info .accordion-item { background: transparent; border-bottom: 1px solid #E0E0E0; }
.contact-info .accordion-item:first-child { border-top: 1px solid #E0E0E0; }
.contact-info .accordion-header { background: transparent; padding: 16px 0; }
.contact-info .accordion-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  font-family: "Futura", Arial, sans-serif;
  color: #8C3119; /* maroon heading colour per screenshot */
}
.contact-info .accordion-icon {
  border: none;
  border-radius: 0;
  width: auto;
  height: auto;
  font-size: 18px;
  font-weight: 600;
  color: #132E2E; /* dark green plus icon */
  background: transparent;
  margin-left: 8px;
}
.contact-info .accordion-item.active .accordion-icon { background: transparent; color: #132E2E; }
.contact-info .accordion-content { padding: 0 24px; color: var(--text-muted); line-height: 1.6; }
.contact-info .accordion-item.active .accordion-content { max-height: 600px; padding: 12px 0 16px 24px; }

/* Contact page — resources accordion styled like contact-info */
.contact-resources { background: #F9F9F9; padding: 72px 22px; border-radius: 8px; width: 75%; margin: 16px auto 0; }
.contact-resources .accordion { width: 90%; margin: 0 auto; padding: 0; }
.contact-resources .accordion-item { background: transparent; border-bottom: 1px solid #E0E0E0; }
.contact-resources .accordion-item:first-child { border-top: 1px solid #E0E0E0; }
.contact-resources .accordion-header { background: transparent; padding: 16px 0; }
.contact-resources .accordion-header h3 { margin: 0; font-size: 22px; font-weight: 400; font-family: "Futura", Arial, sans-serif; color: #8C3119; }
.contact-resources .accordion-icon { border: none; border-radius: 0; width: auto; height: auto; font-size: 18px; font-weight: 600; color: #132E2E; background: transparent; margin-left: 8px; }
.contact-resources .accordion-item.active .accordion-icon { background: transparent; color: #132E2E; }
.contact-resources .accordion-content { padding: 0 24px; color: var(--text-muted); line-height: 1.6; }
.contact-resources .accordion-item.active .accordion-content { max-height: 600px; padding: 12px 0 16px 24px; }

/* ------------------------------
   Registration form
------------------------------ */
.form-section form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-section .field { display: flex; flex-direction: column; gap: 6px; }
.form-section label { font-size: 13px; color: var(--text); }
.form-section input, .form-section select, .form-section textarea {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
}
.form-section textarea { min-height: 120px; }
.form-actions { grid-column: 1 / -1; }
.form-actions .btn { background: var(--brown-700); color: #fff; border-radius: 8px; padding: 10px 16px; }
.form-actions .btn:hover { background: var(--brown-800); }

/* ------------------------------
   Responsive Breakpoints
------------------------------ */
@media (max-width: 1200px) {
  /* Home page service cards responsive adjustments */
  .services-grid {
    max-width: 900px;
    gap: 20px;
  }
  
  .service-card {
    padding: 28px 20px;
    min-height: 300px;
  }
  
  .service-card h3 {
    font-size: 1.8em;
    margin-bottom: 14px;
  }
}

/* Ensure hero remains centered between 901px and 1200px */
@media (min-width: 901px) and (max-width: 1200px) {
  .hero .container { 
    display: grid;
    grid-template-columns: 1fr 1fr; /* Maintain equal columns */
    align-items: center;
    padding: 64px 8vw 24px; /* Slightly more padding for medium screens */
  }
}

/* Removed hero-only medium and tablet overrides; consolidated under max-width: 860px */
/* Responsive Design */
@media (max-width: 992px) {
  nav { 
    grid-template-columns: auto 1fr auto auto; 
    height: 90px; /* reduced by 10% from 100px on tablets */
  }
  nav .nav-links { 
    gap: 18px; 
    font-size: 12px;
  }
  .hero .container { height: calc(100vh - 200px) !important; }
  
  /* Home page service cards responsive adjustments */
  .services-grid {
    max-width: 100%;
    padding: 0 20px;
    gap: 18px;
  }
  
  .service-card {
    padding: 24px 18px;
    min-height: 280px;
  }
  
  .service-card h3 {
    font-size: 1.6em;
    margin-bottom: 12px;
  }
}

@media (max-width: 768px) {
  nav { 
    grid-template-columns: auto 1fr auto; 
    grid-template-areas: "logo space hamburger"; 
    height: 72px; /* reduced by 10% from 80px on mobile */
    padding: 14px 20px;
  }
  
  nav .logo { 
    grid-area: logo; 
  }
  
  nav .nav-links { 
    position: fixed;
    top: 0; /* Start from the very top to cover whole screen */
    left: 0;
    width: 100vw; /* Full viewport width */
    height: 100vh; /* Full viewport height */
    background: rgba(249, 241, 230, 0.98);
    flex-direction: column;
    justify-content: center; /* Center items vertically */
    align-items: center;
    gap: 30px;
    padding: 0; /* Remove padding to use full screen */
    transform: translateX(-100%);
    transition: transform 0.3s ease, opacity 0.2s ease;
    z-index: 999999 !important;
    opacity: 0;
    pointer-events: none;
    font-size: 24px;
    color: #000000; /* Changed text color to black */
  }
  
  /* Mobile menu active state - using higher specificity */
  @media (max-width: 768px) {
    nav .nav-links.active {
      transform: translateX(0) !important;
      opacity: 1 !important;
      pointer-events: auto !important;
      display: flex !important;
    }
  }
  
  nav .chat-btn {
    display: none; /* hide WhatsApp button on mobile */
  }
  
  .hamburger-menu {
    display: flex;
    grid-area: hamburger;
    z-index: 1000000 !important;
  }
  
  /* Hamburger animation when active */
  .hamburger-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  .chat-btn, .whatsapp-btn { grid-area: cta; justify-self: end; }

  .hero .container {
    grid-template-columns: 1fr;
    align-items: start;
    height: calc(100vh - 200px) !important;
    padding: 42px 24px 28px;
    gap: 22px;
  }
  
  .hero .hero-content {
    max-width: 100%; /* Full width on mobile screens */
  }
  
  .hero .team-photo img, .hero .hero-image img, .hero img.team-photo {
    height: auto;
    width: 96vw !important;
    object-fit: contain;
    object-position: center bottom;
    transform: none;
  }
  
  /* Home page service cards responsive adjustments */
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    padding: 0 20px;
    gap: 16px;
  }
  
  .service-card {
    padding: 24px 20px;
    min-height: auto;
  }
  
  .service-card h3 {
    font-size: 1.5em;
    margin-bottom: 12px;
    line-height: 1.2;
  }
  
  .service-card p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 12px;
  }
}

@media (max-width: 576px) {
  nav { padding: 12px 18px; }
  nav .logo img { 
    max-height: 42px;
    height: auto;
    width: auto;
    object-fit: contain;
  } /* maintains aspect ratio on small screens */
  nav .nav-links { gap: 12px; font-size: 24px; }
  .chat-btn, .whatsapp-btn { padding: 9.6px 16.8px; font-size: 13.2px; } /* Increased by 0.2x: 8px * 1.2 = 9.6px, 14px * 1.2 = 16.8px, 11px * 1.2 = 13.2px */
  .video-wrapper { max-width: 92vw; }
  .services-grid, .service-categories { grid-template-columns: 1fr; }
  .location-grid, .locations-grid { grid-template-columns: 1fr; }
  .form-section form { grid-template-columns: 1fr; }
  
  /* Home page service cards responsive adjustments */
  .services-grid {
    padding: 0 16px;
    gap: 14px;
  }
  
  .service-card {
    padding: 20px 16px;
    min-height: auto;
  }
  
  .service-card h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
  }
  
  .service-card p {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 10px;
  }
}
/* Contact page: center heading and subheading */
.contact-hero .container {
  text-align: center;
}
/* Ensure Contact heading is visible (override global negative margin) */
.contact-hero h1 {
  margin-top: 0;
}
/* Contact hero typography adjustments */
.contact-hero h1 {
  margin-top: 0;
  font-weight: bold !important; /* bold */
  font-style: normal !important; /* ensure not italic */
  color: #132e2e; /* requested color */
}

.contact-hero p {
  font-style: normal; /* ensure not italic */
  color: #132e2e; /* requested color for subheading */
  margin-bottom: 0; /* reduce space below subheading */
}

/* Reduce spacing between subheading and accordions by ~60% */
.contact-hero {
  padding-bottom: 20.8px; /* 52px * 0.4 = 20.8px */
}

/* Resources hero: remove extra top padding to tighten space under divider */
.resources-hero {
  padding-top: 0;
}

/* Courses page — two-card accordions */
.courses-accordions .accordion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.courses-accordions .accordion-item {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  overflow: hidden; /* ensure capsule edges remain clean */
}

/* Closed items: no outer capsule border/shadow; show only header row */
.courses-accordions .accordion-item:not(.active) {
  border: none;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
}

.courses-accordions .accordion-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(0,0,0,0.12);
  background: #132E2E; /* dark green capsule on hover */
}

/* Ensure readable contrast when capsule is hovered */
.courses-accordions .accordion-item:hover .accordion-header h3 { color: #FFFFFF; }
.courses-accordions .accordion-item:hover .accordion-icon { color: #FFFFFF; }

.courses-accordions .accordion-header {
  background: #FFFFFF;
  padding: 28px 40px; /* roomier like the capsule design */
  display: flex;
  align-items: center;
  justify-content: space-between; /* title left, plus icon right */
  transition: background-color 0.2s ease; /* smooth hover color change */
}

/* Add subtle separation when closed */
.courses-accordions .accordion-item:not(.active) .accordion-header {
  border: 1px solid #E5E5E5; /* full border around header only */
  border-radius: 12px;        /* keep rounded capsule corners */
  background: #FFFFFF;        /* white header capsule */
}

/* Section-level maroon divider below the entire accordion block */
.courses-accordions::after {
  content: "";
  display: block;
  height: 1px; /* thinner line-breaker */
  background: #8D3813; /* requested colour */
  width: 80vw; /* 80% of the viewport width */
  margin: 52px auto 0; /* increased top spacing by 10px */
}

/* Resources section styling */
.resources-section .container {
  text-align: center;
}
.resources-section p {
  max-width: 1100px;
  margin: 0 auto;
}

/* Removed CTA divider per request; keep divider only under accordion section */

.courses-accordions .accordion-header h3 {
  margin: 0;
  font-size: 28px; /* larger to match capsule heading design */
  font-weight: 600;
  font-style: italic;
  color: #132e2e;
  font-family: "Laurentian Std", Georgia, "Times New Roman", Times, serif;
}

.courses-accordions .accordion-icon {
  height: 32px;
  width: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px; /* visible plus sign as in design */
  color: #132e2e;
  background: transparent; /* no fill */
  border: none; /* remove circular border */
  border-radius: 0; /* ensure no circle */
  box-shadow: none; /* remove any halo/shadow */
  padding: 0; /* tight fit around + */
}

.courses-accordions .accordion-content {
  /* Fully collapse when closed: no visible body space */
  padding: 0;
  max-height: 0;
  height: 0; /* ensure no residual space in closed state */
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease; /* keep fast default */
}

/* Closed state: collapsed via max-height (no display toggling, preserves animation) */
.courses-accordions .accordion-item:not(.active) .accordion-content {
  max-height: 0;
  padding: 0;
}

.courses-accordions .accordion-item.active .accordion-content {
  max-height: none; /* allow full content height */
  height: auto; /* restore natural height when open */
  overflow: visible; /* prevent clipping of embedded players */
  padding: 0 32px 24px 32px;
}

.courses-accordions .accordion-content ul {
  margin: 8px 0 0;
  padding-left: 24px;
}

.courses-accordions .accordion-content li {
  margin-bottom: 10px;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Non-bullet point styling for accordion content */
.courses-accordions .point-list p {
  margin: 0;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

.courses-accordions .point-list p + p {
  margin-top: 14px; /* increased spacing between points */
  padding-top: 14px; /* increased padding for clearer separation */
  border-top: 1px solid #E5E5E5; /* subtle separator to indicate distinct points */
}
/* Extra bottom padding after the last point in Courses accordion */
.courses-accordions .point-list p:last-child {
  padding-bottom: 30px;
}
/* Extra top padding before the first point in Courses accordion */
.courses-accordions .point-list p:first-child {
  padding-top: 40px; /* increased by another 10px */
}

@media (max-width: 768px) {
  .courses-accordions .accordion-grid {
    grid-template-columns: 1fr;
  }
}
.courses-accordions {
  margin-bottom: 24px; /* tightened spacing below accordions to reduce white space */
}
/* Media & Interview Appearances — embedded video styling */
.courses-accordions .video-item .video-title {
  margin-bottom: 8px; /* small gap under each title */
}

.courses-accordions .video-embed {
  margin-bottom: 34px; /* increased spacing below each player (+10px) */
  border-radius: 16px; /* rounded corners for players */
  overflow: hidden; /* ensure iframe respects rounding */
}

.courses-accordions .video-embed iframe {
  display: block;
  width: 100%;
  height: auto !important; /* ensure height derives from aspect-ratio */
  aspect-ratio: 16/10 !important; /* set player to 16:10 */
  border: 0;
  border-radius: 16px; /* keep rounding consistent across browsers */
}

/* Shared play icon overlay for embedded videos */
.video-embed {
  position: relative; /* allow overlay to be positioned above content */
}
.video-embed .play-button-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* keep underlying video clickable */
  border-radius: inherit; /* match container rounding */
  background-color: rgba(35, 63, 57, 0.7); /* tint (#233F39) */
}

/* Hover and focus effects for overlay icon */
.video-embed .play-button {
  transition: transform 0.2s ease;
}
.video-embed:hover .play-button-overlay .play-button,
.video-embed:focus-within .play-button-overlay .play-button {
  transform: scale(1.08);
}
/* Services page — FAQ section */
 .services-faq {
   --faq-font-size: 20px; /* shared size for intro + headings */
 }
 .services-faq .container {
   width: 70%;
   margin: 0 auto;
 }
 .services-faq .faq-grid {
   display: grid;
   grid-template-columns: 1fr 3fr; /* match screenshot ratio */
   gap: 32px;
   align-items: start;
 }
 
 .services-faq .faq-intro .section-heading {
    margin: 0 0 12px;
    font-style: normal;
    font-weight: 400;
    font-family: "Laurentian Pro", Georgia, "Times New Roman", Times, serif;
    color: #132E2E; /* requested FAQ title color */
  }
 
 .services-faq .faq-intro p {
    margin: 0;
    color: #8D3813; /* requested intro sentence color */
    line-height: 1.6;
    font-size: 20px;
    font-family: "Yantramanav", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 400;
  }
 
 .services-faq .accordion-item {
   background: transparent;
   border-bottom: 1px solid #E0E0E0;
 }
 
 .services-faq .accordion-item:first-child {
   border-top: 1px solid #E0E0E0;
 }
 
 .services-faq .accordion-header {
   background: transparent;
   padding: 16px 0;
 }
 
  .services-faq .accordion-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 400;
    font-family: "Futura", Arial, sans-serif;
    color: #8C3119;
  }
 
 .services-faq .accordion-content {
   padding: 0 24px; /* closed state: no vertical padding so it fully collapses */
   color: var(--text-muted);
   line-height: 1.6;
 }
 
 .services-faq .accordion-icon {
   border: none;
   border-radius: 0;
   width: auto;
   height: auto;
   font-size: 18px; /* slightly smaller to reduce visual width */
   font-weight: 600;
   color: #132E2E; /* requested icon color */
   background: transparent;
   margin-left: 8px; /* tighter spacing reduces perceived width */
  }
 
 .services-faq .accordion-item.active .accordion-icon {
   background: transparent;
   color: #132E2E; /* keep same color when active */
  }
 
 .services-faq .accordion-item.active .accordion-content {
   max-height: none; /* allow full content height */
   height: auto; /* restore natural height when open */
   overflow: visible; /* prevent clipping of embedded players */
   padding: 12px 0 16px 24px; /* open state: add vertical padding and indent */
 }
 
 @media (max-width: 768px) {
   .services-faq .faq-grid { grid-template-columns: 1fr; }
 }

/* Video Library (services-faq) — embedded video styling */
.services-faq .video-item p {
  margin-bottom: 8px; /* small gap under each title */
}

.services-faq .video-embed {
  margin-bottom: 34px; /* increased spacing below each player (+10px) */
  border-radius: 16px; /* rounded corners for players */
  overflow: hidden; /* ensure iframe respects rounding */
}

.services-faq .video-embed iframe {
  display: block;
  width: 100%;
  height: auto !important; /* ensure height derives from aspect-ratio */
  aspect-ratio: 16/10 !important; /* set player to 16:10 */
  border: 0;
  border-radius: 16px; /* keep rounding consistent across browsers */
}

/* Intro text in Video Library capsules */
.services-faq .accordion-content .capsule-intro {
  font-weight: 700; /* make intro bold */
  margin-bottom: 30px; /* add spacing below intro */
}

/* Registration page — pixel-match form styling */
.registration-form .container {
  max-width: 720px; /* widen to match page design context */
  margin: 0 auto;
}

.registration-form .form-container {
  background: #f4efe6; /* cream tone from screenshot */
  border-radius: 12px;
  padding: 0 24px 0; /* remove bottom padding so footbar sits flush */
  overflow: hidden; /* allow bars to sit flush at the edges */
}

.registration-form .form-headbar,
.registration-form .form-footbar {
  background: #123a33; /* deep green from screenshot */
  /* extend bars to the container's left/right edges (container has 24px side padding) */
  margin-left: -24px;
  margin-right: -24px;
  width: calc(100% + 48px);
}
.registration-form .form-headbar {
  height: 50px; /* keep top bar height fixed */
  border-radius: 20px 20px 0 0; /* round top corners only */
  margin-bottom: 16px;
  border-bottom: 6px solid #e9e4d9; /* subtle cream separator under the bar */
}
.registration-form .form-footbar {
  margin-top: 0; /* sits directly after the actions spacing */
  height: 50px; /* match top bar height */
  border-radius: 0 0 20px 20px; /* round bottom corners only */
  border-top: 6px solid #e9e4d9; /* cream separator above the bottom bar */
}

/* Submit actions area (above the bottom bar) */
.registration-form .form-actions {
  display: block; /* allow full-width button */
  margin-top: 28px; /* extra space after Important notes */
  margin-bottom: 20px; /* space before the bottom green bar */
}

/* Make the submit button full width like the textarea */
.registration-form .form-actions .submit-button {
  width: 100%;
  display: block;
}

.registration-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 18px;
}

.registration-form .form-group { margin-bottom: 16px; }
.registration-form .form-group label {
  font-size: 14px;
  color: #132e2e;
  display: block;
  margin-bottom: 6px;
}

.registration-form .form-group input,
.registration-form .form-group textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
}
.registration-form .form-group textarea { min-height: 120px; }

.registration-form .radio-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}
.registration-form .radio-label { display: inline-flex; align-items: center; gap: 8px; color: #132e2e; }
.registration-form .radio-label input[type="radio"] { accent-color: #123a33; }

.registration-form .submit-button {
  background: #0f2f2c;
  color: #ffffff;
  padding: 13px 24px; /* +6px height via vertical padding */
  border: none;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease-in-out; /* smooth hover translate */
}
.registration-form .submit-button:hover { transform: translateY(-2px); }

/* ===== ENHANCED ANIMATIONS ===== */

/* Enhanced Button Hover Animations */
.chat-btn {
  position: relative;
  overflow: hidden;
}

.chat-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.chat-btn:hover::before {
  left: 100%;
}

.chat-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

/* Enhanced CTA Button Animations */
.cta-button-large {
  position: relative;
  overflow: hidden;
}

.cta-button-large::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.cta-button-large:hover::after {
  width: 300px;
  height: 300px;
}

.cta-button-large:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4);
}

/* Enhanced Navigation Link Animations */
.nav-links a {
  position: relative;
}

.nav-links a:hover {
  transform: translateY(-1px);
  color: #D4AF37;
}

/* Enhanced Social Link Animations */
.social-link {
  position: relative;
}

.social-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #D4AF37;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover::before {
  width: 100%;
}

.social-link:hover {
  color: #D4AF37;
  transform: translateX(3px);
}

/* Enhanced Clinical Member Card Animations */
.clinical-member:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.clinical-member:hover .clinical-overlay {
  background: linear-gradient(135deg, rgba(19, 46, 46, 0.95) 0%, rgba(130, 48, 14, 0.95) 100%);
}

/* Enhanced Team Member Card Animations */
.team-member-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.team-member-card:hover .chevron-circle {
  background: #132e2e;
  transform: translateY(-2px) rotate(180deg);
}

/* Loading Spinner Enhancement */
.loading-spinner {
  animation: spin 1s linear infinite, pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* Reduced Motion Support Enhancement */
@media (prefers-reduced-motion: reduce) {
  .chat-btn::before,
  .cta-button-large::after,
  .social-link::before {
    display: none;
  }
  
  .chat-btn:hover,
  .cta-button-large:hover,
  .nav-links a:hover,
  .social-link:hover,
  .clinical-member:hover,
  .team-member-card:hover {
    transform: none;
  }
}

/* ===== Hero Emphasis Tweaks ===== */
.hero .hero-title.animate-on-load-delay-1,
.hero-section .hero-title.animate-on-load-delay-1 {
  animation-duration: 1s; /* slightly longer for emphasis */
}

/* Enforce hero headline to exactly three lines (use <br> breaks) */
.hero .hero-title {
  white-space: nowrap !important;    /* only break at <br>, never wrap mid-line */
  overflow-wrap: normal;             /* avoid extra wrapping */
  word-break: keep-all;              /* keep words intact */
  hyphens: none;                     /* prevent hyphenation causing extra lines */
}
.hero .hero-title br { display: block !important; }

.hero .hero-description.animate-on-load-delay-2,
.hero-section .hero-description.animate-on-load-delay-2 {
  animation-duration: 1s; /* match title duration */
  animation-delay: 0.35s; /* a touch more stagger */
}
/* ===== Video Player Hover Effects ===== */
.video-container {
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.video-container:hover,
.video-container:focus-within {
  transform: translateY(-4px);
}

.video-container .video-placeholder {
  transition: filter 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.video-container:hover .video-placeholder,
.video-container:focus-within .video-placeholder {
  filter: brightness(1.03) saturate(1.02);
}

.video-container .play-button {
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

.video-container:hover .play-button,
.video-container:focus-within .play-button {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.video-container .play-button:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .video-container,
  .video-container .play-button,
  .video-container .video-placeholder {
    transition: none;
  }
  .video-container:hover,
  .video-container:focus-within,
  .video-container:hover .play-button,
  .video-container:focus-within .play-button {
    transform: none;
    box-shadow: none;
  }
}
/* Registration page layout */
.registration-form .container {
  width: 80vw;
  max-width: 80vw;
  margin: 0 auto;
}

.registration-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  column-gap: 100px;
  align-items: start;
}

/* Cap form width */
.registration-form .form-container {
  max-width: 800px;
}

.download-card {
  background: #F6F1E8;
  border: 1px solid #132E2E;
  border-radius: 10px;
  padding: 20px 22px;
  width: 250px;
}

.download-title {
  font-style: normal;
  font-size: 22.4px;
  line-height: 1.2;
  color: #132E2E;
  margin: 4px 0 16px;
  font-family: "Laurentian Pro", serif;
  font-weight: 400;
}

.download-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8em;
}

.download-list li { margin: 18px 0; }

.download-link {
  color: #132E2E;
  text-decoration: none;
}

.download-link:hover { text-decoration: underline; color: #0f2626; }

@media (max-width: 900px) {
  .registration-form .container {
    width: 90vw;
    max-width: 90vw;
  }
  .registration-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 24px;
  }
  .registration-form .form-container {
    grid-row: 1;
    width: 100%;
    max-width: 800px;
  }
  .download-card {
    grid-row: 2;
    width: 65vw;
    margin: 0 auto;
    text-align: center;
  }
}
.courses-accordions .accordion-item:hover .accordion-header {
  background: #132E2E; /* ensure the visible capsule area turns dark green */
}

/* Keep header text and icon white when header turns dark green */
.courses-accordions .accordion-item:hover .accordion-header h3 {
  color: #FFFFFF;
}
.courses-accordions .accordion-item:hover .accordion-icon {
  color: #FFFFFF;
}
/* Courses — Active only, no hover effects */
.courses-accordions .accordion-item.active .accordion-header {
  background: #132E2E; /* dark green header when opened */
  border: none; /* header relies on item border when open */
}
.courses-accordions .accordion-item.active .accordion-header h3,
.courses-accordions .accordion-item.active .accordion-header .accordion-icon {
  color: #FFFFFF; /* white title and icon on dark header */
}
.courses-accordions .accordion-item.active .accordion-icon {
  background: transparent !important; /* remove maroon square */
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.courses-accordions .accordion-item .accordion-content {
  background: #FFFFFF; /* keep body white at all times */
}

/* Disable hover visuals for capsules */
.courses-accordions .accordion-item:hover {
  transform: none !important;
  box-shadow: none !important;
  background: #FFFFFF !important; /* no dark hover */
}
.courses-accordions .accordion-header:hover {
  background: #FFFFFF !important; /* no hover color on header */
}
.courses-accordions .accordion-header:hover h3,
.courses-accordions .accordion-header:hover .accordion-icon {
  color: #132E2E !important; /* retain original text/icon color on hover */
}
.courses-accordions .accordion-header { cursor: pointer; }
.courses-accordions .accordion-header:hover { background: #132E2E !important; }
.courses-accordions .accordion-header:hover h3,
.courses-accordions .accordion-header:hover .accordion-icon { color: #FFFFFF !important; }
/* Hotlines section spacing */
.hotlines-section {
  margin-top: 80px;
}

/* Mobile Menu Portal - Outside nav container to avoid stacking context issues */
.mobile-menu-portal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #FAF1E4; /* Same cream background as desktop nav */
  z-index: 2147483647 !important; /* Maximum safe z-index - appears above everything */
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scale(0.98);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
  pointer-events: none;
  isolation: isolate;
}

.mobile-menu-portal.active {
  transform: scale(1) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  background: transparent;
  transition: all 0.3s ease;
  z-index: 1000;
}

.mobile-menu-close:hover {
  background: rgba(205, 169, 60, 0.1);
  transform: scale(1.1);
}

.mobile-menu-close svg {
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
}

.mobile-menu-close svg path {
  stroke: #526f68;
  stroke-width: 2;
}

.mobile-menu-close:hover svg path {
  stroke: #cda93c;
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 35px;
  align-items: center;
  transition: all 0.3s ease;
}

.mobile-nav-links li {
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-nav-links li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-links li:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav-links li:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav-links li:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav-links li:nth-child(5) { transition-delay: 0.3s; }

.mobile-menu-portal.active .mobile-nav-links li {
  transform: translateY(0) !important;
  opacity: 1 !important;
}

.mobile-nav-links a {
  color: #526f68;
  text-decoration: none;
  font-family: "Futura PT", Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0;
  display: inline;
  transition: all 0.3s ease;
  opacity: 0.9;
}

.mobile-nav-links a:hover {
  color: #cda93c;
  opacity: 1;
}

/* Hide mobile menu portal on desktop screens */
@media (min-width: 769px) {
  .mobile-menu-portal {
    display: none !important;
  }
}

/* Desktop-only precise offset for hero image (last to win cascade) */
@media (min-width: 901px) {
  .hero .team-photo img,
  .hero .hero-image img,
  .hero img.team-photo {
    object-fit: cover;
    object-position: right 110px bottom -140px; /* lowered by another 100px */
    height: 150%;
    transform: none;
  }
}