/* Design tokens extracted from the live site (CORE Endodontics theme by
   Andrew Lovseth, v1.1). Colors and typography mirror the production site
   for visual continuity; layout components are fresh in this Astro project. */

:root {
  --color-bg: #fcfcfc;
  --color-surface-alt: #f4f4f2;
  --color-fg: #353a3e;
  --color-fg-muted: #5a6273;
  --color-primary: #84a7a3;       /* sage/teal — brand primary */
  --color-primary-soft: #c5d6ce;  /* pale sage — surfaces, hover */
  --color-accent: #e9be3a;        /* warm gold accent */
  --color-fg-on-primary: #ffffff;
  --color-border: #e1e4e3;
  --color-footer-bg: #353a3e;

  --font-display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(53, 58, 62, 0.06), 0 1px 1px rgba(53, 58, 62, 0.04);
  --max-width: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-fg);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--color-fg);
}
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.125rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

a { color: var(--color-primary); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--color-fg); }

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

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: 1rem; top: 1rem;
  background: var(--color-fg);
  color: var(--color-bg);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  z-index: 1000;
}

/* ----- header ----- */

.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky; top: 0; z-index: 50;
}
.site-header__bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.site-header__brand img { height: 48px; width: auto; }

.site-header__nav { flex: 1; }
.site-header__nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0; padding: 0;
  flex-wrap: wrap;
}
.site-header__nav a {
  color: var(--color-fg);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.site-header__nav a:hover { color: var(--color-primary); }

.site-header__utility {
  display: flex; gap: 1rem; align-items: center;
}
.site-header__phone {
  color: var(--color-fg);
  font-weight: 500;
  font-size: 0.95rem;
}
.site-header__cta {
  background: var(--color-primary);
  color: var(--color-fg-on-primary);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.site-header__cta:hover { background: var(--color-fg); color: var(--color-fg-on-primary); }

/* ----- hero / shared layout ----- */

main { display: block; }

.section { padding: 4rem 1.5rem; }
.section--alt { background: var(--color-surface-alt); }
.section__inner { max-width: var(--max-width); margin: 0 auto; }

.hero {
  padding: 5rem 1.5rem;
  background: var(--color-primary-soft);
  color: var(--color-fg);
}
.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}
.hero__title { margin: 0 0 1rem; }
.hero__subtitle {
  font-size: 1.15rem;
  color: var(--color-fg);
  margin: 0 0 1.75rem;
  max-width: 38rem;
}
.hero__media {
  background: var(--color-bg);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero__media--placeholder {
  display: grid; place-items: center;
  color: var(--color-fg-muted);
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .hero__inner { grid-template-columns: 1fr; }
}

.placeholder-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.feature-grid img.icon { width: 56px; height: 56px; margin-bottom: 1rem; }

.button-cta {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-fg-on-primary);
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.9rem;
}
.button-cta:hover { background: var(--color-fg); color: var(--color-fg-on-primary); }

.button-cta--secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.button-cta--secondary:hover {
  background: var(--color-primary);
  color: var(--color-fg-on-primary);
}

/* ----- footer ----- */

.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-bg);
  padding: 3.5rem 1.5rem 1.5rem;
}
.site-footer a { color: var(--color-bg); }
.site-footer a:hover { color: var(--color-primary-soft); }
.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  align-items: start;
}
.site-footer__brand img { height: 48px; width: auto; margin-bottom: 0.75rem; }
.site-footer__heading {
  font-size: 1rem;
  margin: 0 0 0.75rem;
  font-weight: 600;
  color: var(--color-bg);
}
.site-footer__col ul { list-style: none; padding: 0; margin: 0; }
.site-footer__col li { margin: 0.4rem 0; }
.site-footer__legal {
  max-width: var(--max-width);
  margin: 2.5rem auto 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  opacity: 0.75;
}
