/*
Theme Name: Dentista Mais
Author: Dentista Mais
Description: Tema de pesquisa de satisfação da clínica Dentista Mais. A página inicial exibe o formulário do plugin Dentista Mais Avaliações.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dentista-mais
*/

:root {
	--dm-ink: #173e36;
	--dm-muted: #51665b;
	--dm-page: #f8f7f2;
	--dm-green: #194e40;
	--dm-rule: #d5ded4;
	--dm-edge: clamp(1.25rem, 4.6vw, 5.25rem);
	--dm-font: "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--dm-page);
	color: var(--dm-ink);
	font: 1rem/1.55 var(--dm-font);
	-webkit-font-smoothing: antialiased;
}
body.admin-bar { min-height: calc(100vh - 32px); }
a { color: var(--dm-green); }
img { max-width: 100%; height: auto; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 3px solid #106d54;
	outline-offset: 4px;
}
.dm-wrap { width: min(calc(100% - var(--dm-edge) * 2), 1220px); margin-inline: auto; }
.dm-skip {
	position: fixed;
	z-index: 100000;
	left: 1rem;
	top: -20rem;
	padding: .7rem 1rem;
	background: #fff;
	color: var(--dm-ink);
	font-weight: bold;
	border: 1px solid var(--dm-green);
	border-radius: 8px;
}
.dm-skip:focus { top: 1rem; }
.dm-header { border-bottom: 1px solid var(--dm-rule); }
.dm-header__inner, .dm-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
.dm-header__inner { min-height: 86px; }
.dm-brand {
	display: inline-flex;
	align-items: center;
	gap: .62rem;
	color: var(--dm-ink);
	font-size: clamp(1.35rem, 2.35vw, 1.75rem);
	font-weight: 450;
	letter-spacing: -.068em;
	text-decoration: none;
	line-height: 1;
}
.dm-brand img { width: 42px; height: 42px; }
.dm-brand strong, .dm-footer__brand strong { font-weight: 750; }
.dm-header__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	font-size: .84rem;
	font-weight: 600;
	text-decoration: none;
	min-height: 42px;
}
.dm-header__link:hover, .dm-footer a:hover { text-decoration: underline; text-underline-offset: .22em; }
.dm-home {
	display: grid;
	grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
	align-items: start;
	gap: clamp(2rem, 5.4vw, 5.65rem);
	padding-block: clamp(2.8rem, 5.25vw, 5rem) clamp(3rem, 7vw, 6rem);
	flex: 1 0 auto;
}
.dm-intro { padding-top: .65rem; max-width: 540px; min-width: 0; }
.dm-kicker {
	display: flex;
	align-items: center;
	gap: .69rem;
	margin: 0 0 1.25rem;
	color: #3a5a4d;
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .15em;
	text-transform: uppercase;
}
.dm-kicker span { width: 25px; height: 3px; border-radius: 2px; background: #d78670; }
.dm-title {
	font: 400 clamp(3.5rem, 6.1vw, 5.8rem)/.99 Georgia, "Times New Roman", serif;
	letter-spacing: -.065em;
	margin: 0;
}
.dm-title em { display: block; font-weight: 400; letter-spacing: -.065em; }
.dm-intro__lead {
	max-width: 29rem;
	margin: 1.45rem 0 0;
	color: var(--dm-muted);
	font-size: clamp(1rem, 1.34vw, 1.13rem);
	line-height: 1.58;
}
.dm-illustration {
	display: block;
	width: 100%;
	margin-top: clamp(1.8rem, 3.3vw, 3.25rem);
}
.dm-survey { min-width: 0; scroll-margin-top: 1.5rem; }
.dm-notice, .dm-entry {
	border: 1px solid var(--dm-rule);
	border-radius: 16px;
	background: #fff;
	padding: clamp(1.25rem, 4vw, 3rem);
	overflow-wrap: break-word;
}
.dm-notice h2, .dm-content h1, .dm-content h2 { margin-top: 0; line-height: 1.15; }
.dm-content { max-width: 850px; padding-block: 3.5rem; flex: 1; }
.dm-entry + .dm-entry { margin-top: 1.5rem; }
.dm-entry h1, .dm-entry h2 { font-family: Georgia, serif; letter-spacing: -.035em; }
.dm-entry > :last-child { margin-bottom: 0; }
.dm-footer {
	margin-top: auto;
	border-top: 1px solid var(--dm-rule);
	padding-block: 1.4rem;
	color: var(--dm-muted);
	font-size: .84rem;
}
.dm-footer__brand { color: var(--dm-ink); font-size: 1.06rem; letter-spacing: -.065em; }
.dm-footer a { color: inherit; text-underline-offset: .2em; }
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
@media (min-width: 1600px) {
	.dm-home { padding-top: 5.5rem; }
}
@media (max-width: 1000px) and (min-width: 821px) {
	.dm-home { grid-template-columns: minmax(0, .69fr) minmax(0, 1fr); gap: 1.75rem; }
	.dm-title { font-size: clamp(3.25rem, 6vw, 4.25rem); }
}
@media (max-width: 820px) {
	.dm-header__inner { min-height: 70px; }
	.dm-home { display: flex; flex-direction: column; gap: 1.8rem; max-width: 640px; padding-block: 2.25rem 3rem; }
	.dm-intro { padding: 0; width: 100%; max-width: none; }
	.dm-title { font-size: clamp(3rem, 8vw, 4.6rem); }
	.dm-title em { display: inline; }
	.dm-kicker { margin-bottom: .85rem; }
	.dm-intro__lead { margin-top: .9rem; max-width: 32rem; }
	.dm-illustration { display: none; }
	.dm-survey { width: 100%; }
}
@media (max-width: 460px) {
	.dm-brand { font-size: 1.32rem; gap: .43rem; }
	.dm-brand img { width: 34px; height: 34px; }
	.dm-header__link { gap: .35rem; font-size: .78rem; }
	.dm-title em { display: block; }
	.dm-intro__lead { font-size: .98rem; }
}
@media (max-width: 782px) { body.admin-bar { min-height: calc(100vh - 46px); } }
@media (prefers-reduced-motion: no-preference) { html:focus-within { scroll-behavior: smooth; } }
