/* Mjøskirurgene - Medical Website Styles */

/* CSS Variables - Design System */
:root {
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(215, 25%, 27%);
  
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(215, 25%, 27%);
  
  --primary: hsl(212, 92%, 45%);
  --primary-foreground: hsl(0, 0%, 100%);
  
  --secondary: hsl(210, 100%, 97%);
  --secondary-foreground: hsl(215, 25%, 27%);
  
  --muted: hsl(210, 40%, 96%);
  --muted-foreground: hsl(215, 16%, 47%);
  
  --accent: hsl(195, 85%, 41%);
  --accent-foreground: hsl(0, 0%, 100%);
  
  --border: hsl(214, 32%, 91%);
  
  --medical-blue: hsl(212, 92%, 45%);
  --medical-blue-light: hsl(210, 100%, 97%);
  --medical-accent: hsl(195, 85%, 41%);
  --warm-accent: hsl(24, 95%, 53%);
  
  --shadow-soft: 0 2px 8px hsla(212, 92%, 45%, 0.08);
  --shadow-medium: 0 4px 16px hsla(212, 92%, 45%, 0.12);
  --shadow-large: 0 8px 32px hsla(212, 92%, 45%, 0.16);
  
  --radius: 0.75rem;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--foreground);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 3rem; }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

.nav-logo {
  height: 5rem;
  width: auto;
}

.nav-links {
  display: none;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--foreground);
  transition: var(--transition-smooth);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--primary);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

/* Mobile Menu */
.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
  stroke: var(--foreground);
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  display: block;
  padding: 0.5rem 0;
  color: var(--foreground);
  transition: var(--transition-smooth);
}

.mobile-menu a:hover {
  color: var(--primary);
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.95), rgba(255,255,255,0.85), rgba(255,255,255,0.70));
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 42rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
  animation: fadeIn 0.6s ease-out;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--foreground);
  opacity: 0.9;
  animation: fadeIn 0.6s ease-out 0.1s both;
}

.hero-description {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: var(--muted-foreground);
  max-width: 36rem;
  animation: fadeIn 0.6s ease-out 0.2s both;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background: hsl(212, 92%, 40%);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background: var(--secondary);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--foreground);
}

.btn-ghost:hover {
  background: var(--secondary);
}

.btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Services Section */
.services {
  padding: 5rem 0;
  background: rgba(210, 230, 255, 0.3);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition-smooth);
}

.card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-4px);
}

.card-clickable {
  cursor: pointer;
}

.card-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.5rem;
  background: rgba(14, 107, 205, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  stroke: var(--primary);
}

.card h3 {
  margin-bottom: 0.75rem;
  color: var(--card-foreground);
}

.card p {
  color: var(--muted-foreground);
}

/* About Section */
.about {
  padding: 5rem 0;
}

.about-content {
  max-width: 56rem;
  margin: 0 auto;
}

.about-intro {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
}

.stat-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(14, 107, 205, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.stat-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: var(--primary);
}

.stat-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stat-card p {
  color: var(--muted-foreground);
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background: rgba(210, 230, 255, 0.3);
}

.contact-content {
  max-width: 64rem;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-card {
  padding: 2rem;
}

.contact-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(14, 107, 205, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: var(--primary);
}

.contact-item h4 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.contact-item p {
  color: var(--muted-foreground);
}

.contact-item a {
  color: var(--primary);
  transition: var(--transition-smooth);
}

.contact-item a:hover {
  text-decoration: underline;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.hours-row span:first-child {
  color: var(--card-foreground);
}

.hours-row span:last-child {
  color: var(--muted-foreground);
}

/* Alert Card */
.alert-card {
  background: rgb(255, 251, 235);
  border: 1px solid rgb(253, 230, 138);
  padding: 1.5rem;
  display: flex;
  gap: 0.75rem;
}

.alert-card svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: rgb(217, 119, 6);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.alert-card h4 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: rgb(120, 53, 15);
}

.alert-card p {
  font-size: 0.875rem;
  color: rgb(146, 64, 14);
}

/* Footer */
.footer {
  background: var(--foreground);
  color: var(--background);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: var(--background);
}

.footer-logo span {
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-section h3 {
  color: var(--background);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* Page Header (for sub-pages) */
.page-header {
  padding-top: 8rem;
  padding-bottom: 4rem;
  background: linear-gradient(to bottom, var(--secondary), var(--background));
}

.page-header .container {
  max-width: 56rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--foreground);
  transition: var(--transition-smooth);
}

.back-link:hover {
  color: var(--primary);
}

.back-link svg {
  width: 1rem;
  height: 1rem;
}

.page-header h1 {
  margin-bottom: 1.5rem;
}

.page-header p {
  font-size: 1.25rem;
  color: var(--muted-foreground);
}

/* Content Section */
.content-section {
  padding: 4rem 0;
}

.content-section .container {
  max-width: 56rem;
}

.content-block {
  margin-bottom: 3rem;
}

.content-block:last-child {
  margin-bottom: 0;
}

.content-block h2 {
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
}

.content-block p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

/* Symptoms List */
.symptoms-list {
  list-style: none;
}

.symptoms-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  color: var(--muted-foreground);
}

.symptoms-list svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.75rem;
  margin-top: 0.25rem;
  stroke: var(--primary);
  flex-shrink: 0;
}

/* Treatment Grid */
.treatment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .treatment-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.treatment-card {
  padding: 1.5rem;
}

.treatment-card svg {
  width: 2.5rem;
  height: 2.5rem;
  stroke: var(--primary);
  margin-bottom: 1rem;
}

.treatment-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* Highlight Box */
.highlight-box {
  background: linear-gradient(135deg, var(--secondary), rgba(255, 237, 213, 0.3));
  border-radius: 1rem;
  padding: 2rem;
  margin-top: 3rem;
}

.highlight-box h2 {
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
}

.highlight-box p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

/* Doctor Cards */
.doctor-card {
  padding: 2rem;
  margin-bottom: 2rem;
}

.doctor-card:last-child {
  margin-bottom: 0;
}

.doctor-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .doctor-content {
    flex-direction: row;
  }
}

.doctor-image {
  width: 12rem;
  height: 12rem;
  object-fit: cover;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.doctor-info h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.doctor-title {
  font-size: 1.125rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.doctor-details {
  list-style: none;
}

.doctor-details li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  color: var(--muted-foreground);
}

.doctor-details li span:first-child {
  margin-right: 0.5rem;
}

/* Experience Section */
.experience-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.experience-item:last-child {
  margin-bottom: 0;
}

.experience-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: rgba(14, 107, 205, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.experience-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: var(--primary);
}

.experience-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.experience-item p {
  color: var(--muted-foreground);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }

