/* Sonrisa Total public site — visual language adapted from GWT dental demo.
   Standalone: no Google Fonts, no Bootstrap/FA CDN, no remote assets. */

:root {
  --cdsm-header-h: 5.5rem;
  --cdsm-stack: var(--cdsm-header-h);
  --cdsm-skin: #f9a61a;
  --cdsm-skin-dark: #da8b06;
  --cdsm-skin-soft: #f39b06;
  --cdsm-secondary: #341a2f;
  --cdsm-secondary-bright: #4a2545;
  --cdsm-dark: #231520;
  --cdsm-light-bg: #efefef;
  --cdsm-text: #323232;
  --cdsm-muted: #6e6e6e;
  --cdsm-white: #ffffff;
  --cdsm-font-body: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --cdsm-font-display: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Intake / legacy aliases */
  --clinic-border: #e0d6dc;
  --clinic-primary: var(--cdsm-skin);
  --clinic-primary-dark: var(--cdsm-skin-dark);
  --clinic-primary-soft: #fff4e0;
  --clinic-background: var(--cdsm-white);
  --clinic-text: var(--cdsm-text);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body.cdsm-page {
  margin: 0;
  font-family: var(--cdsm-font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--cdsm-text);
  background: var(--cdsm-white);
  padding-top: var(--cdsm-stack);
  overflow-x: hidden;
  max-width: 100%;
}

body.cdsm-page img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5 {
  font-family: var(--cdsm-font-display);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.65rem;
  color: var(--cdsm-text);
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
.cdsm-btn:focus-visible {
  outline: 3px solid var(--cdsm-skin);
  outline-offset: 2px;
}

.cdsm-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cdsm-dark);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 2000;
}

.cdsm-skip:focus {
  left: 1rem;
  top: 1rem;
}

.cdsm-wrap {
  width: min(1140px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Grid helpers (replaces Bootstrap row/col for public pages) */
.cdsm-grid {
  display: grid;
  gap: 1.25rem;
}

.cdsm-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cdsm-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cdsm-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cdsm-grid--about {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
}

.cdsm-grid--contact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.cdsm-brand-strip {
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--cdsm-skin) 0%,
    var(--cdsm-skin) 25%,
    var(--cdsm-secondary) 25%,
    var(--cdsm-secondary) 50%,
    var(--cdsm-dark) 50%,
    var(--cdsm-dark) 75%,
    #5a7a8c 75%,
    #5a7a8c 100%
  );
}

/* Fixed header */
.cdsm-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 16px rgba(52, 26, 47, 0.06);
}

.cdsm-header__inner {
  width: min(1140px, calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  flex-wrap: wrap;
}

.cdsm-logo-block {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.cdsm-logo {
  font-family: var(--cdsm-font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--cdsm-secondary);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.cdsm-logo span {
  color: var(--cdsm-skin);
}

.cdsm-tagline {
  margin: 0;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cdsm-muted);
}

.cdsm-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.95rem;
}

.cdsm-nav a {
  font-family: var(--cdsm-font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cdsm-text);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.cdsm-nav a:hover,
.cdsm-nav a:focus-visible {
  color: var(--cdsm-skin);
  border-bottom-color: var(--cdsm-skin);
}

.cdsm-header__cta {
  flex: 0 0 auto;
}

.cdsm-mob-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: var(--cdsm-white);
  cursor: pointer;
  color: var(--cdsm-secondary);
  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor);
  background-size: 20px 2px;
  background-position: center 14px, center 21px, center 28px;
  background-repeat: no-repeat;
}

.cdsm-mob-drawer {
  display: none;
  width: 100%;
  padding: 0.75rem 0 1rem;
  border-top: 1px solid #eee;
}

.cdsm-mob-drawer.is-open {
  display: block;
}

.cdsm-mob-drawer .cdsm-nav {
  flex-direction: column;
  align-items: stretch;
}

.cdsm-mob-drawer .cdsm-nav a {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}

/* Hero */
.cdsm-hero {
  position: relative;
  min-height: min(88vh, 780px);
  background: var(--cdsm-dark);
  scroll-margin-top: var(--cdsm-stack);
}

.cdsm-hero__slides {
  position: absolute;
  inset: 0;
}

.cdsm-hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.cdsm-hero__slide.is-active {
  opacity: 1;
}

.cdsm-hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(35, 21, 32, 0.82) 0%, rgba(52, 26, 47, 0.45) 45%, rgba(0, 0, 0, 0.35) 100%);
}

.cdsm-hero__content {
  position: relative;
  z-index: 2;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 3rem 0;
}

.cdsm-hero__caption {
  width: min(1140px, calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  justify-content: flex-end;
}

.cdsm-hero__inner {
  max-width: 28rem;
  padding: 2rem 2.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  backdrop-filter: blur(6px);
}

.cdsm-hero .t1 {
  font-family: var(--cdsm-font-display);
  font-size: clamp(1.85rem, 5vw, 2.85rem);
  font-weight: 800;
  color: var(--cdsm-skin);
  line-height: 1.05;
  margin-bottom: 0.2rem;
}

.cdsm-hero .t2 {
  font-family: var(--cdsm-font-display);
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  font-weight: 700;
  color: var(--cdsm-white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cdsm-hero .t3 {
  font-family: var(--cdsm-font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.35rem;
}

.cdsm-hero .desc {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  font-weight: 400;
  margin: 1rem 0 1.35rem;
  line-height: 1.7;
}

.cdsm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cdsm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--cdsm-font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.85rem 1.6rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  min-height: 44px;
  text-align: center;
  background: var(--cdsm-secondary);
  color: var(--cdsm-white) !important;
}

.cdsm-btn--primary {
  background: var(--cdsm-skin);
  color: var(--cdsm-white) !important;
}

.cdsm-btn--primary:hover {
  background: var(--cdsm-skin-dark);
}

.cdsm-btn--ghost {
  background: transparent;
  color: var(--cdsm-white) !important;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.cdsm-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.cdsm-btn--secondary {
  background: var(--cdsm-secondary);
  color: var(--cdsm-white) !important;
}

.cdsm-btn--secondary:hover {
  background: var(--cdsm-secondary-bright);
}

.cdsm-btn--light {
  background: var(--cdsm-white);
  color: var(--cdsm-secondary) !important;
}

.cdsm-btn--sm {
  padding: 0.6rem 1.1rem;
  font-size: 0.72rem;
}

.cdsm-hero__dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.cdsm-hero__dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.cdsm-hero__dots button.is-active {
  background: var(--cdsm-skin);
  border-color: var(--cdsm-skin);
}

/* Sections */
.cdsm-section {
  padding: 4.5rem 0;
  scroll-margin-top: calc(var(--cdsm-stack) + 0.5rem);
}

.cdsm-section--dark {
  background: var(--cdsm-secondary);
  color: rgba(255, 255, 255, 0.9);
}

.cdsm-section--dark h2,
.cdsm-section--dark h3,
.cdsm-section--dark h4 {
  color: var(--cdsm-white);
}

.cdsm-section--muted {
  background: var(--cdsm-light-bg);
}

.cdsm-section-head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 2.75rem;
}

.cdsm-section-head h1,
.cdsm-section-head h2 {
  font-size: clamp(1.55rem, 3vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cdsm-section-head .subtitle {
  font-family: var(--cdsm-font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cdsm-muted);
  margin: 0;
}

.cdsm-section--dark .subtitle {
  color: rgba(255, 255, 255, 0.65);
}

.cdsm-fancy-line {
  width: 60px;
  height: 3px;
  background: var(--cdsm-skin);
  margin: 1rem auto 0;
}

.cdsm-about__media {
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  box-shadow: 0 10px 28px rgba(52, 26, 47, 0.08);
}

.cdsm-about__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.cdsm-about__copy p {
  margin: 0 0 1rem;
  color: var(--cdsm-text);
}

.cdsm-meta {
  font-size: 0.85rem;
  color: var(--cdsm-muted);
  font-style: italic;
}

/* Areas / departments */
.cdsm-dept {
  text-align: center;
}

.cdsm-dept__title {
  margin: 0;
  padding: 0.65rem 0.5rem;
  background: rgba(52, 26, 47, 0.92);
  color: var(--cdsm-white);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 2px 2px 0 0;
}

.cdsm-dept__photo {
  display: block;
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  border-radius: 0 0 2px 2px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: none;
}

/* Services */
.cdsm-service-box {
  text-align: center;
  border: 1px solid #e8e8e8;
  padding: 0 0 1.5rem;
  background: var(--cdsm-white);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.cdsm-service-box:hover {
  box-shadow: 0 12px 32px rgba(52, 26, 47, 0.08);
}

.cdsm-service-box__icon {
  padding: 2rem 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 7rem;
}

.cdsm-service-box__icon--skin {
  background: var(--cdsm-skin);
  color: var(--cdsm-white);
}

.cdsm-service-box__icon--dark {
  background: var(--cdsm-dark);
  color: var(--cdsm-white);
}

.cdsm-service-box__glyph {
  width: 2.75rem;
  height: 2.75rem;
  border: 3px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.cdsm-service-box__glyph::before,
.cdsm-service-box__glyph::after {
  content: "";
  position: absolute;
  background: currentColor;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.cdsm-service-box__glyph::before {
  width: 55%;
  height: 3px;
}

.cdsm-service-box__glyph::after {
  width: 3px;
  height: 55%;
}

.cdsm-service-box__glyph--dot::after {
  display: none;
}

.cdsm-service-box__glyph--sq {
  border-radius: 4px;
}

.cdsm-service-box h3 {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 1rem;
}

.cdsm-service-box p {
  font-size: 0.9rem;
  color: var(--cdsm-muted);
  padding: 0 1.25rem;
  margin: 0 0 1rem;
  flex: 1;
}

.cdsm-service-box .cdsm-btn {
  align-self: center;
  font-size: 0.7rem;
  padding: 0.55rem 1rem;
}

/* Divider CTA */
.cdsm-divider-photo {
  min-height: 320px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}

.cdsm-divider-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(35, 21, 32, 0.72) 55%);
}

.cdsm-divider-photo .inner {
  position: relative;
  z-index: 1;
  padding: 2rem 8vw 2rem 2rem;
  text-align: right;
  max-width: 32rem;
}

.cdsm-divider-photo .t1 {
  font-family: var(--cdsm-font-display);
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  font-weight: 800;
  color: var(--cdsm-white);
  margin-bottom: 0.35rem;
}

.cdsm-divider-photo .t2 {
  font-family: var(--cdsm-font-display);
  color: var(--cdsm-skin);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.cdsm-divider-photo .cdsm-hero__actions {
  justify-content: flex-end;
}

/* FAQ / info */
.cdsm-faq {
  max-width: 46rem;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}

.cdsm-faq__item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  padding: 0.85rem 1.1rem;
}

.cdsm-faq__item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--cdsm-white);
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.cdsm-faq__item summary::-webkit-details-marker {
  display: none;
}

.cdsm-faq__item p {
  margin: 0.65rem 0 0.25rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

/* Location / visit CTA */
.cdsm-contact-box {
  padding: 1.75rem;
  height: 100%;
  border: 1px solid #e0e0e0;
}

.cdsm-contact-box--light {
  background: #f9f9f9;
}

.cdsm-contact-box--secondary {
  background: var(--cdsm-secondary);
  color: rgba(255, 255, 255, 0.9);
  border-color: transparent;
}

.cdsm-contact-box--skin {
  background: var(--cdsm-skin);
  color: rgba(255, 255, 255, 0.95);
  border-color: transparent;
}

.cdsm-contact-box--secondary h3,
.cdsm-contact-box--skin h3 {
  color: var(--cdsm-white);
}

.cdsm-col-header {
  text-align: center;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
  font-family: var(--cdsm-font-display);
  font-weight: 700;
}

.cdsm-contact-box p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.cdsm-contact-box .cdsm-btn {
  width: 100%;
  margin-top: 0.5rem;
}

.cdsm-contact-box--skin .cdsm-btn--light {
  margin-top: 1rem;
}

/* Footer */
.cdsm-footer {
  background: linear-gradient(160deg, var(--cdsm-secondary) 0%, var(--cdsm-dark) 100%);
  color: rgba(255, 255, 255, 0.82);
  padding: 3.5rem 0 2.5rem;
  font-size: 0.92rem;
}

.cdsm-footer h4 {
  color: var(--cdsm-white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.cdsm-footer a:hover {
  color: var(--cdsm-skin);
}

.cdsm-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

.cdsm-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cdsm-footer__links li {
  margin-bottom: 0.45rem;
}

.cdsm-copyright {
  background: var(--cdsm-secondary);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.82rem;
  padding: 1rem 0;
  text-align: center;
}

/* Page body text (privacy etc.) */
.cdsm-prose h2 {
  margin-top: 1.75rem;
  font-size: 1.15rem;
  color: var(--cdsm-secondary);
}

.cdsm-prose p {
  margin: 0 0 1rem;
}

@media (max-width: 991px) {
  .cdsm-nav--desk,
  .cdsm-header__cta {
    display: none;
  }

  .cdsm-mob-toggle {
    display: block;
  }

  .cdsm-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cdsm-grid--about,
  .cdsm-grid--contact,
  .cdsm-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .cdsm-hero__content {
    justify-content: center;
  }

  .cdsm-hero__caption {
    justify-content: center;
  }

  .cdsm-hero__inner {
    max-width: 100%;
  }

  .cdsm-divider-photo {
    justify-content: center;
  }

  .cdsm-divider-photo .inner {
    text-align: center;
    padding: 2.5rem 1.5rem;
  }

  .cdsm-divider-photo .cdsm-hero__actions {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  :root {
    --cdsm-header-h: 4.25rem;
  }

  .cdsm-grid--2,
  .cdsm-grid--3,
  .cdsm-grid--4,
  .cdsm-grid--about,
  .cdsm-grid--contact,
  .cdsm-footer__grid {
    grid-template-columns: 1fr;
  }

  .cdsm-hero {
    min-height: min(78vh, 640px);
  }

  .cdsm-hero__content {
    min-height: min(78vh, 640px);
    padding: 2rem 0 3.5rem;
  }

  .cdsm-section {
    padding: 3.25rem 0;
  }

  .cdsm-logo {
    font-size: 1.05rem;
  }
}

@media (min-width: 992px) {
  .cdsm-mob-drawer {
    display: none !important;
  }
}
