/* =====================================================
   CLION - Premium Medical Aesthetics Base Styles
   Design: Apple-inspired Neumorphism & Soft Luxury
   ===================================================== */

/* CSS Variables */
:root {
  /* Brand Colors */
  --primary-red: #E92020;
  --primary-red-dark: #C11818;
  --primary-red-light: #FF3B3B;
  
  /* Neutral Palette */
  --white: #FFFFFF;
  --off-white: #F9FAFB;
  --light-grey: #E5E7EB;
  --mid-grey: #9CA3AF;
  --dark-grey: #374151;
  --near-black: #1F2937;
  --black: #111827;
  
  /* Neumorphic Shadows */
  --shadow-light: rgba(255, 255, 255, 0.7);
  --shadow-dark: rgba(0, 0, 0, 0.15);
  --neu-shadow: 8px 8px 16px var(--shadow-dark), 
                -8px -8px 16px var(--shadow-light);
  --neu-shadow-sm: 4px 4px 8px var(--shadow-dark), 
                   -4px -4px 8px var(--shadow-light);
  --neu-inset: inset 4px 4px 8px var(--shadow-dark), 
               inset -4px -4px 8px var(--shadow-light);
  
  /* Soft Glow */
  --glow-red: 0 4px 20px rgba(233, 32, 32, 0.3);
  --glow-white: 0 4px 20px rgba(255, 255, 255, 0.5);
  
  /* Typography */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Display', 
                  'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-secondary: 'SF Pro Text', 'Inter', 'Segoe UI', system-ui, sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* =====================================================
   GLOBAL RESET & BASE STYLES
   ===================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--dark-grey);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--near-black);
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--dark-grey);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}

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

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

/* =====================================================
   CONTAINER & LAYOUT
   ===================================================== */

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

.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

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

.section-alt {
  background: var(--white);
}

/* =====================================================
   NEUMORPHIC COMPONENTS
   ===================================================== */

.neu-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--neu-shadow);
  padding: var(--spacing-md);
  transition: var(--transition-normal);
}

.neu-card:hover {
  transform: translateY(-4px);
  box-shadow: 12px 12px 24px var(--shadow-dark), 
              -12px -12px 24px var(--shadow-light);
}

.neu-card-sm {
  background: var(--off-white);
  border-radius: var(--radius-md);
  box-shadow: var(--neu-shadow-sm);
  padding: var(--spacing-sm);
  transition: var(--transition-normal);
}

.neu-button {
  background: var(--off-white);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--neu-shadow-sm);
  padding: 1rem 2rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  color: var(--near-black);
  cursor: pointer;
  transition: var(--transition-normal);
  display: inline-block;
}

.neu-button:hover {
  box-shadow: var(--neu-inset);
  transform: scale(0.98);
}

.neu-button:active {
  box-shadow: var(--neu-inset);
}

/* =====================================================
   BUTTONS
   ===================================================== */

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-red);
  color: var(--white);
  box-shadow: var(--glow-red);
}

.btn-primary:hover {
  background: var(--primary-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(233, 32, 32, 0.4);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-red);
  border: 2px solid var(--primary-red);
}

.btn-secondary:hover {
  background: var(--primary-red);
  color: var(--white);
  transform: translateY(-2px);
}

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

.btn-ghost:hover {
  background: var(--white);
  color: var(--primary-red);
  transform: translateY(-2px);
}

/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */

.top-bar {
  background: var(--near-black);
  color: var(--white);
  padding: 0.75rem 0;
  font-size: 0.875rem;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar a {
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.top-bar a:hover {
  color: var(--primary-red-light);
}

.header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition-normal);
}

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

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

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

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

.logo-name {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--near-black);
  line-height: 1;
}

.logo-tagline {
  font-size: 0.875rem;
  color: var(--mid-grey);
  font-weight: 400;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--dark-grey);
  font-weight: 500;
  padding: 0.5rem 0;
  transition: var(--transition-fast);
  display: block;
}

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

.nav-link.active {
  color: var(--primary-red);
  font-weight: 600;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  min-width: 280px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition-normal);
  z-index: 100;
}

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

.dropdown-item {
  padding: 0.75rem 1.5rem;
  color: var(--dark-grey);
  font-weight: 500;
  transition: var(--transition-fast);
  display: block;
}

.dropdown-item:hover {
  background: var(--off-white);
  color: var(--primary-red);
}

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

.hamburger {
  width: 28px;
  height: 2px;
  background: var(--near-black);
  position: relative;
  transition: var(--transition-normal);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 2px;
  background: var(--near-black);
  transition: var(--transition-normal);
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

.menu-toggle.active .hamburger {
  background: transparent;
}

.menu-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

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

.footer {
  background: var(--near-black);
  color: var(--white);
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

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

.footer-section p,
.footer-section a {
  color: var(--light-grey);
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--primary-red-light);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-contact-item i {
  color: var(--primary-red);
  margin-top: 0.25rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: var(--spacing-sm);
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.social-icon:hover {
  background: var(--primary-red);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  text-align: center;
  color: var(--mid-grey);
  font-size: 0.875rem;
}

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

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

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

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

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

.text-white {
  color: var(--white);
}

.text-muted {
  color: var(--mid-grey);
}

.bg-white {
  background: var(--white);
}

.bg-grey {
  background: var(--off-white);
}

.mb-sm {
  margin-bottom: var(--spacing-sm);
}

.mb-md {
  margin-bottom: var(--spacing-md);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.mt-sm {
  margin-top: var(--spacing-sm);
}

.mt-md {
  margin-top: var(--spacing-md);
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

/* =====================================================
   ANIMATIONS
   ===================================================== */

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

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

@media (max-width: 1024px) {
  :root {
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
  }
  
  .nav {
    gap: 1.5rem;
  }
  
  .nav-menu {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 5rem 2rem;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition-normal);
    z-index: 999;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-item {
    width: 100%;
  }
  
  .nav-link {
    padding: 0.75rem 0;
    font-size: 1.125rem;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--off-white);
    margin-top: 0.5rem;
    border-radius: var(--radius-sm);
  }
  
  .header-cta {
    display: none;
  }
  
  .top-bar-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container,
  .container-wide {
    padding: 0 var(--spacing-sm);
  }
  
  .section {
    padding: var(--spacing-md) 0;
  }
  
  .btn {
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
  }
}

/* =====================================================
   PRINT STYLES
   ===================================================== */

@media print {
  .header,
  .footer,
  .btn,
  .menu-toggle {
    display: none;
  }
}