/*
Theme Name: Bright Smile Dental
Theme URI: https://example.com
Author: Bright Smile Dental
Description: A professional, calming WordPress theme for a modern dental practice — doctor profiles, services, gallery, blog, FAQ, and a real-time appointment reservation system. Built to work with the GAD AI chatbot plugin out of the box.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: bright-smile-dental
*/

:root{
  --ink:#16201d;
  --ink-soft:#4d5b56;
  --pine:#163832;
  --pine-soft:#2a5049;
  --bg:#f2f6f3;
  --panel:#ffffff;
  --coral:#ec6f56;
  --coral-dark:#d85b42;
  --sage:#a9c4b8;
  --sage-wash:#e4ede8;
  --line:#dde6e1;
  --maxw:1180px;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto;} *{animation-duration:0.001ms !important; transition-duration:0.001ms !important;} }

body{ background:var(--bg); color:var(--ink); font-family:'Inter',system-ui,sans-serif; line-height:1.6; -webkit-font-smoothing:antialiased; }
h1,h2,h3,.display{ font-family:'Newsreader',serif; font-weight:600; letter-spacing:-0.01em; color:var(--pine); }
.mono{ font-family:'IBM Plex Mono',monospace; }
em.accent{ font-style:italic; color:var(--coral); font-family:'Newsreader',serif; }
a{ color:inherit; text-decoration:none; }
img,svg{ display:block; max-width:100%; }
button{ font-family:inherit; cursor:pointer; }
ul{ list-style:none; }
.skip-link{ position:absolute; left:-9999px; top:0; background:#fff; padding:10px 16px; z-index:999; }
.skip-link:focus{ left:16px; top:16px; }

.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 24px; }
.eyebrow{ font-family:'IBM Plex Mono',monospace; font-size:12px; letter-spacing:0.1em; text-transform:uppercase; color:var(--coral); display:flex; align-items:center; gap:10px; }
.eyebrow::before{ content:""; width:18px; height:1px; background:var(--coral); display:inline-block; }

/* ---------- Top bar ---------- */
.topbar{ background:var(--pine); color:#cfe0d9; font-size:12.5px; }
.topbar .wrap{ display:flex; justify-content:space-between; align-items:center; height:38px; }
.topbar a{ opacity:0.9; } .topbar a:hover{ opacity:1; }
.social-row{ display:flex; gap:14px; align-items:center; }
.social-row svg{ width:14px; height:14px; fill:currentColor; }

/* ---------- Header ---------- */
header.site-header{ position:sticky; top:0; z-index:50; background:rgba(242,246,243,0.92); backdrop-filter:blur(8px); border-bottom:1px solid var(--line); }
.nav{ display:flex; align-items:center; justify-content:space-between; height:76px; gap:20px; }
.logo{ font-family:'Newsreader',serif; font-weight:600; font-size:22px; color:var(--pine); }
.logo span{ color:var(--coral); }
.nav-links{ display:flex; gap:30px; font-size:14.5px; font-weight:500; }
.nav-links a{ color:var(--ink-soft); transition:color .15s ease; }
.nav-links a:hover{ color:var(--pine); }
.nav-cta{ background:var(--coral); color:#fff; padding:11px 22px; font-size:14px; font-weight:600; border-radius:30px; transition:background .15s ease; white-space:nowrap; }
.nav-cta:hover{ background:var(--coral-dark); }
.menu-btn{ display:none; background:none; border:none; padding:6px; }
.menu-btn span{ display:block; width:22px; height:2px; background:var(--pine); margin:5px 0; }
.mobile-menu{ display:none; border-top:1px solid var(--line); padding:16px 0; }
.mobile-menu.open{ display:block; }
.mobile-menu a{ display:block; padding:10px 0; font-size:15px; color:var(--ink); }
@media (max-width:900px){ .nav-links{ display:none; } .menu-btn{ display:block; } .topbar .contact-line{ display:none; } }

section{ padding:88px 0; border-bottom:1px solid var(--line); }
.sec-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:24px; margin-bottom:48px; flex-wrap:wrap; }
.sec-head h2{ font-size:clamp(28px,4vw,42px); margin-top:14px; }
.sec-head p{ color:var(--ink-soft); max-width:40ch; font-size:15px; }

/* ---------- Hero ---------- */
.hero{ padding:64px 0 0; }
.hero-grid{ display:grid; grid-template-columns:1.3fr 1fr; gap:56px; align-items:center; padding-bottom:56px; }
.hero h1{ font-size:clamp(38px,5.4vw,66px); line-height:1.08; margin:18px 0 22px; }
.hero p.lead{ font-size:18px; color:var(--ink-soft); max-width:48ch; margin-bottom:30px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:36px; }
.btn-primary{ display:inline-block; background:var(--coral); color:#fff; padding:15px 28px; font-size:15px; font-weight:600; border-radius:30px; transition:background .15s ease; }
.btn-primary:hover{ background:var(--coral-dark); }
.btn-secondary{ display:inline-block; padding:15px 28px; font-size:15px; font-weight:600; border:1px solid var(--pine); color:var(--pine); border-radius:30px; transition:background .15s ease, color .15s ease; }
.btn-secondary:hover{ background:var(--pine); color:#fff; }
.trust-strip{ display:flex; gap:32px; flex-wrap:wrap; border-top:1px solid var(--line); padding-top:22px; }
.trust-item{ font-size:13.5px; color:var(--ink-soft); display:flex; align-items:center; gap:8px; }
.trust-item svg{ width:16px; height:16px; color:var(--coral); flex-shrink:0; }
.hero-photo-strip{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.hero-photo{ aspect-ratio:1; border-radius:14px; background:var(--sage-wash); overflow:hidden; }
.hero-photo img{ width:100%; height:100%; object-fit:cover; }
.hero-photo.tall{ grid-row:span 2; aspect-ratio:1/2; }
@media (max-width:900px){ .hero-grid{ grid-template-columns:1fr; } .hero-photo-strip{ display:none; } }

.ticker{ border-top:1px solid var(--line); border-bottom:1px solid var(--line); overflow:hidden; white-space:nowrap; padding:14px 0; background:var(--panel); }
.ticker-track{ display:inline-block; animation:scroll 30s linear infinite; }
.ticker-track span{ font-family:'IBM Plex Mono',monospace; font-size:13px; letter-spacing:0.04em; margin-right:44px; color:var(--ink-soft); }
.ticker-track span em{ color:var(--coral); font-style:normal; }
@keyframes scroll{ from{transform:translateX(0);} to{transform:translateX(-50%);} }

/* ---------- Process ---------- */
.process-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.process-card{ background:var(--panel); padding:32px 28px; }
.process-num{ font-size:13px; color:var(--coral); margin-bottom:14px; font-family:'IBM Plex Mono',monospace; }
.process-card h3{ font-size:19px; margin-bottom:10px; }
.process-card p{ font-size:14px; color:var(--ink-soft); }
@media (max-width:860px){ .process-grid{ grid-template-columns:1fr; } }

/* ---------- Services ---------- */
.service-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.service-card{ background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:28px; transition:box-shadow .15s ease, transform .15s ease; }
.service-card:hover{ box-shadow:0 16px 34px rgba(22,56,50,0.08); transform:translateY(-2px); }
.service-card h3{ font-size:19px; margin:14px 0 8px; }
.service-card p{ font-size:14px; color:var(--ink-soft); margin-bottom:14px; }
.service-icon{ width:44px; height:44px; border-radius:12px; background:var(--sage-wash); display:flex; align-items:center; justify-content:center; color:var(--pine); }
.service-icon svg{ width:22px; height:22px; }
.service-price{ font-family:'IBM Plex Mono',monospace; font-size:15px; color:var(--coral); font-weight:600; }
@media (max-width:860px){ .service-grid{ grid-template-columns:1fr; } }

/* ---------- Doctors ---------- */
.doctor-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.doctor-card{ background:var(--panel); border:1px solid var(--line); border-radius:16px; overflow:hidden; }
.doctor-photo{ aspect-ratio:4/5; background:var(--sage-wash); overflow:hidden; position:relative; }
.doctor-photo img{ width:100%; height:100%; object-fit:cover; }
.doctor-initials{ width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-family:'Newsreader',serif; font-size:44px; color:var(--pine); }
.doctor-body{ padding:22px; }
.doctor-body h3{ font-size:19px; }
.doctor-role{ font-family:'IBM Plex Mono',monospace; font-size:11.5px; color:var(--coral); text-transform:uppercase; letter-spacing:0.06em; margin:4px 0 10px; }
.doctor-body p{ font-size:13.5px; color:var(--ink-soft); }
@media (max-width:860px){ .doctor-grid{ grid-template-columns:1fr; } }

/* ---------- Booking (signature element) ---------- */
.booking-section{ background:var(--pine); color:#fff; }
.booking-section .eyebrow{ color:var(--sage); } .booking-section .eyebrow::before{ background:var(--sage); }
.booking-section .sec-head h2{ color:#fff; } .booking-section .sec-head p{ color:#cfe0d9; }

.ticket{ background:#fff; color:var(--ink); border-radius:18px; position:relative; display:grid; grid-template-columns:1fr 290px; box-shadow:0 30px 60px rgba(0,0,0,0.28); overflow:hidden; }
.ticket-main{ padding:36px; }
.ticket-stub{ background:var(--pine-soft); color:#fff; padding:36px 28px; border-left:2px dashed rgba(255,255,255,0.25); display:flex; flex-direction:column; justify-content:space-between; }
@media (max-width:860px){ .ticket{ grid-template-columns:1fr; border-radius:14px; } .ticket-stub{ border-left:none; border-top:2px dashed rgba(255,255,255,0.25); } }

.step-label{ font-family:'IBM Plex Mono',monospace; font-size:12px; text-transform:uppercase; letter-spacing:0.1em; color:var(--ink-soft); margin-bottom:12px; }
.field-group{ margin-bottom:26px; }
.field-group label{ display:block; font-size:13px; font-weight:600; margin-bottom:10px; }
.option-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:10px; }
.option-card{ border:1px solid var(--line); padding:12px 14px; font-size:13px; text-align:left; background:#fff; border-radius:10px; transition:border-color .15s ease, background .15s ease; }
.option-card .oc-title{ font-weight:600; display:block; margin-bottom:2px; }
.option-card .oc-sub{ color:var(--ink-soft); font-size:12px; }
.option-card.selected{ border-color:var(--coral); background:#fdf0ec; }
.slot-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(84px,1fr)); gap:8px; }
.slot{ font-family:'IBM Plex Mono',monospace; font-size:13px; border:1px solid var(--line); background:#fff; padding:10px 6px; text-align:center; border-radius:8px; }
.slot.selected{ border-color:var(--coral); background:#fdf0ec; }
.slot:disabled{ opacity:0.32; text-decoration:line-through; }
.input, textarea.input{ width:100%; border:1px solid var(--line); padding:12px 14px; font-size:14px; font-family:inherit; background:#fff; color:var(--ink); border-radius:8px; }
.row2{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:520px){ .row2{ grid-template-columns:1fr; } }
.ticket-stub .tk-num{ font-family:'IBM Plex Mono',monospace; font-size:12px; color:#9fc2b6; letter-spacing:0.08em; }
.ticket-stub .tk-summary dt{ font-size:11px; text-transform:uppercase; letter-spacing:0.08em; color:#9fc2b6; margin-top:14px; }
.ticket-stub .tk-summary dd{ font-family:'Newsreader',serif; font-size:17px; margin-top:2px; }
.ticket-stub .submit-btn{ margin-top:24px; width:100%; background:var(--coral); color:#fff; border:none; padding:15px; font-weight:700; font-size:14px; border-radius:30px; }
.ticket-stub .submit-btn:disabled{ opacity:0.4; }
.form-msg{ font-size:13px; margin-top:12px; min-height:18px; color:#f3b493; }
.confirm{ display:none; text-align:center; padding:60px 20px; grid-template-columns:1fr; }
.confirm.show{ display:block; }
.confirm .ok-num{ font-family:'IBM Plex Mono',monospace; font-size:34px; margin:16px 0; }

/* ---------- Gallery ---------- */
.gallery-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.gallery-tile{ position:relative; aspect-ratio:1; overflow:hidden; border-radius:14px; background:var(--sage-wash); }
.gallery-tile img{ width:100%; height:100%; object-fit:cover; }
.gallery-placeholder{ width:100%; height:100%; }
.gallery-placeholder.p0{ background:repeating-linear-gradient(135deg, var(--sage-wash), var(--sage-wash) 12px, #d7e5dd 12px, #d7e5dd 24px); }
.gallery-placeholder.p1{ background:radial-gradient(circle at 30% 30%, var(--sage-wash), var(--bg)); }
.gallery-placeholder.p2{ background:linear-gradient(160deg, var(--sage-wash), #fdf0ec); }
.gallery-tile figcaption{ position:absolute; left:0; right:0; bottom:0; padding:12px 14px; background:linear-gradient(to top, rgba(22,32,29,0.72), transparent); color:#fff; font-size:12.5px; font-weight:600; }
@media (max-width:860px){ .gallery-grid{ grid-template-columns:repeat(2,1fr); } }

/* ---------- Testimonials ---------- */
.testimonial-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.testimonial-card{ background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:26px; }
.stars{ color:var(--coral); font-size:14px; letter-spacing:2px; margin-bottom:14px; }
.testimonial-card p{ font-size:14px; color:var(--ink-soft); margin-bottom:16px; }
.testimonial-who{ font-family:'Newsreader',serif; font-weight:600; font-size:15px; color:var(--pine); }
@media (max-width:860px){ .testimonial-grid{ grid-template-columns:1fr; } }

/* ---------- FAQ ---------- */
.faq-list{ border-top:1px solid var(--line); max-width:760px; }
.faq-item{ border-bottom:1px solid var(--line); padding:20px 0; }
.faq-item summary{ cursor:pointer; font-family:'Newsreader',serif; font-weight:600; font-size:17px; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:16px; color:var(--pine); }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{ content:"+"; font-family:'IBM Plex Mono',monospace; font-size:20px; color:var(--coral); flex-shrink:0; }
.faq-item[open] summary::after{ content:"–"; }
.faq-answer{ font-size:14.5px; color:var(--ink-soft); margin-top:14px; max-width:64ch; }

/* ---------- Blog ---------- */
.blog-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.blog-card{ display:block; border:1px solid var(--line); background:var(--panel); border-radius:14px; overflow:hidden; }
.blog-thumb{ aspect-ratio:16/10; overflow:hidden; background:var(--sage-wash); }
.blog-thumb img{ width:100%; height:100%; object-fit:cover; }
.blog-thumb-placeholder{ background:repeating-linear-gradient(135deg, var(--sage-wash), var(--sage-wash) 12px, #d7e5dd 12px, #d7e5dd 24px); }
.blog-card-body{ padding:22px; }
.blog-date{ font-size:11px; color:var(--ink-soft); text-transform:uppercase; letter-spacing:0.06em; font-family:'IBM Plex Mono',monospace; }
.blog-card-body h3{ font-size:18px; margin:10px 0 8px; }
.blog-card-body p{ font-size:14px; color:var(--ink-soft); }
@media (max-width:860px){ .blog-grid{ grid-template-columns:1fr; } }
.blog-post h1{ font-size:clamp(30px,5vw,46px); margin:16px 0 28px; max-width:24ch; }
.blog-post-thumb{ margin-bottom:32px; aspect-ratio:16/9; overflow:hidden; border-radius:14px; }
.blog-post-thumb img{ width:100%; height:100%; object-fit:cover; }
.blog-content{ max-width:70ch; font-size:16px; line-height:1.8; }
.blog-content p{ margin-bottom:22px; }

/* ---------- Location ---------- */
.loc-grid{ display:grid; grid-template-columns:1fr 1fr; gap:40px; }
.hours-table{ width:100%; border-collapse:collapse; font-size:14px; }
.hours-table td{ padding:10px 0; border-bottom:1px solid var(--line); }
.hours-table td:last-child{ text-align:right; font-family:'IBM Plex Mono',monospace; }
.map-embed{ border:1px solid var(--line); border-radius:14px; overflow:hidden; aspect-ratio:4/3; }
.map-embed iframe{ width:100%; height:100%; border:0; }
.map-embed.placeholder{ background:var(--sage-wash); display:flex; align-items:center; justify-content:center; color:var(--ink-soft); font-size:13px; text-align:center; padding:20px; }
@media (max-width:860px){ .loc-grid{ grid-template-columns:1fr; } }

/* ---------- Contact form ---------- */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:48px; }
@media (max-width:860px){ .contact-grid{ grid-template-columns:1fr; } }

footer.site-footer{ padding:44px 0; background:var(--pine); color:#cfe0d9; }
.foot-row{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; font-size:13px; }
.foot-social{ display:flex; gap:16px; }
.foot-social svg{ width:16px; height:16px; fill:#cfe0d9; }

.reveal{ opacity:0; transform:translateY(16px); transition:opacity .5s ease, transform .5s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }
.simple-page{ padding:88px 0; }
.simple-page h1{ font-size:clamp(32px,5vw,52px); margin-bottom:20px; }

/* ---------- Value grid (About page) ---------- */
.value-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.value-card{ background:var(--panel); padding:30px 28px; }
.value-card h3{ font-size:18px; margin-bottom:10px; }
.value-card p{ font-size:14px; color:var(--ink-soft); }
@media (max-width:700px){ .value-grid{ grid-template-columns:1fr; } }
