/*
Theme Name: Dental Training For You
Theme URI: https://dentaltrainingforyou.com
Description: Kadence child theme for Dental Training For You — brand system, self-hosted fonts, program CPT templates.
Author: Nico (Bauh Design brand)
Template: kadence
Version: 1.0.0
Text Domain: dtfy
*/

/* ==========================================================================
   Brand tokens (mirror of the Kadence Global Palette, for use in child CSS)
   ========================================================================== */
:root {
  --dtfy-teal: #00696F;      /* primary deep teal */
  --dtfy-turquoise: #00D6CB; /* bright turquoise accent */
  --dtfy-teal-dark: #004F54; /* hover / footer bottom */
  --dtfy-gray: #999999;
  --dtfy-charcoal: #2B2B2B;
  --dtfy-tint: #F4FAFA;      /* soft section background */
  --dtfy-gold: #C9A227;      /* certificate seal */
  --dtfy-white: #FFFFFF;
}

/* ==========================================================================
   Typography — Bebas Neue (display), Lie to Me (script accent), Inter (body)
   ========================================================================== */
body,
.entry-content,
.wp-site-blocks {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.dtfy-display {
  font-family: "Bebas Neue", "Inter", sans-serif;
  letter-spacing: 0.01em;
  font-weight: 700;
}

/* Big display headings need extra line-height control because Bebas is condensed */
h1, .dtfy-display { line-height: 1.02; }
h2 { line-height: 1.06; }

/* Script accent used sparingly (e.g. the "for you" flourish / eyebrow labels) */
.dtfy-script {
  font-family: "Lie to Me", cursive;
  font-weight: 400;
  color: var(--dtfy-turquoise);
  letter-spacing: 0;
}

/* ==========================================================================
   Buttons — reinforce the turquoise CTA look from the mockups
   ========================================================================== */
.wp-block-button__link,
.kb-button {
  font-family: "Bebas Neue", "Inter", sans-serif;
  letter-spacing: 0.04em;
  font-size: 1.15em;
}

/* ==========================================================================
   Certificate seal helper
   ========================================================================== */
.dtfy-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: radial-gradient(circle at 30% 30%, #e9c45a, var(--dtfy-gold));
  border-radius: 999px;
  font-family: "Bebas Neue", sans-serif;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

/* ==========================================================================
   Floating Contact + WhatsApp widget (rendered by mu-plugin dtfy-core.php)
   ========================================================================== */
.dtfy-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.dtfy-float__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
  border: none;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.dtfy-float__btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.dtfy-float__btn--wa { background: #25D366; }
.dtfy-float__btn--contact { background: var(--dtfy-teal); }
.dtfy-float__btn svg { width: 20px; height: 20px; fill: currentColor; }

.dtfy-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 30, 32, .55);
  padding: 20px;
}
.dtfy-modal.is-open { display: flex; }
.dtfy-modal__box {
  background: #fff;
  border-radius: 16px;
  max-width: 460px;
  width: 100%;
  padding: 28px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.dtfy-modal__box h3 {
  color: var(--dtfy-teal);
  margin: 0 0 6px;
  font-size: 1.8rem;
}
.dtfy-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--dtfy-gray);
  cursor: pointer;
}
.dtfy-modal__row { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: .98rem; }
.dtfy-modal__row a { color: var(--dtfy-teal); text-decoration: none; }
.dtfy-modal__icon { color: var(--dtfy-turquoise); flex: 0 0 20px; }

@media (max-width: 600px) {
  .dtfy-float__btn span { display: none; } /* icon-only on small screens */
  .dtfy-float__btn { padding: 14px; }
}

/* ==========================================================================
   Utility & component classes (used across page block content)
   ========================================================================== */
.dtfy-bg-teal { background-color: var(--dtfy-teal); }
.dtfy-bg-teal-dark { background-color: var(--dtfy-teal-dark); }
.dtfy-bg-tint { background-color: var(--dtfy-tint); }
.dtfy-bg-turquoise { background-color: var(--dtfy-turquoise); }

.dtfy-on-dark, .dtfy-on-dark :is(h1,h2,h3,h4,h5,h6,p,li,span) { color: #fff; }
.dtfy-on-dark a { color: var(--dtfy-turquoise); }

/* Script "eyebrow" label above headings, mimicking the "for you" flourish */
.dtfy-eyebrow {
  font-family: "Lie to Me", cursive;
  color: var(--dtfy-turquoise);
  font-size: 1.7rem;
  line-height: 1;
  display: block;
  margin-bottom: .25rem;
}
.dtfy-on-dark .dtfy-eyebrow { color: var(--dtfy-turquoise); }

/* Responsive auto-wrapping grid for card sections.
   Core group blocks may wrap children in .wp-block-group__inner-container, so we make BOTH
   the group and (if present) its inner container the grid so cards tile either way. */
.dtfy-grid,
.dtfy-grid > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  align-items: stretch;
}
.dtfy-grid--3,
.dtfy-grid--3 > .wp-block-group__inner-container { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.dtfy-grid--4,
.dtfy-grid--4 > .wp-block-group__inner-container { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Card used for program/feature/testimonial grids */
.dtfy-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px 26px;
  box-shadow: 0 12px 34px rgba(0, 60, 64, .08);
  border: 1px solid rgba(0,105,111,.08);
  height: 100%;
}
.dtfy-card h3 { color: var(--dtfy-teal); margin-top: 0; }
.dtfy-card--accent { border-top: 5px solid var(--dtfy-turquoise); }

/* Checklist with turquoise ticks (hero benefits) */
.dtfy-checklist { list-style: none; margin: 0; padding: 0; }
.dtfy-checklist li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 12px;
  font-size: 1.05rem;
}
.dtfy-checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--dtfy-turquoise);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300696F'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
  background-size: 16px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Hero */
.dtfy-hero {
  background: linear-gradient(120deg, var(--dtfy-teal) 0%, var(--dtfy-teal-dark) 100%);
  position: relative;
  overflow: hidden;
}
.dtfy-hero__photo {
  background: rgba(255,255,255,.06);
  border: 2px dashed rgba(255,255,255,.35);
  border-radius: 20px;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  text-align: center;
  font-size: .95rem;
}

/* Section eyebrow heading wrapper spacing */
.dtfy-section { padding-top: 64px; padding-bottom: 64px; }

/* Stat / trust row */
.dtfy-stat { text-align: center; }
.dtfy-stat__num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 3rem;
  color: var(--dtfy-turquoise);
  line-height: 1;
}
.dtfy-stat__label { font-size: .9rem; opacity: .9; }

/* Button utility classes for core buttons inside page content */
.wp-block-button.dtfy-btn .wp-block-button__link {
  background: var(--dtfy-turquoise);
  color: var(--dtfy-teal);
  border-radius: 999px;
  padding: 14px 34px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.3rem;
  letter-spacing: .04em;
}
.wp-block-button.dtfy-btn .wp-block-button__link:hover { filter: brightness(1.06); }
.wp-block-button.dtfy-btn--teal .wp-block-button__link { background: var(--dtfy-teal); color: #fff; }
.wp-block-button.dtfy-btn--outline .wp-block-button__link {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.wp-block-button.dtfy-btn--gold .wp-block-button__link { background: var(--dtfy-gold); color: #fff; }

/* Program price/duration inline badges within cards */
.dtfy-tag {
  display: inline-block;
  background: var(--dtfy-tint);
  color: var(--dtfy-teal);
  border-radius: 999px;
  padding: 4px 14px;
  font-weight: 600;
  font-size: .85rem;
  margin: 2px 4px 2px 0;
}

/* Section headings get a turquoise underline accent */
.dtfy-section h2 { position: relative; }

/* Seal badge (Certificate Included) */
.dtfy-seal-badge {
  width: 130px; height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f0d97a, var(--dtfy-gold));
  color: #4a3a00;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  font-family: "Bebas Neue", sans-serif;
  line-height: 1.05;
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
  border: 4px solid rgba(255,255,255,.5);
}

/* ==========================================================================
   Header — teal navbar (mockup look), logo only, white menu
   ========================================================================== */
.site-header-row-container.site-main-header .site-header-row-container-inner,
.site-main-header-inner-wrap {
  background-color: var(--dtfy-teal) !important;
}

/* Hide the redundant text site-title — the logo already contains the wordmark */
.site-branding .site-title,
.header-site-title-wrap,
.site-header .site-title {
  display: none !important;
}

.site-header .custom-logo-link img,
.site-branding img {
  max-height: 54px;
  width: auto;
}

/* Primary nav links → white, turquoise on hover/active */
.header-navigation .header-menu-container ul li a.menu-link,
.header-navigation .menu > li > a {
  color: #fff !important;
  font-weight: 500;
  letter-spacing: .01em;
}
.header-navigation .header-menu-container ul li a.menu-link:hover,
.header-navigation .menu > li.current-menu-item > a {
  color: var(--dtfy-turquoise) !important;
}
.header-navigation .header-menu-container ul li a.menu-link .dropdown-nav-special-toggle,
.header-navigation .menu > li > a .kadence-svg-iconset { color: #fff; }

/* Dropdown submenu → white panel, teal text */
.header-navigation ul.sub-menu {
  background: #fff !important;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 14px 30px rgba(0,0,0,.15);
  padding: 6px 0;
}
.header-navigation ul.sub-menu li a.menu-link {
  color: var(--dtfy-teal) !important;
}
.header-navigation ul.sub-menu li a.menu-link:hover {
  background: var(--dtfy-tint);
  color: var(--dtfy-teal-dark) !important;
}

/* CTA buttons in the nav (menu-item classes dtfy-nav-btn / --alt) */
.menu-item.dtfy-nav-btn > a.menu-link,
.menu-item.dtfy-nav-btn > a {
  background: var(--dtfy-turquoise);
  color: var(--dtfy-teal) !important;
  border-radius: 999px;
  padding: 9px 20px !important;
  margin-left: 6px;
  font-weight: 700;
  transition: filter .15s ease, transform .15s ease;
}
.menu-item.dtfy-nav-btn > a:hover { filter: brightness(1.06); transform: translateY(-1px); }
.menu-item.dtfy-nav-btn--alt > a.menu-link,
.menu-item.dtfy-nav-btn--alt > a {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,.7);
}
.menu-item.dtfy-nav-btn--alt > a:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
}

/* Mobile toggle icon → white on teal */
.mobile-toggle-open-container .menu-toggle-open .kadence-svg-iconset,
#mobile-toggle .kadence-svg-iconset { color: #fff; }

/* ==========================================================================
   Footer — dark teal (mockup look)
   ========================================================================== */
.site-footer,
.site-footer .site-footer-row-container-inner,
.site-bottom-footer-inner-wrap,
.site-top-footer-inner-wrap {
  background-color: var(--dtfy-teal-dark) !important;
  color: #fff;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--dtfy-turquoise); }
.site-footer .widget-title,
.site-footer h2, .site-footer h3, .site-footer h4 { color: #fff; }

/* Custom brand footer injected via footer_html theme_mod */
.dtfy-footer { max-width: 1200px; margin: 0 auto; padding: 16px 24px; text-align: left; }
.dtfy-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 32px;
}
.dtfy-footer__col h4 {
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.35rem;
  letter-spacing: .03em;
  margin: 0 0 12px;
}
.dtfy-footer__col p { margin: 0 0 10px; font-size: .92rem; opacity: .9; }
.dtfy-footer__col ul { list-style: none; margin: 0; padding: 0; }
.dtfy-footer__col li { margin-bottom: 8px; }
.dtfy-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.dtfy-footer a:hover { color: var(--dtfy-turquoise); }
.dtfy-footer__social a { display: inline-block; margin: 0 12px 6px 0; font-size: .88rem; }
.dtfy-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.18);
  margin-top: 26px;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .85rem;
  opacity: .92;
}

/* ==========================================================================
   Fluent Forms — brand styling
   ========================================================================== */
.fluentform .ff-btn-submit,
.fluentform button[type="submit"] {
  background: var(--dtfy-turquoise) !important;
  color: var(--dtfy-teal) !important;
  border: none !important;
  border-radius: 999px !important;
  font-family: "Bebas Neue", sans-serif !important;
  font-size: 1.2rem !important;
  letter-spacing: .04em !important;
  padding: 12px 34px !important;
}
.fluentform .ff-btn-submit:hover { filter: brightness(1.06); }
.fluentform input:focus,
.fluentform textarea:focus,
.fluentform select:focus {
  border-color: var(--dtfy-teal) !important;
  box-shadow: 0 0 0 2px rgba(0,214,203,.25) !important;
}
.fluentform .ff-el-input--label label { font-weight: 600; }

/* Map embed */
.dtfy-map iframe { display: block; width: 100%; }

/* ==========================================================================
   Program (CPT) single-page layout helpers
   ========================================================================== */
.dtfy-program-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.dtfy-program-meta__item {
  background: var(--dtfy-tint);
  border: 1px solid rgba(0,105,111,.12);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.dtfy-program-meta__label {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--dtfy-gray);
  margin-bottom: 4px;
}
.dtfy-program-meta__value {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  color: var(--dtfy-teal);
  line-height: 1;
}
.dtfy-price-tag {
  display: inline-block;
  background: var(--dtfy-turquoise);
  color: var(--dtfy-teal);
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  padding: 6px 20px;
  border-radius: 10px;
  letter-spacing: .02em;
}

/* Program single: featured photo banner injected above the content */
.dtfy-program-hero {
  margin: 0 0 30px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 22px 54px rgba(0, 60, 64, .22);
  line-height: 0;
}
.dtfy-program-hero img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center 30%;
}

/* Program single: intro header panel with summary, meta grid and enroll CTA */
.dtfy-program-header {
  background: var(--dtfy-tint);
  border: 1px solid rgba(0,105,111,.12);
  border-radius: 18px;
  padding: 28px 30px;
  margin-bottom: 28px;
}
.dtfy-program-summary {
  font-size: 1.15rem;
  color: var(--dtfy-teal-dark);
  margin: 0 0 6px;
}
.dtfy-enroll-btn {
  display: inline-block;
  margin-top: 8px;
  background: var(--dtfy-turquoise);
  color: var(--dtfy-teal) !important;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.3rem;
  letter-spacing: .04em;
  padding: 12px 30px;
  border-radius: 999px;
  text-decoration: none;
  transition: filter .15s ease;
}
.dtfy-enroll-btn:hover { filter: brightness(1.06); }

/* Program single: style Kadence's title area on brand */
.single-program .entry-hero,
.single-program .entry-hero-container-inner {
  background-color: var(--dtfy-teal) !important;
}
.single-program .entry-hero h1,
.single-program .entry-hero .entry-title { color: #fff; }

/* Bottom CTA band reused on program + pillar pages */
.dtfy-cta-band {
  background: linear-gradient(120deg, var(--dtfy-teal), var(--dtfy-teal-dark));
  color: #fff;
  border-radius: 18px;
  padding: 40px;
  text-align: center;
  margin-top: 36px;
}
.dtfy-cta-band h2, .dtfy-cta-band p { color: #fff; }

/* ==========================================================================
   DESIGN OVERHAUL / FIXES (loaded last — wins)
   ========================================================================== */

/* 1. Header teal must span the FULL viewport width on every screen size.
   (Previously painted a max-width inner wrap, which left white gutters on wide screens.) */
#masthead.site-header,
#masthead .site-header-upper-wrap,
#masthead .site-main-header-wrap {
  background-color: var(--dtfy-teal) !important;
}

/* 2. No white gaps between full-width colored sections */
.wp-block-group.alignfull { margin-top: 0 !important; margin-bottom: 0 !important; }

/* 2b. Remove the white content padding strip above/below full-width hero pages
   so colored sections butt cleanly against the header and footer. */
.content-width-fullwidth .content-area,
.content-width-fullwidth .content-container,
.content-width-fullwidth .site-main,
.content-width-fullwidth .content-wrap,
.content-width-fullwidth .entry-content-wrap {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.content-width-fullwidth .entry-content > *:first-child { margin-top: 0 !important; }

/* 3. Cards: depth + lift on hover + icon badge */
.dtfy-card {
  transition: transform .18s ease, box-shadow .18s ease;
}
.dtfy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(0, 60, 64, .16);
}
.dtfy-card__icon {
  width: 56px; height: 56px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--dtfy-turquoise), var(--dtfy-teal));
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 18px rgba(0,105,111,.28);
}
.dtfy-card__icon svg { width: 30px; height: 30px; fill: #fff; }

/* 4. Centered section headings get a turquoise underline accent */
.dtfy-section h2.has-text-align-center::after {
  content: "";
  display: block;
  width: 72px; height: 4px;
  background: var(--dtfy-turquoise);
  border-radius: 2px;
  margin: 16px auto 0;
}

/* 5. Hero: real media frame (video/logo) with gold seal + trust badges,
   replacing the empty dashed placeholder. */
.dtfy-hero { position: relative; }
.dtfy-hero::after {
  /* faint oversized brand tooth/mirror motif watermark */
  content: "";
  position: absolute;
  right: -60px; top: -40px;
  width: 460px; height: 460px;
  background: radial-gradient(circle at 50% 38%, rgba(0,214,203,.16), rgba(0,214,203,0) 62%);
  pointer-events: none;
  z-index: 0;
}
.dtfy-hero > * { position: relative; z-index: 1; }

.dtfy-hero-media { position: relative; padding: 0 10px 10px 0; }
.dtfy-hero-media__frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.20);
  box-shadow: 0 34px 80px rgba(0,0,0,.38);
  aspect-ratio: 4 / 3.2;
  display: flex; align-items: center; justify-content: center;
}
.dtfy-hero-media__frame video,
.dtfy-hero-media__frame img { width: 88%; height: auto; display: block; }
.dtfy-hero-media .dtfy-seal-badge {
  position: absolute;
  bottom: -18px; left: -18px;
  width: 120px; height: 120px;
  font-size: 1rem;
  z-index: 3;
}

/* Hero cutout (real photo on transparent, floating on the teal) */
.dtfy-hero-cutout {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 460px;
}
.dtfy-hero-cutout::before {
  content: "";
  position: absolute;
  inset: 4% 6% -2% 6%;
  background: radial-gradient(ellipse at 50% 46%, rgba(0,214,203,.40), rgba(0,214,203,0) 66%);
  filter: blur(8px);
  z-index: 0;
}
.dtfy-hero-cutout img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 470px;
  height: auto;
  filter: drop-shadow(0 26px 44px rgba(0,0,0,.38));
  -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 97%);
          mask-image: linear-gradient(to bottom, #000 74%, transparent 97%);
}
.dtfy-hero-cutout .dtfy-seal-badge {
  position: absolute;
  z-index: 2;
  right: 2%;
  bottom: 10%;
  width: 122px; height: 122px;
}

.dtfy-trust {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px;
}
.dtfy-trust span {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.24);
  color: #fff; font-size: .78rem; font-weight: 500;
  padding: 7px 13px; border-radius: 999px;
}

/* Framed real photo (rounded, shadow) */
.dtfy-photo-frame {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 26px 64px rgba(0, 60, 64, .26);
  line-height: 0;
  width: 100%;
}
.dtfy-photo-frame img { display: block; width: 100%; height: auto; }
/* cover-crop variant for when a fixed ratio is wanted */
.dtfy-photo-frame--cover { aspect-ratio: 4 / 3; }
.dtfy-photo-frame--cover img { height: 100%; object-fit: cover; }

/* Full-bleed image band with dark overlay + centered text */
.dtfy-imgband {
  position: relative;
  min-height: 360px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
}
.dtfy-imgband::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(0,79,84,.86), rgba(0,105,111,.72));
}
.dtfy-imgband > * { position: relative; z-index: 1; }

/* 6. Facilities/media placeholder → intentional branded panel (no dashed "to be added") */
.dtfy-media-panel {
  border-radius: 22px;
  min-height: 340px;
  background:
    radial-gradient(circle at 78% 22%, rgba(0,214,203,.28), rgba(0,214,203,0) 55%),
    linear-gradient(135deg, var(--dtfy-teal), var(--dtfy-teal-dark));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 60px rgba(0,60,64,.22);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.dtfy-media-panel img { width: 60%; max-width: 260px; height: auto; opacity: .95; }

@media (max-width: 781px) {
  .dtfy-hero-media { padding: 0; margin-top: 24px; }
  .dtfy-hero-media .dtfy-seal-badge { width: 92px; height: 92px; bottom: -12px; left: -8px; }
}

/* ==========================================================================
   PREMIUM v2 — dropdown fix, photo cards, avatar reviews, refined sections
   ========================================================================== */

/* ---- Dropdown submenu: white card, teal text (was invisible white-on-white) ---- */
.site-header .header-navigation ul.sub-menu {
  background: #ffffff !important;
  border-radius: 14px !important;
  box-shadow: 0 22px 48px rgba(0, 40, 44, .20) !important;
  padding: 8px !important;
  min-width: 246px;
  border: 1px solid rgba(0, 105, 111, .08);
  margin-top: 0 !important;
}
/* invisible hover "bridge" so the dropdown doesn't close when the cursor
   crosses the gap between the nav item and the submenu */
.site-header .header-navigation ul.sub-menu::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -16px;
  height: 18px;
}
.site-header .header-navigation ul.sub-menu li { margin: 0; }
.site-header .header-navigation ul.sub-menu li a,
.site-header .header-navigation ul.sub-menu li a.menu-link {
  color: var(--dtfy-teal) !important;
  background: transparent !important;
  border-radius: 10px !important;
  padding: 11px 16px !important;
  font-weight: 600 !important;
  font-size: .95rem !important;
  display: block;
  transition: background .15s ease, color .15s ease;
}
.site-header .header-navigation ul.sub-menu li a:hover,
.site-header .header-navigation ul.sub-menu li a.menu-link:hover,
.site-header .header-navigation ul.sub-menu li.current-menu-item > a {
  background: var(--dtfy-tint) !important;
  color: var(--dtfy-teal-dark) !important;
}

/* ---- Premium program cards: photo-top, equal height, symmetric ---- */
.dtfy-pgrid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-top: 42px;
}
.dtfy-pcard {
  flex: 1 1 300px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(0, 60, 64, .10);
  border: 1px solid rgba(0, 105, 111, .06);
  transition: transform .22s ease, box-shadow .22s ease;
}
.dtfy-pcard:hover { transform: translateY(-7px); box-shadow: 0 30px 64px rgba(0, 60, 64, .20); }
/* tight variant: 4 cards fit in one clean row */
.dtfy-pgrid--4 .dtfy-pcard { flex: 1 1 240px; max-width: 276px; }
.dtfy-pgrid--4 .dtfy-pcard__body { padding: 34px 20px 24px; }
.dtfy-pcard__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--dtfy-tint); }
.dtfy-pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.dtfy-pcard:hover .dtfy-pcard__media img { transform: scale(1.07); }
.dtfy-pcard__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,79,84,0) 55%, rgba(0,79,84,.35));
}
.dtfy-pcard__icon {
  position: absolute; z-index: 2;
  top: -27px; left: 22px;
  width: 54px; height: 54px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--dtfy-turquoise), var(--dtfy-teal));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 22px rgba(0, 105, 111, .38);
  border: 3px solid #fff;
}
.dtfy-pcard__icon svg { width: 26px; height: 26px; fill: #fff; }
.dtfy-pcard__body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 40px 24px 26px; }
.dtfy-pcard__body h3 { color: var(--dtfy-teal); margin: 0 0 10px; font-size: 1.32rem; line-height: 1.15; }
.dtfy-pcard__body p { color: #4a5a5c; font-size: .95rem; margin: 0 0 16px; }
.dtfy-pcard__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.dtfy-pcard__tags span {
  background: var(--dtfy-tint); color: var(--dtfy-teal);
  border-radius: 999px; padding: 5px 13px; font-size: .78rem; font-weight: 600;
}
.dtfy-pcard__link {
  margin-top: auto;
  color: var(--dtfy-turquoise); font-weight: 700; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.dtfy-pcard__link:hover { color: var(--dtfy-teal); gap: 10px; }

/* ---- Reviews with avatars ---- */
.dtfy-review { text-align: left; }
.dtfy-review__stars { color: #F2B01E; font-size: 1.15rem; letter-spacing: 2px; margin: 0 0 10px; }
.dtfy-review__text { color: #3a4a4c; font-style: italic; margin: 0 0 18px; }
.dtfy-review__who { display: flex; align-items: center; gap: 12px; }
.dtfy-review__who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--dtfy-turquoise); }
/* initial-letter avatar (we don't have client photos) */
.dtfy-review__avatar {
  width: 48px; height: 48px; flex: 0 0 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dtfy-turquoise), var(--dtfy-teal));
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Bebas Neue", sans-serif; font-size: 1.6rem; line-height: 1;
}
.dtfy-review__name { font-weight: 700; color: var(--dtfy-teal); }
.dtfy-review__role { font-size: .82rem; color: var(--dtfy-gray); }

/* ---- Refined "Why choose" feature cards ---- */
.dtfy-feature { text-align: center; padding: 8px; }
.dtfy-feature__num {
  width: 66px; height: 66px; margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.28);
  display: flex; align-items: center; justify-content: center;
}
.dtfy-feature__num svg { width: 30px; height: 30px; fill: var(--dtfy-turquoise); }
.dtfy-feature h3 { color: #fff; margin: 0 0 8px; }

/* ---- Hero: floating credential card for extra depth ---- */
.dtfy-hero-cutout { overflow: visible; }
.dtfy-floatcard {
  position: absolute; z-index: 3;
  left: -12px; top: 16%;
  background: #fff;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 18px 40px rgba(0, 30, 32, .35);
  display: flex; align-items: center; gap: 10px;
  max-width: 210px;
}
.dtfy-floatcard__ic { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg,var(--dtfy-turquoise),var(--dtfy-teal)); flex: 0 0 40px; display:flex; align-items:center; justify-content:center; }
.dtfy-floatcard__ic svg { width: 22px; height: 22px; fill: #fff; }
.dtfy-floatcard__t,
.dtfy-on-dark .dtfy-floatcard__t { font-family: "Bebas Neue", sans-serif; color: var(--dtfy-teal) !important; font-size: 1.4rem; line-height: 1; }
.dtfy-floatcard__s,
.dtfy-on-dark .dtfy-floatcard__s { font-size: .74rem; color: #6b7280 !important; }
@media (max-width: 900px) { .dtfy-floatcard { display: none; } }

/* ---- Section eyebrow spacing refinement ---- */
.dtfy-section { padding-top: 78px; padding-bottom: 78px; }

/* ==========================================================================
   CREATIVE v3 — decorative shapes, cutout compositions, gallery, motion
   ========================================================================== */

/* ---- Scroll reveal (progressive enhancement: only hides when JS adds .js-anim) ---- */
.js-anim .dtfy-reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js-anim .dtfy-reveal.is-in { opacity: 1; transform: none; }
.js-anim .dtfy-reveal.d1 { transition-delay: .08s; }
.js-anim .dtfy-reveal.d2 { transition-delay: .16s; }
.js-anim .dtfy-reveal.d3 { transition-delay: .24s; }
.js-anim .dtfy-reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .js-anim .dtfy-reveal { opacity: 1 !important; transform: none !important; } }

/* ---- Decorative brand shapes ---- */
.dtfy-blob {
  position: absolute; z-index: 0; pointer-events: none;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  background: linear-gradient(135deg, var(--dtfy-turquoise), var(--dtfy-teal));
  opacity: .16;
}
.dtfy-blob--solid { opacity: 1; }
.dtfy-dots {
  position: absolute; z-index: 0; pointer-events: none;
  background-image: radial-gradient(currentColor 2.2px, transparent 2.2px);
  background-size: 20px 20px;
  opacity: .5;
}
.dtfy-ring {
  position: absolute; z-index: 0; pointer-events: none;
  border: 2px dashed rgba(0,214,203,.45); border-radius: 50%;
}
.dtfy-ring--fill { border: none; background: radial-gradient(circle, rgba(0,214,203,.20), rgba(0,214,203,0) 70%); }

/* ---- Cutout composition (person on a blob with dots, floating cards) ---- */
.dtfy-compose { position: relative; min-height: 460px; display: flex; align-items: flex-end; justify-content: center; }
.dtfy-compose__blob {
  position: absolute; z-index: 0;
  width: 92%; height: 92%; left: 4%; bottom: 0;
  border-radius: 46% 54% 48% 52% / 55% 50% 50% 45%;
  background: radial-gradient(circle at 50% 40%, rgba(0,214,203,.30), rgba(0,214,203,.06) 60%, transparent 72%);
}
.dtfy-compose__img {
  position: relative; z-index: 1; width: 100%; max-width: 480px; height: auto;
  filter: drop-shadow(0 30px 46px rgba(0,0,0,.34));
  /* fade the bottom so any rough cut-out edge blends into the section */
  -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 97%);
          mask-image: linear-gradient(to bottom, #000 74%, transparent 97%);
}
.dtfy-compose--dark .dtfy-compose__img { filter: drop-shadow(0 30px 46px rgba(0,30,32,.5)); }

/* Floating info chips over compositions — compact so they never reach the face */
.dtfy-chip {
  position: absolute; z-index: 3;
  background: #fff; border-radius: 12px; padding: 8px 12px;
  box-shadow: 0 16px 34px rgba(0,30,32,.26);
  display: flex; align-items: center; gap: 8px;
  max-width: 176px;
}
.dtfy-chip__ic { width: 32px; height: 32px; border-radius: 9px; flex: 0 0 32px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--dtfy-turquoise), var(--dtfy-teal)); }
.dtfy-chip__ic svg { width: 18px; height: 18px; fill: #fff; }
.dtfy-chip__t { font-family: "Bebas Neue", sans-serif; color: var(--dtfy-teal) !important; font-size: 1.12rem; line-height: 1.02; }
.dtfy-chip__s { font-size: .66rem; line-height: 1.15; color: #6b7280 !important; }
/* Narrow phones: shrink the cutout + chips so chips flank the head without
   reaching the face (the compose gets narrow and the person fills it). */
@media (max-width: 500px) {
  .dtfy-hero .dtfy-compose__img, .dtfy-compose--dark .dtfy-compose__img { max-width: 236px !important; }
  .dtfy-chip { max-width: 138px; padding: 6px 9px; gap: 6px; border-radius: 10px; }
  .dtfy-chip__ic { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 8px; }
  .dtfy-chip__ic svg { width: 15px; height: 15px; }
  .dtfy-chip__t { font-size: .95rem; }
  .dtfy-chip__s { font-size: .58rem; }
}

/* ---- Alternating feature rows (editorial) ---- */
.dtfy-frow { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.dtfy-frow--rev .dtfy-frow__media { order: 2; }
.dtfy-frow__body .dtfy-eyebrow { margin-bottom: 6px; }
.dtfy-frow__body h2 { font-size: 2.4rem; margin: 0 0 14px; }
.dtfy-frow__list { list-style: none; margin: 18px 0 0; padding: 0; }
.dtfy-frow__list li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.dtfy-frow__list li::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--dtfy-turquoise); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300696F'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E"); background-size: 15px; background-repeat: no-repeat; background-position: center; }
@media (max-width: 820px) {
  .dtfy-frow { grid-template-columns: 1fr; gap: 30px; }
  .dtfy-frow--rev .dtfy-frow__media { order: 0; }
}

/* ---- Creative photo gallery (masonry-ish) ---- */
.dtfy-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dtfy-gallery figure { margin: 0; overflow: hidden; border-radius: 16px; position: relative; aspect-ratio: 4 / 3; }
.dtfy-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.dtfy-gallery figure:hover img { transform: scale(1.08); }
.dtfy-gallery figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,79,84,.35)); opacity: 0; transition: opacity .3s; }
.dtfy-gallery figure:hover::after { opacity: 1; }
/* uniform tiles — no chaotic spans */
.dtfy-gallery .g-tall, .dtfy-gallery .g-wide { grid-row: auto; grid-column: auto; }
@media (max-width: 900px) { .dtfy-gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---- Wave / curve section divider ---- */
.dtfy-wave { display: block; width: 100%; line-height: 0; }
.dtfy-wave svg { display: block; width: 100%; height: 70px; }

/* ---- CTA composition band ---- */
.dtfy-cta-compose { position: relative; overflow: hidden; }
.dtfy-cta-compose .dtfy-compose__img { max-width: 380px; }

/* ---- Anchor buttons used inside raw-HTML sections ---- */
.dtfy-cta-a {
  display: inline-block;
  background: var(--dtfy-turquoise); color: var(--dtfy-teal);
  font-family: "Bebas Neue", sans-serif; font-size: 1.25rem; letter-spacing: .04em;
  padding: 14px 32px; border-radius: 999px; text-decoration: none;
  transition: filter .15s ease, transform .15s ease;
}
.dtfy-cta-a:hover { filter: brightness(1.06); transform: translateY(-2px); }
.dtfy-cta-a--teal { background: var(--dtfy-teal); color: #fff; }
.dtfy-cta-a--gold { background: var(--dtfy-gold); color: #fff; }
.dtfy-cta-a--ghost { background: transparent; border: 2px solid rgba(255,255,255,.7); color: #fff; padding: 12px 30px; }
.dtfy-cta-a--ghost:hover { background: rgba(255,255,255,.12); }
/* keep button label colors correct even on dark sections (beats .dtfy-on-dark a) */
.dtfy-on-dark .dtfy-cta-a { color: var(--dtfy-teal); }
.dtfy-on-dark .dtfy-cta-a--teal,
.dtfy-on-dark .dtfy-cta-a--gold,
.dtfy-on-dark .dtfy-cta-a--ghost { color: #fff; }

/* ---- Stat band ---- */
.dtfy-statband { background: var(--dtfy-teal-dark); padding: 46px 24px; }
.dtfy-statband__wrap { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dtfy-stat2 { text-align: center; }
.dtfy-stat2__n { display: block; font-family: "Bebas Neue", sans-serif; font-size: 3.3rem; line-height: 1; color: var(--dtfy-turquoise); }
.dtfy-stat2__l { display: block; font-size: .9rem; opacity: .92; margin-top: 6px; }
@media (max-width: 700px) { .dtfy-statband__wrap { grid-template-columns: repeat(2, 1fr); gap: 30px; } }

/* Raw-HTML full-bleed sections: fill the (unboxed) content width */
.dtfy-hero, .dtfy-statband, .dtfy-feature-sec, .dtfy-cta-compose { width: 100%; }
.dtfy-feature-sec { position: relative; }

/* Gentle continuous float on floating chips/cards for a lively, dynamic feel */
@keyframes dtfy-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.dtfy-chip, .dtfy-floatcard { animation: dtfy-float 5s ease-in-out infinite; }
.dtfy-compose .dtfy-chip:nth-of-type(2) { animation-delay: -2.5s; }
@media (prefers-reduced-motion: reduce) { .dtfy-chip, .dtfy-floatcard { animation: none; } }

/* Program-card icon must never be clipped by the media's overflow — it lives in the body now */
.dtfy-pcard__media { overflow: hidden; }

/* ---- Program price chip (archive cards) — own line, clean, organized ---- */
.dtfy-price-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  background: rgba(0,214,203,.14);
  color: var(--dtfy-teal-dark);
  font-family: "Inter", sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.25;
  text-transform: none;
  padding: 7px 15px 7px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,105,111,.16);
  margin: 2px 0 14px;
}
.dtfy-price-badge::before {
  content: "";
  width: 15px; height: 15px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300696F'%3E%3Cpath d='M21.4 11.6 12.4 2.6c-.37-.37-.88-.6-1.42-.6H4c-1.1 0-2 .9-2 2v7c0 .54.23 1.05.6 1.42l9 9c.37.37.88.58 1.4.58s1.05-.23 1.42-.6l7-7c.37-.37.58-.88.58-1.4s-.23-1.05-.6-1.42zM6.5 8C5.67 8 5 7.33 5 6.5S5.67 5 6.5 5 8 5.67 8 6.5 7.33 8 6.5 8z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ==========================================================================
   Reviews v2 — dark summary card + sliding carousel (premium)
   ========================================================================== */
.dtfy-reviews2__head { text-align: center; max-width: 660px; margin: 0 auto 46px; }
.dtfy-reviews2__head h2 { font-size: 2.9rem; margin: 4px 0 10px; }
.dtfy-script2 { font-family: "Lie to Me", cursive; color: var(--dtfy-turquoise); }
.dtfy-reviews2__grid { display: grid; grid-template-columns: 330px 1fr; gap: 30px; align-items: stretch; }
@media (max-width: 900px) { .dtfy-reviews2__grid { grid-template-columns: 1fr; } }

/* summary card */
.dtfy-rsum {
  position: relative; overflow: hidden;
  border-radius: 24px; padding: 36px 32px; color: #fff;
  background:
    radial-gradient(circle at 82% 12%, rgba(0,214,203,.18), transparent 52%),
    linear-gradient(160deg, var(--dtfy-teal-dark), #052427);
  display: flex; flex-direction: column;
  box-shadow: 0 26px 60px rgba(0,40,44,.28);
}
.dtfy-rsum::after {
  content: ""; position: absolute; right: -50px; bottom: -60px; width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,214,203,.16), transparent 68%);
}
.dtfy-rsum > * { position: relative; z-index: 1; }
.dtfy-rsum__g { width: 58px; height: 58px; border-radius: 15px; background: #fff; display: inline-flex; align-items: center; justify-content: center; }
.dtfy-rsum__g svg { width: 30px; height: 30px; }
.dtfy-rsum__label { text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; opacity: .82; margin: 24px 0 2px; }
.dtfy-rsum__num { font-family: "Bebas Neue", sans-serif; font-size: 5.2rem; line-height: .85; }
.dtfy-rsum__stars { color: #F2B01E; font-size: 1.35rem; letter-spacing: 3px; margin-bottom: auto; }
.dtfy-rsum__count { font-size: .9rem; opacity: .8; margin-top: 8px; }
.dtfy-rsum__btn, .dtfy-rsum__btn2 {
  display: block; text-align: center; text-decoration: none;
  border-radius: 999px; padding: 13px 20px; font-family: "Bebas Neue", sans-serif;
  font-size: 1.15rem; letter-spacing: .04em; margin-top: 14px; transition: filter .15s ease, background .2s ease;
}
.dtfy-rsum__btn { background: var(--dtfy-turquoise); color: var(--dtfy-teal); }
.dtfy-rsum__btn:hover { filter: brightness(1.06); }
.dtfy-rsum__btn2 { background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff; }
.dtfy-rsum__btn2:hover { background: rgba(255,255,255,.1); }

/* carousel — flex column so cards stretch to match the summary card height */
.dtfy-rcar { position: relative; display: flex; flex-direction: column; min-width: 0; }
.dtfy-rcar__viewport { overflow: hidden; flex: 1 1 auto; min-width: 0; }
.dtfy-rcar__track { display: flex; align-items: stretch; height: 100%; gap: 24px; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.dtfy-rcard {
  flex: 0 0 calc(50% - 12px);
  background: #fff; border-radius: 20px; padding: 30px 28px;
  box-shadow: 0 16px 42px rgba(0,60,64,.09);
  position: relative; display: flex; flex-direction: column;
}
@media (max-width: 640px) { .dtfy-rcard { flex: 0 0 100%; } }
.dtfy-rcard__quote { position: absolute; top: 14px; right: 24px; font-family: Georgia, "Times New Roman", serif; font-size: 4.4rem; line-height: 1; color: rgba(0,214,203,.22); }
.dtfy-rcard__stars { color: #F2B01E; letter-spacing: 2px; font-size: 1.05rem; margin: 0 0 12px; }
.dtfy-rcard__time { display: inline-block; background: var(--dtfy-tint); color: var(--dtfy-teal); border-radius: 999px; padding: 4px 13px; font-size: .74rem; font-weight: 600; margin-bottom: 14px; }
.dtfy-rcard__text { color: #3a4a4c; font-style: italic; line-height: 1.6; margin: 0 0 20px; }
.dtfy-rcard__who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.dtfy-rcard__av { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; background: linear-gradient(135deg, var(--dtfy-turquoise), var(--dtfy-teal)); color: #fff; display: flex; align-items: center; justify-content: center; font-family: "Bebas Neue", sans-serif; font-size: 1.25rem; }
.dtfy-rcard__name { font-weight: 700; color: var(--dtfy-teal); }
.dtfy-rcard__meta { font-size: .78rem; color: var(--dtfy-gray); }

.dtfy-reviews2 { position: relative; padding-bottom: 58px; }
.dtfy-rcar__nav { position: absolute; left: 0; right: 0; bottom: -56px; display: flex; align-items: center; justify-content: space-between; }
@media (max-width: 900px) { .dtfy-rcar__nav { bottom: -52px; } }
.dtfy-rcar__dots { display: flex; gap: 8px; }
.dtfy-rcar__dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(0,105,111,.25); border: none; cursor: pointer; padding: 0; transition: all .25s ease; }
.dtfy-rcar__dot.is-active { background: var(--dtfy-teal); width: 24px; border-radius: 6px; }
.dtfy-rcar__arrows { display: flex; gap: 10px; }
.dtfy-rcar__arrow { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(0,105,111,.35); background: #fff; color: var(--dtfy-teal); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: .2s ease; }
.dtfy-rcar__arrow svg { width: 20px; height: 20px; fill: currentColor; }
.dtfy-rcar__arrow:hover { background: var(--dtfy-teal); color: #fff; border-color: var(--dtfy-teal); }
.dtfy-rcar__arrow:disabled { opacity: .3; cursor: default; }
.dtfy-rcar__arrow:disabled:hover { background: #fff; color: var(--dtfy-teal); border-color: rgba(0,105,111,.35); }

/* ---- Google rating badge ---- */
.dtfy-rating {
  display: inline-flex; align-items: center; gap: 14px;
  background: #fff; border-radius: 999px; padding: 12px 26px;
  box-shadow: 0 14px 34px rgba(0, 60, 64, .12);
  margin: 16px auto 0;
}
.dtfy-rating__g { width: 26px; height: 26px; flex: 0 0 26px; }
.dtfy-rating__stars { color: #F2B01E; font-size: 1.35rem; letter-spacing: 2px; line-height: 1; }
.dtfy-rating__txt { font-size: .95rem; color: var(--dtfy-charcoal); }
.dtfy-rating__txt strong { color: var(--dtfy-teal); font-size: 1.05rem; }

/* ---- Social media icon buttons ---- */
.dtfy-social { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dtfy-social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12);
  transition: background .2s ease, transform .2s ease;
}
.dtfy-social a:hover { background: var(--dtfy-turquoise); transform: translateY(-3px); }
.dtfy-social a:hover svg { fill: var(--dtfy-teal); }
.dtfy-social svg { width: 19px; height: 19px; fill: #fff; transition: fill .2s ease; }
/* light-background variant (contact page) */
.dtfy-social--dark a { background: var(--dtfy-teal); }
.dtfy-social--dark a:hover { background: var(--dtfy-turquoise); }
.dtfy-social--dark svg { fill: #fff; }
.dtfy-social--dark a:hover svg { fill: var(--dtfy-teal); }

/* ==========================================================================
   Header polish v2 — gradient bar, animated nav underline, prettier Contact
   button, and "Hablamos Español" as an info badge (not a button)
   ========================================================================== */
#masthead.site-header,
#masthead .site-header-upper-wrap,
#masthead .site-main-header-wrap,
#masthead .site-main-header-inner-wrap {
  background: linear-gradient(180deg, #017c82 0%, var(--dtfy-teal) 60%, #005f65 100%) !important;
}
#masthead.site-header {
  position: relative;
  box-shadow: 0 16px 38px -18px rgba(0, 26, 29, .62);
}
#masthead .site-main-header-wrap { box-shadow: none !important; }
/* crisp turquoise brand underline (brighter in the middle) */
#masthead.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 6; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,214,203,.12), var(--dtfy-turquoise) 50%, rgba(0,214,203,.12));
}
/* subtle top sheen for a polished, modern finish */
#masthead.site-header::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 6; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15) 50%, transparent);
}

/* Animated turquoise underline on nav links (not on the button/badge) */
.header-navigation .header-menu-container > ul > li > a.menu-link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--dtfy-turquoise); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .28s ease;
}
.header-navigation .header-menu-container > ul > li > a.menu-link { position: relative; }
.header-navigation .header-menu-container > ul > li:hover > a.menu-link::after,
.header-navigation .header-menu-container > ul > li.current-menu-item > a.menu-link::after { transform: scaleX(1); }
.site-header .menu-item.dtfy-nav-btn > a.menu-link::after,
.site-header .menu-item.dtfy-nav-btn--alt > a.menu-link::after { display: none !important; }

/* Contact Us — gradient pill with phone icon + soft glow */
.site-header .menu-item.dtfy-nav-btn--primary > a.menu-link,
.site-header .menu-item.dtfy-nav-btn--primary > a {
  background: linear-gradient(135deg, var(--dtfy-turquoise), #00b6ad) !important;
  color: var(--dtfy-teal) !important;
  border-radius: 999px !important;
  padding: 10px 22px 10px 40px !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 20px rgba(0,214,203,.32) !important;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.site-header .menu-item.dtfy-nav-btn--primary > a::before {
  content: ""; position: absolute; left: 17px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300696F'%3E%3Cpath d='M6.6 10.8a15.5 15.5 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.5.6.6 0 1 .5 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.5-1 1-1h3.5c.6 0 1 .4 1 1 0 1.2.2 2.4.6 3.5.1.4 0 .8-.3 1z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.site-header .menu-item.dtfy-nav-btn--primary > a:hover {
  transform: translateY(-2px); filter: brightness(1.04);
  box-shadow: 0 12px 26px rgba(0,214,203,.45) !important;
}

/* Hablamos Español — small info badge, clearly NOT a button, with real gap */
.site-header .menu-item.dtfy-nav-btn--alt { display: flex; align-items: center; }
.site-header .menu-item.dtfy-nav-btn--alt::before {
  content: ""; align-self: center;
  width: 1px; height: 20px; margin: 0 14px 0 12px;
  background: rgba(255,255,255,.22);
}
.site-header .menu-item.dtfy-nav-btn--alt > a.menu-link,
.site-header .menu-item.dtfy-nav-btn--alt > a {
  background: rgba(255,255,255,.05) !important;
  border: 1px solid rgba(0,214,203,.42) !important;
  color: #d7fbf5 !important;
  border-radius: 999px !important;
  padding: 5px 13px 5px 29px !important;
  font-family: "Inter", sans-serif !important;
  font-size: .72rem !important;
  font-weight: 600 !important;
  letter-spacing: .02em !important;
  text-transform: none !important;
  line-height: 1.1 !important;
  position: relative;
  margin: 0 !important;
  transition: background .2s ease, border-color .2s ease;
}
.site-header .menu-item.dtfy-nav-btn--alt > a::before {
  content: ""; position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 13px; height: 13px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300D6CB'%3E%3Cpath d='M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM7 9h10v2H7V9zm0 3h7v2H7v-2zm10-6H7V5h10v1z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.site-header .menu-item.dtfy-nav-btn--alt > a:hover {
  background: rgba(0,214,203,.16) !important; border-color: rgba(0,214,203,.7) !important;
}

/* ==========================================================================
   Responsive — collapse the premium 2-column hero / CTA grids on tablet &
   phone, and tame the large inline heading sizes so words never break.
   (Heroes use inline grid + font-size, so overrides need !important.)
   ========================================================================== */
@media (max-width: 820px) {
  .dtfy-hero > div { grid-template-columns: 1fr !important; gap: 30px !important; }
  .dtfy-cta-compose > div { grid-template-columns: 1fr !important; gap: 26px !important; text-align: center; }
  .dtfy-cta-compose .dtfy-compose { margin: 0 auto; }
  .dtfy-cta-compose .dtfy-trust, .dtfy-cta-compose div[style*="flex"] { justify-content: center; }
  .dtfy-hero h1 { font-size: 2.6rem !important; line-height: 1.06 !important; }
  .dtfy-cta-compose h2 { font-size: 2rem !important; }
}
@media (max-width: 600px) {
  .dtfy-hero { padding-left: 20px !important; padding-right: 20px !important; }
  .dtfy-hero h1 { font-size: 2.15rem !important; line-height: 1.08 !important; }
  .dtfy-hero h2, .dtfy-section h2, .dtfy-feature-sec h2, .dtfy-cta-compose h2 { font-size: 1.75rem !important; }
  .dtfy-reviews2__head h2 { font-size: 2rem !important; }
  .dtfy-statband__wrap { gap: 22px 16px; }
  .dtfy-hero .dtfy-compose__img, .dtfy-compose__img { max-width: 300px !important; }
}
