/*
Theme Name: Al Care Dental (Astra Child)
Theme URI: https://alcaredental.com/
Description: Child theme for Al Care Dental — rebuilt from the archived site content.
Author: NVAPP
Template: astra
Version: 1.0.0
Text Domain: alcare-child
*/

/* ===== brand tokens (matched to the Al Care logo: cyan heart-half + red heart-half) ===== */
:root {
  --ac-brand: #0b7285;          /* logo cyan #00b7ce, darkened so it passes AA as text (5.59:1) */
  --ac-brand-dark: #0a2a33;     /* deep teal ink — headings */
  --ac-cyan: #00b7ce;           /* the logo cyan itself — decorative only */
  --ac-teal: #0b7285;           /* alias used by smaller text styles */
  --ac-ink: #29454e;
  --ac-muted: #55707a;
  --ac-line: #dbe8ec;
  --ac-soft: #f2fafb;
  --ac-cta: #0d7a8c;            /* teal CTA — white label reads 5.02:1 */
  --ac-cta-dark: #0a6373;
}

/* ===== base ===== */
body, .ast-separate-container .ast-article-post, .ast-separate-container .ast-article-single {
  color: var(--ac-ink);
}

h1, h2, h3, h4 { color: var(--ac-brand-dark); }
h1.entry-title, .entry-title { font-weight: 700; letter-spacing: -0.01em; }

.entry-content h2 { margin-top: 1.6em; font-size: 1.5rem; }
.entry-content h3 { margin-top: 1.3em; font-size: 1.2rem; }
.entry-content p, .entry-content li { line-height: 1.75; }
.entry-content img { border-radius: 10px; height: auto; }

/* ===== call-to-action blocks ===== */
.ac-cta {
  background: linear-gradient(135deg, var(--ac-brand) 0%, var(--ac-teal) 100%);
  color: #fff; border-radius: 14px; padding: 22px 26px; margin: 28px 0;
}
.ac-cta h2, .ac-cta h3 { color: #fff; margin-top: 0; }
.ac-cta a.ac-btn {
  display: inline-block; background: #fff; color: var(--ac-brand-dark) !important;
  font-weight: 700; padding: 12px 22px; border-radius: 999px; text-decoration: none;
}
.ac-cta a.ac-btn:hover { background: #f1f5f9; }

/* ===== info chips (hours / emergency / insurance) ===== */
.ac-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.ac-chips span {
  background: var(--ac-soft); border: 1px solid var(--ac-line); border-radius: 999px;
  padding: 8px 14px; font-size: .92rem; color: var(--ac-muted);
}

/* ===== tables (fee guides etc.) ===== */
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry-content th { background: #e6f6f9; color: var(--ac-brand-dark); font-weight: 700; }
.entry-content th, .entry-content td { border: 1px solid var(--ac-line); padding: 9px 12px; }
.entry-content tr:nth-child(even) td { background: #fafcfd; }

/* ===== responsive media ===== */
@media (max-width: 921px) {
  .entry-content iframe, .entry-content table { max-width: 100%; }
}

/* ===== slim contact bar above the header ===== */
.ac-topbar { background: var(--ac-brand-dark); color: #e2f4f8; font-size: .88rem; }
.ac-topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 7px 16px;
  display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: center;
}
.ac-topbar a { color: #fff; text-decoration: none; }
.ac-topbar a:hover { text-decoration: underline; }
.ac-topbar-item { white-space: nowrap; }
.ac-topbar-btn {
  margin-left: auto; background: var(--ac-cta); color: #fff !important;
  padding: 5px 14px; border-radius: 999px; font-weight: 600;
}
@media (max-width: 921px) {
  .ac-topbar-inner { justify-content: center; font-size: .8rem; }
  .ac-topbar-btn { margin-left: 0; }
}

/* ===== practice footer ===== */
.ac-footer { background: #f2fafb; border-top: 1px solid var(--ac-line); margin-top: 40px; }
.ac-footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 36px 16px 26px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px;
}
.ac-footer-col h3 { font-size: 1rem; margin: 0 0 10px; color: var(--ac-brand-dark); }
.ac-footer-col p, .ac-footer-col li { font-size: .9rem; color: var(--ac-muted); line-height: 1.6; }
.ac-footer-col ul { list-style: none; margin: 0; padding: 0; }
.ac-footer-col a { color: var(--ac-muted); text-decoration: none; }
.ac-footer-col a:hover { color: var(--ac-brand); text-decoration: underline; }
.ac-footer-btn {
  display: inline-block; background: var(--ac-brand); color: #fff !important;
  padding: 9px 16px; border-radius: 999px; font-weight: 600; text-decoration: none;
}
@media (max-width: 921px) {
  .ac-footer-inner { grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (max-width: 544px) {
  .ac-footer-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   Designed homepage blocks
   ============================================================ */
.ac-section-inner, .ac-hero-inner, .ac-offer-inner, .ac-fees-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 18px;
}
.ac-section-title { font-size: 2rem; text-align: center; margin: 0 0 6px; }
.ac-section-lede { text-align: center; color: var(--ac-muted); margin: 0 auto 30px; max-width: 640px; }
.ac-center { text-align: center; }

/* buttons */
.ac-btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 700; text-decoration: none; line-height: 1.2; transition: .18s;
}
.ac-btn-primary { background: var(--ac-cta); color: #fff !important; }
.ac-btn-primary:hover { background: var(--ac-cta-dark); }
.ac-btn-ghost { background: rgba(255,255,255,.16); color: #fff !important; border: 1px solid rgba(255,255,255,.72); }
.ac-btn-ghost:hover { background: rgba(255,255,255,.28); }
.ac-link { color: var(--ac-brand); font-weight: 600; text-decoration: none; }

/* hero */
.ac-hero {
  background: linear-gradient(135deg, #062028 0%, #0b5b69 55%, #0e93a8 100%);
  color: #fff; padding: 54px 0 58px;
}
.ac-hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 38px; align-items: center; }
.ac-hero-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: #d8f1f7; margin: 0 0 10px; }
.ac-hero h1 { color: #fff; font-size: 3rem; line-height: 1.08; margin: 0 0 14px; }
.ac-hero-sub { font-size: 1.12rem; color: #eef9fc; margin: 0 0 24px; }
.ac-hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.ac-hero-btns .ac-btn-primary { background: var(--ac-cta); }
.ac-hero-btns .ac-btn-primary:hover { background: var(--ac-cta-dark); }
.ac-hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 24px 0 0; padding: 0; }
.ac-hero-trust li { font-size: .94rem; color: #e3f4f8; }
.ac-hero-media img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 18px 40px rgba(0,0,0,.28); }

/* free toothbrush offer */
.ac-offer { background: var(--ac-soft); padding: 34px 0; }
.ac-offer-inner { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: center; }
.ac-offer-media img { width: 100%; border-radius: 14px; }
.ac-offer h2 { margin: 0 0 8px; font-size: 1.6rem; }
.ac-inline-btns { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* services grid */
.ac-services { padding: 56px 0 20px; }
.ac-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 22px; }
.ac-card {
  background: #fff; border: 1px solid var(--ac-line); border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; transition: .18s;
}
.ac-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20,65,95,.12); }
.ac-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ac-soft); }
.ac-card-media img { width: 100%; height: 100%; object-fit: cover; }
.ac-card-body { padding: 16px 18px 20px; flex: 1 1 auto; display: flex; flex-direction: column; }
.ac-card-body h3 { margin: 0 0 8px; font-size: 1.08rem; }
.ac-card-body h3 a { color: var(--ac-brand-dark); text-decoration: none; }
.ac-card-body p { font-size: .93rem; color: var(--ac-muted); margin: 0 0 12px; }
.ac-card-link { margin-top: auto; color: var(--ac-brand); font-weight: 600; text-decoration: none; font-size: .93rem; }

/* fee guide band */
.ac-fees { background: #fff; border-top: 1px solid var(--ac-line); border-bottom: 1px solid var(--ac-line); padding: 40px 0; }
.ac-fees-inner { display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center; }
.ac-fees h2 { margin: 0 0 8px; }
.ac-fees p { color: var(--ac-muted); margin: 0 0 12px; }
.ac-icons { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ac-icons img { height: 30px; width: auto; }
.ac-fees-cta { text-align: center; }

/* doctors */
.ac-doctors { padding: 56px 0; }
.ac-doctor-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 26px; }
.ac-doctor { background: #fff; border: 1px solid var(--ac-line); border-radius: 14px; padding: 22px; }
.ac-doctor-photo img { width: 100%; max-width: 260px; border-radius: 12px; display: block; margin-bottom: 14px; }
.ac-doctor h3 { margin: 0 0 2px; }
.ac-doctor-role { color: var(--ac-teal); font-weight: 600; font-size: .9rem; margin: 0 0 10px; }
.ac-doctor p { color: var(--ac-muted); font-size: .95rem; }
.ac-team-strip { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; margin-top: 30px; max-width: 780px; }
.ac-team-strip figure { margin: 0; }
.ac-team-strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 28%; border-radius: 12px; display: block; }
.ac-team-strip b { display: block; margin-top: 12px; font-weight: 600; }
.ac-team-strip span { color: var(--ac-muted); font-size: .9rem; }
.ac-team-more { margin-top: 18px; color: var(--ac-muted); font-size: .95rem; }

/* reviews */
.ac-reviews { background: var(--ac-soft); padding: 54px 0; }
.ac-quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.ac-quote { background: #fff; border: 1px solid var(--ac-line); border-radius: 14px; padding: 20px 22px; margin: 0; }
.ac-quote p { font-size: .95rem; color: #37424a; font-style: italic; }
.ac-quote cite { display: block; margin-top: 10px; font-style: normal; font-weight: 700; color: var(--ac-brand-dark); }

/* office */
.ac-office { padding: 56px 0 30px; }
.ac-office-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; align-items: start; }
.ac-office-photo img { width: 100%; border-radius: 14px; }
.ac-office-info { background: var(--ac-soft); border: 1px solid var(--ac-line); border-radius: 14px; padding: 20px; }
.ac-office-info h3 { margin-top: 0; }
.ac-office-info p { margin: 0 0 8px; color: var(--ac-muted); }
.ac-langs img { max-width: 190px; height: auto; }

/* responsive */
@media (max-width: 1024px) {
  .ac-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ac-hero h1 { font-size: 2.4rem; }
  .ac-quote-grid { grid-template-columns: 1fr 1fr; }
  .ac-office-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .ac-hero-inner, .ac-offer-inner, .ac-fees-inner, .ac-doctor-grid { grid-template-columns: 1fr; }
  .ac-hero { padding: 34px 0 40px; }
  .ac-hero h1 { font-size: 2.1rem; }
  .ac-offer-media { max-width: 260px; }
  .ac-fees-cta { text-align: left; }
}
@media (max-width: 620px) {
  .ac-grid, .ac-quote-grid, .ac-office-grid { grid-template-columns: 1fr; }
  .ac-section-title { font-size: 1.6rem; }
  .ac-hero-trust { gap: 6px 14px; }
}
/* keep the designed homepage full-bleed inside Astra's container */
.page-id-960 .entry-header { display: none; }   /* homepage has its own H1 in the hero */
.page-id-960 .entry-content > .ac-hero,
.page-id-960 .entry-content > .ac-fees { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.page-id-960 .entry-content > .ac-hero { width: 100vw; }
.page-id-960 .entry-content > .ac-services,
.page-id-960 .entry-content > .ac-doctors,
.page-id-960 .entry-content > .ac-office { padding-left: 0; padding-right: 0; }
.page-id-960 .entry-content { padding-top: 0; }

/* ===== inner pages: content rhythm =====
   The inner pages came over from the archive as bare markup (h2 / p / img / ul only), so the
   content area IS the page. These rules give it one consistent voice. */
.entry-content { font-size: 1.03rem; }
.entry-content h2 { padding-bottom: .3em; border-bottom: 2px solid var(--ac-line); }
.entry-content h3 { font-size: 1.16rem; }
.entry-content ul, .entry-content ol { padding-left: 1.2rem; }
.entry-content li { margin: .3em 0; }
.entry-content li::marker { color: var(--ac-brand); }
.entry-content a { color: var(--ac-brand); text-underline-offset: 2px; }
.entry-content a:hover { color: var(--ac-cta-dark); }
.entry-content figure { margin: 1.5em 0; }
.entry-content img { border-radius: 12px; }
.entry-content figcaption { margin-top: .55em; font-size: .85rem; color: var(--ac-muted); text-align: center; }
.entry-content blockquote { margin: 1.5em 0; padding: 14px 18px; background: var(--ac-soft); border-left: 3px solid var(--ac-brand); border-radius: 0 10px 10px 0; }
.entry-content hr { margin: 2em 0; border: 0; border-top: 1px solid var(--ac-line); }

/* single page/post title */
.ast-single-post .entry-header, .page .entry-header { max-width: 900px; }
.entry-title { font-size: clamp(1.75rem, 1.2rem + 1.7vw, 2.35rem); line-height: 1.16; }

/* Astra renders a sidebar column on posts even with nothing in it, which squeezes the article
   into ~70% of the row and leaves a dead right margin. No sidebar here — read full width. */
.site-content > .ast-container { display: block; }
.site-content #secondary.widget-area, .site-content .widget-area { display: none; }
.ast-single-post .entry-content, .page:not(.page-id-960) .entry-content { max-width: 880px; }

/* Body-colour only on the CONTENT WRAPPER, never on p/li directly.
   `.entry-content p { color: … }` outranks the descendants' own rules (0-1-1 beats 0-1-0) and
   turned the hero's white text dark slate on dark teal — the text disappeared. Inheritance from
   the wrapper lets any dark band that sets `color: #fff` win again. */
.entry-content { color: var(--ac-ink); }
.ac-hero p, .ac-hero li, .ac-cta p, .ac-cta li, .ac-page-cta p, .ac-page-cta li { color: inherit; }

/* ===== closing band, printed on every inner page by functions.php ===== */
.ac-page-cta {
  margin: 2.8em 0 0; padding: 26px 28px; border-radius: 16px;
  background: linear-gradient(135deg, #0a5f6d 0%, #0d7a8c 100%); color: #dff3f7;
}
.ac-page-cta .ac-eyebrow { margin: 0 0 .3em; text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; color: #9eddea; }
.ac-page-cta h2 { margin: 0 0 .4em; padding: 0; border: 0; font-size: 1.45rem; color: #fff; }
.ac-page-cta p { margin: .3em 0; line-height: 1.6; }
.ac-page-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: .95em 0 .7em; }
.ac-page-cta a.ac-btn-solid { background: #fff; color: #0a2a33 !important; }
.ac-page-cta a.ac-btn-solid:hover { background: #e8f6f9; }
.ac-page-cta a.ac-btn-ghost { border: 1px solid rgba(255,255,255,.55); color: #fff !important; }
.ac-page-cta a.ac-btn-ghost:hover { background: rgba(255,255,255,.12); }
.ac-page-cta-meta { font-size: .86rem; color: #bfe4ec; }

/* ===== service pages (structure rendered from inc/services.php) ===== */
.ac-svc-media { margin: 1.6em 0 1.9em; }
.ac-svc-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; }
.ac-svc-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); gap: 26px; align-items: stretch; margin: 1.1em 0 2.2em; }
.ac-checklist { list-style: none; margin: 0; padding: 0; }
.ac-checklist li { position: relative; padding: 0 0 0 30px; margin: 0 0 12px; line-height: 1.6; }
.ac-checklist li::before { content: ""; position: absolute; left: 0; top: .42em; width: 18px; height: 18px; border-radius: 50%; background: var(--ac-soft); border: 1px solid #bfe3ea; }
.ac-checklist li::after { content: ""; position: absolute; left: 6px; top: .72em; width: 5px; height: 9px; border: solid var(--ac-brand); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ac-svc-aside { display: flex; flex-direction: column; background: var(--ac-soft); border: 1px solid var(--ac-line); border-radius: 14px; padding: 20px 22px; }
.ac-svc-aside h3 { margin: 0 0 12px; font-size: 1.05rem; }
.ac-svc-aside dl { margin: 0; }
.ac-svc-aside dt { margin-top: 10px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ac-muted); }
.ac-svc-aside dd { margin: 2px 0 0; font-weight: 600; color: var(--ac-brand-dark); font-size: .95rem; }
.ac-svc-book { margin: 18px 0 0; }
.ac-svc-book a.ac-btn { display: block; text-align: center; background: var(--ac-cta); color: #fff !important; }
.ac-svc-book a.ac-btn:hover { background: var(--ac-cta-dark); }
.ac-svc-aside dl { margin-bottom: auto; }
.ac-faq { margin: 1.1em 0 0; }
.ac-faq details { margin: 0 0 12px; padding: 4px 18px; background: #fff; border: 1px solid var(--ac-line); border-radius: 12px; transition: .15s; }
.ac-faq details:hover { border-color: #bfe3ea; }
.ac-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 0; cursor: pointer; font-weight: 600; color: var(--ac-brand-dark); list-style: none; }
.ac-faq summary::-webkit-details-marker { display: none; }
.ac-faq summary::after { content: "+"; flex: 0 0 auto; font-size: 1.25rem; line-height: 1; color: var(--ac-brand); }
.ac-faq details[open] summary::after { content: "\2212"; }
.ac-faq details[open] summary { margin-bottom: 0; }
.ac-faq p { margin: 0; padding: 0 0 16px; }
.ac-svc-links { margin: 2.2em 0 0; font-size: .92rem; color: var(--ac-muted); }
.ac-svc-links strong { display: block; margin-bottom: 10px; color: var(--ac-brand-dark); }
.ac-svc-links a { display: inline-block; margin: 0 8px 8px 0; padding: 5px 13px; border: 1px solid var(--ac-line); border-radius: 999px; color: var(--ac-brand); text-decoration: none; }
.ac-svc-links a:hover { border-color: var(--ac-brand); }

/* /services/ hub — multi-column flow so 13 cards never leave an orphan hole */
.ac-svc-cards { columns: 3; column-gap: 20px; margin: 1.6em 0 0; }
.ac-svc-card { display: flex; flex-direction: column; break-inside: avoid; page-break-inside: avoid; margin: 0 0 20px; padding: 20px 22px; background: #fff; border: 1px solid var(--ac-line); border-radius: 14px; text-decoration: none; }
.ac-svc-card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.ac-svc-card p { margin: 0 0 14px; color: var(--ac-muted); font-size: .94rem; }
.ac-svc-card-link { margin-top: auto; color: var(--ac-brand); font-weight: 600; font-size: .92rem; }
.ac-svc-card:hover { border-color: #bfe3ea; box-shadow: 0 10px 26px rgba(16,74,89,.09); }
@media (max-width: 1024px) { .ac-svc-cards { columns: 2; } }
@media (max-width: 860px) { .ac-svc-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .ac-svc-cards { columns: 1; } }

/* ===== reviews page (structure written by rebuild_reviews.php) ===== */
.ac-review-summary { margin: 0 0 28px; padding: 22px 26px; background: var(--ac-soft); border: 1px solid var(--ac-line); border-radius: 16px; }
.ac-review-score { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; }
.ac-review-score strong { font-size: 2.1rem; line-height: 1; color: var(--ac-brand-dark); }
.ac-stars { position: relative; display: inline-block; color: #d5dde1; letter-spacing: 2px; font-size: 1.15rem; }
.ac-stars-fill { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: #e8a33d; }
.ac-review-outof { font-size: .9rem; color: var(--ac-muted); }
.ac-review-count { margin: 0 0 14px; color: var(--ac-muted); }
.ac-review-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.ac-review { display: flex; flex-direction: column; margin: 0; padding: 22px 24px; background: #fff; border: 1px solid var(--ac-line); border-radius: 14px; }
.ac-review blockquote { margin: 0; padding: 0; background: none; border: 0; border-radius: 0; }
.ac-review blockquote p { margin: 0 0 14px; font-size: .96rem; line-height: 1.7; color: #37424a; }
.ac-review figcaption { margin-top: auto; font-size: .9rem; color: var(--ac-muted); }
.ac-review figcaption strong { display: block; color: var(--ac-brand-dark); }
@media (max-width: 860px) { .ac-review-grid { grid-template-columns: 1fr; } }
