:root {
  --primary-color: #3b5c72;
  --primary-light: #d5e9e0;
  --primary-dark: #3b5c72;
  --accent-color: #c0ddd1;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --text-lighter: #9ca3af;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --bg-gray: #f3f4f6;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --border-radius: 0.5rem;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-light);
}

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

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
}

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

/* Language Switcher */
.language-switcher {
  background-color: var(--bg-gray);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
}

.language-options {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.language-option {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: var(--transition);
}

.language-option:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.language-option.active {
  background-color: var(--primary-color);
  color: white;
}

/* Language content visibility */
.lang-content {
  display: none;
}

.lang-content.active {
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
}

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

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

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

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

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

/* Header */
.header {
  position: fixed;
  top: 47px; /* Updated to exactly 47px as requested */
  left: 0;
  width: 100%;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  padding: 1rem 0;
}

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

.logo {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 40px;
  width: auto;
}

.logo-text {
  color: var(--primary-color);
}

.main-nav {
  display: none;
}

.main-nav.active {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-md);
  padding: 1rem 0;
}

.main-nav.active .nav-list {
  flex-direction: column;
  gap: 1rem;
}

.main-nav.active .nav-list li {
  text-align: center;
}

.nav-list {
  display: flex;
  gap: 2rem;
}

.nav-list a {
  font-weight: 500;
}

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

.header-cta {
  display: none;
}

.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-dark);
  border-radius: 3px;
  transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

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

/* Hero Section */
.hero-section {
  padding: 12rem 0 4rem; /* Increased to account for fixed header + language switcher */
  background-color: var(--bg-white);
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.hero-text {
  max-width: 800px;
}

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

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

.hero-image {
  position: relative;
  margin: 0 auto;
  max-width: 400px;
}

.doctor-image {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  z-index: 2;
  position: relative;
}

.hero-decoration {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  background-color: var(--primary-light);
  opacity: 0.1;
  border-radius: 50%;
  z-index: 1;
}

/* Highlights Section */
.highlights-section {
  padding: 4rem 0;
  background-color: var(--bg-gray);
}

.highlights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.highlight-card {
  background-color: var(--bg-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition);
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.highlight-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.highlight-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.highlight-card p {
  color: var(--text-light);
}

/* About Section */
.about-section {
  padding: 5rem 0;
  background-color: var(--bg-white);
}

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

.about-image {
  flex: 1;
}

.practice-image {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.about-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feature i {
  color: var(--primary-color);
  font-size: 1.25rem;
}

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

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.service-card {
  background-color: var(--bg-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--text-light);
}

/* Opening Hours Section */
.opening-hours-section {
  padding: 5rem 0;
  background-color: var(--bg-white);
}

.opening-hours-content.lang-content.active {
  display: flex !important;
  flex-direction: row !important;
}

.opening-hours-section .opening-hours-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.opening-hours-text {
  flex: 1;
}

.opening-hours-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.opening-hours-text p {
  margin-bottom: 2rem;
  color: var(--text-light);
}

.hours-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.day {
  font-weight: 600;
}

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

.hours-note {
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: var(--bg-gray);
  border-radius: var(--border-radius);
}

.opening-hours-image {
  flex: 1;
}

.waiting-room-image {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

/* Contact Section */
.contact-section {
  padding: 5rem 0;
  background-color: var(--bg-gray);
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Fix the contact-info layout to make cards stack vertically */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-card {
  background-color: var(--bg-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.contact-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.contact-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: var(--text-light);
}

.contact-card a:hover {
  color: var(--primary-color);
}

.contact-form-container {
  display: none;
}

.contact-form-container h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.contact-form {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid var(--text-lighter);
  border-radius: var(--border-radius);
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.map-container {
  margin-top: 2rem;
}

.map-container h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.map {
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 2rem;
}

.map-directions h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.direction {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.direction-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
}

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

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-logo p {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-lighter);
}

.footer h4 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

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

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--primary-light);
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

/* Media Queries */
@media (min-width: 768px) {
  .main-nav {
    display: block;
  }

  .header-cta {
    display: block;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .hero-content {
    flex-direction: row;
    align-items: center;
  }

  .hero-text h1 {
    font-size: 3rem;
  }

  .highlights-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-content {
    flex-direction: row;
  }

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

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

  .opening-hours-content {
    display: flex !important;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 2rem;
  }
  .opening-hours-text {
    flex: 1 1 0;
    max-width: 60%;
    order: 1;
  }

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

  .contact-form-container {
    grid-column: span 3;
  }

  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .hero-text h1 {
    font-size: 3.5rem;
  }

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

  .contact-content {
    flex-direction: row;
  }

  .contact-info {
    flex: 1;
  }

  .map-container {
    flex: 1;
    margin-top: 0;
  }
}

/* SEO and Accessibility Improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-white);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  z-index: 999999999;
}

.cookie-banner .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner p {
  margin: 0;
  flex: 1;
}

.cookie-buttons {
  display: flex;
  gap: 0.5rem;
}

/* Skip to content link for accessibility */
.sr-only-focusable:focus {
  position: absolute;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background-color: var(--primary-color);
  color: white;
  z-index: 1002;
  top: 0;
  left: 0;
}

/* Improve focus states for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Improve text contrast for accessibility */
.text-light {
  color: #4b5563; /* Darker than the original var(--text-light) for better contrast */
}

/* Add smooth transitions for interactive elements */
a,
button,
input,
textarea {
  transition: all 0.2s ease;
}

/* Improve link hover states */
a:hover {
  text-decoration: underline;
}

/* Improve button hover states */
.btn:hover {
  transform: translateY(-2px);
}

/* Add animation classes for scroll animations */
.highlight-card.animate,
.service-card.animate,
.about-image.animate,
.about-text.animate,
.contact-card.animate {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Rules Section and Accordion Styles */
.rules-section {
  padding: 4rem 0;
  background-color: var(--bg-light);
}

.rules-accordion {
  max-width: 800px;
  margin: 0 auto;
  margin-top: 3rem;
}

.accordion-item {
  background-color: var(--bg-white);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.accordion-item.active {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 2rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.3s ease;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.accordion-header:hover {
  background-color: rgba(59, 130, 246, 0.05);
}

.accordion-header:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: -2px;
}

.accordion-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.accordion-title i {
  color: var(--primary-color);
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.accordion-icon {
  color: var(--primary-color);
  font-size: 0.875rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-body {
  padding: 1.5rem 1.5rem 1.5rem;
  color: var(--text-dark);
  line-height: 1.6;
}

.accordion-body p {
  margin-bottom: 1rem;
}

.accordion-body p:last-child {
  margin-bottom: 0;
}

.accordion-body ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.accordion-body li {
  margin-bottom: 0.5rem;
}

.accordion-body strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* Mobile responsive adjustments for accordion */
@media (max-width: 767px) {
  .opening-hours-image {
    display: none;
  }
  .accordion-header {
    padding: 1.5rem;
  }

  .accordion-title {
    font-size: 0.9rem;
    gap: 0.5rem;
  }

  .accordion-title i {
    font-size: 1rem;
    width: 16px;
  }

  .accordion-body {
    padding: 1rem 1rem 1rem;
  }
}

/* Improve print styles */
@media print {
  .header-cta,
  .mobile-menu-toggle,
  .contact-form-container,
  .map-container,
  .language-switcher {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  /* Print styles for accordion */
  .accordion-content {
    max-height: none !important;
  }

  .accordion-header {
    background-color: #f3f4f6 !important;
    border-bottom: 1px solid #d1d5db;
  }
}

@media (max-width: 767px) {
  .cookie-banner .container {
    flex-direction: column;
    text-align: center;
  }

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

  /* Adjust header position for mobile */
  .header {
    top: 40px;
  }

  /* Adjust hero section padding for mobile */
  .hero-section {
    padding-top: 9rem;
  }
}

@media (min-width: 768px) {
  .contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
}

.lang-content {
  display: none !important;
}
.lang-content.active {
  display: block !important;
}

.sticky-cta-bar {
  display: none;
}

@media (max-width: 767px) {
  .sticky-cta-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: #fff;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1), 0 -1.5px 0 rgba(0, 0, 0, 0.04);
    padding: 1rem 1.5rem 1.25rem 1.5rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
  }
  .sticky-cta-bar .btn-primary {
    width: 100%;
    font-size: 1.15rem;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }
}
