/* ==========================================================================
   DERMSPOT DESIGN SYSTEM & MAIN STYLESHEET
   Based on prototype design & palette.scss specifications
   ========================================================================== */

:root {
  /* Brand Core Colors */
  --brand-primary: #216370;
  --brand-primary-hover: #194f5a;
  --brand-primary-dark: #113d46;
  --brand-accent-gold: #bba67f;
  --brand-surface-light: #ebeeec;
  --brand-surface-card: #ffffff;
  --brand-neutral-stone: #7c7978;

  /* Background Tints */
  --bg-hero: #f4f7f6;
  --bg-philosophy: #fafaf9;
  --bg-services: #f3f5f4;
  --bg-team: #f7f9f8;
  --bg-testimonials: #faf6ef;
  --bg-scheduling: #f4f6f5;
  --bg-footer: #f9faf9;

  /* Typography Colors */
  --text-main: #242928;
  --text-muted: #5a5d5b;
  --text-light: #7c807d;
  --text-subtle: #9ca29e;

  /* Form & Interactive */
  --border-light: #e2e8e5;
  --border-medium: #cbd5d1;
  --input-bg: #ffffff;
  --shadow-sm: 0 2px 8px rgba(33, 99, 112, 0.04);
  --shadow-md: 0 6px 20px rgba(33, 99, 112, 0.08);
  --shadow-lg: 0 12px 32px rgba(33, 99, 112, 0.12);

  /* Fonts */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout Spacing */
  --container-max: 1240px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.25s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

body.menu-open {
  overflow: hidden;
}

img,
picture,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography Helpers */
h1,
h2,
h3,
h4,
.serif-font {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--brand-primary);
  line-height: 1.25;
}

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

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-primary);
  margin-bottom: 12px;
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--font-sans);
}

.btn-primary {
  background-color: var(--brand-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--brand-primary-hover);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background-color: rgba(33, 99, 112, 0.05);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--text-main);
  border-color: var(--border-medium);
}

.btn-outline-light:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* Modern Header / Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 16px 0;
  transition: padding 0.3s ease;
}

.header .container {
  max-width: 1440px;
  padding: 0 20px;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-img {
  height: 48px;
  width: auto;
  transition: height 0.3s ease;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--brand-primary);
  line-height: 1.1;
  white-space: nowrap;
}

.logo-subtitle {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Right side mobile controls (hidden on desktop) */
.header-right {
  display: none;
  align-items: center;
  gap: 10px;
}

.header-quick-book {
  display: inline-flex;
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 24px;
  white-space: nowrap;
}

/* Mobile Hamburger Toggle Button */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background-color: transparent;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover,
.nav-toggle:focus {
  border-color: var(--brand-primary);
  background-color: rgba(33, 99, 112, 0.04);
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--brand-primary);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.2s ease;
  transform-origin: center;
}

.nav-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Navigation Drawer (Desktop inline layout) */
/* Navigation Drawer (Desktop inline layout) */
.nav-drawer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 1;
  margin-left: 16px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Unified Navigation Elements: Same background #216370, identical look and feel, additional padding, rounded */
.nav-link,
.nav-portal-btn,
.nav-consultation-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--brand-primary); /* #216370 */
  color: #ffffff !important;
  font-family: var(--font-sans);
  font-size: 0.775rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 10px 15px;
  border-radius: 24px;
  border: 1px solid var(--brand-primary);
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(33, 99, 112, 0.14);
  cursor: pointer;
  line-height: 1.2;
}

.nav-link:hover,
.nav-portal-btn:hover,
.nav-consultation-btn:hover {
  background-color: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(33, 99, 112, 0.24);
}

.nav-link:active,
.nav-link.active,
.nav-portal-btn:active,
.nav-consultation-btn:active {
  background-color: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
  color: #ffffff !important;
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-link.active::after {
  display: none;
}

/* Backdrop for Mobile Navigation */
.nav-backdrop {
  display: none;
}

/* Hero Section */
.hero-section {
  background-color: var(--bg-hero);
  padding: 60px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: rgba(33, 99, 112, 0.08);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brand-primary);
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 500;
  color: var(--brand-primary);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 90%;
  line-height: 1.6;
}

/* Hero Feature Pillars */
.hero-pillars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: 0 0 32px 0;
  padding: 0;
}

.hero-pillar-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(33, 99, 112, 0.14);
  border-radius: 30px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-pillar-item:hover {
  background: #ffffff;
  border-color: rgba(33, 99, 112, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(33, 99, 112, 0.08);
}

.pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(33, 99, 112, 0.12);
  color: var(--brand-primary);
  flex-shrink: 0;
}

.pillar-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0e2a38;
  line-height: 1.4;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid var(--border-medium);
  padding-top: 24px;
}

.stat-item h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 2px;
}

.stat-item p {
  font-size: 0.8125rem;
  color: var(--text-light);
}

.hero-banner-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-banner-img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(17, 61, 70, 0.85) 100%);
  color: #ffffff;
}

.hero-banner-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 6px;
  display: block;
}

.hero-banner-heading {
  font-size: 1.75rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.3;
}

/* Philosophy Section */
.philosophy-section {
  background-color: var(--bg-philosophy);
  padding: 90px 0;
  text-align: center;
}

.philosophy-container {
  max-width: 860px;
  margin: 0 auto;
}

.philosophy-quote {
  font-size: 2.25rem;
  line-height: 1.35;
  color: var(--brand-primary);
  margin-bottom: 28px;
  font-weight: 400;
}

.philosophy-subtext {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Services Section */
.services-section {
  background-color: var(--bg-services);
  padding: 90px 0;
}

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.services-header-title h2 {
  font-size: 2.5rem;
}

.services-header-desc {
  max-width: 440px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

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

.service-card {
  background-color: var(--brand-surface-card);
  padding: 36px 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.service-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background-color: rgba(33, 99, 112, 0.08);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

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

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--brand-primary);
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  flex-grow: 1;
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f0f4f3;
  padding-top: 16px;
}

.service-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
}

.service-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-link:hover {
  gap: 10px;
}

/* Team Section */
.team-section {
  background-color: var(--bg-team);
  padding: 90px 0;
}

.team-header {
  margin-bottom: 48px;
}

.team-header h2 {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.team-header p {
  font-size: 1rem;
  color: var(--text-muted);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.team-card {
  background-color: var(--brand-surface-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.team-card:hover {
  box-shadow: var(--shadow-md);
}

.team-card-img-wrapper {
  width: 100%;
  height: 320px;
  overflow: hidden;
  background-color: #eaeaea;
}

.team-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

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

.team-card-body {
  padding: 24px 28px;
}

.team-role {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-primary);
  margin-bottom: 6px;
  display: block;
}

.team-card h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.team-bio-snippet {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.team-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f0f4f3;
  padding-top: 14px;
}

.team-specialty {
  font-size: 0.75rem;
  color: var(--text-light);
}

.team-cert-icon {
  width: 18px;
  height: 18px;
  color: var(--brand-primary);
}

/* Modal Popup for Doctor Bios */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background-color: #ffffff;
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  position: relative;
  padding: 40px;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-body h3 {
  font-size: 1.75rem;
  margin-bottom: 4px;
}

.modal-body .modal-role {
  color: var(--brand-primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: block;
}

.modal-body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
  background-color: var(--bg-testimonials);
  padding: 90px 0;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 48px;
}

.testimonials-header h2 {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.testimonials-header p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background-color: var(--brand-surface-card);
  padding: 32px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.testimonial-card[data-testimonial-carousel] {
  touch-action: pan-y;
}

.star-rating {
  color: #d4af37;
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.star-rating svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.testimonial-slides {
  display: grid;
  flex-grow: 1;
  margin-bottom: 24px;
}

.testimonial-text {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.testimonial-slides .testimonial-slide {
  grid-area: 1 / 1;
  margin-bottom: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.testimonial-slides .testimonial-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.testimonial-author h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.testimonial-author p {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
}

.testimonial-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid #f0f4f3;
}

.testimonial-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 7px;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.testimonial-dot::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background-color: var(--border-medium);
  transition: width 0.25s ease, background-color 0.25s ease, opacity 0.2s ease;
}

.testimonial-dot:hover::before {
  background-color: var(--brand-primary);
  opacity: 0.75;
}

.testimonial-dot.active::before {
  width: 24px;
  background-color: var(--brand-primary);
  opacity: 1;
}

.testimonial-dot:focus-visible {
  outline: none;
}

.testimonial-dot:focus-visible::before {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
}

/* Scheduling & Contact Section */
.scheduling-section {
  background-color: var(--bg-scheduling);
  padding: 90px 0;
}

.scheduling-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: flex-start;
}

.scheduling-info h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.scheduling-info>p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background-color: rgba(33, 99, 112, 0.08);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.contact-details h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 2px;
}

.contact-details p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.contact-action-btns {
  display: flex;
  gap: 14px;
}

.scheduling-form-card {
  background-color: var(--brand-surface-card);
  padding: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.875rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background-color: var(--input-bg);
  color: var(--text-main);
  transition: var(--transition);
  font-family: var(--font-sans);
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(33, 99, 112, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-disclaimer {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.4;
}

.btn-full {
  width: 100%;
}

/* Footer */
.footer {
  background-color: var(--bg-footer);
  border-top: 1px solid var(--border-light);
  padding: 70px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 16px;
  margin-bottom: 24px;
  max-width: 320px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
}

.social-icon svg {
  width: 16px;
  height: 16px;
}

.footer-column h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-primary);
  margin-bottom: 20px;
}

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

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

.footer-links a:hover {
  color: var(--brand-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-medium);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-light);
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a {
  color: var(--text-light);
}

.footer-legal-links a:hover {
  color: var(--brand-primary);
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE MEDIA QUERIES
   Mobile-first, tablet, and desktop adaptation for seamless UX
   ========================================================================== */

/* Tablet Landscape & Below (<= 1024px) */
@media (max-width: 1024px) {

  .hero-grid,
  .scheduling-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-banner-wrapper {
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
  }

  .services-grid,
  .team-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

/* Desktop Nav Scaling (1181px - 1380px) to prevent wrapping */
@media (max-width: 1380px) and (min-width: 1181px) {
  .header .container {
    max-width: 100%;
    padding: 0 16px;
  }

  .logo-img {
    height: 40px;
  }

  .logo-title {
    font-size: 1.15rem;
  }

  .nav-drawer {
    margin-left: 10px;
    gap: 6px;
  }

  .nav-menu {
    gap: 5px;
  }

  .nav-actions {
    gap: 5px;
  }

  .nav-link,
  .nav-portal-btn,
  .nav-consultation-btn {
    padding: 8px 11px;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
  }
}

/* Tablet & Mobile Breakpoint (<= 1180px) */
@media (max-width: 1180px) {
  .header {
    padding: 12px 0;
  }

  .header-right {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  /* Slide-down mobile drawer */
  .nav-drawer {
    position: fixed;
    top: 69px;
    left: 0;
    right: 0;
    width: 100%;
    margin-left: 0;
    max-height: calc(100vh - 69px);
    overflow-y: auto;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-medium);
    box-shadow: 0 16px 36px rgba(17, 61, 70, 0.14);
    padding: 24px 20px 32px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    z-index: 999;
  }

  .nav-drawer.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    top: 69px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(17, 61, 70, 0.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 998;
  }

  .nav-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 24px;
    background-color: var(--brand-primary);
    color: #ffffff !important;
    border: 1px solid var(--brand-primary);
    box-shadow: 0 2px 6px rgba(33, 99, 112, 0.14);
    text-align: center;
  }

  .nav-link:hover,
  .nav-link.active {
    background-color: var(--brand-primary-hover);
    border-color: var(--brand-primary-hover);
    color: #ffffff !important;
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--border-light);
  }

  .nav-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    background-color: var(--brand-primary);
    color: #ffffff !important;
    border-radius: 24px;
    border: 1px solid var(--brand-primary);
    box-shadow: 0 2px 6px rgba(33, 99, 112, 0.14);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .nav-actions .btn:hover {
    background-color: var(--brand-primary-hover);
    border-color: var(--brand-primary-hover);
    color: #ffffff !important;
  }

  /* Section headers on tablets/mobile */
  .services-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 36px;
  }

  .services-header-desc {
    max-width: 100%;
  }

  .services-header-title h2,
  .team-header h2,
  .testimonials-header h2,
  .scheduling-info h2 {
    font-size: 2.1rem;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .hero-banner-img {
    height: 480px;
  }
}

/* Tablet & Large Mobile (<= 768px) */
@media (max-width: 768px) {

  .hero-section,
  .philosophy-section,
  .services-section,
  .team-section,
  .testimonials-section,
  .scheduling-section {
    padding: 60px 0;
  }

  .philosophy-quote {
    font-size: 1.65rem;
    line-height: 1.4;
    margin-bottom: 20px;
  }

  .philosophy-subtext {
    font-size: 0.95rem;
  }

  .footer {
    padding: 56px 0 24px;
  }
}

/* Standard Mobile Devices (<= 640px) */
@media (max-width: 640px) {

  .services-grid,
  .team-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 26px 20px;
  }

  .service-card h3 {
    font-size: 1.3rem;
  }

  .team-card-img-wrapper {
    height: 280px;
  }

  .team-card-body {
    padding: 20px 18px;
  }

  .testimonial-card {
    padding: 24px 20px;
  }

  .testimonial-dot {
    padding: 14px 10px;
  }

  .hero-title {
    font-size: 2.15rem;
    line-height: 1.2;
  }

  .hero-description {
    font-size: 0.95rem;
    margin-bottom: 16px;
    max-width: 100%;
  }

  .hero-pillars {
    gap: 8px;
    margin-bottom: 24px;
    max-width: 100%;
  }

  .hero-pillar-item {
    padding: 8px 12px;
  }

  .pillar-text {
    font-size: 0.85rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-banner-img {
    height: 360px;
  }

  .hero-banner-overlay {
    padding: 20px 16px;
  }

  .hero-banner-heading {
    font-size: 1.3rem;
    line-height: 1.35;
  }

  /* Form & Contact on mobile */
  .scheduling-form-card {
    padding: 24px 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Minimum 16px font-size prevents iOS automatic zoom on focus */
  .form-control {
    font-size: 16px;
    padding: 13px 14px;
  }

  .contact-action-btns {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .contact-action-btns .btn {
    width: 100%;
    justify-content: center;
  }

  /* Footer on mobile */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 36px;
  }

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

  .footer-legal-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
  }

  /* Modal on mobile */
  .modal-container {
    width: 95%;
    max-height: 88vh;
    padding: 24px 18px;
  }

  .modal-close-btn {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .modal-body h3 {
    font-size: 1.45rem;
    padding-right: 32px;
  }
}

/* Small Mobile Screens (<= 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .logo-img {
    height: 38px;
  }

  .logo-title {
    font-size: 1.15rem;
  }

  .logo-subtitle {
    font-size: 0.55rem;
    letter-spacing: 0.1em;
  }

  .header-quick-book {
    padding: 6px 12px;
    font-size: 0.7rem;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .hero-badge {
    font-size: 0.68rem;
    padding: 5px 10px;
  }

  .hero-title {
    font-size: 1.95rem;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 18px;
    text-align: center;
  }

  .stat-item h3 {
    font-size: 1.15rem;
  }

  .stat-item p {
    font-size: 0.7rem;
    line-height: 1.25;
  }

  .hero-banner-img {
    height: 320px;
  }

  .hero-banner-heading {
    font-size: 1.1rem;
  }

  .services-header-title h2,
  .team-header h2,
  .testimonials-header h2,
  .scheduling-info h2 {
    font-size: 1.75rem;
  }

  .philosophy-quote {
    font-size: 1.35rem;
  }
}

/* Extra Small Screens (<= 360px) */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 12px;
  }

  .logo-container {
    gap: 8px;
  }

  .logo-title {
    font-size: 1rem;
  }
}