/*
Theme Name: Dentales
Description: Custom theme for Dentales Hambaravi. No page builder, no framework.
Version: 1.0.0
Requires PHP: 8.0
Text Domain: dentales
*/

/* ==========================================================================
   Tokens. Lime is the logo's green; the dark tone comes from the clinic's wall.
   ========================================================================== */

@font-face {
	font-family: "Inter";
	src: url("assets/fonts/inter-latin.woff2") format("woff2");
	font-weight: 400 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Inter";
	src: url("assets/fonts/inter-latin-ext.woff2") format("woff2");
	font-weight: 400 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--lime: #81d742;
	--lime-hover: #73c936;
	--green: #3a7d14;
	--tint: #f4f8ef;
	--tile: #e9f6dc;
	--ink: #14181b;
	--body: #454e56;
	--muted: #68727a;
	--line: #e4e8ea;
	--slate: #24323c;
	--white: #fff;
	--radius: 16px;
	--shadow: 0 1px 2px rgba(20, 24, 27, .04), 0 8px 24px rgba(20, 24, 27, .06);
	--shadow-hover: 0 2px 4px rgba(20, 24, 27, .05), 0 14px 34px rgba(20, 24, 27, .1);
	--container: 1200px;
	--gutter: clamp(1.25rem, 4vw, 2rem);
	--section: clamp(3.5rem, 7vw, 6rem);
}

/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
html.ds-menu-open { overflow: hidden; }
body {
	margin: 0;
	background: var(--white);
	color: var(--body);
	font: 400 1.0625rem/1.7 "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}
img, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--green); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0 0 .6em; color: var(--ink); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.75rem); letter-spacing: -.03em; line-height: 1.08; }
h2 { font-size: clamp(1.65rem, 1.35rem + 1.3vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
main { display: block; }

.ds-container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.ds-narrow { max-width: calc(780px + var(--gutter) * 2); }
.ds-skip { position: absolute; left: -9999px; }
.ds-skip:focus { left: 1rem; top: 1rem; z-index: 100; padding: .5rem 1rem; background: var(--white); }
.ds-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ds-icon { flex: none; }
.ds-small { font-size: .875rem; color: var(--muted); }

.ds-section { padding-block: var(--section); }
.ds-section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.ds-section--tint { background: var(--tint); }

.ds-eyebrow { margin: 0 0 .75rem; color: var(--green); font-size: .875rem; font-weight: 650; letter-spacing: .02em; }
.ds-lead { font-size: clamp(1.05rem, 1rem + .25vw, 1.2rem); line-height: 1.6; color: var(--body); max-width: 62ch; }
.ds-head { margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 720px; }
.ds-head .ds-lead { margin-bottom: 0; }
.ds-head--center { margin-inline: auto; text-align: center; }
.ds-head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; max-width: none; }
.ds-head--split > div { max-width: 720px; }
.ds-head h2:last-child { margin-bottom: 0; }

.ds-grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.ds-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ds-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ds-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.ds-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.ds-layout--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ds-layout--booking { grid-template-columns: minmax(0, 1fr) 320px; }
.ds-aside { display: grid; gap: 1.25rem; }
.ds-aside__title { margin-bottom: .85rem; font-size: 1.15rem; letter-spacing: -.01em; }
.ds-aside .ds-doctor__photo { max-width: 300px; }
.ds-aside .ds-doctor + .ds-doctor { margin-top: 1.5rem; }
.ds-plainlist { list-style: none; display: grid; gap: .6rem; }
.ds-photo img { width: 100%; border-radius: var(--radius); }
.ds-photo--article { margin-bottom: 2rem; }
.ds-photo--article img { aspect-ratio: 2 / 1; object-fit: cover; }

/* Buttons and links */
.ds-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	padding: .72rem 1.5rem; border: 1.5px solid transparent; border-radius: 999px;
	font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.3; text-decoration: none; white-space: nowrap;
	cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.ds-btn--lg { padding: .9rem 1.85rem; font-size: 1.0625rem; }
.ds-btn--primary { background: var(--lime); color: var(--ink); }
.ds-btn--primary:hover { background: var(--lime-hover); color: var(--ink); transform: translateY(-1px); }
.ds-btn--ghost { background: var(--white); border-color: #cfd6da; color: var(--ink); }
.ds-btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.ds-btn--light { border-color: rgba(255, 255, 255, .4); color: var(--white); }
.ds-btn--light:hover { border-color: var(--white); color: var(--white); }
/* Buttons side by side are always the same size: the widest one sets the width. */
.ds-actions, .ds-cta__actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .75rem; width: fit-content; max-width: 100%; }
.ds-actions { margin-top: 1.5rem; }
.ds-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--green); font-weight: 600; text-decoration: none; }
.ds-link:hover { color: var(--ink); }
.ds-link .ds-icon { transition: transform .15s; }
.ds-link:hover .ds-icon { transform: translateX(3px); }

/* Cards */
.ds-card { position: relative; padding: clamp(1.25rem, 2.2vw, 1.75rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.ds-card > :last-child { margin-bottom: 0; }
.ds-card__link { color: inherit; text-decoration: none; }
.ds-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ds-card:has(.ds-card__link) { transition: box-shadow .2s, border-color .2s, transform .2s; }
.ds-card:has(.ds-card__link):hover { border-color: transparent; box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.ds-card__more { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; color: var(--green); font-size: .9375rem; font-weight: 600; }
.ds-tile { display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--tile); color: var(--green); }

.ds-service { display: flex; flex-direction: column; align-items: flex-start; }
.ds-service .ds-tile { margin-bottom: 1rem; }
.ds-service p { font-size: .9688rem; line-height: 1.6; }

.ds-clinic { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.ds-clinic__top { padding: clamp(1.25rem, 2.2vw, 1.75rem) clamp(1.25rem, 2.2vw, 1.75rem) 1.25rem; }
.ds-clinic__top .ds-tile { margin-bottom: 1rem; }
.ds-clinic__top h3 { margin-bottom: .3rem; }
.ds-clinic__top p { margin: 0; }
/* The times fill the rest of the card, so all three cards end on the same line. */
.ds-clinic__times { flex: 1; padding: 1rem clamp(1.25rem, 2.2vw, 1.75rem) 1.25rem; background: var(--tint); border-top: 1px solid var(--line); }
.ds-clinic__times h4, .ds-times h2 { margin: 0 0 .35rem; font-size: .9688rem; font-weight: 650; letter-spacing: 0; line-height: 1.4; }
.ds-clinic__times ul, .ds-times ul { list-style: none; color: var(--ink); font-size: .9688rem; line-height: 1.6; }
.ds-times__doctor { margin: 0 0 .35rem; color: var(--green); font-size: .9063rem; font-weight: 600; }
.ds-nowrap { white-space: nowrap; }
.ds-review { display: flex; flex-direction: column; gap: .75rem; margin: 0; }
.ds-review blockquote { margin: 0; color: var(--ink); line-height: 1.6; }
.ds-review figcaption { margin-top: auto; color: var(--muted); font-size: .9063rem; }

.ds-benefit { display: flex; gap: 1rem; margin-top: 1.5rem; }
.ds-benefit h3 { margin-bottom: .25rem; }
.ds-benefit p { margin-bottom: .35rem; }

.ds-collage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ds-collage img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); }
.ds-collage img:last-child { margin-top: 3rem; }

/* ==========================================================================
   Header
   ========================================================================== */


.ds-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.admin-bar .ds-header { top: 32px; }
.ds-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.ds-logo { flex: none; display: block; }
.ds-logo img { width: auto; height: 42px; }
.ds-nav { margin-left: auto; }
.ds-menu { display: flex; align-items: center; gap: .15rem; list-style: none; }
.ds-menu > li { position: relative; display: flex; align-items: center; }
.ds-menu a { display: block; padding: .5rem .8rem; border-radius: 8px; color: var(--ink); font-size: .9688rem; font-weight: 500; text-decoration: none; }
.ds-menu a:hover { color: var(--green); }
.ds-menu > .current-menu-item > a, .ds-menu > .current-menu-parent > a, .ds-menu > .current-menu-ancestor > a, .ds-menu > .current_page_parent > a { color: var(--green); }
.ds-menu .sub-menu {
	position: absolute; top: 100%; left: 0; z-index: 60; min-width: 270px; padding: .5rem; list-style: none;
	background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-hover);
	opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.ds-menu > li:hover > .sub-menu, .ds-menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ds-menu .sub-menu a { padding: .45rem .7rem; font-size: .9375rem; font-weight: 450; }
.ds-menu .sub-menu a:hover { background: var(--tint); }
.ds-sub-toggle { display: none; }
.ds-header__cta { flex: none; }
.ds-nav-toggle { display: none; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); cursor: pointer; }

/* ==========================================================================
   Front page
   ========================================================================== */

.ds-hero { position: relative; display: flex; align-items: center; min-height: clamp(520px, 72vh, 700px); overflow: hidden; }
.ds-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 80% 45%; }
.ds-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .93) 34%, rgba(255, 255, 255, .55) 56%, rgba(255, 255, 255, 0) 76%); }
.ds-hero__inner { position: relative; z-index: 1; padding-block: 3rem 6rem; }
.ds-hero__copy { max-width: 780px; }
.ds-hero h1 { margin-bottom: .45em; font-size: clamp(1.75rem, 1rem + 4.6vw, 4.875rem); letter-spacing: -.05em; }
/* The city names take turns. All three are always in the HTML, so search engines
   and screen readers get the whole sentence. They share one grid cell, so the
   headline never changes size, and it needs no JavaScript. Same motion as the old
   site: a new word every 1.5s, sliding in from the left and out to the right over .6s. */
.ds-cities { display: grid; font-weight: 900; }
.ds-cities > span { grid-area: 1 / 1; justify-self: start; opacity: 0; animation: ds-city 4.5s infinite backwards; }
.ds-cities > span:nth-child(1) { opacity: 1; }
.ds-cities > span:nth-child(2) { animation-delay: 1.5s; }
.ds-cities > span:nth-child(3) { animation-delay: 3s; }
@keyframes ds-city {
	0% { opacity: 0; transform: translateX(-100%); }
	8% { opacity: 1; transform: translateX(10%); }
	13.33%, 33.33% { opacity: 1; transform: none; }
	41.33% { opacity: 0; transform: translateX(110%); }
	46.67%, 100% { opacity: 0; transform: translateX(100%); }
}
.ds-hero__lead { margin: 0; color: var(--ink); font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); font-weight: 500; line-height: 1.45; }
/* The current offer: a card on the photo on larger screens, a small label above the headline on smaller ones. */
.ds-pill { display: none; align-items: center; gap: .6rem; width: fit-content; max-width: 100%; margin: 0 0 1.1rem; padding: .32rem .95rem .32rem .36rem; background: var(--white); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: .9375rem; font-weight: 500; line-height: 1.3; text-decoration: none; box-shadow: 0 1px 3px rgba(20, 24, 27, .07); }
.ds-pill b, .ds-offer b { flex: none; background: var(--lime); border-radius: 999px; font-weight: 650; }
.ds-pill b { padding: .14rem .6rem; font-size: .8125rem; }
.ds-pill .ds-icon { flex: none; }
.ds-offer { position: absolute; z-index: 1; right: max(var(--gutter), calc((100% - var(--container)) / 2)); bottom: 6.5rem; display: flex; align-items: center; gap: 1rem; width: 372px; padding: .85rem 1.15rem .85rem .85rem; background: var(--white); border-radius: var(--radius); color: var(--muted); font-size: .9063rem; line-height: 1.35; text-decoration: none; box-shadow: var(--shadow-hover); transition: transform .15s; }
.ds-offer:hover { color: var(--muted); transform: translateY(-2px); }
.ds-offer img { flex: none; width: 96px; height: 86px; object-fit: contain; }
.ds-offer b { display: inline-block; margin-bottom: .25rem; padding: .06rem .5rem; color: var(--ink); font-size: .75rem; }
.ds-offer strong { display: block; color: var(--ink); font-size: 1.0625rem; font-weight: 700; line-height: 1.25; }

.ds-stats-wrap { position: relative; z-index: 2; margin-top: -3.5rem; }
.ds-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; background: var(--white); border-radius: 20px; box-shadow: var(--shadow-hover); }
.ds-stats li { padding: clamp(1.1rem, 2.5vw, 1.75rem); text-align: center; }
.ds-stats li + li { border-left: 1px solid var(--line); }
.ds-stats strong { display: block; color: var(--ink); font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.4rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.ds-stats span { color: var(--muted); font-size: .9375rem; }

.ds-times { padding: clamp(1.1rem, 2.2vw, 1.5rem) clamp(1.25rem, 2.5vw, 1.75rem); background: var(--tint); border-radius: var(--radius); }

.ds-team { row-gap: 2rem; }
.ds-doctor__photo { overflow: hidden; margin-bottom: .9rem; aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--tile); }
.ds-doctor__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; transition: transform .35s; }
.ds-doctor:hover img { transform: scale(1.03); }
.ds-doctor__name { margin-bottom: .1rem; font-size: 1.0625rem; }
.ds-doctor__role { margin: 0 0 .25rem; color: var(--green); font-size: .875rem; font-weight: 600; }
.ds-doctor__work { margin: 0; color: var(--muted); font-size: .9063rem; line-height: 1.5; }

.ds-article { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.ds-article__img { aspect-ratio: 16 / 9; background: var(--tile); overflow: hidden; }
.ds-article__img img { width: 100%; height: 100%; object-fit: cover; }
.ds-article__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 1.25rem 1.4rem 1.4rem; }
.ds-article h3 { font-size: 1.125rem; }
.ds-article p { font-size: .9688rem; line-height: 1.55; }

/* ==========================================================================
   Inner pages
   ========================================================================== */

.ds-pagehead { padding-block: clamp(2rem, 4vw, 3.25rem); background: var(--tint); }
.ds-pagehead h1 { margin-bottom: .35em; font-size: clamp(2rem, 1.5rem + 2.2vw, 3.1rem); }
.ds-pagehead .ds-lead { margin-bottom: 0; }
.ds-pagehead__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.ds-pagehead__img { overflow: hidden; aspect-ratio: 16 / 10; border-radius: 20px; background: var(--tile); }
.ds-pagehead__img img { width: 100%; height: 100%; object-fit: cover; }
.ds-pagehead__img img[src*="clearx"] { object-fit: contain; }
.ds-byline { margin: 0; color: var(--muted); font-size: .9375rem; }

.ds-crumbs ol { display: flex; flex-wrap: wrap; gap: .1rem .5rem; margin-bottom: 1rem; list-style: none; font-size: .875rem; color: var(--muted); }
.ds-crumbs li + li::before { content: "/"; margin-right: .5rem; color: #aab2b8; }
.ds-crumbs a { color: var(--muted); text-decoration: none; }
.ds-crumbs a:hover { color: var(--green); }

/* Page and article text */
.ds-entry { max-width: 72ch; }
.ds-narrow .ds-entry { max-width: none; }
.ds-entry--after-times { margin-top: 2.5rem; }
.ds-entry > :first-child { margin-top: 0; }
.ds-entry > :last-child { margin-bottom: 0; }
.ds-entry h2 { margin-top: 1.9em; margin-bottom: .55em; font-size: clamp(1.4rem, 1.25rem + .7vw, 1.8rem); }
.ds-entry h3 { margin-top: 1.6em; margin-bottom: .4em; }
.ds-entry ul, .ds-entry ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.ds-entry li { margin-bottom: .4em; }
.ds-entry ul li::marker { color: var(--lime-hover); }
.ds-entry ol li::marker { color: var(--green); font-weight: 600; }
.ds-entry figure { margin: 1.75em 0; }
.ds-entry img { width: 100%; border-radius: 12px; }
.ds-entry table { width: 100%; margin-bottom: 1.2em; border-collapse: collapse; }
.ds-entry th, .ds-entry td { padding: .6rem .5rem; border-bottom: 1px solid var(--line); text-align: left; }

.wp-block-details, .ds-entry details { margin: 0 0 .6rem; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.ds-entry summary { position: relative; padding: .85rem 2.75rem .85rem 1.1rem; color: var(--ink); font-weight: 600; cursor: pointer; list-style: none; }
.ds-entry summary::-webkit-details-marker { display: none; }
.ds-entry summary::after { content: ""; position: absolute; top: 1.2rem; right: 1.2rem; width: .55rem; height: .55rem; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg); transition: transform .15s; }
.ds-entry details[open] summary::after { top: 1.4rem; transform: rotate(-135deg); }
.ds-entry details > p { margin: 0; padding: 0 1.1rem 1rem; }

.ds-prices { width: 100%; border-collapse: collapse; }
.ds-prices th, .ds-prices td { padding: .6rem 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .9688rem; line-height: 1.45; }
.ds-prices tr:last-child th, .ds-prices tr:last-child td { border-bottom: 0; }
.ds-prices th { padding-right: 1rem; color: var(--body); font-weight: 400; text-align: left; }
.ds-prices th small { display: block; color: var(--muted); font-size: .8438rem; }
.ds-prices td { color: var(--ink); font-weight: 650; text-align: right; white-space: nowrap; }
.ds-pricegrid { margin-top: 2.5rem; columns: 2; column-gap: 1.5rem; }
.ds-pricegrid .ds-card { margin-bottom: 1.5rem; break-inside: avoid; }
.ds-aside .ds-prices + .ds-small { margin: .75rem 0; }

.ds-contact-card p { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .6rem; color: var(--ink); font-size: .9844rem; line-height: 1.45; }
.ds-contact-card .ds-small { display: block; color: var(--muted); font-size: .9063rem; }
.ds-contact-card .ds-icon { color: var(--green); }

.ds-related { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 3rem; padding: clamp(1.25rem, 3vw, 2rem); background: var(--tint); border-radius: var(--radius); }
.ds-related > div:first-child { flex: 1 1 340px; }
.ds-related h2 { margin-bottom: .35rem; font-size: 1.35rem; }
.ds-related p:last-child { margin: 0; }
.ds-related .ds-actions { margin-top: 0; }

.ds-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; list-style: none; counter-reset: step; }
.ds-steps li { padding: 1.5rem; background: var(--white); border-radius: var(--radius); counter-increment: step; }
.ds-steps li::before { content: "0" counter(step); display: block; margin-bottom: .6rem; color: var(--lime-hover); font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.ds-steps p { margin: 0; font-size: .9688rem; line-height: 1.55; }

/* Hammas calendar. Only its looks are changed here. The plugin's CSS loads after
   this file, so these rules need the extra .ds-calendar to win. */
.ds-calendar { container-type: inline-size; margin-top: 1.5rem; min-height: 200px; }
.ds-calendar .hp-calendar-container { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.5rem; width: 100%; }
.ds-calendar .hp-calendar { flex: none; max-width: 100%; margin: 0; padding: .75rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); font-family: inherit; }
.ds-calendar .hp-lists { margin: 0 0 .5rem; }
.ds-calendar .hp-loc-list, .ds-calendar .hp-clinic-list, .ds-calendar .hp-profile-list, .ds-calendar .hp-doctor-list { width: 100%; min-height: 42px; margin-bottom: .5rem; padding: .4rem .6rem; background: var(--white); border: 1px solid #cdd4d8; border-radius: 10px; color: var(--ink); font: 400 .9688rem "Inter", system-ui, sans-serif; }
.ds-calendar .hp-month-header { display: flow-root; height: auto; padding: .35rem 0 .6rem; }
.ds-calendar .hp-month-title { margin: 0; color: var(--ink); font: 650 1rem/1.5 "Inter", system-ui, sans-serif; }
.ds-calendar .hp-month-prev div::after, .ds-calendar .hp-month-next div::after { color: var(--green); font: 700 1.1rem/1.4 "Inter", system-ui, sans-serif; }
.ds-calendar .hp-week-header { border-bottom: 1px solid var(--line); }
.ds-calendar .hp-day-box { width: min(42px, calc((100cqw - 28px) / 7)); height: 40px; border-radius: 8px; color: var(--muted); font: 400 .9063rem "Inter", system-ui, sans-serif; line-height: 40px; }
.ds-calendar .hp-day-box .hp-day-label { height: 40px; padding: 0; line-height: 40px; }
.ds-calendar .hp-week-header .hp-day-box { color: var(--ink); font-size: .8125rem; font-weight: 600; }
.ds-calendar .hp-day-box.hp-other-month { color: #bcc3c8; }
.ds-calendar .hp-day-box.hp-today { background: var(--line); color: var(--ink); font-weight: 650; }
.ds-calendar .hp-day-box.hp-available { background: var(--tile); color: var(--green); font-weight: 700; }
.ds-calendar .hp-day-box.hp-available:hover { background: var(--lime); color: var(--ink); }
.ds-calendar .hp-day-box.hp-available.hp-active { background: var(--lime); color: var(--ink); font-size: .9063rem; }
.ds-calendar .hp-calendar-info { flex: 1 1 280px; float: none; width: auto; color: var(--body); font-size: 1rem; }
.ds-calendar .hp-tooltip { width: auto; }
.ds-calendar .hp-tooltip-header { color: var(--ink); font-size: 1.0625rem; }
.ds-calendar .hp-tooltip-container { max-height: 420px; }
.ds-calendar .hp-tooltip-slot { display: flow-root; margin: 0 !important; padding: .4rem 0; border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.ds-calendar .hp-tooltip-slot button { min-width: 84px; padding: .3rem .9rem; border: 0; border-radius: 999px; background: var(--lime); color: var(--ink); font: 600 .875rem "Inter", system-ui, sans-serif; cursor: pointer; }
.ds-calendar .hp-tooltip-slot button:hover { background: var(--lime-hover); }
.ds-formly { width: 100%; height: 1350px; border: 0; }
.ds-map iframe { width: 100%; height: clamp(300px, 40vw, 420px); border: 0; }
.ds-follow { text-align: center; }
.ds-follow .ds-actions { margin: 0 auto; }
.ds-notfound { text-align: center; }
.ds-notfound .ds-lead { margin-inline: auto; }
.ds-notfound .ds-actions { margin-inline: auto; }

.ds-gallery .wp-block-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; }
.ds-gallery .wp-block-gallery figure.wp-block-image { width: 100%; margin: 0; }
.ds-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; transition: opacity .15s; }
.ds-gallery a:hover img { opacity: .88; }
.ds-lightbox { max-width: min(92vw, 1400px); max-height: 92vh; padding: 0; border: 0; border-radius: 12px; background: none; overflow: visible; }
.ds-lightbox::backdrop { background: rgba(20, 24, 27, .85); }
.ds-lightbox img { max-height: 92vh; width: auto; border-radius: 12px; }
.ds-lightbox button { position: absolute; top: .5rem; right: .5rem; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--white); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }

/* Form */
.ds-form { display: grid; gap: 1rem; }
.ds-form label { display: grid; gap: .3rem; color: var(--ink); font-size: .9375rem; font-weight: 550; }
.ds-form input, .ds-form textarea { width: 100%; padding: .7rem .9rem; border: 1px solid #87919a; border-radius: 10px; background: var(--white); color: var(--ink); font: inherit; font-weight: 400; }
.ds-form input:focus, .ds-form textarea:focus { border-color: var(--green); outline: 2px solid var(--tile); }
.ds-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ds-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ds-form .ds-btn { justify-self: start; }
.ds-form__note { margin: 0; color: var(--muted); font-size: .875rem; }
.ds-form__msg { margin: 0; padding: .75rem 1rem; border-radius: 10px; font-weight: 500; }
.ds-form__msg--ok { background: var(--tile); color: #24560a; }
.ds-form__msg--error { background: #fdecea; color: #8a1f13; }

/* ==========================================================================
   Footer, floating button, phone booking bar
   ========================================================================== */

.ds-cta { background: var(--slate); color: rgba(255, 255, 255, .82); }
.ds-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.ds-cta__inner > div:first-child { flex: 1 1 420px; max-width: 640px; }
.ds-cta h2 { margin-bottom: .35em; color: var(--white); }
.ds-cta p { margin: 0; }
.ds-cta :focus-visible { outline-color: var(--white); }

.ds-footer { padding-top: clamp(3rem, 5vw, 4rem); background: var(--white); font-size: .9688rem; }
.ds-footer__grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.1fr; gap: 2.5rem; }
.ds-footer__about p { margin: 1.1rem 0; color: var(--muted); font-size: .9063rem; line-height: 1.65; }
.ds-footer__title { margin-bottom: .75rem; font-size: 1rem; letter-spacing: -.005em; }
.ds-footer__title--gap { margin-top: 1.75rem; }
.ds-footer ul { list-style: none; display: grid; gap: .4rem; }
.ds-footer a { color: var(--body); text-decoration: none; }
.ds-footer a:hover { color: var(--green); }
.ds-social { display: flex; gap: .5rem; }
.ds-social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); }
.ds-social a:hover { border-color: var(--green); }
.ds-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; margin-top: 2.5rem; padding-block: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.ds-footer__bottom p { margin: 0; }

.ds-fab { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: .75rem; }
.ds-fab__row { display: flex; align-items: center; gap: .6rem; }
.ds-fab__label { padding: .4rem .8rem; background: var(--white); border-radius: 999px; box-shadow: var(--shadow); color: var(--ink); font-size: .9063rem; font-weight: 500; }
.ds-fab__label[hidden] { display: none; }
.ds-fab__btn { display: grid; place-items: center; width: 58px; height: 58px; padding: 0; border: 0; border-radius: 50%; background: var(--lime); color: var(--ink); box-shadow: 0 6px 20px rgba(20, 24, 27, .22); cursor: pointer; transition: transform .15s, background-color .15s; }
.ds-fab__btn:hover { background: var(--lime-hover); transform: scale(1.05); }
.ds-fab__open, .ds-fab__shut { line-height: 0; }
.ds-fab__shut { display: none; }
.ds-fab.is-open .ds-fab__open { display: none; }
.ds-fab.is-open .ds-fab__shut { display: block; }
.ds-fab__panel { display: grid; gap: .15rem; min-width: 220px; padding: .5rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-hover); }
.ds-fab__panel[hidden] { display: none; }
.ds-fab__panel a { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border-radius: 8px; color: var(--ink); font-weight: 500; text-decoration: none; }
.ds-fab__panel a:hover { background: var(--tint); }
.ds-fab__panel .ds-icon { color: var(--green); }
.ds-bookbar { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1140px) {
	.ds-nav-toggle { display: grid; }
	.ds-header__cta { margin-left: auto; }
	.ds-nav {
		position: fixed; inset: 77px 0 0 0; z-index: 49; display: none; margin: 0; padding: 1rem var(--gutter) 6rem;
		overflow-y: auto; background: var(--white);
	}
	.admin-bar .ds-nav { inset-block-start: 109px; }
	.ds-nav.is-open { display: block; }
	.ds-menu { display: block; }
	.ds-menu > li { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); }
	.ds-menu > li > a { flex: 1; padding: .9rem 0; font-size: 1.0625rem; }
	.ds-sub-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; transition: transform .15s; }
	.is-open > .ds-sub-toggle { transform: rotate(180deg); }
	.ds-menu .sub-menu { position: static; display: none; width: 100%; min-width: 0; padding: 0 0 .6rem .5rem; border: 0; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
	.ds-menu li.is-open > .sub-menu { display: block; }
	.ds-menu > li:hover > .sub-menu:not(.is-open), .ds-menu > li:focus-within > .sub-menu { transform: none; }
}

@media (max-width: 1000px) {
	.ds-offer { display: none; }
	.ds-pill { display: flex; }
	.ds-team--home > :nth-child(4) { display: none; }
	.ds-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ds-layout, .ds-layout--even, .ds-layout--booking, .ds-split, .ds-pagehead__grid { grid-template-columns: minmax(0, 1fr); }
	.ds-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ds-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ds-gallery .wp-block-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ds-entry { max-width: none; }
}

@media (max-width: 760px) {
	:root { --section: 3.25rem; }
	body { padding-bottom: 72px; font-size: 1rem; }
	body:has(.ds-layout--booking), body:has(.ds-formly) { padding-bottom: 0; }

	.ds-grid--3, .ds-pricegrid { grid-template-columns: minmax(0, 1fr); columns: 1; }
	.ds-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ds-grid--4:not(.ds-team) { grid-template-columns: minmax(0, 1fr); }
	.ds-header__inner { gap: .75rem; min-height: 68px; }
	.ds-header__cta { display: none; }
	.ds-nav-toggle { margin-left: auto; }
	.ds-logo img { height: 36px; }
	.ds-nav { inset-block-start: 69px; }

	.ds-hero { display: block; min-height: 0; }
	.ds-hero__img { position: static; height: 240px; object-position: 75% 40%; }
	.ds-hero::after { display: none; }
	.ds-hero__inner { padding-block: 1.75rem 2rem; }
	.ds-stats-wrap { margin-top: 0; }
	.ds-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: var(--radius); box-shadow: none; border: 1px solid var(--line); }
	.ds-stats li + li { border-left: 0; }
	.ds-stats li:nth-child(even) { border-left: 1px solid var(--line); }
	.ds-stats li:nth-child(n + 3) { border-top: 1px solid var(--line); }

	.ds-form__row { grid-template-columns: minmax(0, 1fr); }
	.ds-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
	.ds-steps { grid-template-columns: minmax(0, 1fr); }
	.ds-gallery .wp-block-gallery { grid-template-columns: minmax(0, 1fr); }
	.ds-formly { height: 1500px; }

	/* The right side stays free for the contact button. */
	.ds-fab { right: .75rem; bottom: .5rem; }
	.ds-fab__btn { width: 54px; height: 54px; }
	.ds-fab__label { display: none; }
	.ds-bookbar { position: fixed; inset: auto 0 0 0; z-index: 39; display: block; padding: .6rem 5.25rem .6rem .75rem; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); }
	.ds-bookbar .ds-btn { width: 100%; }
	/* The cookie banner's round button would otherwise cover the booking button. */
	.cky-btn-revisit-wrapper.cky-revisit-bottom-left { bottom: 76px; }
	.ds-pill { font-size: .875rem; }
	.ds-team--home > :nth-child(4) { display: block; }
}

/* Too narrow for two equal buttons side by side: stack them, still the same size. */
@media (max-width: 520px) {
	.ds-actions, .ds-cta__actions { grid-auto-flow: row; width: 100%; }
}

@media (max-width: 782px) {
	.admin-bar .ds-header { top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
	.ds-cities { display: block; }
	.ds-cities > span { opacity: 1; animation: none; }
	.ds-cities > span:not(:last-child)::after { content: ","; }
}
