/* ==========================================================================
   CSS Custom Properties & Styling Token System
   ========================================================================== */
:root {
  /* Color Palette - Medical Elite (Classic dark navy slate, medical cobalt blue, clean ivory background) */
  --color-primary: #0f172a;        /* Deep Slate Navy */
  --color-primary-light: #1e293b;
  --color-accent: #1d4ed8;         /* Premium Medical Cobalt Blue */
  --color-accent-light: #3b82f6;   /* Sky Blue */
  --color-bg-base: #f8fafc;        /* High-End Soft Slate Grey White */
  --color-bg-surface: #ffffff;     /* Clean White */
  --color-text-dark: #0f172a;      /* Slate Blue Black */
  --color-text-muted: #475569;     /* Cool Grey */
  --color-border-subtle: rgba(226, 232, 240, 0.8);
  
  /* Font Stacks (High-end Editorial: Georgia paired with clean system sans) */
  --font-serif: Georgia, Charter, "Iowan Old Style", "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  
  /* Layout Sizing & Spacing */
  --grid-gap: 2rem;
  --container-width: 1200px;
}

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--color-text-dark);
  background-color: var(--color-bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

/* Background Grids & Ambient Decorative Elements */
.bg-grid-lines {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--container-width);
  height: 100%;
  pointer-events: none;
  z-index: -2;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
}

.grid-line {
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, rgba(29, 78, 216, 0.03) 0%, rgba(29, 78, 216, 0.05) 50%, rgba(29, 78, 216, 0.01) 100%);
}

.bg-glow {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.06) 0%, rgba(29, 78, 216, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

/* Typography & Layout elements */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
}

.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

p {
  font-family: var(--font-sans);
  color: var(--color-text-muted);
}

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

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

.max-width-md {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Glassmorphism Accents */
.glass-panel {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(125%);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.04);
}

.accent-border {
  border-top: 3px solid var(--color-accent);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled {
  padding: 0.75rem 0;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5rem;
  transition: height 0.3s ease;
}

.site-header.scrolled .header-container {
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 700;
}

.logo-icon {
  color: var(--color-accent);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

/* Navigation menu */
.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.nav-link-cta {
  background-color: var(--color-primary);
  color: var(--color-bg-base) !important;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.nav-link-cta:hover {
  background-color: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  display: block;
  width: 1.5rem;
  height: 2px;
  background-color: var(--color-primary);
  position: relative;
  transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  transition: transform 0.3s ease;
}

.hamburger::before { top: -6px; }
.hamburger::after { bottom: -6px; }

/* ==========================================================================
   Hero Section (Asymmetric & Editorial Style)
   ========================================================================== */
.hero-section {
  padding-top: 11rem;
  padding-bottom: 7rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gap);
  align-items: center;
}

.hero-text-block {
  grid-column: span 7;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.hero-tag .dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: 50%;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin-bottom: 2rem;
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-accent);
  color: white;
  box-shadow: 0 4px 20px rgba(29, 78, 216, 0.15);
}

.btn-primary:hover {
  background-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(15, 23, 42, 0.15);
}

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

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

/* Hero Visual Layer */
.hero-visual {
  grid-column: span 5;
  position: relative;
  width: 100%;
}

.visual-box-container {
  position: relative;
  padding-left: 2rem;
}

.visual-box {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.founding-year-badge {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-border-subtle);
  padding-bottom: 0.5rem;
  width: fit-content;
}

.visual-graphic {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.abstract-svg {
  width: 80%;
  height: auto;
  opacity: 0.85;
}

.visual-footer {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.floating-rating-card {
  position: absolute;
  bottom: -2rem;
  left: -2rem;
  z-index: 3;
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 260px;
  box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.1);
}

.rating-stars {
  color: #fbbf24;
  font-size: 1.15rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.rating-number {
  color: var(--color-text-dark);
}

.rating-text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Philosophie / Strengths Section
   ========================================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.section-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.section-desc {
  font-size: 1.05rem;
  line-height: 1.7;
}

.sticky-element {
  position: sticky;
  top: 8rem;
}

.strengths-wrapper {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.strength-card {
  display: flex;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-border-subtle);
  transition: transform 0.3s ease;
}

.strength-card:hover {
  transform: translateX(10px);
}

.strength-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--color-accent-light);
  line-height: 1;
}

.strength-content h3 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.strength-content p {
  font-size: 0.95rem;
}

/* ==========================================================================
   Services Section (Minimal Modernism Grid)
   ========================================================================== */
.services-section {
  background-color: rgba(255, 255, 255, 0.4);
}

.services-header {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--grid-gap);
  align-items: flex-end;
  margin-bottom: 5rem;
}

.services-intro {
  font-size: 1.1rem;
  line-height: 1.7;
}

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

.service-item {
  padding: 3rem 2rem;
  border-radius: 8px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-item:hover {
  transform: translateY(-8px);
  background: white;
  border-color: rgba(29, 78, 216, 0.15);
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.08);
}

.service-icon-box {
  color: var(--color-accent);
  width: 2.5rem;
  height: 2.5rem;
}

.service-icon-box svg {
  width: 100%;
  height: 100%;
}

.service-item h3 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
}

.service-item p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   Reviews Section
   ========================================================================== */
.reviews-header {
  margin-bottom: 4rem;
}

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

.review-card {
  padding: 3rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -10px rgba(15, 23, 42, 0.05);
}

.review-stars {
  color: #fbbf24;
  letter-spacing: 0.1em;
}

.review-quote {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--color-primary);
}

.review-author {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Contact & Open Hours Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 5rem;
  align-items: center;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.detail-item {
  display: flex;
  gap: 1.5rem;
}

.detail-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-accent);
}

.detail-icon svg {
  width: 100%;
  height: 100%;
}

.detail-item h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.detail-item address, .contact-link {
  font-style: normal;
  font-size: 1.1rem;
  color: var(--color-primary);
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

.hours-block {
  padding: 4rem;
  border-radius: 8px;
}

.hours-block h3 {
  font-size: 1.75rem;
  color: var(--color-primary);
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-border-subtle);
  padding-bottom: 1rem;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table td {
  padding: 1rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.4);
}

.hours-table td:first-child {
  font-weight: 600;
  color: var(--color-primary);
}

.hours-table td:last-child {
  text-align: right;
  color: var(--color-text-muted);
}

.hours-table tr.inactive td {
  color: rgba(15, 23, 42, 0.35) !important;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-primary);
  color: white;
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: white;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

/* ==========================================================================
   Animations & Transitions
   ========================================================================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Styles (Mobile First modifications)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .hero-text-block {
    grid-column: span 12;
  }

  .hero-visual {
    grid-column: span 12;
    max-width: 500px;
    margin: 0 auto;
  }

  .services-header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-2, .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .sticky-element {
    position: static;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    z-index: 101;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: var(--color-bg-surface);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
  }

  .nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
  }

  .nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .hours-block {
    padding: 2.5rem;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hours-block {
    padding: 1.5rem;
  }

  .floating-rating-card {
    left: 0;
  }
}