/* PhysioCare Wellness & Rehab - Professional Neutral Theme */
/* Modern, calming, trustworthy design for healthcare/wellness */

:root {
  --primary: #1E3A5F;      /* Deep navy */
  --accent: #0066A1;       /* Deeper professional blue (improved contrast) */
  --accent-dark: #005288;
  --text: #2D3748;         /* Strong dark gray for excellent readability */
  --text-light: #718096;
  --bg: #F8F9FA;
  --white: #FFFFFF;
  --light-gray: #EDF2F7;
  --shadow: 0 10px 30px rgba(30, 58, 95, 0.08);
  --shadow-hover: 0 20px 40px rgba(30, 58, 95, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.75rem; margin-bottom: 1rem; }
h4 { font-size: 1.35rem; }

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

a:hover {
  color: var(--accent-dark);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Navigation - Enhanced with cool effects */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(30, 58, 95, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

header.scrolled {
  box-shadow: 0 8px 40px rgba(30, 58, 95, 0.12);
  background: rgba(255, 255, 255, 0.98);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.03);
}

.logo span {
  color: var(--accent);
}

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

.nav-links a {
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
  position: relative;
  padding: 0.5rem 0;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2.5px;
  bottom: -2px;
  left: 0;
  background: linear-gradient(to right, var(--accent), var(--accent-dark));
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-links a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Cool glow effect on active/hover */
.nav-links a.active {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(0, 168, 150, 0.3);
}

/* Services Dropdown - Desktop hover + Mobile accordion */
.nav-links .has-dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 10px;
  background: white;
  width: 620px;
  max-width: 95vw;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(30, 58, 95, 0.18);
  padding: 1.6rem 1.8rem;
  z-index: 99999;
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 0.4rem 1.6rem;
  border: 1px solid #e2e8f0;
}

/* Desktop: hover to show */
@media (min-width: 993px) {
  .has-dropdown:hover .dropdown-content {
    display: grid;
  }
}

/* Mobile: accordion style inside the full-screen menu */
@media (max-width: 992px) {
  .nav-links .has-dropdown {
    width: 100%;
  }
  
  .dropdown-content {
    position: static;
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
    margin-left: 0;
    border-radius: 12px;
    box-shadow: none;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    display: none;
    transition: all 0.3s ease;
  }
  
  .has-dropdown.open .dropdown-content {
    display: grid;
  }
  
  .dropdown-content a {
    padding: 0.9rem 1rem;
    font-size: 1.02rem;
    border-radius: 10px;
    margin-bottom: 2px;
  }
  
  .dropdown-content a:hover,
  .dropdown-content a:active {
    background: #e0f2f1;
    color: #0077B6;
    transform: translateX(4px);
  }
  
  .dropdown-content a::after {
    content: '→';
    margin-left: auto;
    opacity: 0.3;
    transition: opacity 0.2s ease;
  }
}

.dropdown-content a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  color: #334155;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-content a:hover {
  background: #f0fdfa;
  color: #0077B6;
}

.dropdown-content a::after {
  content: '→';
  margin-left: auto;
  opacity: 0.25;
}

.dropdown-content a:hover::after {
  opacity: 1;
}

/* Section headers */
.dropdown-header {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  padding-bottom: 0.5rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Rotating arrow */
.dropdown-arrow {
  display: inline-block;
  font-size: 0.6em;
  margin-left: 5px;
  transition: transform 0.3s ease;
  color: #64748b;
}

.has-dropdown:hover .dropdown-arrow,
.has-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
  color: #0077B6;
}

/* Section headers in dropdown */
.dropdown-header {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  padding-bottom: 0.65rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: system-ui, -apple-system, sans-serif;
}

/* ========================================
   REFINED BUTTON SYSTEM (Site-wide)
   ======================================== */

/* Primary Buttons (Book Appointment, main CTAs) */
.btn-primary {
  background: #0066A1;
  color: white;
  padding: 0.95rem 2.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 20px rgba(0, 102, 161, 0.35);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-primary:hover {
  background: #005288;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 102, 161, 0.5);
}

/* Sleek Buttons (used on service cards) */
.btn-sleek {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 1.2rem;
  background: linear-gradient(135deg, #0066A1, #005288);
  color: white;
  border-radius: 50px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 102, 161, 0.35);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-sleek:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 22px rgba(0, 102, 161, 0.5);
  background: linear-gradient(135deg, #005288, #0066A1);
}

/* Navigation CTA (Header "Book Appointment") */
.nav-cta {
  background: linear-gradient(135deg, #D62828, #B71C1C);
  color: white !important;
  padding: 0.72rem 1.7rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(214, 40, 40, 0.35);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.nav-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: 0.6s;
}

.nav-cta:hover {
  background: linear-gradient(135deg, #B71C1C, #D62828);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(214, 40, 40, 0.45);
}

.nav-cta:hover::before {
  left: 250%;
}

/* Mobile Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--primary);
  transition: 0.3s;
}

/* Hamburger to X animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

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

@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: white;
    flex-direction: column;
    padding: 3rem 2rem;
    box-shadow: var(--shadow);
    transition: left 0.4s ease;
    z-index: 999;
  }
  
  .nav-links.active {
    left: 0;
    box-shadow: -10px 0 40px rgba(30, 58, 95, 0.25);
  }
  
  /* Subtle backdrop overlay when mobile menu is open */
  .nav-links.active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(30, 58, 95, 0.25);
    z-index: -1;
    pointer-events: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .nav-cta {
    margin-top: 1.5rem;
    align-self: flex-start;
  }

  /* Disable parallax on mobile for better performance & no jank */
  .about-hero,
  .service-hero,
  .hero {
    background-attachment: scroll !important;
  }
}

/* Hero Section - Updated to match about.html settings for all fullscreen heroes */
.about-hero, .service-hero, .hero {
  min-height: 100vh;           /* Fallback for older browsers */
  min-height: 100dvh;          /* Modern dynamic viewport (better on mobile) */
  display: flex;
  align-items: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  color: white;
  position: relative;
  overflow: hidden;

  /* Modern image optimization with WebP fallback */
  background-image: image-set(
    url('imagine_images/Home_Hero.webp') type('image/webp') 1x,
    url('imagine_images/Home_Hero.jpg') type('image/jpeg') 1x
  );
}

.about-hero::before, .service-hero::before, .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(0,168,150,0.15) 0%, transparent 50%);
  z-index: 1;
}

.about-hero, .service-hero, .hero {
  /* Default overlay - pages override with inline style for specific image */
  background: linear-gradient(rgba(30,58,95,0.88), rgba(30,58,95,0.88)), url('https://picsum.photos/id/1015/2000/1200') center/cover;
}

.hero-content, .service-content {
  position: relative;
  z-index: 2;
}

/* Specific for about-hero if needed */
.about-hero {
  background: linear-gradient(rgba(30,58,95,0.88), rgba(30,58,95,0.88)), url('https://picsum.photos/id/1015/2000/1200') center/cover;
}

.hero h1 {
  font-size: 3.8rem;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero p {
  font-size: 1.35rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.25rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 10px 25px rgba(0, 168, 150, 0.35);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 168, 150, 0.45);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

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

/* Sections */
section {
  padding: 6rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title h2 {
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--accent), var(--primary));
  border-radius: 2px;
}

/* Cards & Grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card, .team-card, .blog-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.service-card:hover, .team-card:hover, .blog-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-hover);
}

.service-card .card-image {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.service-card .card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(30,58,95,0.65));
}

.service-card .icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 58px;
  height: 58px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.service-card-content {
  padding: 2rem;
}

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

.service-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

.team-card .info {
  padding: 2rem 1.75rem;
}

.team-card h3 {
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.team-card .role {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.team-card .bio {
  font-size: 0.98rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-weight: 600;
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* Testimonials */
.testimonial {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial::before {
  content: '“';
  font-size: 8rem;
  position: absolute;
  top: -20px;
  left: 30px;
  color: var(--light-gray);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-text {
  font-size: 1.15rem;
  font-style: italic;
  margin-bottom: 1.75rem;
  color: var(--text);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  margin: 0;
  font-size: 1.1rem;
}

.author-info span {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

input, textarea, select {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--light-gray);
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

/* Footer */
footer {
  background: var(--primary);
  color: white;
  padding: 4rem 0 2rem;
}

footer a {
  color: #A0AEC0;
}

footer a:hover {
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: white;
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

.badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 0.85rem;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-weight: 600;
}

/* Service Page Specific - now inherits from .service-hero above */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.benefit-item {
  display: flex;
  gap: 1.25rem;
  background: white;
  padding: 1.75rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.benefit-item .icon {
  width: 52px;
  height: 52px;
  background: var(--light-gray);
  color: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.conditions-list {
  columns: 2;
  gap: 2.5rem;
}

.conditions-list li {
  margin-bottom: 0.85rem;
  position: relative;
  padding-left: 1.5rem;
}

.conditions-list li::before {
  content: '✓';
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  h1 { font-size: 2.6rem; }
  .hero h1 { font-size: 2.8rem; }
  section { padding: 4rem 0; }

  /* Better mobile spacing */
  .container { padding: 0 1.25rem; }
  .service-card-content { padding: 1.5rem; }
  .benefit-item { padding: 1.5rem; }
}

/* Very small phones (iPhone SE, etc.) */
@media (max-width: 480px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 2rem; }
  .hero h1 { font-size: 2.4rem; }
  .hero p { font-size: 1.1rem; }
  section { padding: 3rem 0; }
  
  .service-card .card-image { height: 180px; }
  .team-card img { height: 260px; }
  
  .btn-primary, .btn-sleek, .nav-cta {
    padding: 0.85rem 1.6rem;
    font-size: 0.95rem;
  }
}

/* ==================== PARALLAX & SMOOTH SCROLL EFFECTS ==================== */

/* Parallax Backgrounds */
.parallax,
.hero,
.service-hero,
.about-hero {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  will-change: background-position;
  transition: background-position 0.1s ease-out;
}

/* Smooth Scroll Enhancement */
html {
  scroll-behavior: smooth;
}

/* Parallax Container for Specific Sections */
.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

/* Subtle Parallax on Cards (optional hover effect) */
.service-card,
.team-card,
.blog-card {
  transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1), 
              box-shadow 0.4s ease;
}

.service-card:hover,
.team-card:hover,
.blog-card:hover {
  transform: translateY(-12px) scale(1.01);
}

/* ========================================
   SERVICE PAGE ENHANCEMENTS - Better Contrast + Professional Creative
   ======================================== */

/* Service Hero Sections */
.service-hero {
  position: relative;
}

/* Removed blue gradient overlay from service heroes for cleaner look */

.service-content {
  position: relative;
  z-index: 2;
}

/* Benefit Items - Improved Contrast */
.benefit-item {
  background: white;
  border: 1px solid #E2E8F0;
  padding: 2rem;
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 4px 15px rgba(30, 58, 95, 0.06);
}

.benefit-item:hover {
  border-color: #0066A1;
  box-shadow: 0 15px 35px rgba(0, 102, 161, 0.12);
  transform: translateY(-4px);
}

.benefit-item .icon {
  background: linear-gradient(135deg, #0066A1, #005288);
  color: white;
  box-shadow: 0 6px 18px rgba(0, 102, 161, 0.3);
}

/* Conditions List - Stronger Visual Hierarchy */
.conditions-list {
  columns: 2;
  gap: 2rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.conditions-list li {
  margin-bottom: 0.75rem;
  padding-left: 2rem;
  position: relative;
  color: #2D3748;
}

.conditions-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #0066A1;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Section Titles on Service Pages */
.service-page h2,
.service-page h3 {
  color: #1E3A5F;
  position: relative;
  display: inline-block;
}

.service-page h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, #0066A1, #005288);
  border-radius: 2px;
}

/* What to Expect Boxes */
.what-to-expect {
  background: linear-gradient(135deg, #F8F9FA, #FFFFFF);
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 8px 25px rgba(30, 58, 95, 0.06);
}

/* Key Benefits Header */
.key-benefits-header {
  color: #1E3A5F;
  font-weight: 700;
  letter-spacing: -0.3px;
}

/* ========================================
   COMPREHENSIVE MOBILE RESPONSIVENESS ENHANCEMENTS
   (Images, text, context boxes, menus, cards, frames, grids, forms — everything)
   Mobile-first refinements for perfect experience on phones & tablets
   ======================================== */

/* Global responsive media */
img, video, iframe, embed, object, picture {
  max-width: 100% !important;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Touch-friendly interactive elements (44px minimum per Apple/Google guidelines) */
.btn, 
.btn-primary, 
.btn-sleek, 
.nav-cta, 
.service-btn, 
.hamburger,
.dropdown-content a,
.nav-links a {
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
}

/* Prevent iOS auto-zoom on form focus */
input, 
textarea, 
select {
  font-size: 16px !important;
}

/* Ensure no horizontal scroll ever */
html, body {
  overflow-x: hidden;
}

/* Mobile refinements */
@media (max-width: 768px) {
  .conditions-list {
    columns: 1 !important;
    gap: 1rem;
  }
  
  .benefits-grid,
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .glass-hero {
    max-width: 100% !important;
    flex: 1 1 100% !important;
    padding: 2rem 1.5rem !important;
    border-radius: 20px;
  }
  
  .service-quick-panel {
    display: none !important;
  }
  
  .what-to-expect {
    padding: 1.75rem 1.5rem;
  }
  
  .benefit-item {
    flex-direction: column;
    gap: 1rem;
    text-align: left;
  }
  
  .benefit-item .icon {
    margin-bottom: 0.5rem;
  }
  
  .card-grid,
  .modern-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
  }
  
  .service-card .card-image {
    height: 200px;
  }
  
  .team-card img {
    height: 240px;
  }
  
  /* Context / info boxes */
  .what-to-expect,
  .benefit-item,
  .stat-item,
  .testimonial {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .service-card-content,
  .team-card .info {
    padding: 1.25rem;
  }
  
  .testimonial {
    padding: 1.5rem;
  }
  
  .nav-links {
    padding: 2.5rem 1.25rem;
  }
  
  .btn-primary, .btn-sleek, .nav-cta {
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
    min-height: 48px;
  }
  
  h1 { font-size: 1.95rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.45rem; }
  .hero h1 { font-size: 2.05rem; }
  .hero p { font-size: 1.05rem; }
  
  section { padding: 2.75rem 0; }
  
  .service-card .card-image {
    height: 170px;
  }
  
  .team-card img {
    height: 220px;
  }
}

/* Hero & background frames on mobile */
.hero, 
.service-hero, 
.about-hero {
  background-size: cover;
  background-position: center center;
  background-attachment: scroll !important;
}

/* Additional polish for any framed content or context boxes */
.context-box,
.info-box,
.highlight-box,
.glass-hero,
.what-to-expect {
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(30, 58, 95, 0.08);
}
