/*
 * drsujeeth.com Visual System
 * Base typography, contrast, surface, accessibility, and responsive rules.
 */

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

body.uses-ds {
  background: var(--ds-surface);
  color: var(--ds-text);
  font-family: var(--ds-font-sans);
  font-size: 17px;
  line-height: var(--ds-leading-body);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.uses-ds *,
body.uses-ds *::before,
body.uses-ds *::after {
  box-sizing: border-box;
}

body.uses-ds :where(h1, h2, h3, h4, h5, h6, p, li, a, span, label, small, figcaption, button, input, textarea, select) {
  letter-spacing: 0;
}

body.uses-ds :where(h1, h2, h3, h4, h5, h6, .elementor-heading-title, .title, .entry-title) {
  color: var(--ds-ink);
  font-family: var(--ds-font-serif);
  font-weight: 700;
  line-height: var(--ds-leading-heading);
  margin-block: 0 0.55em;
  text-wrap: balance;
}

body.uses-ds :where(h1, .elementor-widget-heading h1.elementor-heading-title) {
  font-size: clamp(38px, 5.8vw, 68px);
  line-height: var(--ds-leading-tight);
}

body.uses-ds :where(h2, .elementor-widget-heading h2.elementor-heading-title) {
  font-size: clamp(30px, 3.6vw, 46px);
}

body.uses-ds :where(h3, .elementor-widget-heading h3.elementor-heading-title) {
  font-size: clamp(22px, 2.4vw, 30px);
}

body.uses-ds :where(h4, h5, h6) {
  font-family: var(--ds-font-sans);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  line-height: 1.32;
}

body.uses-ds :where(p, li, .elementor-widget-text-editor, .elementor-icon-list-text, .entry-content, .post-content) {
  color: var(--ds-text);
  font-family: var(--ds-font-sans);
  font-weight: 400;
  line-height: var(--ds-leading-body);
}

body.uses-ds :where(small, figcaption, caption, .meta, .post-meta, .entry-meta, .breadcrumbs, .prp-section-sub) {
  color: var(--ds-text-muted);
  font-size: 0.9rem;
  line-height: var(--ds-leading-compact);
}

body.uses-ds :where(strong, b) {
  color: inherit;
  font-weight: 700;
}

body.uses-ds :where(a) {
  color: var(--ds-blue-800);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--ds-transition), background-color var(--ds-transition), border-color var(--ds-transition), box-shadow var(--ds-transition), transform var(--ds-transition);
}

body.uses-ds :where(a:hover, a:focus-visible) {
  color: var(--ds-teal-800);
}

body.uses-ds :where(:focus-visible) {
  outline: 2px solid var(--ds-focus);
  outline-offset: 3px;
  box-shadow: var(--ds-shadow-focus);
}

body.uses-ds ::selection {
  background: var(--ds-teal-800);
  color: var(--ds-white);
}

body.uses-ds img,
body.uses-ds svg,
body.uses-ds video,
body.uses-ds canvas {
  max-width: 100%;
  height: auto;
}

body.uses-ds .skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100000;
  padding: 10px 14px;
  border-radius: var(--ds-radius-sm);
  background: var(--ds-navy-950);
  color: var(--ds-white);
  transform: translateY(-140%);
  transition: transform var(--ds-transition);
}

body.uses-ds .skip-link:focus {
  transform: translateY(0);
}

/* Surface-aware contrast. The tiny classifier script adds these attributes
   based on computed background luminance so Elementor inheritance cannot
   make dark-on-dark or light-on-light text. */
body.uses-ds [data-ds-surface="light"] {
  color: var(--ds-text);
}

body.uses-ds [data-ds-surface="light"] :where(h1, h2, h3, h4, h5, h6, .elementor-heading-title, .title, .entry-title):not(.elementor-button-text):not(.elementor-button-icon) {
  color: var(--ds-ink) !important;
}

body.uses-ds [data-ds-surface="light"] :where(p, li, label, small, figcaption, caption, td, th, .elementor-widget-text-editor, .elementor-icon-list-text, .post-meta, .entry-meta):not(.elementor-button-text):not(.elementor-button-icon) {
  color: var(--ds-text) !important;
}

body.uses-ds [data-ds-surface="light"] :where(.text-white, .text-light, [class*="text-white"], [style*="color: #fff"], [style*="color:#fff"], [style*="color: rgb(255, 255, 255)"]):not(.elementor-button):not(.elementor-button-text):not(.elementor-button-icon) {
  color: var(--ds-text) !important;
}

body.uses-ds [data-ds-surface="dark"] {
  color: var(--ds-on-dark);
}

body.uses-ds [data-ds-surface="dark"] :where(h1, h2, h3, h4, h5, h6, .elementor-heading-title, .title, .entry-title):not(.elementor-button-text):not(.elementor-button-icon) {
  color: var(--ds-on-dark) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

body.uses-ds [data-ds-surface="dark"] :where(p, li, label, small, figcaption, caption, td, th, .elementor-widget-text-editor, .elementor-icon-list-text, .post-meta, .entry-meta):not(.elementor-button-text):not(.elementor-button-icon) {
  color: var(--ds-on-dark-muted) !important;
}

body.uses-ds [data-ds-surface="dark"] :where(a):not(.elementor-button):not(.cta-whatsapp):not(.cta-call):not(.cta-book) {
  color: var(--ds-on-dark-accent);
}

body.uses-ds [data-ds-surface="dark"] :where(a:hover, a:focus-visible):not(.elementor-button):not(.cta-whatsapp):not(.cta-call):not(.cta-book) {
  color: var(--ds-white);
}

body.uses-ds [data-ds-surface="dark"] :where(.text-dark, .text-darkgray, .text-black, [style*="color: #052016"], [style*="color:#052016"], [style*="color: rgb(5, 32, 22)"], [style*="color: #003e2a"], [style*="color:#003e2a"], [style*="color: rgb(0, 62, 42)"]):not(.elementor-button):not(.elementor-button-text):not(.elementor-button-icon) {
  color: var(--ds-on-dark-muted) !important;
}

body.uses-ds [data-ds-surface="mid"] {
  color: var(--ds-white);
}

body.uses-ds [data-ds-surface="mid"] :where(h1, h2, h3, h4, h5, h6, .elementor-heading-title):not(.elementor-button-text):not(.elementor-button-icon),
body.uses-ds [data-ds-surface="mid"] :where(p, li, label, small, figcaption, caption):not(.elementor-button-text):not(.elementor-button-icon) {
  color: var(--ds-white) !important;
}

/* Image and video text areas get a dependable veil when they contain copy. */
body.uses-ds :where(.elementor-section, .e-con).ds-has-media.ds-contains-text {
  position: relative;
  isolation: isolate;
}

body.uses-ds :where(.elementor-section, .e-con).ds-has-media.ds-contains-text::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--ds-overlay-strong), var(--ds-overlay-medium) 48%, var(--ds-overlay-soft));
}

body.uses-ds :where(.elementor-section, .e-con).ds-has-media.ds-contains-text > * {
  position: relative;
  z-index: 1;
}

body.uses-ds .elementor-background-overlay {
  opacity: 1;
  background: var(--ds-overlay-medium);
}

/* Section rhythm. */
body.uses-ds :where(.elementor-section, .e-con).ds-section {
  padding-block: var(--ds-section-y);
}

body.uses-ds :where(.elementor-section, .e-con).ds-light-band {
  background: var(--ds-surface);
}

body.uses-ds :where(.elementor-section, .e-con).ds-soft-band {
  background: var(--ds-surface-2);
}

body.uses-ds :where(.elementor-section, .e-con).ds-dark-band {
  background: var(--ds-navy-900);
}

@media (max-width: 1024px) {
  body.uses-ds {
    font-size: 16px;
  }

  body.uses-ds :where(h1, .elementor-widget-heading h1.elementor-heading-title) {
    font-size: clamp(34px, 7vw, 52px);
  }
}

@media (max-width: 767px) {
  body.uses-ds {
    font-size: 16px;
    line-height: 1.62;
  }

  body.uses-ds :where(h1, .elementor-widget-heading h1.elementor-heading-title) {
    font-size: clamp(32px, 10vw, 44px);
  }

  body.uses-ds :where(h2, .elementor-widget-heading h2.elementor-heading-title) {
    font-size: clamp(26px, 8vw, 34px);
  }

  body.uses-ds :where(p, li, .elementor-widget-text-editor, .elementor-icon-list-text) {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.uses-ds *,
  body.uses-ds *::before,
  body.uses-ds *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
