/*
Theme Name: Carisma Dent Modern
Theme URI: https://carismadent.wordpress.com/
Author: OpenAI Codex
Description: A minimal, responsive WordPress theme for Carisma Dent.
Version: 1.0.0
Requires at least: 6.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: carisma-dent-modern
*/

:root {
	--color-ink: #17201f;
	--color-muted: #5d6a67;
	--color-paper: #fbfbf8;
	--color-surface: #ffffff;
	--color-line: #d9ded8;
	--color-teal: #2f6f73;
	--color-coral: #bf6b58;
	--color-gold: #a88443;
	--color-sage: #e9f1ed;
	--color-rose: #f6ece8;
	--shadow-soft: 0 18px 50px rgba(23, 32, 31, 0.09);
	--radius: 8px;
	--site-width: 1180px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--color-paper);
	color: var(--color-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 17px;
	line-height: 1.6;
	letter-spacing: 0;
}

body.admin-bar .site-header {
	top: 32px;
}

a {
	color: inherit;
	text-decoration-color: rgba(47, 111, 115, 0.45);
	text-underline-offset: 0.18em;
}

a:hover,
a:focus {
	color: var(--color-teal);
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

address {
	font-style: normal;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	top: 12px;
	left: 12px;
	z-index: 100000;
	display: block;
	width: auto;
	height: auto;
	padding: 12px 16px;
	clip: auto;
	background: var(--color-surface);
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
	color: var(--color-ink);
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(251, 251, 248, 0.92);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid rgba(217, 222, 216, 0.82);
}

.site-header__inner {
	width: min(100% - 40px, var(--site-width));
	min-height: 76px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 24px;
}

.site-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-width: 230px;
	text-decoration: none;
}

.site-brand__mark {
	width: 42px;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	border: 1px solid rgba(47, 111, 115, 0.22);
	border-radius: 50%;
	background: linear-gradient(135deg, var(--color-sage), var(--color-rose));
	color: var(--color-teal);
	font-weight: 700;
	font-size: 0.85rem;
}

.site-brand__logo img {
	width: 48px;
	height: 48px;
	object-fit: contain;
}

.site-brand__text {
	display: grid;
	gap: 0;
}

.site-brand__name {
	font-size: 1.02rem;
	font-weight: 750;
	line-height: 1.1;
}

.site-brand__tagline {
	max-width: 260px;
	color: var(--color-muted);
	font-size: 0.74rem;
	line-height: 1.25;
}

.primary-navigation {
	margin-left: auto;
}

.nav-menu {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-menu a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 12px;
	border-radius: var(--radius);
	color: var(--color-muted);
	font-size: 0.93rem;
	font-weight: 620;
	text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a:focus,
.nav-menu .current-menu-item > a {
	background: rgba(47, 111, 115, 0.08);
	color: var(--color-teal);
}

.header-phone {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 13px;
	border: 1px solid rgba(47, 111, 115, 0.28);
	border-radius: var(--radius);
	color: var(--color-teal);
	font-size: 0.93rem;
	font-weight: 720;
	text-decoration: none;
	white-space: nowrap;
}

.site-nav-toggle {
	display: none;
	width: 42px;
	height: 42px;
	margin-left: auto;
	padding: 0;
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	background: var(--color-surface);
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
}

.site-nav-toggle__line {
	width: 18px;
	height: 2px;
	background: var(--color-ink);
	border-radius: 2px;
}

.hero {
	position: relative;
	min-height: 620px;
	display: flex;
	align-items: center;
	background-position: center;
	background-size: cover;
	color: #ffffff;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(18, 30, 31, 0.76), rgba(18, 30, 31, 0.46) 48%, rgba(18, 30, 31, 0.12)),
		linear-gradient(0deg, rgba(18, 30, 31, 0.3), rgba(18, 30, 31, 0));
}

.hero__inner {
	position: relative;
	width: min(100% - 40px, var(--site-width));
	margin: 0 auto;
	padding: 92px 0 118px;
}

.eyebrow {
	margin: 0 0 14px;
	color: var(--color-coral);
	font-size: 0.78rem;
	font-weight: 780;
	text-transform: uppercase;
	letter-spacing: 0;
}

.hero .eyebrow {
	color: #f3d2c9;
}

.hero h1 {
	max-width: 720px;
	margin: 0;
	font-size: 4.15rem;
	line-height: 1.02;
	letter-spacing: 0;
}

.hero__lead {
	max-width: 640px;
	margin: 22px 0 0;
	color: rgba(255, 255, 255, 0.9);
	font-size: 1.28rem;
	line-height: 1.55;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 34px;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 18px;
	border-radius: var(--radius);
	font-weight: 740;
	text-decoration: none;
}

.button--primary {
	background: var(--color-teal);
	color: #ffffff;
}

.button--primary:hover,
.button--primary:focus {
	background: #24595d;
	color: #ffffff;
}

.button--light {
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.42);
	color: #ffffff;
}

.button--light:hover,
.button--light:focus {
	background: rgba(255, 255, 255, 0.24);
	color: #ffffff;
}

.quick-info {
	background: var(--color-surface);
	border-bottom: 1px solid var(--color-line);
}

.quick-info__inner {
	width: min(100% - 40px, var(--site-width));
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}

.quick-info__inner > div {
	min-height: 112px;
	padding: 24px 30px;
	border-left: 1px solid var(--color-line);
}

.quick-info__inner > div:last-child {
	border-right: 1px solid var(--color-line);
}

.quick-info__label {
	display: block;
	margin-bottom: 6px;
	color: var(--color-muted);
	font-size: 0.78rem;
	font-weight: 720;
	text-transform: uppercase;
}

.quick-info strong {
	display: block;
	font-size: 1.05rem;
	line-height: 1.35;
}

.section {
	padding: 92px 0;
}

.section--paper {
	background: var(--color-paper);
}

.section--split {
	background: var(--color-surface);
}

.section--location {
	background: var(--color-sage);
}

.section--contact {
	background: var(--color-ink);
	color: #ffffff;
}

.section__inner {
	width: min(100% - 40px, var(--site-width));
	margin: 0 auto;
}

.section-heading {
	max-width: 680px;
	margin-bottom: 34px;
}

.section-heading h2,
.copy-block h2,
.location-copy h2,
.contact-layout h2,
.entry-header h1,
.content-article h1 {
	margin: 0;
	font-size: 2.35rem;
	line-height: 1.15;
	letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.copy-block p,
.location-copy p,
.contact-layout p {
	color: var(--color-muted);
	font-size: 1.04rem;
}

.section--contact .contact-layout p {
	color: rgba(255, 255, 255, 0.72);
}

.treatment-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.treatment-card {
	min-height: 250px;
	padding: 30px;
	background: var(--color-surface);
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
}

.treatment-card h3 {
	margin: 0 0 20px;
	font-size: 1.35rem;
	line-height: 1.2;
}

.treatment-card ul {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.treatment-card li {
	display: flex;
	gap: 10px;
	align-items: baseline;
	color: var(--color-muted);
}

.treatment-card li span {
	width: 32px;
	flex: 0 0 32px;
	color: var(--color-coral);
	font-size: 0.78rem;
	font-weight: 780;
}

.treatment-card p {
	margin: 24px 0 0;
	color: var(--color-ink);
}

.split-layout {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 64px;
	align-items: center;
}

.image-pair {
	position: relative;
	min-height: 420px;
}

.image-pair__main,
.image-pair__portrait {
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
	object-fit: cover;
}

.image-pair__main {
	width: 88%;
	aspect-ratio: 4 / 3;
}

.image-pair__portrait {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 160px;
	aspect-ratio: 4 / 5;
	border: 8px solid var(--color-surface);
}

.copy-block__facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-top: 28px;
}

.copy-block__facts p {
	margin: 0;
	padding: 18px;
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	background: var(--color-paper);
}

.copy-block__facts strong {
	display: block;
	margin-bottom: 4px;
	color: var(--color-muted);
	font-size: 0.78rem;
	text-transform: uppercase;
}

.copy-block__facts a {
	font-weight: 720;
	text-decoration: none;
	word-break: break-word;
}

.location-layout {
	display: grid;
	grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
	gap: 46px;
	align-items: center;
}

.location-copy address {
	margin: 24px 0;
	padding-left: 18px;
	border-left: 3px solid var(--color-coral);
	color: var(--color-ink);
}

.text-link {
	color: var(--color-teal);
	font-weight: 760;
}

.map-figure {
	margin: 0;
}

.map-figure img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border: 1px solid rgba(23, 32, 31, 0.12);
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
}

.contact-layout {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 44px;
	align-items: center;
}

.contact-layout .eyebrow {
	color: #f3d2c9;
}

.contact-methods {
	display: grid;
	gap: 14px;
}

.contact-method {
	display: grid;
	gap: 4px;
	padding: 24px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.06);
	color: #ffffff;
	text-decoration: none;
}

.contact-method:hover,
.contact-method:focus {
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
}

.contact-method span {
	color: rgba(255, 255, 255, 0.66);
	font-size: 0.8rem;
	font-weight: 740;
	text-transform: uppercase;
}

.contact-method strong {
	font-size: 1.15rem;
	word-break: break-word;
}

.site-footer {
	background: #101716;
	color: rgba(255, 255, 255, 0.7);
}

.site-footer__inner {
	width: min(100% - 40px, var(--site-width));
	margin: 0 auto;
	padding: 38px 0;
	display: grid;
	grid-template-columns: 1.1fr 1fr 1fr auto;
	gap: 24px;
	align-items: start;
}

.site-footer p {
	margin: 0;
}

.footer-brand {
	color: #ffffff;
	font-weight: 780;
}

.footer-contact {
	display: grid;
	gap: 4px;
}

.footer-contact a {
	color: #ffffff;
	text-decoration: none;
}

.footer-copy {
	white-space: nowrap;
}

.page-shell {
	width: min(100% - 40px, 860px);
	margin: 0 auto;
	padding: 86px 0;
}

.content-article {
	padding: 42px;
	background: var(--color-surface);
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
}

.content-article--summary + .content-article--summary {
	margin-top: 22px;
}

.content-article--summary h2 {
	margin: 0;
	font-size: 1.6rem;
}

.entry-meta {
	margin: 6px 0 0;
	color: var(--color-muted);
	font-size: 0.9rem;
}

.entry-content > *:first-child,
.entry-summary > *:first-child {
	margin-top: 0;
}

.entry-content > *:last-child,
.entry-summary > *:last-child {
	margin-bottom: 0;
}

.entry-content img {
	border-radius: var(--radius);
}

.nav-links {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	margin-top: 28px;
}

@media (max-width: 980px) {
	.site-header__inner {
		gap: 16px;
	}

	.site-brand {
		min-width: 210px;
	}

	.header-phone {
		display: none;
	}

	.hero h1 {
		font-size: 3.3rem;
	}

	.quick-info__inner {
		grid-template-columns: 1fr;
	}

	.quick-info__inner > div {
		min-height: 0;
		border-right: 1px solid var(--color-line);
		border-bottom: 1px solid var(--color-line);
	}

	.treatment-grid,
	.split-layout,
	.location-layout,
	.contact-layout,
	.site-footer__inner {
		grid-template-columns: 1fr;
	}

	.split-layout,
	.location-layout,
	.contact-layout {
		gap: 34px;
	}

	.site-footer__inner {
		gap: 18px;
	}

	.footer-copy {
		white-space: normal;
	}
}

@media (max-width: 760px) {
	body.admin-bar .site-header {
		top: 46px;
	}

	body {
		font-size: 16px;
	}

	.site-header__inner {
		width: min(100% - 28px, var(--site-width));
		min-height: 68px;
		flex-wrap: wrap;
		padding: 10px 0;
	}

	.site-brand {
		min-width: 0;
		flex: 1 1 auto;
	}

	.site-brand__tagline {
		display: none;
	}

	.site-nav-toggle {
		display: inline-flex;
	}

	.primary-navigation {
		display: none;
		width: 100%;
		margin-left: 0;
		padding-top: 6px;
	}

	.primary-navigation.is-open {
		display: block;
	}

	.nav-menu {
		display: grid;
		gap: 4px;
		padding-bottom: 4px;
	}

	.nav-menu a {
		justify-content: flex-start;
		min-height: 44px;
		padding: 10px 0;
	}

	.hero {
		min-height: 560px;
		background-position: 58% center;
	}

	.hero::before {
		background: linear-gradient(90deg, rgba(18, 30, 31, 0.82), rgba(18, 30, 31, 0.48));
	}

	.hero__inner {
		width: min(100% - 28px, var(--site-width));
		padding: 74px 0 92px;
	}

	.hero h1 {
		font-size: 2.55rem;
	}

	.hero__lead {
		font-size: 1.06rem;
	}

	.hero__actions {
		align-items: stretch;
		flex-direction: column;
		max-width: 320px;
	}

	.button {
		width: 100%;
	}

	.quick-info__inner,
	.section__inner,
	.site-footer__inner,
	.page-shell {
		width: min(100% - 28px, var(--site-width));
	}

	.quick-info__inner > div {
		padding: 18px 0;
		border-left: 0;
		border-right: 0;
	}

	.section {
		padding: 66px 0;
	}

	.section-heading h2,
	.copy-block h2,
	.location-copy h2,
	.contact-layout h2,
	.entry-header h1,
	.content-article h1 {
		font-size: 1.85rem;
	}

	.treatment-card,
	.contact-method,
	.content-article {
		padding: 22px;
	}

	.image-pair {
		min-height: 350px;
	}

	.image-pair__main {
		width: 100%;
	}

	.image-pair__portrait {
		width: 128px;
		border-width: 6px;
	}

	.copy-block__facts {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 420px) {
	.hero {
		min-height: 530px;
	}

	.hero h1 {
		font-size: 2.25rem;
	}

	.site-brand__name {
		font-size: 0.98rem;
	}

	.contact-method strong {
		font-size: 1rem;
	}
}
