/* ==========================================
   SWISS MERIDIAN - MODERN DESIGN SYSTEM
   ========================================== */

/* CSS Variables for Design System */
:root {
  /* Colors */
  --primary-color: #B83530;
  --primary-dark: #8B1F1C;
  --primary-light: #D45450;
  --secondary-color: #2C3E50;
  --accent-color: #27AE60;
  --text-primary: #2C3E50;
  --text-secondary: #5E5E5E;
  --text-light: #95A5A6;
  --background: #FFFFFF;
  --background-light: #F8F9FA;
  --background-card: #FFFFFF;
  --border-color: #E0E0E0;
  --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.16);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ==========================================
   BASE STYLES
   ========================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 0;
}

h1 { font-size: 3rem; margin-bottom: var(--spacing-md); }
h2 { font-size: 2.5rem; margin-bottom: var(--spacing-md); }
h3 { font-size: 1.75rem; margin-bottom: var(--spacing-sm); }
h4 { font-size: 1.25rem; margin-bottom: var(--spacing-sm); }

p {
  margin-bottom: var(--spacing-sm);
  line-height: 1.7;
}

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

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

.section {
  width: 100%;
  overflow: hidden;
}

/* ==========================================
   NAVIGATION
   ========================================== */

.modern-nav {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
  transition: all var(--transition-base);
}

.modern-nav .logo {
  width: 240px;
  transition: transform var(--transition-fast);
}

.modern-nav .logo:hover {
  transform: scale(1.02);
}

.modern-nav .nav-link {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.75rem 1.25rem;
  transition: all var(--transition-fast);
  position: relative;
}

.modern-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--primary-color);
  transition: transform var(--transition-base);
}

.modern-nav .nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

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

.modern-dropdown {
  border: none;
  box-shadow: var(--shadow-md);
  border-radius: 8px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.modern-dropdown .dropdown-item {
  padding: 0.75rem 1.5rem;
  transition: all var(--transition-fast);
  color: var(--text-primary);
}

.modern-dropdown .dropdown-item:hover {
  background: var(--background-light);
  color: var(--primary-color);
  padding-left: 2rem;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero-section {
  position: relative;
  height: 85vh;
  min-height: 600px;
  max-height: 900px;
}

.hero-section .carousel-item {
  height: 85vh;
  min-height: 600px;
  max-height: 900px;
  position: relative;
}

.hero-section .carousel-item img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(184, 53, 48, 0.7) 0%, rgba(44, 62, 80, 0.8) 100%);
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
  width: 90%;
  max-width: 800px;
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  color: white;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  font-weight: 300;
}

.btn-hero {
  background: white;
  color: var(--primary-color);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  display: inline-block;
  transition: all var(--transition-base);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 2px solid white;
}

.btn-hero:hover {
  background: transparent;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
}

.zoom-img {
  animation: zoomInSubtle 15s ease-in-out infinite alternate;
}

@keyframes zoomInSubtle {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

/* ==========================================
   CALL TO ACTION BUTTON
   ========================================== */

.call-to-action {
  position: fixed;
  top: 5rem;
  right: 1.5rem;
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  min-width: 280px;
  animation: slideInRight 0.4s ease;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.cta-header {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-header i {
  color: var(--accent-color);
}

.cta-phone {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.cta-phone:last-of-type {
  border-bottom: none;
}

.cta-phone a {
  color: var(--primary-color);
  font-weight: 600;
  transition: color var(--transition-fast);
}

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

.call-to-action-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.call-to-action-close:hover {
  background: var(--background-light);
  color: var(--text-primary);
}

#call-to-action-toggle-btn {
  position: fixed;
  bottom: 11rem;
  right: 1.5rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 999;
  transition: all var(--transition-base);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

#call-to-action-toggle-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

/* ==========================================
   SECTIONS
   ========================================== */

.studios-overview {
  padding: var(--spacing-xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-title {
  color: var(--text-primary);
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.2rem;
  margin-top: 1rem;
}

/* ==========================================
   STUDIO CARDS
   ========================================== */

.studio-card {
  background: var(--background-card);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
}

.studio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.studio-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: white;
}

.studio-card h3 {
  color: var(--text-primary);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.studio-card p {
  color: var(--text-secondary);
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.btn-link {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.btn-link:hover {
  gap: 0.75rem;
  color: var(--primary-dark);
}

/* ==========================================
   STUDIO SECTIONS
   ========================================== */

.studio-section {
  padding-top: calc(var(--spacing-xl) + 80px);
  padding-bottom: var(--spacing-xl);
  background: var(--background-light);
  margin-top: -80px;
}

.studio-section:nth-child(odd) {
  background: white;
}

.services-row,
.info-row {
  margin-top: var(--spacing-lg);
}

.services-card,
.info-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.services-card:hover,
.info-card:hover {
  box-shadow: var(--shadow-md);
}

.services-title,
.info-title {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.services-list li {
  padding: 0.75rem 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.services-list li:last-child {
  border-bottom: none;
}

.services-list li:hover {
  padding-left: 0.5rem;
  color: var(--primary-color);
}

.services-list i {
  color: var(--accent-color);
  font-size: 1.1rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.services-list a {
  color: var(--primary-color);
  font-weight: 600;
}

/* ==========================================
   DOCTOR CARDS
   ========================================== */

.doctor-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.doctor-card:last-child {
  border-bottom: none;
}

.doctor-card:hover {
  transform: translateX(8px);
}

.doctor-img {
  width: 80px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.doctor-info h4 {
  margin: 0 0 0.25rem 0;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.doctor-info p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ==========================================
   CONTACT INFO
   ========================================== */

.contact-info {
  margin-bottom: 1.5rem;
}

.contact-info p {
  margin: 0;
  line-height: 1.8;
}

.contact-info a {
  color: var(--primary-color);
  font-weight: 600;
  transition: all var(--transition-fast);
}

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

.partner-logo {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

/* ==========================================
   CONTACT FORM
   ========================================== */

.form-control {
  border-radius: 8px;
  border: 2px solid var(--border-color);
  padding: 0.875rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  min-height: 48px;
  transition: all var(--transition-fast);
  font-family: var(--font-primary);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(184, 53, 48, 0.1);
  outline: none;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232C3E50' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  min-height: 52px;
}

.input-required {
  background-color: #FFFEF7;
}

.input-error {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(184, 53, 48, 0.1);
}

.input-valid {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.btn-red {
  background: var(--primary-color);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  border: 2px solid var(--primary-color);
  transition: all var(--transition-base);
}

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

/* ==========================================
   SCROLL TO TOP BUTTON
   ========================================== */

#myBtn {
  position: fixed;
  bottom: 7rem;
  right: 1.5rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--secondary-color);
  color: white;
  border: none;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 99;
  transition: all var(--transition-base);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

#myBtn:hover {
  background: var(--text-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ==========================================
   FOOTER
   ========================================== */

.footer-section {
  background: var(--secondary-color);
  color: var(--text-light);
  padding: var(--spacing-xl) 0 var(--spacing-lg) 0;
}

.footerbox {
  padding: var(--spacing-md) 0;
}

.footerbox h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-family: var(--font-primary);
}

.footerbox h4 a {
  color: white;
  text-decoration: none;
}

.footerbox p {
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.footerbox i {
  margin-right: 0.5rem;
  color: var(--primary-light);
}

.footerbox a {
  color: white;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.footerbox a:hover {
  color: var(--primary-light);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  transition: all var(--transition-base);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  color: white;
}

/* ==========================================
   MODALS
   ========================================== */

.modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  border-bottom: 2px solid var(--border-color);
  padding: 1.5rem 2rem;
}

.modal-body {
  padding: 2rem;
}

.modal-title {
  color: var(--primary-color);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 991px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .call-to-action {
    top: auto;
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    min-width: auto;
  }
  
  .studio-card {
    margin-bottom: 2rem;
  }
  
  .services-card,
  .info-card {
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-xl: 2.5rem;
    --spacing-lg: 2rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .hero-section {
    height: 70vh;
    min-height: 500px;
  }
  
  .hero-section .carousel-item {
    height: 70vh;
    min-height: 500px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .btn-hero {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
  
  .modern-nav .logo {
    width: 180px;
  }
  
  #myBtn,
  #call-to-action-toggle-btn {
    width: 3rem;
    height: 3rem;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .studios-overview {
    padding: var(--spacing-lg) 0;
  }
  
  .studio-card {
    padding: 2rem 1.5rem;
  }
  
  .hero-content {
    width: 95%;
  }
  
  .modern-nav .logo {
    width: 150px;
  }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.box {
  padding: 1rem;
}

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

/* MyHappyFeedback Styling */
.mhf {
  display: none;
  margin-top: 1rem;
  color: var(--text-light);
}

.mhf-logo {
  font-size: 0.75rem !important;
  color: var(--text-light) !important;
  transition: color var(--transition-fast);
}

.mhf-logo:hover {
  color: var(--primary-color) !important;
}
