/* ================================
   MARIA Medical Center — Global Styles
   Pure CSS3, no frameworks
   ================================ */

/* -------------------------------
   CSS Variables (Design System)
   ------------------------------- */
:root {
  /* Primary gradient — teal to blue-purple */
  --primary-start: #0d9488;
  --primary-end: #7c3aed;
  --primary: #0d9488;

  /* Secondary / accent */
  --secondary: #7c3aed;
  --accent: #f59e0b;

  /* Text */
  --text: #1f2937;
  --text-light: #6b7280;
  --text-inverse: #ffffff;

  /* Backgrounds */
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --footer-bg: #111827;

  /* Borders & shadows */
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);

  /* Success / error */
  --success: #10b981;
  --error: #ef4444;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #0d9488 0%, #7c3aed 100%);
  --gradient-btn: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  --gradient-btn-hover: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);

  /* Font */
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Transitions */
  --transition-default: 0.3s ease;
}

/* -------------------------------
   Reset & Normalize (Lightweight)
   ------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: 16px;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Skip-to-content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: var(--text-inverse);
  padding: 8px 16px;
  z-index: 10000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* -------------------------------
   Typography
   ------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 {
  font-size: 3rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h2 {
  font-size: 2.25rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}

.text-small {
  font-size: 0.875rem;
  line-height: 1.5;
}

.text-caption {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

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

section {
  padding: 80px 0;
}

/* -------------------------------
   Grid System
   ------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* -------------------------------
   Header (Fixed)
   ------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  transition: box-shadow var(--transition-default);
}

.header--scrolled {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.header__logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav-list {
  display: flex;
  gap: 28px;
}

.header__nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-default);
}

.header__nav-link:hover::after,
.header__nav-link--active::after {
  width: 100%;
}

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

.header__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 4px;
  align-items: center;
}

.lang-switcher__btn {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition-default);
  background: transparent;
}

.lang-switcher__btn:hover {
  color: var(--primary);
  background: rgba(13, 148, 136, 0.08);
}

.lang-switcher__btn--active {
  color: var(--text-inverse);
  background: var(--gradient-btn);
}

/* Mobile Menu Toggle */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger__line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 2px;
}

.hamburger--open .hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger--open .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger--open .hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--gradient-hero);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav--open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav__link {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-inverse);
}

.mobile-nav__lang {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.mobile-nav__lang-btn {
  font-size: 16px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 9999px;
  color: var(--text-inverse);
  border: 2px solid rgba(255,255,255,0.3);
  background: transparent;
}

.mobile-nav__lang-btn--active {
  background: var(--text-inverse);
  color: var(--primary);
  border-color: var(--text-inverse);
}

/* -------------------------------
   Buttons
   ------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 9999px;
  padding: 14px 32px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  transform: scale(1.02);
}

.btn-primary {
  background: var(--gradient-btn);
  color: var(--text-inverse);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.btn-primary:hover {
  background: var(--gradient-btn-hover);
  box-shadow: 0 10px 20px rgba(13, 148, 136, 0.3);
  color: var(--text-inverse);
}

.btn-secondary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  padding: 12px 30px;
}

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

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

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

.btn-large {
  padding: 18px 40px;
  font-size: 1.125rem;
}

.btn-full {
  width: 100%;
}

/* Icon button */
.btn-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-btn);
  color: var(--text-inverse);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}

/* -------------------------------
   Cards
   ------------------------------- */
.card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 24px;
  transition: transform var(--transition-default), box-shadow var(--transition-default);
}

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

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inverse);
  margin: 0 auto 16px;
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-align: center;
}

.card__text {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.5;
  text-align: center;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  font-weight: 500;
  font-size: 0.875rem;
}

/* -------------------------------
   Forms
   ------------------------------- */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 6px;
}

.form-label .required {
  color: var(--error);
  margin-left: 2px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--card-bg);
  color: var(--text);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #9ca3af;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  color: var(--error);
  font-size: 0.75rem;
  margin-top: 4px;
}

.form-success {
  color: var(--success);
  font-size: 0.75rem;
  margin-top: 4px;
}

/* Checkbox */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.form-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  margin-top: 2px;
  flex-shrink: 0;
}

.form-checkbox__text {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.4;
}

.form-checkbox__text a {
  text-decoration: underline;
}

/* Form grid (2 columns) */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* -------------------------------
   Footer
   ------------------------------- */
.footer {
  background: var(--footer-bg);
  color: #d1d5db;
  padding-top: 60px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__col-title {
  color: var(--text-inverse);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-inverse);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer__tagline {
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1.5;
  margin-bottom: 16px;
}

.footer__socials {
  display: flex;
  gap: 12px;
}

.footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inverse);
  transition: background var(--transition-default);
}

.footer__social-link:hover {
  background: var(--primary);
  color: var(--text-inverse);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  color: #d1d5db;
  font-size: 0.875rem;
  transition: color var(--transition-default);
}

.footer__link:hover {
  color: var(--text-inverse);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.875rem;
  color: #d1d5db;
}

.footer__contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--primary);
}

.footer__legal {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  text-align: center;
  font-size: 0.75rem;
  color: #9ca3af;
}

.footer__legal a {
  color: #9ca3af;
  text-decoration: underline;
}

.footer__legal a:hover {
  color: var(--text-inverse);
}

/* -------------------------------
   Cookie Banner
   ------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--footer-bg);
  color: var(--text-inverse);
  padding: 16px 24px;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner--visible {
  transform: translateY(0);
}

.cookie-banner__text {
  font-size: 0.875rem;
  color: #d1d5db;
}

.cookie-banner__text a {
  color: var(--primary);
  text-decoration: underline;
}

.cookie-banner__btn {
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--text-inverse);
  flex-shrink: 0;
}

.cookie-banner__btn:hover {
  background: var(--primary-end);
}

/* -------------------------------
   Scroll Reveal Animation
   ------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* -------------------------------
   Utility Classes
   ------------------------------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-gradient {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-white { background: var(--card-bg); }
.bg-slate { background: var(--bg); }
.bg-gradient { background: var(--gradient-hero); color: var(--text-inverse); }

.section-title {
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 48px;
}

.overline {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pill-white {
  background: var(--text-inverse);
  color: var(--primary);
}

.pill-teal {
  background: var(--primary);
  color: var(--text-inverse);
}

.pill-amber {
  background: var(--accent);
  color: var(--text-inverse);
}

/* Dividers */
.divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: rgba(255,255,255,0.7);
}

.breadcrumb a:hover {
  color: var(--text-inverse);
}

.breadcrumb__sep {
  opacity: 0.5;
}

/* Rating stars */
.stars {
  display: flex;
  gap: 4px;
}

.star {
  color: var(--accent);
  width: 20px;
  height: 20px;
}

.star--empty {
  color: var(--border);
}

/* Contact chips */
.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--card-bg);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* -------------------------------
   Responsive Breakpoints
   ------------------------------- */
@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .container {
    padding: 0 20px;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  h1 {
    font-size: 36px;
  }
  h2 {
    font-size: 28px;
  }
  section {
    padding: 60px 0;
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
  .mobile-nav {
    display: none !important;
  }
}

@media (min-width: 1280px) {
  .container {
    padding: 0 24px;
  }
}

@media (max-width: 1023px) {
  .header__nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .mobile-nav {
    display: flex;
  }
}

@media (max-width: 767px) {
  .container {
    padding: 0 16px;
  }
  .header {
    height: 64px;
  }
  .header__inner {
    padding: 0 16px;
  }
  h1 {
    font-size: 28px;
  }
  h2 {
    font-size: 24px;
  }
  h3 {
    font-size: 1.25rem;
  }
  section {
    padding: 48px 0;
  }
  .btn {
    padding: 12px 24px;
    font-size: 0.9375rem;
  }
  .btn-large {
    padding: 16px 32px;
    font-size: 1rem;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }
}

/* Print styles */
@media print {
  .header,
  .cookie-banner,
  .hamburger,
  .mobile-nav {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
  a {
    color: black;
    text-decoration: underline;
  }
}
