/*
Theme Name: Dental Clinic Base
Theme URI: https://yourplatform.com
Author: Your Company
Description: Shared base theme for the dental clinic SaaS platform. Not meant to be activated directly — activate one of the child themes (DentiCare Classic, DentiCare Mint, DentiCare Bold) instead. Handles layout, booking modal, homepage calendar, and Customizer options; child themes only override colors, type, and hero layout.
Version: 1.0.0
Text Domain: dental-base
*/

/* ---------- Design tokens (defaults — child themes override these) ---------- */
:root {
    --clr-primary: #7c3aed;
    --clr-primary-dark: #5b21b6;
    --clr-accent: #1e3a8a;
    --clr-text: #1f2937;
    --clr-muted: #6b7280;
    --clr-bg: #ffffff;
    --clr-bg-soft: #f7f7fb;
    --clr-card: #ffffff;
    --clr-border: #e5e7eb;
    --font-display: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius: 10px;
    --container: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-body); color: var(--clr-text); background: var(--clr-bg); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 .5em; line-height: 1.2; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--clr-primary); outline-offset: 2px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.eyebrow { color: var(--clr-primary); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; margin-bottom: 8px; display: block; }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--clr-primary); color: #fff; border: none;
    padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 14px;
    transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--clr-primary-dark); transform: translateY(-1px); color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--clr-border); color: var(--clr-text); }
.btn-outline:hover { border-color: var(--clr-primary); color: var(--clr-primary); background: transparent; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--clr-border); position: sticky; top: 0; background: #fff; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; gap: 24px; }
.site-branding { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.site-branding img { max-height: 40px; }
.main-nav ul { display: flex; gap: 28px; }
.main-nav a { font-size: 14px; font-weight: 500; color: var(--clr-text); }
.main-nav a:hover { color: var(--clr-primary); }
.header-meta { display: flex; align-items: center; gap: 20px; font-size: 13px; color: var(--clr-muted); }
.header-meta strong { color: var(--clr-text); display: block; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.menu-toggle { display: none; }

@media (max-width: 900px) {
    .main-nav, .header-meta { display: none; }
    .menu-toggle { display: block; background: none; border: 1px solid var(--clr-border); border-radius: 8px; padding: 8px 12px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--clr-accent); color: #fff; padding: 56px 0 28px; margin-top: 40px; }
.site-footer a { color: #fff; opacity: .85; }
.site-footer a:hover { opacity: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-grid li { margin-bottom: 8px; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; font-size: 13px; opacity: .7; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Services grid (shared shape; child themes restyle cards) ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.service-card { border-radius: var(--radius); overflow: hidden; position: relative; background: var(--clr-primary); color: #fff; min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; }
.service-card img.service-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; z-index: 0; }
.service-card .service-icon, .service-card h3, .service-card p { position: relative; z-index: 1; }
.service-card h3 { font-size: 17px; color: #fff; }
.service-card p { font-size: 13px; opacity: .9; margin: 0; }
@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Team grid ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 36px; }
.team-card { text-align: center; }
.team-card img { border-radius: var(--radius); margin-bottom: 14px; aspect-ratio: 3/4; object-fit: cover; }
.team-card h3 { font-size: 16px; margin-bottom: 2px; }
.team-card span { color: var(--clr-primary); font-size: 13px; font-weight: 600; }
@media (max-width: 980px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Homepage calendar section ---------- */
.calendar-section { background: var(--clr-bg-soft); }
.calendar-section .section-head { text-align: center; max-width: 560px; margin: 0 auto 20px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
