/*
Theme Name: Centre de Médecine Générale Hosingen
Theme URI: https://cmgh.lu
Author: in2see.com
Author URI: https://cmgh.lu
Description: A professional medical center WordPress theme
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: CMGH.lu
*/

/* CSS Variables */
:root {
  --color-primary: #4a5f7f;
  --color-primary-dark: #3a4d65;
  --color-accent-teal: #5fb9a7;
  --color-accent-yellow: #f5b942;
  --color-accent-blue: #6b9ac4;
  --color-text-dark: #2c3e50;
  --color-text-light: #6c757d;
  --color-bg-light: #f8f9fa;
  --color-white: #ffffff;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Poppins', sans-serif;
  --transition: all 0.3s ease;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
  --border-radius: 8px;
  --border-radius-lg: 16px;
}

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

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

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

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

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background-color: var(--color-white);
  padding: 20px 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo img {
  height: 50px;
  width: auto;
}

.site-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.site-logo .logo-subtitle {
  display: block;
  font-size: 0.75rem;
  color: var(--color-accent-teal);
  font-weight: 400;
}

/* Navigation */
.main-navigation {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
}

.nav-menu li a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-dark);
  padding: 8px 0;
  position: relative;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: var(--color-primary);
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

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

/* Dropdown Menu */
.nav-menu li {
  position: relative;
}

.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  border-radius: var(--border-radius);
  padding: 10px 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  list-style: none;
}

.nav-menu li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .sub-menu li {
  padding: 0;
}

.nav-menu .sub-menu li a {
  display: block;
  padding: 10px 20px;
}

/* Language Switcher */
.language-switcher {
  display: flex;
  gap: 5px;
  background-color: var(--color-bg-light);
  border-radius: 4px;
  padding: 4px;
}

.language-switcher a {
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-light);
  border-radius: 3px;
  transition: var(--transition);
}

.language-switcher a.active,
.language-switcher a:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

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

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--color-white);
}

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

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

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

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

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 30px;
}

.hero-text h1::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--color-accent-teal);
  margin-top: 20px;
}

.hero-text p {
  font-size: 1.15rem;
  color: var(--color-text-light);
  margin-bottom: 30px;
  line-height: 1.7;
}

.hero-text .cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent-teal);
  font-weight: 600;
  font-size: 1rem;
}

.hero-text .cta-link:hover {
  gap: 12px;
}

.hero-text .cta-link::after {
  content: '→';
  font-size: 1.2rem;
  transition: var(--transition);
}

.hero-image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

/* Contact Section */
.contact-section {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 60px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-section h2 {
  color: var(--color-white);
  font-size: 2rem;
  margin-bottom: 30px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact-item strong {
  font-size: 0.85rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-item a {
  color: var(--color-white);
  font-size: 1.15rem;
  text-decoration: underline;
}

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

.contact-item p {
  font-size: 1.15rem;
  margin: 0;
}

.contact-section .btn {
  margin-top: 20px;
  background-color: rgba(255, 255, 255, 0.15);
  border: 2px solid var(--color-white);
  color: var(--color-white);
}

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

.hours-table {
  margin-top: 20px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hours-row:last-child {
  border-bottom: none;
}

.hours-day {
  font-weight: 500;
}

.hours-time {
  opacity: 0.9;
}

/* Doctors Section */
.doctors-section {
  padding: 80px 0;
  background-color: var(--color-white);
}

.doctors-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
}

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

.doctor-avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--border-radius-lg);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.doctor-avatar svg {
  width: 60%;
  height: 60%;
  stroke: var(--color-white);
  stroke-width: 2;
  fill: none;
}



.doctor-color-teal {
    background: linear-gradient(135deg, #20b2aa, #008b8b);
}

.doctor-color-yellow {
    background: linear-gradient(135deg, #ffd700, #ffa500);
}

.doctor-color-blue {
    background: linear-gradient(135deg, #4169e1, #1e90ff);
}

.doctor-color-purple {
    background: linear-gradient(135deg, #9370db, #8a2be2);
}

.doctor-color-green {
    background: linear-gradient(135deg, #32cd32, #228b22);
}

.doctor-color-pink {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
}

.doctor-color-orange {
    background: linear-gradient(135deg, #ff8c00, #ff6347);
}

.doctor-color-red {
    background: linear-gradient(135deg, #dc143c, #b22222);
}

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

.doctor-name {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.doctor-specialty {
  color: var(--color-text-light);
  font-size: 1rem;
  margin-bottom: 20px;
}

/* Cabinet Page Styles */
.page-header {
  padding: 60px 0 40px;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  color: var(--color-primary);
}

.content-section {
  padding: 40px 0;
}

.image-text-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}

.image-text-row.reverse {
  direction: rtl;
}

.image-text-row.reverse > * {
  direction: ltr;
}

.content-image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

.content-text p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: var(--color-text-dark);
}

/* Image Gallery/Slider */
.image-gallery {
  margin: 60px 0;
}

.gallery-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
  scrollbar-width: thin;
}

.gallery-slide {
  flex: 0 0 48%;
  scroll-snap-align: start;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.gallery-slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.gallery-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #d1d5db;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-dot.active {
  background-color: var(--color-primary);
  width: 32px;
  border-radius: 6px;
}

/* Footer */
.site-footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 40px 0 20px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h3 {
  color: var(--color-white);
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.85);
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--color-white);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-primary);
  margin: 5px 0;
  transition: var(--transition);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content,
  .contact-grid,
  .image-text-row {
    grid-template-columns: 1fr;
  }

  .image-text-row.reverse {
    direction: ltr;
  }

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

  .gallery-slide {
    flex: 0 0 70%;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .main-navigation {
    flex-direction: column;
    gap: 20px;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid var(--color-bg-light);
  }

  .nav-menu li a {
    display: block;
    padding: 15px 0;
  }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }

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

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

  .footer-content {
    grid-template-columns: 1fr;
  }

  .gallery-slide {
    flex: 0 0 90%;
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
