/* Dr-Denta - Dental Informational Website */
/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1e293b;
  background: #f8fafc;
}

/* Variables */
:root {
  --color-white: #ffffff;
  --color-teal: #0d9488;
  --color-teal-light: #14b8a6;
  --color-blue: #0ea5e9;
  --color-charcoal: #1e293b;
  --color-gray: #64748b;
  --color-bg: #f8fafc;
  --color-bg-alt: #f1f5f9;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --max-width: 1200px;
  --header-height: 72px;
}

/* Typography */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; color: var(--color-charcoal); }
h3 { font-size: 1.25rem; margin: 1.5rem 0 0.5rem; color: var(--color-teal); }
p { margin-bottom: 1rem; color: var(--color-gray); }
a { color: var(--color-teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-blue); }

/* Layout */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header {
  background: var(--color-white);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-teal);
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--color-teal); }
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.nav-links a {
  color: var(--color-charcoal);
  font-weight: 500;
}
.nav-links a:hover { color: var(--color-teal); }

/* Hero */
.hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-light) 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13, 148, 136, 0.7), rgba(13, 148, 136, 0.9));
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--color-white);
}
.hero h1 { color: var(--color-white); margin-bottom: 0.5rem; }
.hero p { color: rgba(255,255,255,0.95); font-size: 1.25rem; max-width: 600px; margin: 0 auto; }

/* Page hero (smaller) */
.page-hero {
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-light) 100%);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--color-white);
}
.page-hero h1 { color: var(--color-white); margin-bottom: 0.5rem; }
.page-hero p { color: rgba(255,255,255,0.9); }

/* Content sections */
.content-section { padding: 3rem 0; }
.content-section:nth-child(even) { background: var(--color-white); }
.content-section:nth-child(odd) { background: var(--color-bg); }
.content-section .container { max-width: 800px; margin: 0 auto; }
.content-section img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 1.5rem 0;
}
.content-section ul, .content-section ol {
  margin: 1rem 0 1rem 1.5rem;
  color: var(--color-gray);
}
.content-section li { margin-bottom: 0.5rem; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}
.card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-image {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}
.card-body { padding: 1.5rem; }
.card h3 { margin-top: 0; color: var(--color-charcoal); }
.card p { margin-bottom: 1rem; font-size: 0.95rem; }
.card a {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Image + text block */
.media-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0;
}
.media-block img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: auto;
}
.media-block.reverse { direction: rtl; }
.media-block.reverse > * { direction: ltr; }

/* Footer */
.site-footer {
  background: var(--color-charcoal);
  color: var(--color-white);
  padding: 3rem 1.5rem 2rem;
  margin-top: 3rem;
}
.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-column {
  text-align: center;
}
.footer-column h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: var(--color-teal-light);
}
.footer-column p { margin-bottom: 0.5rem; color: rgba(255,255,255,0.85); }
.footer-column a { color: rgba(255,255,255,0.9); }
.footer-column a:hover { color: var(--color-teal-light); }
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.contact-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--color-teal);
}
.contact-card h3 { margin-top: 0; color: var(--color-teal); }

/* Disclaimer */
.disclaimer {
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-teal);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.9rem;
  color: var(--color-gray);
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; height: auto; padding: 1rem; gap: 1rem; }
  .nav-links { flex-direction: column; gap: 0.5rem; text-align: center; }
  .hero { min-height: 320px; }
  .media-block {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .media-block.reverse { direction: ltr; }
  .footer-container { grid-template-columns: 1fr; text-align: center; }
}
