/* ============================================================
   Dr. Shahid Islam Dental Clinic — Homepage Redesign (2026-10-12)
   Mobile-first. Base styles target phones (~360px).
   Desktop enhancements via min-width media queries.
   Class prefix: rd- (avoids clashes with legacy stylesheets)
   ============================================================ */

/* ---------- Design tokens ---------- */
.rd-root {
  --rd-ink: #102a33;
  --rd-muted: #5c6f77;
  --rd-teal: #0e7d7c;
  --rd-teal-deep: #0a5e5d;
  --rd-teal-tint: #eaf5f4;
  --rd-coral: #e0703c;
  --rd-coral-deep: #c85a28;
  --rd-gold: #d9a441;
  --rd-white: #ffffff;
  --rd-line: #e3eceb;
  --rd-radius: 20px;
  --rd-radius-sm: 14px;
  --rd-shadow: 0 10px 30px rgba(16, 42, 51, 0.08);
  --rd-shadow-lg: 0 24px 60px rgba(16, 42, 51, 0.14);
  --rd-font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --rd-font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */
.rd-root *,
.rd-root *::before,
.rd-root *::after { box-sizing: border-box; }

.rd-root body {
  margin: 0;
  font-family: var(--rd-font-sans);
  color: var(--rd-ink);
  background: var(--rd-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.rd-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.rd-section { padding: 3.5rem 0; }

.rd-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rd-teal);
  margin-bottom: 0.75rem;
}

.rd-h2 {
  font-family: var(--rd-font-serif);
  font-weight: 600;
  font-size: 1.9rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  color: var(--rd-ink);
}

.rd-lead {
  color: var(--rd-muted);
  font-size: 1.02rem;
  margin: 0 0 2rem;
  max-width: 42rem;
}

.rd-center { text-align: center; }
.rd-center .rd-lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.rd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  line-height: 1.2;
}

.rd-btn:active { transform: scale(0.98); }

.rd-btn-coral {
  background: var(--rd-coral);
  color: #fff;
  box-shadow: 0 12px 26px rgba(224, 112, 60, 0.35);
}
.rd-btn-coral:hover { background: var(--rd-coral-deep); }

.rd-btn-teal {
  background: var(--rd-teal);
  color: #fff;
  box-shadow: 0 12px 26px rgba(14, 125, 124, 0.3);
}
.rd-btn-teal:hover { background: var(--rd-teal-deep); }

.rd-btn-ghost {
  background: transparent;
  color: var(--rd-teal-deep);
  border-color: var(--rd-teal);
}
.rd-btn-ghost:hover { background: var(--rd-teal-tint); }

.rd-btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}
.rd-btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); }

.rd-btn svg { flex: none; }

/* ---------- Header ---------- */
.rd-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rd-line);
}

.rd-hours {
  background: var(--rd-teal-deep);
  color: #fff;
  font-size: 0.78rem;
  text-align: center;
  padding: 0.45rem 1rem;
  letter-spacing: 0.02em;
}

.rd-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.rd-logo {
  font-family: var(--rd-font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--rd-ink);
  text-decoration: none;
  line-height: 1.25;
}
.rd-logo small {
  display: block;
  font-family: var(--rd-font-sans);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rd-teal);
}

.rd-call {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--rd-teal);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

.rd-burger {
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.rd-burger span {
  display: block;
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--rd-ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.rd-nav-desktop { display: none; }

/* Slide-in mobile nav */
.rd-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(86vw, 340px);
  background: #fff;
  z-index: 80;
  transform: translateX(105%);
  transition: transform 0.28s ease;
  box-shadow: var(--rd-shadow-lg);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem 2rem;
}
.rd-drawer.open { transform: translateX(0); }

.rd-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.rd-close {
  background: var(--rd-teal-tint);
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--rd-ink);
}

.rd-drawer nav a {
  display: block;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--rd-line);
  color: var(--rd-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.02rem;
}
.rd-drawer nav a:last-child { border-bottom: 0; }

.rd-scrim {
  position: fixed;
  inset: 0;
  background: rgba(16, 42, 51, 0.45);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.rd-scrim.open { opacity: 1; pointer-events: auto; }

/* ---------- Hero ---------- */
.rd-hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--rd-teal-tint) 0%, transparent 60%),
    var(--rd-white);
  padding: 2.5rem 0 3rem;
  overflow: hidden;
}

.rd-hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.rd-hero h1 {
  font-family: var(--rd-font-serif);
  font-weight: 600;
  font-size: 2.5rem;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.6rem;
  color: var(--rd-ink);
}

.rd-hero-sub {
  font-family: var(--rd-font-serif);
  font-size: 1.15rem;
  color: var(--rd-teal-deep);
  margin: 0 0 1rem;
  font-weight: 500;
}

.rd-hero p.rd-hero-copy {
  color: var(--rd-muted);
  font-size: 1.02rem;
  margin: 0 0 1.75rem;
  max-width: 34rem;
}

.rd-hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.75rem;
}
.rd-hero-ctas .rd-btn { width: 100%; }

.rd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.rd-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #fff;
  border: 1px solid var(--rd-line);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rd-ink);
  box-shadow: 0 4px 14px rgba(16, 42, 51, 0.06);
}
.rd-chip .rd-stars { color: var(--rd-gold); letter-spacing: 0.08em; }

.rd-hero-media { position: relative; }
.rd-hero-media img {
  border-radius: 24px;
  box-shadow: var(--rd-shadow-lg);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.rd-hero-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--rd-radius-sm);
  padding: 0.7rem 1rem;
  box-shadow: var(--rd-shadow);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--rd-ink);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.rd-hero-badge .rd-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2fa36b;
  box-shadow: 0 0 0 4px rgba(47, 163, 107, 0.18);
  flex: none;
}

/* ---------- Trust bar ---------- */
.rd-trust {
  background: var(--rd-teal-deep);
  color: #fff;
  padding: 2rem 0;
}
.rd-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1rem;
  text-align: center;
}
.rd-trust-num {
  font-family: var(--rd-font-serif);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.1;
}
.rd-trust-label {
  font-size: 0.82rem;
  opacity: 0.85;
  margin-top: 0.25rem;
}

/* ---------- Services ---------- */
.rd-services { background: var(--rd-white); }

.rd-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.rd-card {
  background: #fff;
  border: 1px solid var(--rd-line);
  border-radius: var(--rd-radius);
  padding: 1.5rem;
  box-shadow: 0 6px 20px rgba(16, 42, 51, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.rd-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rd-shadow);
}

.rd-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--rd-teal-tint);
  color: var(--rd-teal-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.rd-card-icon svg { width: 26px; height: 26px; }

.rd-card h3 {
  font-family: var(--rd-font-serif);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
}
.rd-card p {
  color: var(--rd-muted);
  font-size: 0.95rem;
  margin: 0 0 1rem;
  flex: 1;
}
.rd-card a.rd-more {
  color: var(--rd-teal-deep);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
}
.rd-card a.rd-more:hover { text-decoration: underline; }

/* ---------- About ---------- */
.rd-about { background: var(--rd-teal-tint); }

.rd-about-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.rd-about-photo { position: relative; }
.rd-about-photo img {
  border-radius: 24px;
  box-shadow: var(--rd-shadow-lg);
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
}
.rd-about-exp {
  position: absolute;
  right: 0.5rem;
  bottom: 1.25rem;
  background: #fff;
  border-radius: var(--rd-radius-sm);
  box-shadow: var(--rd-shadow);
  padding: 0.8rem 1.1rem;
  text-align: center;
}
.rd-about-exp strong {
  display: block;
  font-family: var(--rd-font-serif);
  font-size: 1.4rem;
  color: var(--rd-teal-deep);
}
.rd-about-exp span { font-size: 0.78rem; color: var(--rd-muted); font-weight: 600; }

.rd-about-copy p { color: var(--rd-muted); margin: 0 0 1.1rem; }
.rd-about-copy p strong { color: var(--rd-ink); }

.rd-creds {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.rd-creds li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.95rem;
  font-weight: 500;
}
.rd-creds .rd-tick {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--rd-teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 0.15rem;
}

/* ---------- Tourism banner ---------- */
.rd-tourism {
  background: linear-gradient(135deg, var(--rd-teal-deep) 0%, var(--rd-teal) 70%);
  color: #fff;
  border-radius: 28px;
  margin: 0 1.25rem;
  padding: 2.75rem 1.5rem;
  text-align: center;
  box-shadow: var(--rd-shadow-lg);
  position: relative;
  overflow: hidden;
}
.rd-tourism::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  top: -140px;
  right: -100px;
}
.rd-tourism h2 {
  font-family: var(--rd-font-serif);
  font-size: 1.8rem;
  margin: 0 0 0.8rem;
  position: relative;
}
.rd-tourism p {
  opacity: 0.92;
  max-width: 44rem;
  margin: 0 auto 1.75rem;
  position: relative;
}
.rd-tourism-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
}
.rd-tourism-ctas .rd-btn { width: 100%; }

/* ---------- Testimonials ---------- */
.rd-testimonials { background: var(--rd-white); }

.rd-t-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.rd-t-card {
  background: var(--rd-teal-tint);
  border-radius: var(--rd-radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.rd-t-stars { color: var(--rd-gold); letter-spacing: 0.12em; font-size: 1.05rem; }
.rd-t-card blockquote {
  margin: 0;
  font-style: italic;
  color: var(--rd-ink);
  font-size: 1rem;
  flex: 1;
}
.rd-t-who { display: flex; align-items: center; gap: 0.8rem; }
.rd-t-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--rd-teal);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.rd-t-who strong { display: block; font-size: 0.92rem; }
.rd-t-who small { color: var(--rd-muted); font-size: 0.8rem; }
.rd-t-who small a { color: var(--rd-teal-deep); }

/* ---------- Blog ---------- */
.rd-blog { background: var(--rd-teal-tint); }

.rd-b-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.rd-b-card {
  background: #fff;
  border-radius: var(--rd-radius);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(16, 42, 51, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rd-b-card:hover { transform: translateY(-4px); box-shadow: var(--rd-shadow); }
.rd-b-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.rd-b-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rd-coral-deep);
  margin-bottom: 0.6rem;
}
.rd-b-card h3 {
  font-family: var(--rd-font-serif);
  font-size: 1.2rem;
  margin: 0 0 0.6rem;
  font-weight: 600;
  line-height: 1.3;
}
.rd-b-card h3 a { color: var(--rd-ink); text-decoration: none; }
.rd-b-card h3 a:hover { color: var(--rd-teal-deep); }
.rd-b-card p { color: var(--rd-muted); font-size: 0.93rem; margin: 0 0 1rem; flex: 1; }
.rd-b-card .rd-more { color: var(--rd-teal-deep); font-weight: 700; text-decoration: none; font-size: 0.93rem; }

/* ---------- FAQ ---------- */
.rd-faq { background: var(--rd-white); max-width: 800px; }

.rd-faq-item {
  border: 1px solid var(--rd-line);
  border-radius: var(--rd-radius-sm);
  margin-bottom: 0.8rem;
  background: #fff;
  overflow: hidden;
}
.rd-faq-q {
  width: 100%;
  background: none;
  border: 0;
  padding: 1.1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  font-family: var(--rd-font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--rd-ink);
  text-align: left;
}
.rd-faq-q svg {
  flex: none;
  transition: transform 0.22s ease;
  color: var(--rd-teal-deep);
}
.rd-faq-item.open .rd-faq-q svg { transform: rotate(180deg); }
.rd-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}
.rd-faq-a p {
  padding: 0 1.25rem 1.25rem;
  margin: 0;
  color: var(--rd-muted);
  font-size: 0.96rem;
}

/* ---------- Final CTA ---------- */
.rd-final {
  background: linear-gradient(160deg, var(--rd-teal-deep), #0d4a49);
  color: #fff;
  text-align: center;
  border-radius: 28px;
  margin: 0 1.25rem 3.5rem;
  padding: 3rem 1.5rem;
  box-shadow: var(--rd-shadow-lg);
}
.rd-final h2 {
  font-family: var(--rd-font-serif);
  font-size: 2rem;
  margin: 0 0 0.8rem;
}
.rd-final p { opacity: 0.9; max-width: 38rem; margin: 0 auto 1.75rem; }
.rd-final-ctas { display: flex; flex-direction: column; gap: 0.8rem; }
.rd-final-ctas .rd-btn { width: 100%; }

/* ---------- Contact + footer ---------- */
.rd-contact { background: var(--rd-white); padding-bottom: 3rem; }
.rd-contact-card {
  background: #fff;
  border: 1px solid var(--rd-line);
  border-top: 4px solid var(--rd-teal);
  border-radius: var(--rd-radius);
  box-shadow: var(--rd-shadow);
  padding: 1.75rem;
  max-width: 640px;
  margin: 0 auto;
}
.rd-contact-card h3 {
  font-family: var(--rd-font-serif);
  text-align: center;
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
}
.rd-contact-rows { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1rem; }
.rd-contact-rows li { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.95rem; }
.rd-contact-rows strong { min-width: 74px; color: var(--rd-ink); }
.rd-contact-rows a { color: var(--rd-teal-deep); font-weight: 600; text-decoration: none; }

.rd-footer {
  background: #0b2229;
  color: #c8d6da;
  padding: 3rem 0 1.5rem;
  font-size: 0.92rem;
}
.rd-footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}
.rd-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 1rem;
  font-weight: 700;
}
.rd-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.rd-footer a { color: #c8d6da; text-decoration: none; }
.rd-footer a:hover { color: #fff; text-decoration: underline; }
.rd-footer-brand {
  font-family: var(--rd-font-serif);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.rd-social { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.rd-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.rd-map {
  border-radius: var(--rd-radius-sm);
  overflow: hidden;
  height: 190px;
}
.rd-map iframe { width: 100%; height: 100%; border: 0; }
.rd-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.82rem;
  color: #8fa3aa;
}
.rd-footer-bottom a { color: #8fa3aa; }

/* ---------- Scroll reveal ---------- */
.rd-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.rd-reveal.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rd-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Tablet (≥768px) ---------- */
@media (min-width: 768px) {
  .rd-section { padding: 4.5rem 0; }
  .rd-h2 { font-size: 2.4rem; }

  .rd-hero { padding: 4rem 0 4.5rem; }
  .rd-hero h1 { font-size: 3.4rem; }
  .rd-hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; }
  .rd-hero-ctas { flex-direction: row; }
  .rd-hero-ctas .rd-btn { width: auto; }

  .rd-trust-grid { grid-template-columns: repeat(4, 1fr); }

  .rd-cards { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

  .rd-about-grid { grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; }

  .rd-tourism { margin: 0 auto; max-width: 1160px; padding: 3.5rem 3rem; }
  .rd-tourism h2 { font-size: 2.2rem; }
  .rd-tourism-ctas { flex-direction: row; justify-content: center; }
  .rd-tourism-ctas .rd-btn { width: auto; }

  .rd-t-grid { grid-template-columns: repeat(3, 1fr); }
  .rd-b-grid { grid-template-columns: repeat(3, 1fr); }

  .rd-final { margin: 0 auto 4.5rem; max-width: 1160px; padding: 4rem 3rem; }
  .rd-final h2 { font-size: 2.5rem; }
  .rd-final-ctas { flex-direction: row; justify-content: center; }
  .rd-final-ctas .rd-btn { width: auto; }

  .rd-footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; }

  .rd-burger { display: none; }
  .rd-nav-desktop { display: flex; align-items: center; gap: 1.4rem; }
  .rd-nav-desktop a {
    color: var(--rd-ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
  }
  .rd-nav-desktop a:hover { color: var(--rd-teal-deep); }
  .rd-drawer, .rd-scrim { display: none; }
}

/* ---------- Desktop (≥1100px) ---------- */
@media (min-width: 1100px) {
  .rd-hero h1 { font-size: 3.9rem; }
  .rd-cards { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   LEGACY BRIDGE — applies the new design system to all
   pre-redesign pages (services, blog, landing, team, etc.).
   Targets legacy class names. Loads after legacy stylesheets,
   so these rules win. Mobile-first.
   ============================================================ */

/* ---------- Token remap: legacy vars -> new palette ---------- */
:root {
  --primary-color: #0e7d7c;
  --primary-hover: #0a5e5d;
  --secondary-color: #0e7d7c;
  --secondary-hover: #0a5e5d;
  --accent-color: #e0703c;
  --accent-hover: #c85a28;
  --text-dark: #102a33;
  --text-gray: #5c6f77;
  --bg-gray: #edf4f3;
  --bg-dark: #0a2b2a;
  --border-color: #e3eceb;
  --shadow-sm: 0 4px 14px rgba(16, 42, 51, 0.06);
  --shadow-md: 0 10px 30px rgba(16, 42, 51, 0.08);
  --border-radius-md: 16px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #102a33;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
h1, h2 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #102a33;
}
h3, h4 { color: #102a33; line-height: 1.35; }
::selection { background: #0e7d7c; color: #fff; }
a { color: #0e7d7c; }
.text-primary { color: #0e7d7c !important; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e3eceb;
  box-shadow: 0 4px 18px rgba(16, 42, 51, 0.05);
}
.header-top {
  background: #eaf5f4;
  font-size: 0.8rem;
  color: #5c6f77;
  padding: 0.45rem 0;
  border-bottom: 1px solid #e3eceb;
}
.header-top a { color: #0a5e5d; font-weight: 600; text-decoration: none; }
.header-main { padding: 0.65rem 0; }
.header-main .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo-text strong {
  font-family: "Fraunces", Georgia, serif;
  color: #0a5e5d;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.logo-text span { color: #5c6f77; font-size: 0.8rem; }
.nav-link { color: #102a33; font-weight: 600; }
.nav-link:hover { color: #0e7d7c; }
.mobile-menu-btn { color: #0a5e5d; }
.nav-dropdown .dropdown-content {
  border-radius: 16px;
  border: 1px solid #e3eceb;
  box-shadow: 0 24px 60px rgba(16, 42, 51, 0.14);
  padding: 1.25rem;
}
.nav-dropdown .dropdown-content a { border-radius: 8px; }
.nav-dropdown .dropdown-content a:hover { background: #eaf5f4; }
@media (max-width: 768px) {
  .nav-menu {
    background: #ffffff;
    border-radius: 0 0 20px 20px;
    border: 1px solid #e3eceb;
    border-top: none;
    box-shadow: 0 24px 60px rgba(16, 42, 51, 0.14);
    padding: 1.25rem 1.5rem 1.75rem;
    gap: 1.05rem;
  }
  .nav-menu .nav-link { font-size: 1.05rem; }
  .nav-menu .btn { width: 100%; }
}

/* ---------- Buttons ---------- */
.btn {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: #e0703c;
  border-color: #e0703c;
  color: #fff;
  box-shadow: 0 12px 26px rgba(224, 112, 60, 0.35);
}
.btn-primary:hover {
  background: #c85a28;
  border-color: #c85a28;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(224, 112, 60, 0.4);
}
.btn-secondary {
  background: #0e7d7c;
  border-color: #0e7d7c;
  color: #fff;
  box-shadow: 0 12px 26px rgba(14, 125, 124, 0.3);
}
.btn-secondary:hover {
  background: #0a5e5d;
  border-color: #0a5e5d;
  color: #fff;
  transform: translateY(-2px);
}
.btn-whatsapp {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
  box-shadow: 0 12px 26px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover { background: #1eb856; border-color: #1eb856; color: #fff; transform: translateY(-2px); }
.btn-link { color: #0e7d7c; font-weight: 700; text-decoration: none; }
.btn-link:hover { color: #0a5e5d; }

/* ---------- Heroes ---------- */
.hero { background: #eaf5f4; }
.hero-with-bg { border-radius: 0 0 28px 28px; }
.hero-with-bg::before {
  background: linear-gradient(135deg, rgba(8, 70, 69, 0.94) 0%, rgba(14, 125, 124, 0.85) 55%, rgba(14, 125, 124, 0.68) 100%);
  border-radius: 0 0 28px 28px;
}
.hero-with-bg h1 { font-family: "Fraunces", Georgia, serif; letter-spacing: -0.015em; }
.hero-with-bg .hero-actions .btn { margin: 0.35rem; }
@media (max-width: 767px) {
  .hero-with-bg { padding: 3rem 0 !important; }
  .hero-actions .btn { width: 100%; margin: 0.3rem 0; }
}
nav[aria-label="Breadcrumb"] { background: #eaf5f4 !important; border-bottom: 1px solid #e3eceb !important; }

/* ---------- Sections ---------- */
.py-lg { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.py-md { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.bg-light { background: #ffffff; }
.bg-gray { background: #edf4f3; }

/* ---------- Feature lists -> cards ---------- */
.feature-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 0.9rem; }
.feature-list li {
  background: #ffffff;
  border: 1px solid #e3eceb;
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: 0 4px 14px rgba(16, 42, 51, 0.05);
}
.feature-list .icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eaf5f4;
  border-radius: 14px;
}
.feature-list strong { color: #102a33; display: block; margin-bottom: 0.15rem; }
.feature-list p { color: #5c6f77; margin: 0; }

/* ---------- FAQ accordion ---------- */
.faq-container { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: #ffffff;
  border: 1px solid #e3eceb;
  border-radius: 14px;
  margin-bottom: 0.8rem;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(16, 42, 51, 0.05);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #102a33;
  cursor: pointer;
  text-align: left;
}
.faq-question.active { color: #0a5e5d; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.32s ease; }
.faq-answer p { padding: 0 1.25rem 1.25rem; margin: 0; color: #5c6f77; }
.faq-icon { color: #0e7d7c; flex-shrink: 0; transition: transform 0.3s ease; }
.faq-question.active .faq-icon { transform: rotate(180deg); }

/* ---------- Footer ---------- */
.footer { background: #0a2b2a; color: #c8d8d6; }
.footer-top { padding: 3.5rem 0 2rem; }
.footer-col a { color: #c8d8d6; text-decoration: none; }
.footer-col a:hover { color: #ffffff; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.25rem 0;
  font-size: 0.85rem;
  color: #9db8b5;
}
.footer-bottom a { color: #c8d8d6; }

/* ---------- Blog ---------- */
.blog-hero {
  background: linear-gradient(135deg, #0a5e5d 0%, #0e7d7c 70%, #12928f 100%);
  color: #fff;
  padding: 3.5rem 0;
  border-radius: 0 0 28px 28px;
}
.blog-hero h1 { color: #fff; font-family: "Fraunces", Georgia, serif; letter-spacing: -0.015em; }
.blog-hero p, .blog-hero .text-gray, .blog-hero .text-muted { color: rgba(255, 255, 255, 0.85) !important; }
.blog-hero a { color: #fff; }
.blog-card {
  background: #ffffff;
  border: 1px solid #e3eceb;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(16, 42, 51, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(16, 42, 51, 0.12); }
.blog-card-img { overflow: hidden; }
.blog-card-img img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.blog-card-content { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.blog-card-category {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0a5e5d;
  background: #eaf5f4;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}
.blog-card-title { font-family: "Fraunces", Georgia, serif; font-size: 1.25rem; line-height: 1.35; margin: 0; }
.blog-card-title a { color: #102a33; text-decoration: none; }
.blog-card-title a:hover { color: #0e7d7c; }
.blog-card-excerpt { color: #5c6f77; font-size: 0.95rem; margin: 0; flex: 1; }
.read-more { color: #e0703c; font-weight: 700; text-decoration: none; }
.read-more:hover { color: #c85a28; }
.blog-content h2, .blog-content h3 { font-family: "Fraunces", Georgia, serif; }
.blog-content blockquote {
  border-left: 4px solid #0e7d7c;
  background: #eaf5f4;
  border-radius: 0 14px 14px 0;
  padding: 1.1rem 1.4rem;
  margin: 1.75rem 0;
  color: #0a2b2a;
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1.1rem; }
.form-group label { font-weight: 600; color: #102a33; margin-bottom: 0.4rem; display: block; font-size: 0.95rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1.5px solid #d7e3e1;
  border-radius: 12px;
  font-size: 16px;
  font-family: "Inter", system-ui, sans-serif;
  background: #fff;
  color: #102a33;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0e7d7c;
  box-shadow: 0 0 0 3px rgba(14, 125, 124, 0.15);
}

/* ---------- Tables (mobile-safe) ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; border: 1px solid #e3eceb; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: #fff; }
th { background: #eaf5f4; color: #0a5e5d; text-align: left; padding: 0.8rem 1rem; font-weight: 700; white-space: nowrap; }
td { padding: 0.8rem 1rem; border-bottom: 1px solid #e3eceb; vertical-align: top; }
tr:last-child td { border-bottom: none; }
@media (max-width: 767px) {
  .table-wrap { margin-left: -1.25rem; margin-right: -1.25rem; border-radius: 0; border-left: none; border-right: none; }
  th, td { padding: 0.7rem 0.8rem; font-size: 0.88rem; }
}

/* ---------- Misc components ---------- */
.ba-slider { border-radius: 20px; overflow: hidden; box-shadow: 0 18px 44px rgba(16, 42, 51, 0.12); }
.section-title, .section-title-wrapper h2 { font-family: "Fraunces", Georgia, serif; }
.alert, .callout, .notice {
  border-radius: 14px;
  padding: 1.1rem 1.4rem;
  background: #eaf5f4;
  border: 1px solid #cfe3e1;
  color: #0a2b2a;
}
@media (min-width: 768px) {
  .py-lg { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .hero-with-bg { border-radius: 0 0 36px 36px; }
  .hero-with-bg::before { border-radius: 0 0 36px 36px; }
  .blog-hero { border-radius: 0 0 36px 36px; padding: 4.5rem 0; }
}

/* ---------- Article headers (both variants) ---------- */
.blog-header { padding: 2.5rem 0 1rem; }
.blog-title {
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: #102a33;
  font-size: clamp(1.9rem, 6vw, 2.75rem);
  margin-bottom: 1rem;
}
.blog-meta { color: #5c6f77; font-size: 0.9rem; display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.blog-container { max-width: 820px; }
.breadcrumbs { font-size: 0.88rem; color: #5c6f77; margin-bottom: 1.5rem; }
.breadcrumbs a { color: #0e7d7c; text-decoration: none; font-weight: 600; }
.blog-content { font-size: 1.02rem; }
.blog-content h2 { margin-top: 2.5rem; }
.blog-content h3 { margin-top: 2rem; }
.blog-content img { border-radius: 16px; }
.blog-content figure { margin: 2rem 0; }
.blog-content figcaption { color: #5c6f77; font-size: 0.88rem; text-align: center; margin-top: 0.6rem; }
.blog-content ul:not(.feature-list), .blog-content ol { padding-left: 1.4rem; }
.blog-content li { margin-bottom: 0.5rem; }
.author-box, .post-author {
  background: #eaf5f4;
  border: 1px solid #cfe3e1;
  border-radius: 18px;
  padding: 1.5rem;
  margin: 2.5rem 0;
}

/* ---- Areas We Serve cards ---- */
.rd-area-grid{display:grid;grid-template-columns:1fr;gap:1.25rem}
@media(min-width:700px){.rd-area-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1100px){.rd-area-grid{grid-template-columns:repeat(3,1fr)}}
.rd-area-card{background:#fff;border-radius:18px;padding:1.75rem;border:1px solid #e3efee;box-shadow:0 2px 12px rgba(14,125,124,.06);transition:transform .25s ease,box-shadow .25s ease;display:flex;flex-direction:column}
.rd-area-card:hover{transform:translateY(-4px);box-shadow:0 12px 28px rgba(14,125,124,.14)}
.rd-area-icon{width:48px;height:48px;border-radius:14px;background:#eaf5f4;color:#0e7d7c;display:flex;align-items:center;justify-content:center;margin-bottom:1rem}
.rd-area-title{font-family:'Fraunces',Georgia,serif;font-size:1.2rem;color:#0e7d7c;margin:0 0 .6rem;line-height:1.3}
.rd-area-desc{color:#4a6572;font-size:.95rem;line-height:1.65;margin:0 0 1.25rem;flex:1}
.rd-area-link{font-weight:700;color:#e0703c;text-decoration:none;font-size:.92rem;display:inline-flex;align-items:center;gap:.35rem}
.rd-area-link:hover{text-decoration:underline}
.rd-area-badge{display:inline-block;background:#e0703c;color:#fff;font-family:'Inter',sans-serif;font-size:.68rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:.2rem .6rem;border-radius:20px;vertical-align:middle;margin-left:.35rem}
.rd-area-featured{background:linear-gradient(135deg,#0e7d7c,#0a5e5d);border:none}
.rd-area-featured .rd-area-icon{background:rgba(255,255,255,.15);color:#fff}
.rd-area-featured .rd-area-title{color:#fff}
.rd-area-featured .rd-area-desc{color:rgba(255,255,255,.85)}
.rd-area-featured .rd-area-link{color:#ffd9a8}

@media(min-width:700px){.rd-area-featured{grid-column:1/-1}.rd-area-featured .rd-area-desc{max-width:640px}}
