/**
 * Shared styles for Brown Street Dental service pages
 * Used by: dental-fillings, crowns-and-bridge, dental-implant, general-dental-checkup
 */
:root {
  --color-primary: #1a5f4a;
  --color-primary-light: #2d8f6f;
  --color-primary-dark: #0f3d30;
  --color-accent: #c9e6d9;
  --color-text: #2c3e2e;
  --color-text-muted: #5a6b5c;
  --color-bg: #f5f9f7;
  --color-bg-alt: #fff;
  --color-white: #fff;
  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  --shadow-sm: 0 2px 8px rgba(26, 95, 74, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 95, 74, 0.1);
  --radius: 12px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.65;
  background: var(--color-bg);
}

.container { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }

/* Top bar */
.top-bar {
  background: var(--color-white);
  border-bottom: 1px solid rgba(26, 95, 74, 0.1);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar .brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.top-bar .back-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.top-bar .back-link:hover {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  padding: 3rem 0 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero .container { position: relative; z-index: 1; }

.hero .service-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.hero .tagline {
  margin: 1rem auto 0;
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 520px;
  line-height: 1.5;
}

main { padding: 0 0 3rem; }

/* Content sections */
.content-section {
  padding: 2.5rem 0;
}

.content-section.alt { background: var(--color-bg-alt); }

.section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 400;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

.section-head .sub {
  margin-top: 0.5rem;
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

.intro-block {
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.intro-block p { margin: 0 0 1rem; }
.intro-block p:last-child { margin-bottom: 0; }

/* Process steps – single column, card layout with timeline feel */
.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}

.process-step {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.5rem 4rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(26, 95, 74, 0.08);
  border-left: 4px solid var(--color-primary-light);
  position: relative;
  transition: box-shadow 0.2s ease, border-left-color 0.2s ease;
}

.process-step:hover {
  box-shadow: var(--shadow-md);
  border-left-color: var(--color-primary);
}

.process-step .step-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.process-step .step-num {
  position: absolute;
  left: 1rem;
  top: 1.5rem;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(26, 95, 74, 0.25);
}

.process-step h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

.process-step > p {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--color-text);
  font-weight: 600;
}

.process-step ul {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.process-step ul li {
  margin-bottom: 0.35rem;
}

.process-step ul li::marker {
  color: var(--color-primary-light);
}

/* Images */
.img-wrap {
  margin: 2rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.img-wrap figcaption {
  padding: 0.85rem 1.25rem;
  background: var(--color-white);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-primary-light);
}

.benefit-item .icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--color-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
}

.benefit-item span { font-size: 0.95rem; color: var(--color-text); line-height: 1.5; }

/* FAQ */
.faq-list { list-style: none; padding: 0; margin: 0; }

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid rgba(26, 95, 74, 0.08);
}

.faq-q {
  padding: 1.1rem 1.35rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.faq-q::before {
  content: 'Q';
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary-light);
  background: var(--color-accent);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-a {
  padding: 0 1.35rem 1.1rem;
  color: var(--color-text);
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 0.98rem;
  line-height: 1.6;
}

.faq-a::before { content: 'A: '; font-weight: 600; color: var(--color-primary); }

/* CTA */
.cta {
  text-align: center;
  margin-top: 2rem;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.cta p { margin: 0; font-size: 1.05rem; }

.cta .cta-links {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.cta .btn {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 8px;
  transition: opacity 0.2s, transform 0.15s;
}

.cta .btn-primary {
  background: var(--color-white);
  color: var(--color-primary);
}

.cta .btn-primary:hover { opacity: 0.95; transform: translateY(-1px); }

.cta .btn-ghost {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.7);
}

.cta .btn-ghost:hover { background: rgba(255,255,255,0.15); border-color: var(--color-white); }

.cta a:not(.btn) {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
}

footer {
  text-align: center;
  padding: 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* Services landing page – service cards grid (two columns) */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(26, 95, 74, 0.08);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.service-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}

.service-card h2 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0 0 0.75rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.service-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  flex: 1;
}

.service-card .card-link {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--color-primary-light);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.service-card .card-link::after {
  content: '→';
  transition: transform 0.2s ease;
}

.service-card:hover .card-link::after {
  transform: translateX(3px);
}

/* Services landing page – section head for intro */
.section-head .page-intro {
  text-align: center;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0.75rem auto 2rem;
  line-height: 1.6;
}
