/* 
  Dental Center Córdoba - Design System & Custom Styles
  Modern, Premium, and Responsive Clinical Aesthetic
*/

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

/* --- Design Tokens / CSS Variables --- */
:root {
  /* Color Palette (Theme: Light Pastel Clinical) */
  --primary: hsl(215, 25%, 22%);        /* Polished Deep Slate Blue */
  --primary-dark: hsl(214, 32%, 94%);   /* Soft Light Pastel Blue-Gray */
  --primary-light: hsl(214, 25%, 88%);  /* Slightly Darker Soft Pastel Blue-Gray */
  
  --accent: #0f9f70;                    /* Soft Pastel Emerald Green */
  --accent-light: #3cd4a1;              /* Light Pastel Mint */
  --accent-dark: #0b805a;               /* Deep Pastel Emerald */
  
  --bg-light: hsl(160, 40%, 97%);       /* Very Light Pastel Mint/Blue */
  --bg-white: #ffffff;
  
  --text-dark: hsl(215, 28%, 17%);      /* Dark Slate for typography */
  --text-muted: hsl(215, 14%, 40%);     /* Muted gray text */
  --text-light: hsl(215, 28%, 17%);     /* Dark Slate (Inverted for light theme sections) */
  
  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 10px -1px rgba(15, 23, 42, 0.04), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 20px -3px rgba(15, 23, 42, 0.06), 0 4px 8px -4px rgba(15, 23, 42, 0.06);
  --shadow-xl: 0 20px 30px -5px rgba(15, 23, 42, 0.08), 0 8px 12px -6px rgba(15, 23, 42, 0.08);
  --shadow-premium: 0 15px 30px -10px rgba(15, 159, 112, 0.12);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Borders & Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --border-color: rgba(226, 232, 240, 0.9);
  --border-dark: rgba(15, 23, 42, 0.06);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Offset for fixed header */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

ul {
  list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--primary-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border: 2px solid var(--primary-dark);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* --- Layout Utility Classes --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 6rem 0;
}

.section-title-wrapper {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-subtitle {
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.section-title.light {
  color: var(--text-light);
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.125rem;
}

.section-desc.light {
  color: rgba(226, 232, 240, 0.8);
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  align-items: center;
}

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

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

/* --- Buttons Component --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(16, 185, 129, 0.5);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border-color: rgba(15, 23, 42, 0.25);
}

.btn-secondary:hover {
  background-color: rgba(15, 23, 42, 0.05);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-white {
  background-color: #ffffff;
  color: var(--primary);
  border-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-white:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

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

.btn-outline-dark:hover {
  background-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-wsp {
  background-color: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 14px 0 rgba(37, 211, 102, 0.4);
}

.btn-wsp:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(37, 211, 102, 0.5);
}

/* --- Fixed Header / Navbar --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-normal);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  transition: height var(--transition-normal);
}

.header.scrolled .container {
  height: 80px;
}

/* Logo Styling */
.logo-container {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-right: 2rem;
  flex-shrink: 0;
}

.logo-img {
  height: 130px;
  width: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  transition: all var(--transition-normal);
  position: relative;
  top: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.header.scrolled .logo-img {
  height: 90px;
  width: 90px;
  top: 5px;
  border-width: 2.5px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(15, 23, 42, 0.8);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width var(--transition-normal);
}

.nav-link:hover {
  color: var(--primary);
}

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

.nav-link.active {
  color: var(--accent);
}

/* Highlight the professionals space in navigation */
.nav-menu a[href*="#profesionales"] {
  font-weight: 800;
  color: var(--primary);
}

.nav-menu a[href*="#profesionales"].active {
  color: var(--accent);
}

/* Mobile Menu Toggle Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(11, 17, 32, 0.5) 0%, rgba(10, 25, 47, 0.95) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 850px;
  text-align: center;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 2rem;
  color: #ffffff;
  letter-spacing: -0.015em;
}

.hero-title span.hero-eyebrow {
  display: block;
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  color: #cbd5e1; /* Polished Light Gray/Silver, matching logo colors */
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-title span.hero-highlight {
  display: block;
  font-size: 2.25rem;
  font-weight: 300;
  color: #cbd5e1;
  margin-top: 0.75rem;
}

.hero-desc {
  font-size: 1.2rem;
  color: rgba(241, 245, 249, 0.9);
  max-width: 750px;
  margin: 0 auto 2.5rem auto;
  font-weight: 350;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 4rem;
}

/* Hero Cards underneath text */
.hero-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 650px;
  margin: 0 auto;
}

.hero-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  text-align: left;
  transition: all var(--transition-normal);
}

.hero-card:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-5px);
}

.hero-card-icon {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--accent);
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

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

.hero-card-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: #ffffff;
}

/* --- Who We Are Section --- */
.about-section {
  position: relative;
  background-color: #0b1120; /* Dark midnight backdrop */
  color: #ffffff;
  overflow: hidden;
}

.about-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.15; /* Restored opacity to make Quienes somos.jpeg stand out */
  pointer-events: none;
}

.about-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-container {
  position: relative;
  z-index: 2;
}

.about-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 3.5rem;
  align-items: center;
}

.about-text-content {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.about-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: #ffffff;
}

.about-title span {
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent); /* Emerald Green Accent */
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.about-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(241, 245, 249, 0.95);
  font-weight: 400;
}

.about-subtitle {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 1rem;
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
}

.about-paragraph {
  color: rgba(226, 232, 240, 0.8);
  font-size: 1rem;
}

/* Side stats / badges */
.about-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-badge {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(10, 25, 47, 0.4) 100%);
  border: 2px dashed rgba(16, 185, 129, 0.4);
  padding: 2rem;
  border-radius: var(--radius-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
}

.about-badge-num {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.about-badge-txt {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-feature-box {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.about-feature-title {
  font-size: 1.15rem;
  color: var(--accent-light);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.about-feature-title svg {
  width: 22px;
  height: 22px;
}

.about-feature-desc {
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.85);
  line-height: 1.6;
}

/* --- Treatments Section --- */
.treatments-section {
  background-color: var(--bg-light);
}

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

.treatment-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  flex-direction: column;
}

.treatment-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(16, 185, 129, 0.2);
}

.treatment-img-wrapper {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--primary-dark);
}

.treatment-img {
  width: 100%;
  height: 100%;
  transition: transform var(--transition-slow);
}

.treatment-img.orto-card-img {
  object-position: top;
}

.treatment-img.contain-img {
  object-fit: contain;
  background-color: var(--primary-light);
}

.treatment-card:hover .treatment-img {
  transform: scale(1.08);
}

.treatment-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: rgba(11, 17, 32, 0.75);
  color: var(--accent);
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.treatment-card-content {
  padding: 1.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.treatment-card-title {
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.treatment-card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.treatment-card-btn {
  width: 100%;
}

/* --- Team Section --- */
.team-section {
  position: relative;
  background-color: #0b1120; /* Dark midnight backdrop */
  color: #ffffff;
  overflow: hidden;
  border-top: 1px solid var(--border-color);
}

.team-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.15; /* Subtle background image opacity */
  pointer-events: none;
}

.team-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-wrapper {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-xl);
  padding: 3rem;
  background-color: transparent;
  border: none;
}

.team-grid {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 3.5rem;
  align-items: center;
}

.team-text-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.team-section .section-title {
  color: #ffffff;
}

.team-section .section-desc {
  color: rgba(241, 245, 249, 0.95);
}

.team-image-box {
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  position: relative;
  box-shadow: var(--shadow-md);
}

.team-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-image-placeholder {
  color: rgba(226, 232, 240, 0.85);
  text-align: center;
  padding: 2rem;
}

.team-image-placeholder svg {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  color: rgba(226, 232, 240, 0.85);
  opacity: 0.6;
}

.team-image-placeholder span {
  display: block;
  font-weight: 700;
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.team-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.team-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: rgba(241, 245, 249, 0.95);
  font-weight: 500;
}

.team-list-item span {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
}

/* --- Professionals B2B Area Section --- */
.b2b-section {
  background-color: var(--primary-dark);
  color: var(--text-dark);
  position: relative;
  overflow: hidden;
}

.b2b-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0) 70%);
  z-index: 1;
  pointer-events: none;
}

.b2b-grid {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.b2b-img-box {
  position: relative;
}

.b2b-img-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  aspect-ratio: 3 / 4; /* Portrait ratio matching the image 960x1280 */
}

.b2b-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.b2b-logo-overlay {
  position: absolute;
  bottom: -2rem;
  left: 1.5rem;
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid var(--accent);
  width: 140px;
  height: 175px;
  z-index: 10;
}

.b2b-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.b2b-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.b2b-content p {
  color: var(--text-dark);
}

.b2b-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0;
}

.b2b-item {
  display: flex;
  gap: 1rem;
  font-size: 0.98rem;
  color: var(--text-dark);
  line-height: 1.5;
}

.b2b-item-icon {
  color: var(--accent);
  font-weight: bold;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.b2b-actions {
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
}

/* --- Subpages Specific Styles --- */
.subpage-hero {
  position: relative;
  background-color: var(--primary-dark);
  color: var(--text-dark);
  padding: 10rem 0 6rem 0;
  text-align: center;
}

.subpage-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(214, 232, 240, 0.7) 100%);
  z-index: 1;
}

.subpage-hero .container {
  position: relative;
  z-index: 2;
}

.subpage-hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.subpage-hero-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.subpage-hero-nav a:hover {
  color: var(--accent-dark);
}

.subpage-hero-separator {
  color: rgba(15, 23, 42, 0.2);
}

.subpage-content-section {
  background-color: var(--bg-white);
}

.subpage-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 4rem;
  align-items: start;
}

.subpage-details {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.subpage-details p {
  color: var(--text-dark);
  font-size: 1.05rem;
  line-height: 1.8;
}

.subpage-gallery {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.subpage-img-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  aspect-ratio: 4 / 3;
  background-color: var(--primary-dark);
}

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

/* Custom class to contain image and prevent cropping (useful for B2B/People images) */
.subpage-img-card.contain-img img {
  object-fit: contain;
  background-color: var(--primary-light);
}

.subpage-img-card.portrait-img {
  aspect-ratio: 3 / 4 !important;
}

.subpage-img-card.portrait-img img {
  object-fit: cover;
}

.subpage-features-list {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background-color: var(--bg-light);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--accent);
}

.subpage-features-list li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.98rem;
  color: var(--text-dark);
}

.subpage-features-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-dark);
  font-weight: 700;
}

.subpage-features-list li:last-child {
  margin-bottom: 0;
}

.subpage-actions {
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
}

/* Double image gallery layout (for Protesis page) */
.subpage-double-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.subpage-double-gallery .subpage-img-card {
  aspect-ratio: 1 / 1;
}

/* --- Footer Section --- */
.footer {
  background-color: var(--primary-dark);
  color: var(--text-dark);
  padding: 5rem 0 2rem 0;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo-col {
  grid-column: span 1;
}

.footer-logo-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-social-links-vertical {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.footer-social-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-dark);
  font-size: 0.92rem;
  transition: all var(--transition-normal);
}

.footer-social-item:hover {
  color: var(--accent-dark);
}

.footer-social-icon-btn {
  width: 36px;
  height: 36px;
  background-color: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: all var(--transition-normal);
  flex-shrink: 0;
}

.footer-social-item:hover .footer-social-icon-btn {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.footer-social-icon-btn svg {
  width: 18px;
  height: 18px;
}

.footer-social-label {
  font-weight: 500;
}

.footer-title {
  font-size: 1.15rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent);
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-list a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links-list a:hover {
  color: var(--accent-dark);
  padding-left: 0.25rem;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.5;
}

.footer-contact-item svg {
  color: var(--accent);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

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

.footer-map-col {
  grid-column: span 1;
}

.footer-map-wrapper {
  width: 100%;
  height: 150px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.footer-map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Floating WhatsApp Button --- */
.wsp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #25d366;
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: all var(--transition-normal);
  animation: pulseWsp 2s infinite;
}

.wsp-float:hover {
  background-color: #20ba5a;
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.wsp-float svg {
  width: 32px;
  height: 32px;
}

/* --- Keyframe Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseWsp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Intermediate Desktop Sizing (1201px to 1400px) to prevent layout crowding */
@media (min-width: 1201px) and (max-width: 1400px) {
  .header .container {
    height: 90px;
  }

  .header.scrolled .container {
    height: 75px;
  }

  .logo-img {
    height: 110px;
    width: 110px;
    top: 10px;
  }

  .header.scrolled .logo-img {
    height: 80px;
    width: 80px;
    top: 5px;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .logo-container {
    gap: 1rem;
    margin-right: 1.5rem;
  }

  .nav-menu {
    gap: 1.25rem;
  }

  .nav-link {
    font-size: 0.9rem;
  }
}

/* Mobile Navigation & Header Sizing (Viewport <= 1200px) */
@media (max-width: 1200px) {
  .header .container {
    height: 80px;
  }

  .header.scrolled .container {
    height: 70px;
  }

  .logo-img {
    height: 90px;
    width: 90px;
    top: 10px;
    border-width: 2.5px;
  }

  .header.scrolled .logo-img {
    height: 70px;
    width: 70px;
    top: 5px;
    border-width: 2px;
  }

  .logo-text {
    font-size: 1.25rem;
  }

  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--primary-dark);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 3rem 1.5rem;
    gap: 2rem;
    transition: left var(--transition-normal);
    overflow-y: auto;
    border-top: 1px solid var(--border-dark);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .header.scrolled .nav-menu {
    top: 70px;
    height: calc(100vh - 70px);
  }
  
  .nav-link {
    font-size: 1.25rem;
    width: 100%;
    text-align: center;
  }
  
  .header .btn {
    width: 100%;
    max-width: 250px;
  }
}

/* --- Responsive Media Queries --- */

/* Laptops / Desktops Medium */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .about-grid, .team-grid, .b2b-grid, .subpage-grid {
    gap: 2.5rem;
  }
  
  .treatments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
  
  .footer-logo-col, .footer-map-col {
    grid-column: span 1;
  }
}

/* Tablets / Large Mobiles */
@media (max-width: 768px) {
  .section-padding {
    padding: 4rem 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  /* Grid conversions to Single Column */
  .grid-2, .grid-3, .grid-4, .about-grid, .team-grid, .b2b-grid, .subpage-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .about-stats {
    order: -1; /* Place badge on top of details on mobile for visual impact */
  }
  
  .hero {
    min-height: auto;
    padding: 8rem 0 4rem 0;
  }
  
  .hero-title {
    font-size: 2.25rem;
    line-height: 1.25;
  }
  
  .hero-title span.hero-eyebrow {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }
  
  .hero-title span.hero-highlight {
    font-size: 1.5rem;
    margin-top: 0.5rem;
  }
  
  .hero-desc {
    font-size: 1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
  }
  
  .hero-cards {
    grid-template-columns: 1fr;
  }
  
  .treatments-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }
  
  .b2b-logo-overlay {
    bottom: -1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
  }
  
  .b2b-actions {
    flex-direction: column;
    gap: 1rem;
  }
  
  .b2b-actions .btn {
    width: 100%;
  }
  
  .wsp-float {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
  }
  
  .wsp-float svg {
    width: 26px;
    height: 26px;
  }
  
  .subpage-hero-title {
    font-size: 2.5rem;
  }
}

/* Small Mobiles */
@media (max-width: 480px) {
  .logo-text {
    font-size: 1.1rem;
  }
  
  .logo-img {
    height: 60px;
    width: 60px;
    top: 5px;
    border-width: 2px;
  }
  
  .header.scrolled .logo-img {
    height: 50px;
    width: 50px;
    top: 3px;
    border-width: 2px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .subpage-double-gallery {
    grid-template-columns: 1fr;
  }
  
  .subpage-actions {
    flex-direction: column;
  }
  
  .subpage-actions .btn {
    width: 100%;
  }
}

/* --- Team Page Styles --- */
.team-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2rem;
}

@media (max-width: 992px) {
  .team-page-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .team-page-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.team-member-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.team-member-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(16, 185, 129, 0.2);
}

.team-member-img-wrapper {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--primary-light);
}

.team-member-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.team-member-card:hover .team-member-img {
  transform: scale(1.05);
}

.team-member-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  aspect-ratio: 3 / 4;
}

.team-member-placeholder svg {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.team-member-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.team-member-name {
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 700;
}

.team-member-mp {
  font-size: 0.82rem;
  color: var(--accent-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: rgba(16, 185, 129, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  align-self: flex-start;
}

.team-member-role {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 0.5rem;
}

/* --- Technology Section Gallery --- */
.tech-double-gallery .subpage-img-card {
  aspect-ratio: 3 / 4 !important;
  background-color: #ffffff;
}

.tech-double-gallery .subpage-img-card img {
  object-fit: contain;
  padding: 0.5rem;
}


