/*
 * Global document foundations.
 * Divenire tokens and compatibility aliases remain in style.css.
 */

body {
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  font-family: var(--divenire-font-body);
  font-size: var(--wp--preset--font-size--body);
  line-height: 1.65;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  color: var(--divenire-color-text);
  font-family: var(--divenire-font-heading);
  margin-top: 0;
}

h1,
.h1 {
  margin-bottom: 0.5em;
  font-size: var(--wp--preset--font-size--h-1);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}

h2,
.h2 {
  margin-bottom: 0.5em;
  font-size: var(--wp--preset--font-size--h-2);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-transform: uppercase;
}

h3,
.h3 {
  margin-bottom: 0.5em;
  font-size: var(--wp--preset--font-size--h-3);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h4,
.h4 {
  margin-bottom: 0.5em;
  font-size: var(--wp--preset--font-size--lead);
  font-weight: 500;
  line-height: 1.3;
}

h5,
h6,
.h5,
.h6 {
  margin-bottom: 0.5em;
  font-weight: 500;
  line-height: 1.3;
}

.lead {
  font-size: var(--wp--preset--font-size--lead);
  font-weight: 400;
  line-height: 1.6;
}

p {
  margin-bottom: var(--divenire-stack-gap);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.25s ease;
}

.site-main :where(p, li, blockquote, figcaption) a:not(.btn):not(.wp-element-button):not(.wp-block-button__link):not(.samasti-posts-list__cta):not(.samasti-schedule__cta):not(.samasti-steps__cta):not(.samasti-contacts__social) {
  color: var(--divenire-color-accent);
}

.site-main :where(p, li, blockquote, figcaption) a:not(.btn):not(.wp-element-button):not(.wp-block-button__link):not(.samasti-posts-list__cta):not(.samasti-schedule__cta):not(.samasti-steps__cta):not(.samasti-contacts__social):hover {
  color: var(--divenire-color-dark);
}

:where(a, button, input, select, textarea, .btn, .wp-element-button, .wp-block-button__link):focus-visible {
  outline: 3px solid var(--divenire-color-dark);
  outline-offset: 3px;
}

:where(.site-footer, .page-section--tint-dark) :where(a, button, input, select, textarea, .btn, .wp-element-button, .wp-block-button__link):focus-visible {
  outline-color: var(--divenire-color-primary);
}

body.samasti-coming-soon-body :where(a, button):focus-visible {
  outline-color: var(--divenire-color-light);
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.btn,
.wp-element-button,
.wp-block-button__link,
body .samasti-posts-list__cta,
body .samasti-schedule__cta,
body .samasti-steps__cta,
body .contact-card__form .wpcf7-form-control.wpcf7-submit {
  font-family: var(--samasti-button-font);
  font-weight: 600;
  text-transform: uppercase;
}

.btn,
.wp-element-button,
.wp-block-button__link,
body .samasti-posts-list__cta,
body .samasti-schedule__cta,
body .samasti-steps__cta,
body .contact-card__form .wpcf7-form-control.wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--wp--preset--font-size--ui);
  line-height: 1;
  padding: 0.75rem 1.125rem;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 20px;
  text-decoration: none;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.btn-square {
  border-radius: 20px;
}

.btn-primary,
:where(.wp-element-button, .wp-block-button__link),
body .samasti-posts-list__cta,
body .samasti-schedule__cta,
body .samasti-steps__cta,
body .contact-card__form .wpcf7-form-control.wpcf7-submit {
  background: var(--samasti-accent);
  border-color: var(--samasti-accent);
  color: var(--divenire-color-dark);
}

.btn-primary:hover,
.btn-primary:focus-visible,
:where(.wp-element-button, .wp-block-button__link):hover,
:where(.wp-element-button, .wp-block-button__link):focus-visible,
body .samasti-posts-list__cta:hover,
body .samasti-posts-list__cta:focus-visible,
body .samasti-schedule__cta:hover,
body .samasti-schedule__cta:focus-visible,
body .samasti-steps__cta:hover,
body .samasti-steps__cta:focus-visible,
body .contact-card__form .wpcf7-form-control.wpcf7-submit:hover,
body .contact-card__form .wpcf7-form-control.wpcf7-submit:focus-visible {
  background: var(--divenire-color-dark);
  border-color: var(--divenire-color-dark);
  color: var(--divenire-color-light);
  box-shadow: none;
}

body .info-box-cta:hover .btn-primary {
  background: var(--divenire-color-dark);
  border-color: var(--divenire-color-dark);
  color: var(--divenire-color-light);
  box-shadow: none;
}

.button--secondary,
.btn-outline-primary,
.btn-outline-light,
.is-style-outline > .wp-block-button__link {
  background: var(--divenire-color-light);
  border-color: var(--samasti-dark);
  color: var(--samasti-dark);
}

.button--secondary:hover,
.button--secondary:focus-visible,
.btn-outline-primary:hover,
.btn-outline-primary:focus-visible,
.btn-outline-light:hover,
.btn-outline-light:focus-visible,
.is-style-outline > .wp-block-button__link:hover,
.is-style-outline > .wp-block-button__link:focus-visible {
  background: var(--samasti-dark);
  border-color: var(--samasti-dark);
  color: var(--divenire-color-light);
  box-shadow: none;
}

.contact-section .contact-card__form .wpcf7-submit {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.site-main .divenire-page-header__title:not(.no-accent-dot)::after,
.site-main .entry-content :where(h1, h2):not(.no-accent-dot)::after,
.site-main :where(
  .samasti-posts-list__heading,
  .samasti-title-text-section > .container > .samasti-title-text__heading > h2,
  .samasti-steps__heading,
  .contact-section__title
):not(.no-accent-dot)::after,
.site-main .wp-block-samasti-steps h3.samasti-steps__item-heading:not(.no-accent-dot)::after {
  color: var(--divenire-color-primary);
  margin-inline-start: 0.06em;
  content: "\2060.";
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  vertical-align: baseline;
  white-space: nowrap;
}

.site-main .entry-content :where(
  .samasti-hero,
  .samasti-faq-section,
  .faq-section,
  .samasti-schedule-section,
  .wp-block-samasti-schedule,
  .contact-card__form,
  .divenire-breadcrumbs
) :where(h1, h2)::after {
  content: none;
}

.site-main .entry-content .samasti-schedule__heading::after {
  content: none;
}

@media (prefers-reduced-motion: reduce) {
  a,
  .btn,
  .wp-element-button,
  .wp-block-button__link,
  body .samasti-posts-list__cta,
  body .samasti-schedule__cta,
  body .samasti-steps__cta,
  body .contact-card__form .wpcf7-form-control.wpcf7-submit {
    transition-duration: 0.01ms;
  }
}

@media (max-width: 767px) {
  .wp-block-samasti-faq .faq-cta > .btn {
    width: 100%;
    margin-top: var(--divenire-content-gap, clamp(1.25rem, 2.5vw, 2rem));
  }
}
