/*
Theme Name:  Signum Dent
Theme URI:   https://signumdent.com
Author:      Signum Dent
Author URI:  https://signumdent.com
Description: Custom theme for the Signum Dent dental clinic. Modern, clean, fast-loading, fully responsive, with Albanian content and editable contact details via the Customizer.
Version:     1.2.0
Requires at least: 6.0
Tested up to: 6.7
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: signum-dent
Tags:        one-column, custom-menu, custom-logo, translation-ready
*/

/* -------------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------------- */
:root {
  /* Colors — sampled from the Signum Dent shield logo */
  --c-primary:        #17397a; /* brand navy */
  --c-primary-dark:   #0e2451;
  --c-primary-light:  #2b56a5;
  --c-accent:         #6f9fe0; /* soft steel blue */
  --c-accent-soft:    #eaf1fb; /* pale blue tint */
  --c-bg:             #ffffff;
  --c-bg-alt:         #f5f8fc; /* very light cool gray */
  --c-text:           #1e2733; /* dark charcoal */
  --c-text-muted:     #5a6675;
  --c-border:         #e2e9f2;
  --c-white:          #ffffff;

  /* Typography */
  --font-heading: "Sora", sans-serif;
  --font-body:    "Manrope", sans-serif;

  /* Layout */
  --container:    1160px;
  --radius:       14px;
  --radius-lg:    22px;
  --shadow-sm:    0 2px 8px rgba(14, 36, 81, 0.07);
  --shadow-md:    0 8px 28px rgba(14, 36, 81, 0.11);
  --shadow-lg:    0 18px 48px rgba(14, 36, 81, 0.15);

  --section-pad:  clamp(3.5rem, 8vw, 6.5rem);
  --header-h:     76px;
}

/* -------------------------------------------------------------------------
   2. Base / reset
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--c-text);
  margin: 0 0 0.6em;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }

p {
  margin: 0 0 1.2em;
}

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--c-primary-light);
}

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

ul, ol {
  padding-left: 1.3em;
}

/* Visible focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--c-primary);
  color: #fff;
  padding: 0.7em 1.2em;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
}

/* -------------------------------------------------------------------------
   3. Layout helpers
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.section {
  padding-block: var(--section-pad);
}

.section--alt {
  background: var(--c-bg-alt);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: var(--c-accent-soft);
  padding: 0.35em 1em;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-head p {
  color: var(--c-text-muted);
  margin-bottom: 0;
}

/* -------------------------------------------------------------------------
   4. Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.95em 1.8em;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--c-primary-light);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary);
}

.btn--ghost:hover {
  background: var(--c-accent-soft);
  color: var(--c-primary-dark);
}

.btn--light {
  background: #fff;
  color: var(--c-primary);
}

.btn--light:hover {
  background: var(--c-accent-soft);
  color: var(--c-primary-dark);
}

.btn--outline-light {
  background: transparent;
  color: #fff;
  /* 0.65 keeps the border above the 3:1 contrast floor across the whole gradient. */
  border-color: rgba(255, 255, 255, 0.65);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.btn--outline-light svg {
  width: 16px;
  height: 16px;
}

/* -------------------------------------------------------------------------
   5. Header
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--c-border);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  color: var(--c-text);
  letter-spacing: -0.02em;
}

.site-brand:hover {
  color: var(--c-primary);
}

/* Shield mark — bundled logo.png or the Customizer custom logo. */
.site-brand__mark {
  width: auto;
  height: 42px;
  flex-shrink: 0;
}

.site-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.site-brand__name {
  font-size: 1.22rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.site-brand__name em {
  font-style: normal;
  color: var(--c-primary);
}

.site-brand__sub {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--c-text-muted);
  letter-spacing: 0.04em;
}

/* Primary nav */
.site-nav {
  margin-left: auto;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-text);
  padding: 0.55em 0.9em;
  border-radius: 100px;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  background: var(--c-accent-soft);
  color: var(--c-primary-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--c-text);
  white-space: nowrap;
}

.header-phone svg {
  width: 17px;
  height: 17px;
  color: var(--c-primary);
  flex-shrink: 0;
}

.header-phone:hover {
  color: var(--c-primary);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  margin-left: auto;
  cursor: pointer;
  color: var(--c-text);
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
  display: block;
}

.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* -------------------------------------------------------------------------
   6. Hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 85% 20%, rgba(111, 159, 224, 0.18), transparent 60%),
    linear-gradient(180deg, var(--c-bg-alt) 0%, var(--c-bg) 100%);
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-primary);
  background: #fff;
  border: 1px solid var(--c-border);
  padding: 0.45em 1.1em;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.4rem;
}

.hero__eyebrow svg {
  width: 15px;
  height: 15px;
  color: var(--c-accent);
}

.hero h1 {
  margin-bottom: 0.5em;
}

.hero h1 em {
  font-style: normal;
  color: var(--c-primary);
  position: relative;
}

.hero__lead {
  font-size: 1.15rem;
  color: var(--c-text-muted);
  max-width: 34em;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 1.6rem;
  font-size: 0.9rem;
  color: var(--c-text-muted);
}

.hero__note svg {
  width: 17px;
  height: 17px;
  color: var(--c-accent);
  flex-shrink: 0;
}

/* Hero visual */
.hero__visual {
  position: relative;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 8% -6% -6% 8%;
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-primary) 100%);
  border-radius: var(--radius-lg);
  opacity: 0.18;
  transform: rotate(3deg);
}

.hero__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Real photos: fill their frame at a fixed aspect ratio, never distort. */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--c-bg-alt);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-frame--hero    { aspect-ratio: 4 / 3;  box-shadow: var(--shadow-lg); }
.media-frame--wide    { aspect-ratio: 3 / 2;  box-shadow: var(--shadow-md); }
.media-frame--tall    { aspect-ratio: 4 / 5;  box-shadow: var(--shadow-md); }
.media-frame--square  { aspect-ratio: 1 / 1; }

@supports not (aspect-ratio: 1 / 1) {
  .media-frame img { height: auto; }
}

/* -------------------------------------------------------------------------
   7. Placeholder image boxes (replace with real photos)
   ------------------------------------------------------------------------- */
.placeholder-img {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(23, 57, 122, 0.03) 12px, rgba(23, 57, 122, 0.03) 24px),
    #e9eef6;
  border: 2px dashed #bdcbe0;
  color: #7e8da3;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
  min-height: 320px;
  border-radius: inherit;
}

.placeholder-img svg {
  width: 42px;
  height: 42px;
  opacity: 0.55;
}

.placeholder-img--tall   { min-height: 420px; }
.placeholder-img--square { min-height: 280px; }

/* -------------------------------------------------------------------------
   8. Trust strip
   ------------------------------------------------------------------------- */
.trust-strip {
  padding-block: clamp(2.2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--c-border);
}

.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.trust-item__icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--c-accent-soft);
  color: var(--c-primary);
  border-radius: 12px;
}

.trust-item__icon svg {
  width: 22px;
  height: 22px;
}

.trust-item h3 {
  font-size: 1rem;
  margin-bottom: 0.15em;
}

.trust-item p {
  font-size: 0.9rem;
  color: var(--c-text-muted);
  margin: 0;
}

/* -------------------------------------------------------------------------
   9. Services grid
   ------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-accent);
}

.service-card__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--c-accent-soft), #d8e5f7);
  color: var(--c-primary);
  border-radius: 16px;
  margin-bottom: 1.3rem;
}

.service-card__icon svg {
  width: 26px;
  height: 26px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--c-text-muted);
  flex-grow: 1;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-primary);
}

.service-card__link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.service-card__link:hover svg {
  transform: translateX(4px);
}

/* -------------------------------------------------------------------------
   10. About / why choose us
   ------------------------------------------------------------------------- */
.about-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.about-split__visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-split .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: var(--c-accent-soft);
  padding: 0.35em 1em;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.about-split__text > p {
  color: var(--c-text-muted);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat {
  background: var(--c-bg-alt);
  border-radius: var(--radius);
  padding: 1.3rem 1rem;
  text-align: center;
}

.stat__number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1.1;
}

.stat__label {
  font-size: 0.85rem;
  color: var(--c-text-muted);
}

.about-split__cta {
  margin: 2rem 0 0;
}

.entry--intro {
  margin-bottom: 3rem;
}

/* Checklist used on about page */
.check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7em;
  margin-bottom: 0.8em;
}

.check-list svg {
  width: 20px;
  height: 20px;
  color: var(--c-accent);
  flex-shrink: 0;
  margin-top: 0.2em;
}

/* -------------------------------------------------------------------------
   11. FAQ accordion (native <details>, no JS required)
   ------------------------------------------------------------------------- */
.faq-list {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: 0.9rem;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open],
.faq-item:hover {
  border-color: var(--c-accent);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.6rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--c-text);
}

/* Hide the default disclosure triangle in every engine. */
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  content: "";
}

.faq-item summary:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: -3px;
}

.faq-item[open] summary {
  color: var(--c-primary);
}

/* Plus sign that rotates into a minus when the answer opens. */
.faq-item__marker {
  position: relative;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--c-accent-soft);
  transition: background 0.2s ease, transform 0.25s ease;
}

.faq-item__marker::before,
.faq-item__marker::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-primary);
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
}

.faq-item__marker::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-item__marker {
  transform: rotate(180deg);
}

.faq-item[open] .faq-item__marker::after {
  opacity: 0;
}

.faq-item__answer {
  padding: 0 1.6rem 1.4rem;
}

.faq-item__answer p {
  margin: 0;
  color: var(--c-text-muted);
  font-size: 0.97rem;
  max-width: 62ch;
}

/* -------------------------------------------------------------------------
   12. CTA banner
   ------------------------------------------------------------------------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--c-primary-dark) 0%, var(--c-primary) 55%, var(--c-primary-light) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  color: #fff;
}

.cta-banner::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(111, 159, 224, 0.22);
  top: -170px;
  right: -110px;
}

.cta-banner::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  bottom: -110px;
  left: -60px;
}

.cta-banner > * {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 0.4em;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 34em;
  margin: 0 auto 1.8rem;
}

.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

/* -------------------------------------------------------------------------
   13. Footer
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--c-primary-dark);
  color: #c3cede;
  margin-top: var(--section-pad);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}

.site-footer a {
  color: #c3cede;
}

.site-footer a:hover {
  color: var(--c-accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand .site-brand {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-brand .site-brand__sub {
  color: var(--c-accent);
}

.footer-brand p {
  font-size: 0.92rem;
  max-width: 30em;
}

.footer-col h3 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.6em;
  font-size: 0.95rem;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
}

.footer-contact svg {
  width: 17px;
  height: 17px;
  color: var(--c-accent);
  flex-shrink: 0;
  margin-top: 0.25em;
}

.footer-hours {
  white-space: pre-line;
  font-size: 0.95rem;
}

.footer-social {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
  background: var(--c-accent);
  color: var(--c-primary-dark);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: #8a99b3;
}

/* -------------------------------------------------------------------------
   14. Inner pages
   ------------------------------------------------------------------------- */
.page-hero {
  background:
    radial-gradient(ellipse 50% 90% at 90% 10%, rgba(111, 159, 224, 0.16), transparent 60%),
    var(--c-bg-alt);
  padding-block: clamp(2.8rem, 6vw, 4.5rem);
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 0.3em;
}

.page-hero p {
  color: var(--c-text-muted);
  max-width: 38em;
  margin: 0 auto;
}

.page-content {
  padding-block: var(--section-pad);
}

.page-content .entry {
  max-width: 760px;
  margin-inline: auto;
}

/* 404 page */
.error-404__code {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 12vw, 6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--c-accent);
  opacity: 0.55;
  margin: 0 0 0.1em;
  letter-spacing: -0.03em;
}

.error-404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.error-404__links {
  max-width: 420px;
  margin-inline: auto;
}

.error-404__links h2 {
  font-size: 1.1rem;
  text-align: center;
}

.error-404__links .check-list a {
  font-weight: 600;
}

/* Clinic photo gallery (about page) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.gallery-grid__item {
  overflow: hidden;
}

.gallery-grid__item img {
  transition: transform 0.5s ease;
}

.gallery-grid__item:hover img {
  transform: scale(1.05);
}

/* First tile runs wide so the grid doesn't read as a flat contact sheet. */
.gallery-grid__item:first-child {
  grid-column: span 2;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-grid__item:hover img {
    transform: none;
  }
}

/* -------------------------------------------------------------------------
   Contact page map
   ------------------------------------------------------------------------- */
.map-embed {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-border);
  aspect-ratio: 16 / 7;
  background: var(--c-accent-soft);
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  /*
   * Google's keyless embed can't be restyled, so the blue/white look is a
   * filter: desaturate, then push the remaining hue toward the brand navy.
   * Cleared on hover/focus so the map is readable when actually used.
   */
  filter: grayscale(1) sepia(1) hue-rotate(176deg) saturate(2.1) brightness(1.04) contrast(0.94);
  transition: filter 0.45s ease;
}

.map-embed:hover iframe,
.map-embed:focus-within iframe {
  filter: none;
}

.map-actions {
  margin: 1.4rem 0 0;
  text-align: center;
}

.map-actions .btn svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 820px) {
  .map-embed {
    aspect-ratio: 4 / 3;
  }
}

/* Team grid (about page) */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.team-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.team-card__photo {
  border-radius: 0;
}

.team-card__body {
  padding: 1.4rem 1.2rem 1.7rem;
}

.team-card h3 {
  margin-bottom: 0.15em;
}

.team-card__role {
  font-size: 0.9rem;
  color: var(--c-primary);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.team-card p:last-child {
  font-size: 0.9rem;
  color: var(--c-text-muted);
  margin: 0;
}

/* Lead dentist profile (about page) */
.doctor-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(1.8rem, 4vw, 3.2rem);
  align-items: center;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-sm);
  max-width: 940px;
  margin-inline: auto;
}

.doctor-card__name {
  margin-bottom: 0.1em;
}

.doctor-card__role {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-primary);
  margin-bottom: 1rem;
}

.doctor-card p {
  color: var(--c-text-muted);
}

.doctor-card .check-list {
  margin-bottom: 0;
}

.doctor-card .check-list li {
  font-size: 0.95rem;
}

/* Service detail rows (services page) */
.service-rows {
  display: grid;
  gap: 1.2rem;
  max-width: 860px;
  margin-inline: auto;
}

.service-row {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-row:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--c-accent);
}

.service-row .service-card__icon {
  margin-bottom: 0;
}

.service-row h3 {
  margin-bottom: 0.3em;
}

.service-row p {
  color: var(--c-text-muted);
  margin: 0;
}

/* -------------------------------------------------------------------------
   15. Contact page
   ------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: flex-start;
}

.contact-info-card {
  background: var(--c-bg-alt);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
}

.contact-info-card h2 {
  font-size: 1.35rem;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.contact-info-list li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-list li:last-child {
  margin-bottom: 0;
}

.contact-info-card__photo {
  margin-top: 1.8rem;
}

.contact-info-list .trust-item__icon {
  background: #fff;
}

.contact-info-list h3 {
  font-size: 0.95rem;
  margin-bottom: 0.1em;
}

.contact-info-list p,
.contact-info-list a {
  font-size: 0.95rem;
  color: var(--c-text-muted);
  margin: 0;
}

.contact-info-list a:hover {
  color: var(--c-primary);
}

/* Contact form */
.contact-form {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow-sm);
}

.form-field {
  margin-bottom: 1.2rem;
}

.form-field label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4em;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--c-text);
  background: var(--c-bg-alt);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  padding: 0.85em 1.1em;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--c-primary);
  background: #fff;
  outline: none;
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-notice {
  border-radius: var(--radius);
  padding: 1em 1.3em;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.form-notice--success {
  background: #e7f6ee;
  color: #1d6b43;
  border: 1px solid #bce3cd;
}

.form-notice--error {
  background: #fdeeee;
  color: #a03434;
  border: 1px solid #f0c9c9;
}

.form-notice--error a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}

/* Honeypot field — hidden from humans */
.form-field--hp {
  position: absolute !important;
  left: -9999px !important;
}

/* -------------------------------------------------------------------------
   16. Scroll reveal animation
   ------------------------------------------------------------------------- */
/*
 * Scoped to .has-js (set by js/has-js.js in <head>). Without JavaScript the
 * class never appears, so nothing is hidden and every section renders normally.
 */
.has-js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.has-js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  .has-js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* -------------------------------------------------------------------------
   17. Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 1020px) {
  .trust-strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid,
  .team-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-phone {
    display: none;
  }
}

@media (max-width: 820px) {
  .hero__inner,
  .about-split,
  .contact-layout,
  .doctor-card {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: -1;
  }

  .placeholder-img,
  .placeholder-img--tall {
    min-height: 240px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Mobile navigation — order: brand, [gap], CTA button, burger */
  .nav-toggle {
    display: block;
    order: 3;
    margin-left: 0;
  }

  .site-header__inner {
    gap: 0.6rem;
  }

  .header-actions {
    order: 2;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow-md);
    padding: 1rem clamp(1.1rem, 4vw, 2rem) 1.4rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }

  .site-nav a {
    padding: 0.8em 1em;
    border-radius: var(--radius);
  }

  .header-actions .btn {
    padding: 0.8em 1.3em;
    font-size: 0.88rem;
  }
}

@media (max-width: 560px) {
  .services-grid,
  .team-grid,
  .trust-strip__grid,
  .gallery-grid,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Single column — the wide first tile would otherwise overflow the grid. */
  .gallery-grid__item:first-child {
    grid-column: auto;
  }

  .stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }

  .stat {
    padding: 1rem 0.5rem;
  }

  .stat__label {
    font-size: 0.78rem;
  }

  /* Keep the brand + CTA + burger on one line on narrow phones. */
  .site-brand__mark {
    height: 34px;
  }

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

  .site-brand__sub {
    font-size: 0.65rem;
  }

  .header-actions .btn {
    padding: 0.75em 1.05em;
    font-size: 0.82rem;
  }

  .service-row {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}
