/*
Theme Name: DentAlign
Author: DentAlign Corp
Description: Custom theme for dentaligncorp.com.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: dentalign
*/
:root {
  --blue: #20598a;
  --blue-dark: #174468;
  --gold: #b09a62;
  --gold-dark: #97834f;
  --ink: #36342f;
  --text: #4a4741;
  --muted: #766f67;
  --line: #ddd6c9;
  --tint: #f7f4ee;
  --band: #c9c1ad;
  --white: #fff;
  --header-h: 84px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: Montserrat, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 600; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding-left: 1.1em; }
li { margin-bottom: .7em; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Top bar */
.topbar { background: var(--tint); font-size: .85rem; }
.topbar-inner { display: flex; align-items: center; justify-content: flex-end; gap: 24px; }
.topbar-link { color: var(--muted); text-decoration: none; }
.topbar-link:hover { color: var(--ink); }
.topbar-cta { background: var(--blue); color: var(--white); text-decoration: none; font-weight: 600; padding: 10px 22px; }
.topbar-cta:hover { background: var(--blue-dark); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { height: 46px; width: auto; }
.brand-word { height: 34px; width: auto; }
.site-nav { display: flex; gap: 30px; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .95rem; padding: 8px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--gold); }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--ink); }

/* Buttons */
.btn { display: inline-block; padding: 13px 28px; font-weight: 600; font-size: .95rem; text-decoration: none; border-radius: 3px; transition: background-color .15s; }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: var(--tint); }

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: 1fr; min-height: 520px; background: var(--blue); overflow: hidden; }
.hero-photo { position: absolute; inset: 0 34% 0 0; background: url(assets/surgery.jpg) center / cover no-repeat; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: rgba(176, 154, 98, .22); }
.hero-panel { position: relative; margin-left: 52%; display: flex; align-items: center; background: var(--blue); clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); padding: 56px 6vw 56px 12%; }
.hero-copy { max-width: 430px; color: var(--white); }
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.4rem); margin-bottom: .2em; }
.hero-tag { font-size: 1.15rem; font-weight: 600; color: #e6dcc0; }
.hero-copy p { font-size: 1.05rem; line-height: 1.5; }
.hero .btn { margin-top: 10px; }

/* Sections */
.section { padding: 88px 0; }
.section-tint { background: var(--tint); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--gold-dark); margin-bottom: .8em; }
.lead { font-size: 1.1rem; max-width: 62ch; }
.closing { margin-top: 40px; padding-left: 20px; border-left: 3px solid var(--gold); max-width: 80ch; color: var(--ink); font-weight: 500; }
.source { margin-top: 20px; font-size: .8rem; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: center; }
.welcome { font-size: clamp(2rem, 1.3rem + 2.4vw, 2.9rem); margin: 0; }
.welcome span { display: block; font-weight: 400; font-size: .7em; }
.two-col { columns: 2; column-gap: 48px; margin-top: 24px; }
.two-col p { break-inside: avoid; }

/* Card band */
.band { background: var(--band); padding: 64px 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: var(--white); padding: 40px 34px; display: flex; flex-direction: column; align-items: flex-start; }
.card h3 { font-size: 1.6rem; }
.card p { flex: 1; margin-bottom: 28px; }
.card-blue { background: var(--blue); color: var(--white); }
.card-blue h3 { color: var(--white); }

/* Mission feature */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; background: var(--tint); padding: 0; max-width: 1132px; }
.feature-copy { padding: 52px 48px; }
.feature-copy .btn { margin-top: 10px; }
.feature-img { width: 100%; height: 100%; object-fit: cover; }

/* Approach pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
.pillar { background: var(--white); padding: 32px 30px; border-top: 3px solid var(--gold); }
.pillar-num { display: block; font-size: .85rem; font-weight: 700; color: var(--gold-dark); margin-bottom: 14px; }
.pillar p { margin: 0; }

/* Industry */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin: 44px 0; background: var(--line); border: 1px solid var(--line); }
.stats div { background: var(--white); padding: 26px 20px; display: flex; flex-direction: column-reverse; }
.stats dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.stats dd { margin: 0 0 4px; font-size: clamp(1.5rem, 1rem + 1.4vw, 2.1rem); font-weight: 600; color: var(--blue); font-variant-numeric: tabular-nums; }
.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.topics h3, .strategy h3 { padding-bottom: 12px; border-bottom: 1px solid var(--line); }

/* Geography */
.data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 44px; }
.panel { background: var(--white); padding: 32px 30px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: right; }
th:first-child { text-align: left; }
thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
tbody th { font-weight: 500; color: var(--ink); }
.bars { list-style: none; padding: 0; }
.bars li { display: grid; grid-template-columns: 9.5em 1fr 3.6em; align-items: center; gap: 12px; margin-bottom: 18px; }
.bar-track { height: 12px; background: var(--tint); }
.bar-fill { display: block; height: 100%; min-width: 3px; background: var(--blue); }
.bar-fill-gold { background: var(--gold); }
.bar-value { text-align: right; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Strategy */
.strategy { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
.strategy article { background: var(--tint); padding: 34px 32px; }
.strategy strong { color: var(--ink); }

/* Leadership */
.founder { display: grid; grid-template-columns: 240px 1fr; gap: 44px; align-items: center; margin: 36px 0 0; background: var(--white); padding: 40px; }
.founder img { border-radius: 50%; }
.founder-role { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--gold-dark); }
.founder blockquote { margin: 0 0 18px; font-size: 1.1rem; color: var(--ink); }
.founder figcaption strong { display: block; color: var(--ink); font-size: 1.05rem; }
.roles { list-style: none; padding: 0; margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.roles li { margin: 0; background: var(--white); padding: 20px 24px; border-left: 3px solid var(--gold); font-weight: 600; color: var(--ink); }

/* Contact */
.contact { background: var(--blue); color: var(--white); padding: 80px 0; }
.contact h2 { color: var(--white); }
.contact .eyebrow { color: #e6dcc0; }
.contact-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.contact-list { display: flex; flex-wrap: wrap; gap: 16px 44px; margin: 32px 0; }
.contact-list dd, a[href^="tel:"] { white-space: nowrap; }
.contact-list dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: #e6dcc0; }
.contact-list dd { margin: 4px 0 0; font-weight: 600; }
.contact-list a { color: var(--white); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-img { max-width: 360px; width: 100%; justify-self: center; }

/* Footer */
.site-footer { background: var(--ink); color: #c1bcaa; font-size: .9rem; padding-top: 64px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-brand img { width: 170px; margin-bottom: 20px; }
.footer-brand p { max-width: 36ch; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: #ece5d6; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .78rem; }

@media (max-width: 960px) {
  .site-nav { gap: 20px; }
  .split, .feature, .data-grid, .strategy, .contact-inner { grid-template-columns: 1fr; }
  .split { gap: 24px; }
  .cards, .pillars, .topics { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .two-col { columns: 1; }
  .feature-img { max-height: 260px; }
  .contact-img { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 12px 20px rgba(0, 0, 0, .08); padding: 8px 24px 16px; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .brand-mark { height: 38px; }
  .brand-word { height: 27px; }
  .topbar-email { display: none; }
  .topbar-inner { justify-content: space-between; padding-right: 0; }
  .hero { min-height: 0; }
  .hero-photo { position: relative; inset: auto; height: 240px; }
  .hero-panel { margin-left: 0; clip-path: none; padding: 40px 24px 48px; }
  .section { padding: 60px 0; }
  .feature-copy { padding: 36px 24px; }
  .founder { grid-template-columns: 1fr; padding: 28px 24px; gap: 24px; }
  .founder img { width: 160px; }
  .roles { grid-template-columns: 1fr 1fr; }
  .contact-list { flex-direction: column; }
}

@media (max-width: 480px) {
  .roles { grid-template-columns: 1fr; }
  .bars li { grid-template-columns: 7.5em 1fr 3.4em; gap: 8px; font-size: .9rem; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Pages and posts added in WordPress */
.page-content { max-width: 820px; }
.page-title { font-size: clamp(2rem, 1.3rem + 2.4vw, 2.9rem); }
.page-content img { margin: 1.5em 0; }