/* === CSS Custom Properties (Theming) === */
:root {
  --primary: #18d5df;
  --primary-light: rgba(24, 213, 223, 0.1);
  --primary-shadow: rgba(24, 213, 223, 0.3);
  --text: #2c3e50;
  --text-light: #7f8c8d;
  --bg: #f8fffe;
  --card-bg: #ffffff;
  --card-border: #e8e8e8;
  --card-hover-border: #18d5df;
  --radius: 12px;
  --max-width: 480px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* === Reset & Base === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(135deg, #f0fdfe 0%, #ffffff 50%, #f8f9fa 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  line-height: 1.6;
}

/* === Container === */
.container {
  width: 100%;
  max-width: var(--max-width);
  padding: 2rem 1.25rem 3rem;
}

/* === Header === */
.header {
  text-align: center;
  margin-bottom: 2rem;
}

.logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 1rem;
  border: 3px solid var(--card-bg);
}

.clinic-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.clinic-subtitle {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 400;
  margin-top: 0.15rem;
}

.clinic-tagline {
  font-size: 0.85rem;
  color: var(--primary);
  font-style: italic;
  margin-top: 0.5rem;
}

/* === Links Section === */
.links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
  min-height: 52px;
  opacity: 0;
  transform: translateY(16px);
}

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

.link-card:hover {
  border-color: var(--card-hover-border);
  box-shadow: 0 4px 16px var(--primary-shadow);
  transform: translateY(-1px);
}

.link-card:active {
  transform: translateY(0);
}

.link-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-color: var(--card-hover-border);
}

.link-card .icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-card .icon svg {
  width: 20px;
  height: 20px;
  fill: var(--primary);
}

/* === Social Icons === */
.social-section {
  text-align: center;
  margin-bottom: 2rem;
}

.social-label {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}

.social-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-icon:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

/* Brand colors for social icons */
.social-icon--instagram svg { fill: #E4405F; }
.social-icon--facebook svg { fill: #1877F2; }
.social-icon--linkedin svg { fill: #0A66C2; }
.social-icon--youtube svg { fill: #FF0000; }
.social-icon--spotify svg { fill: #1DB954; }

/* === Footer === */
.footer {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-border);
}

.footer-hours {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.footer-hours strong {
  color: var(--text);
}

.footer-closed {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.footer-address {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* === Responsive === */
@media (max-width: 480px) {
  .container {
    padding: 1.5rem 1rem 2.5rem;
  }

  .logo {
    width: 100px;
    height: 100px;
  }

  .clinic-name {
    font-size: 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .link-card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .social-icon {
    transition: none;
  }
}
