/*
Theme Name: Confidental Dental
Theme URI: https://confidental.co.za
Author: Confidental Inc
Description: One-page theme for Confidental Inc dental clinic. Soft blush palette, pill-shaped CTAs, and an elegant serif/italic display pairing.
Version: 1.1
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: confidental-dental
*/

:root {
  --blush: #cf99a1;
  --blush-dark: #bd7f88;
  --blush-pale: #f7e7e8;
  --bg: #fdf6f5;
  --bg-alt: #fbeeee;
  --ink: #211f1e;
  --muted: #6e6a67;
  --line: rgba(33, 31, 30, 0.1);
  --radius-pill: 999px;
  --max-w: 1180px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; color: var(--muted); }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

.eyebrow {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blush-dark);
  font-weight: 500;
  margin-bottom: 14px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  font-weight: 500;
}
h2 { font-size: clamp(32px, 4vw, 46px); line-height: 1.15; }
h3 { font-size: 21px; }
em, .accent-italic { font-style: italic; color: var(--blush-dark); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14.5px;
  letter-spacing: 0.03em;
  font-weight: 500;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, opacity .2s ease;
}
.btn-primary { background: var(--blush); color: #fff; }
.btn-primary:hover { background: var(--blush-dark); transform: translateY(-1px); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline.on-dark { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-outline.on-dark:hover { background: #fff; color: var(--ink); }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  font-size: 14.5px;
  font-weight: 500;
}
.btn-whatsapp:hover { background: var(--blush-dark); }
.btn-whatsapp svg { width: 17px; height: 17px; fill: currentColor; }

.map-embed {
  border-radius: 16px;
  overflow: hidden;
  border: none;
  width: 100%;
  height: 100%;
  min-height: 320px;
}

.link-arrow { color: var(--blush-dark); font-size: 14px; font-weight: 500; letter-spacing: 0.02em; }
.link-arrow:hover { color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 246, 245, 0.94);
  backdrop-filter: blur(6px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  position: relative;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--blush-pale);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { font-family: var(--font-display); font-size: 21px; color: var(--ink); }

.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
}
.main-nav a:hover { color: var(--blush-dark); }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0;
  background-size: cover;
  background-position: center;
  background-color: #efd9d9;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,247,246,0.75) 60%, rgba(253,246,245,0.95));
}
.hero .wrap { position: relative; max-width: 760px; }
.hero .eyebrow { text-align: center; }
.hero h1 { font-size: clamp(42px, 7vw, 76px); line-height: 1.05; }
.hero h1 .script-line { display: block; font-style: italic; color: var(--blush-dark); }
.hero p.lede { max-width: 520px; margin: 26px auto 34px; font-size: 17.5px; color: var(--ink); opacity: 0.75;}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Section shell ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { text-align: center; }

/* ---------- About ---------- */
.about .wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.about-photo {
  aspect-ratio: 3/4;
  border-radius: 20px;
  background: linear-gradient(160deg, var(--blush-pale), var(--blush));
}
.credentials { margin-top: 26px; }
.credentials li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.credentials li:first-child { border-top: none; }
.credentials li b { color: var(--ink); min-width: 150px; font-weight: 600; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 40px;
}
.service-card { text-align: left; }
.service-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--blush-pale);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 22px; height: 22px; stroke: var(--blush-dark); fill: none; stroke-width: 1.6; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 15px; margin-bottom: 14px; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.team-card { text-align: left; }
.team-photo {
  aspect-ratio: 4/5;
  border-radius: 20px;
  background: linear-gradient(160deg, var(--blush-pale), var(--blush));
  margin-bottom: 22px;
}
.team-card .role { color: var(--blush-dark); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; margin-bottom: 6px; display: block; }
.team-card h3 { font-size: 24px; margin-bottom: 12px; }
.team-card .credentials li { font-size: 14.5px; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.why-item { text-align: center; }
.why-item strong { display: block; font-family: var(--font-display); font-size: 30px; margin-bottom: 8px; color: var(--blush-dark); }
.why-item span { font-size: 14.5px; color: var(--muted); }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.testimonial-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
}
.testimonial-card .stars { color: var(--blush-dark); font-size: 15px; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card p { font-style: italic; color: var(--ink); opacity: 0.85; }
.testimonial-name { font-weight: 600; color: var(--ink); font-size: 14px; }

/* ---------- Hours ---------- */
.hours-table { max-width: 480px; margin: 0 auto; }
.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
}
.hours-row:first-child { border-top: none; }
.hours-row span:first-child { font-weight: 600; }
.hours-row span:last-child { color: var(--muted); }

/* ---------- Contact ---------- */
.contact .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-info-item .dot {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--blush-pale); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--blush-dark); font-size: 15px;
}
.contact-info-item b { display: block; color: var(--ink); font-size: 15px; }
.contact-info-item span { font-size: 14.5px; color: var(--muted); }

.contact-form { background: #fff; border-radius: 20px; padding: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  margin-bottom: 18px;
  background: var(--bg);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--blush);
  outline-offset: 1px;
  border-color: var(--blush);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: 13px; margin-top: 12px; color: var(--muted); text-align: center; }
.form-success { background: #eef4ec; color: #2f4a34; padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-size: 14.5px; }
.form-success.is-error { background: #fbe9e7; color: #8a3b32; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.8); padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 42px; }
.footer-grid h4 { color: #fff; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }
.footer-brand { font-family: var(--font-display); font-size: 21px; color: #fff; margin-bottom: 14px; }
.footer-grid li { margin-bottom: 10px; font-size: 14.5px; }
.footer-grid a:hover { color: var(--blush); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(255,255,255,0.55);
  flex-wrap: wrap; gap: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .main-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 10px 32px 22px;
  }
  .main-nav.is-open ul { flex-direction: column; gap: 4px; }
  .main-nav.is-open a { display: block; padding: 12px 0; }
  .nav-toggle { display: block; }
  .about .wrap, .contact .wrap { grid-template-columns: 1fr; }
  .about-photo { max-width: 380px; margin: 0 auto; }
  .services-grid, .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .services-grid, .testimonial-grid, .why-grid, .footer-grid, .team-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { min-height: 80vh; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .site-header .wrap { padding: 14px 18px; }
  .brand-name { font-size: 17px; }
  .brand-mark { width: 28px; height: 28px; }
  .header-actions { gap: 8px; }
  .header-actions .btn-primary {
    padding: 9px 14px;
    font-size: 12px;
    letter-spacing: 0;
  }
  .nav-toggle { font-size: 20px; }
  .btn { padding: 13px 24px; font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--blush-dark);
  outline-offset: 2px;
}
