/*
 * Toastmasters Sevilla Astra Child v12
 * Mobile-first layout layer.
 * Base styles target 320-767px first, then scale up with min-width queries.
 */

:root {
  --tm-page-max: 1180px;
  --tm-gutter: clamp(0.9rem, 4.6vw, 1.5rem);
  --tm-block: clamp(2.2rem, 7.2vw, 5.2rem);
  --tm-header-height-mobile: 56px;
  --tm-header-height-desktop: 64px;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.tm-main {
  width: 100%;
}

.tm-container {
  width: min(var(--tm-page-max), calc(100% - (var(--tm-gutter) * 2))) !important;
  margin-inline: auto;
}

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

.tm-hero .tm-container {
  padding-block: clamp(1.1rem, 3.6vw, 2.2rem);
}

.tm-hero h1,
.tm-hero .elementor-heading-title {
  font-size: clamp(2rem, 9.3vw, 3.15rem);
  line-height: 1.06;
  letter-spacing: -0.026em;
  margin: 0 0 0.7rem;
}

.tm-hero .tm-lead,
.tm-hero p {
  font-size: clamp(1.01rem, 3.9vw, 1.2rem);
  line-height: 1.5;
  max-width: 62ch;
}

.tm-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(0.85rem, 3.4vw, 1.2rem);
}

.tm-grid.tm-grid-2,
.tm-grid.tm-grid-3 {
  grid-template-columns: minmax(0, 1fr);
}

.tm-card {
  border-radius: 16px;
  padding: clamp(1rem, 3.2vw, 1.4rem);
}

.tm-kpis {
  grid-template-columns: minmax(0, 1fr);
}

.tm-plan-table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tm-plan-table th,
.tm-plan-table td {
  white-space: nowrap;
}

.tm-btn,
.tm-btn .elementor-button,
.tm-btn-primary .elementor-button,
.tm-btn-secondary .elementor-button,
.elementor-widget-button.tm-btn .elementor-button,
.elementor-widget-button.tm-btn-primary .elementor-button,
.elementor-widget-button.tm-btn-secondary .elementor-button {
  width: 100%;
  justify-content: center;
}

.tm-btn + .tm-btn {
  margin-top: 0.62rem;
}

.tm-next-session .tm-container > .elementor-widget-wrap {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.45rem;
  padding: 0.8rem 0.9rem;
}

.tm-next-session .tm-container > .elementor-widget-wrap > .elementor-element:nth-child(1),
.tm-next-session .tm-container > .elementor-widget-wrap > .elementor-element:nth-child(2),
.tm-next-session .tm-container > .elementor-widget-wrap > .elementor-element:nth-child(3) {
  grid-column: auto;
  grid-row: auto;
  justify-self: stretch;
}

.tm-next-session .tm-btn,
.tm-next-session .tm-btn .elementor-button {
  width: 100%;
}

/* Mobile-first header: compact + hamburger by default */
.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
}

.site-header .ast-primary-header-bar,
.site-header .ast-builder-grid-row {
  min-height: var(--tm-header-height-mobile);
}

.site-header .custom-logo-link img,
.site-header .site-logo-img img {
  max-height: 36px;
}

.site-header .ast-builder-grid-row-container,
.site-header .ast-builder-grid-row-container-inner,
.site-header .ast-container {
  width: calc(100% - 0.95rem);
}

.site-header .main-header-bar-navigation,
.site-header .ast-builder-menu-1,
.site-header .main-header-menu,
.site-header .ast-builder-button-wrap {
  display: none !important;
}

.site-header .ast-mobile-menu-buttons,
.site-header .menu-toggle.main-header-menu-toggle,
.site-header .ast-mobile-menu-trigger-minimal,
.site-header .ast-mobile-menu-trigger-outline {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.ast-mobile-popup-drawer .menu-item > a {
  font-size: 1rem;
  line-height: 1.34;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.ast-mobile-popup-drawer .tm-language-switcher {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ast-mobile-popup-drawer .tm-language-switcher .tm-lang-link {
  flex: 0 0 auto;
}

.tm-floating-cta {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.85rem;
  z-index: 9999;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tm-floating-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  padding: 0.78rem 1rem;
  background: var(--tm-maroon);
  color: #ffffff;
  font-family: var(--tm-font-display);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 16px 28px rgba(18, 32, 49, 0.22);
}

.tm-floating-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

body.admin-bar .tm-floating-cta {
  bottom: 1.2rem;
}

/* >= 480 */
@media (min-width: 480px) {
  .tm-grid.tm-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tm-btn,
  .tm-btn .elementor-button,
  .tm-btn-primary .elementor-button,
  .tm-btn-secondary .elementor-button,
  .elementor-widget-button.tm-btn .elementor-button,
  .elementor-widget-button.tm-btn-primary .elementor-button,
  .elementor-widget-button.tm-btn-secondary .elementor-button {
    width: auto;
    min-width: 230px;
  }

  .tm-btn + .tm-btn {
    margin-top: 0;
    margin-inline-start: 0.58rem;
  }

  .tm-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header .ast-builder-grid-row-container,
  .site-header .ast-builder-grid-row-container-inner,
  .site-header .ast-container {
    width: calc(100% - 1.2rem);
  }
}

/* >= 768 */
@media (min-width: 768px) {
  .tm-container {
    width: min(var(--tm-page-max), calc(100% - 2.1rem)) !important;
  }

  .tm-grid.tm-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tm-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tm-next-session .tm-container > .elementor-widget-wrap {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
  }

  .tm-next-session .tm-container > .elementor-widget-wrap > .elementor-element:nth-child(1),
  .tm-next-session .tm-container > .elementor-widget-wrap > .elementor-element:nth-child(2) {
    grid-column: 1;
  }

  .tm-next-session .tm-container > .elementor-widget-wrap > .elementor-element:nth-child(3) {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
  }

  .tm-next-session .tm-btn,
  .tm-next-session .tm-btn .elementor-button {
    width: auto;
  }

  .tm-floating-cta {
    left: auto;
    right: 1rem;
    width: min(360px, calc(100% - 2rem));
  }

  .site-header .custom-logo-link img,
  .site-header .site-logo-img img {
    max-height: 38px;
  }
}

/* >= 1024 */
@media (min-width: 1024px) {
  .tm-container {
    width: min(var(--tm-page-max), calc(100% - 2.6rem)) !important;
  }

  .tm-grid.tm-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-header .ast-primary-header-bar,
  .site-header .ast-builder-grid-row {
    min-height: var(--tm-header-height-desktop);
  }

  .site-header .custom-logo-link img,
  .site-header .site-logo-img img {
    max-height: 42px;
  }

  body:not(.tm-menu-crowded) .site-header .main-header-bar-navigation,
  body:not(.tm-menu-crowded) .site-header .ast-builder-menu-1,
  body:not(.tm-menu-crowded) .site-header .main-header-menu,
  body:not(.tm-menu-crowded) .site-header .ast-builder-button-wrap {
    display: flex !important;
  }

  body:not(.tm-menu-crowded) .site-header .ast-mobile-menu-buttons,
  body:not(.tm-menu-crowded) .site-header .menu-toggle.main-header-menu-toggle,
  body:not(.tm-menu-crowded) .site-header .ast-mobile-menu-trigger-minimal,
  body:not(.tm-menu-crowded) .site-header .ast-mobile-menu-trigger-outline {
    display: none !important;
  }

  .tm-floating-cta {
    display: none;
  }
}

/* >= 1280 */
@media (min-width: 1280px) {
  .tm-container {
    width: min(var(--tm-page-max), calc(100% - 3rem)) !important;
  }
}

/* v12.1 visual polish */
body {
  background:
    radial-gradient(circle at 8% 0%, rgba(242, 223, 116, 0.14), transparent 24%),
    radial-gradient(circle at 95% 6%, rgba(0, 65, 101, 0.12), transparent 34%),
    linear-gradient(180deg, #f3f7fa 0%, #f7f9fa 45%, #eef3f6 100%);
}

.tm-section h2,
.tm-section .elementor-heading-title {
  letter-spacing: -0.02em;
}

.tm-section h2::after,
.tm-section .elementor-heading-title::after {
  content: "";
  display: block;
  width: 62px;
  height: 3px;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tm-maroon), var(--tm-gold));
}

.tm-hero .tm-container {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 65, 101, 0.13);
  border-radius: 22px;
  padding: clamp(1.2rem, 4vw, 2.4rem) clamp(1rem, 3.6vw, 2.3rem);
  background:
    linear-gradient(128deg, rgba(255, 255, 255, 0.92) 0%, rgba(246, 251, 255, 0.92) 62%, rgba(231, 240, 248, 0.9) 100%);
  box-shadow: 0 24px 54px rgba(7, 34, 58, 0.12);
}

.tm-hero .tm-container::before {
  content: "";
  position: absolute;
  inset: -44% -8% auto auto;
  width: clamp(220px, 44vw, 460px);
  height: clamp(220px, 44vw, 460px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 65, 101, 0.17), rgba(0, 65, 101, 0));
  pointer-events: none;
}

.tm-hero .tm-eyebrow,
.tm-hero .elementor-widget-text-editor.tm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 65, 101, 0.2);
  background: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  color: var(--tm-navy-deep);
}

.tm-btn .elementor-button,
.tm-btn-primary .elementor-button,
.tm-btn-secondary .elementor-button {
  min-height: 48px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.tm-btn-primary .elementor-button {
  box-shadow: 0 14px 28px rgba(119, 36, 50, 0.2);
}

.tm-btn-secondary .elementor-button {
  box-shadow: 0 10px 20px rgba(0, 65, 101, 0.12);
}

.tm-btn .elementor-button:hover,
.tm-btn .elementor-button:focus-visible,
.tm-btn-primary .elementor-button:hover,
.tm-btn-primary .elementor-button:focus-visible,
.tm-btn-secondary .elementor-button:hover,
.tm-btn-secondary .elementor-button:focus-visible {
  transform: translateY(-1px);
  filter: saturate(108%);
}

.tm-btn-primary .elementor-button:hover,
.tm-btn-primary .elementor-button:focus-visible {
  background: #8e2a3b !important;
  border-color: #8e2a3b !important;
  color: #ffffff !important;
  box-shadow: 0 16px 28px rgba(119, 36, 50, 0.34);
}

.tm-btn-secondary .elementor-button:hover,
.tm-btn-secondary .elementor-button:focus-visible {
  background: var(--tm-navy) !important;
  border-color: var(--tm-navy) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(0, 65, 101, 0.28);
}

.tm-card {
  border: 1px solid rgba(0, 65, 101, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #fcfeff 100%);
  box-shadow: 0 14px 30px rgba(7, 34, 58, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tm-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 65, 101, 0.22);
  box-shadow: 0 18px 36px rgba(7, 34, 58, 0.13);
}

.tm-section--muted {
  background: linear-gradient(180deg, rgba(232, 239, 244, 0.58), rgba(255, 255, 255, 0.93));
}

.tm-next-session .tm-container {
  border: 1px solid rgba(0, 65, 101, 0.16);
  border-left: 4px solid var(--tm-gold);
  border-radius: 16px;
  background: linear-gradient(120deg, #ffffff 0%, #f4f9fc 100%);
  box-shadow: 0 16px 34px rgba(7, 34, 58, 0.1);
}

.tm-next-session .tm-next-session-title {
  font-size: clamp(1.18rem, 3.8vw, 1.5rem);
  letter-spacing: -0.01em;
}

.tm-next-session .tm-next-session-meta {
  color: #2d475f;
}

.tm-faq details {
  border: 1px solid rgba(0, 65, 101, 0.14);
  border-radius: 14px;
  background: #ffffff;
  padding: 0.78rem 0.95rem;
  margin-bottom: 0.68rem;
  box-shadow: 0 8px 18px rgba(7, 34, 58, 0.05);
}

.tm-faq summary {
  cursor: pointer;
  font-family: var(--tm-font-display);
  font-weight: 700;
  color: var(--tm-navy-deep);
}

.tm-faq .tm-faq-answer {
  margin-top: 0.52rem;
  color: #2f475d;
}

.tm-social-proof blockquote {
  margin: 0 0 0.68rem;
  padding: 0.85rem 0.95rem;
  border-left: 3px solid var(--tm-gold);
  border-radius: 10px;
  background: rgba(242, 223, 116, 0.13);
}

.tm-home-form .tm-container.tm-cta,
.tm-home-form .tm-cta {
  border: 1px solid rgba(0, 65, 101, 0.16);
  border-radius: 22px;
  background: linear-gradient(140deg, #0b3d5f 0%, #004165 56%, #0f547e 100%);
  color: #ffffff;
  box-shadow: 0 24px 48px rgba(9, 32, 51, 0.24);
  padding: clamp(1.2rem, 4.2vw, 2.4rem);
}

.tm-home-form .tm-cta h2,
.tm-home-form .tm-cta .elementor-heading-title,
.tm-home-form .tm-cta p,
.tm-home-form .tm-cta li {
  color: #ffffff;
}

.tm-home-form .tm-cta h2::after,
.tm-home-form .tm-cta .elementor-heading-title::after {
  background: linear-gradient(90deg, var(--tm-gold), #fff3af);
}

/* Complete footer section (editable from Elementor) */
.tm-site-footer {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 8% 10%, rgba(242, 223, 116, 0.24), transparent 32%),
    radial-gradient(circle at 94% 12%, rgba(255, 255, 255, 0.16), transparent 36%),
    linear-gradient(160deg, #011f31 0%, #003553 36%, #004165 68%, #0a5b86 100%);
  color: #ffffff;
  overflow: hidden;
  padding-top: clamp(1.6rem, 3vw, 2.4rem);
  padding-bottom: clamp(1.7rem, 3.4vw, 2.8rem);
}

.tm-site-footer::before,
.tm-site-footer::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.tm-site-footer::before {
  left: -180px;
  bottom: -220px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
}

.tm-site-footer::after {
  right: -140px;
  top: -190px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 223, 116, 0.24), rgba(242, 223, 116, 0));
}

.tm-site-footer .tm-container {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 52%),
    linear-gradient(180deg, rgba(1, 31, 49, 0.48), rgba(1, 31, 49, 0.18));
  padding: clamp(1.3rem, 4.2vw, 2.7rem);
  box-shadow: 0 34px 62px rgba(5, 20, 34, 0.38);
}

.tm-site-footer .tm-container::after {
  content: "";
  position: absolute;
  left: -180px;
  bottom: -200px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.tm-site-footer .tm-container::before {
  content: "";
  position: absolute;
  right: -130px;
  top: -160px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 223, 116, 0.34), rgba(242, 223, 116, 0));
  pointer-events: none;
}

.tm-site-footer .tm-footer-intro-title,
.tm-site-footer .tm-footer-intro-title .elementor-heading-title {
  color: #ffffff;
  margin-bottom: 0.35rem;
  font-size: clamp(1.65rem, 6.5vw, 2.55rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.tm-site-footer .tm-footer-intro-title::after,
.tm-site-footer .tm-footer-intro-title .elementor-heading-title::after {
  content: "";
  display: block;
  width: 88px;
  height: 4px;
  margin-top: 0.68rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tm-gold), #fff3af);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.tm-site-footer .tm-footer-intro-text,
.tm-site-footer .tm-footer-intro-text p {
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  max-width: 66ch;
  line-height: 1.6;
  font-size: clamp(0.98rem, 2.9vw, 1.07rem);
}

.tm-site-footer .tm-footer-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.78rem;
  margin-top: 1.05rem;
  margin-bottom: 1.18rem;
  padding: clamp(0.7rem, 2.6vw, 0.88rem);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
}

.tm-site-footer .tm-footer-cta-row .elementor-column {
  width: 100%;
  min-width: 0;
  flex: 1 1 100%;
}

.tm-site-footer .tm-footer-cta-row .tm-btn .elementor-button,
.tm-site-footer .tm-footer-cta-row .tm-btn-primary .elementor-button,
.tm-site-footer .tm-footer-cta-row .tm-btn-secondary .elementor-button {
  width: 100%;
  min-height: 48px;
  box-shadow: 0 10px 22px rgba(3, 13, 23, 0.2);
}

.tm-site-footer .tm-footer-cta-row .tm-btn-primary .elementor-button {
  background: linear-gradient(130deg, #8c2e3d 0%, #772432 62%, #681d2a 100%);
  border-color: rgba(255, 255, 255, 0.22);
}

.tm-site-footer .tm-footer-cta-row .tm-btn-primary .elementor-button:hover,
.tm-site-footer .tm-footer-cta-row .tm-btn-primary .elementor-button:focus-visible {
  background: linear-gradient(130deg, #9c3446 0%, #84293a 62%, #722231 100%);
}

.tm-site-footer .tm-footer-cta-row .tm-btn-secondary .elementor-button {
  background: rgba(255, 255, 255, 0.96);
  color: var(--tm-navy);
  border-color: rgba(242, 223, 116, 0.72);
}

.tm-site-footer .tm-footer-cta-row .tm-btn-secondary .elementor-button:hover,
.tm-site-footer .tm-footer-cta-row .tm-btn-secondary .elementor-button:focus-visible {
  background: var(--tm-gold);
  color: var(--tm-ink);
}

.tm-site-footer .tm-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(0.82rem, 2.8vw, 1.12rem);
  margin-top: 1.28rem;
}

.tm-site-footer .tm-footer-col {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 20px;
  padding: clamp(0.95rem, 2.8vw, 1.25rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, rgba(4, 30, 47, 0.24), rgba(4, 30, 47, 0.12));
  backdrop-filter: blur(4px);
  transition: transform 0.24s ease, border-color 0.24s ease, background-color 0.24s ease;
  min-width: 0;
}

.tm-site-footer .tm-footer-col::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(242, 223, 116, 0.98), rgba(255, 255, 255, 0.68));
  opacity: 0.9;
}

.tm-site-footer .tm-footer-col h3,
.tm-site-footer .tm-footer-col .elementor-heading-title {
  color: #ffffff;
  margin-bottom: 0.32rem;
  font-size: clamp(1.08rem, 4.1vw, 1.26rem);
  line-height: 1.2;
}

.tm-site-footer .tm-footer-col:hover {
  transform: translateY(-3px);
  border-color: rgba(242, 223, 116, 0.75);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)),
    linear-gradient(180deg, rgba(4, 30, 47, 0.24), rgba(4, 30, 47, 0.12));
}

.tm-site-footer .tm-footer-text,
.tm-site-footer .tm-footer-text p {
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 0.38rem;
  font-size: 0.95rem;
  line-height: 1.58;
}

.tm-site-footer .tm-footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: 0.5rem;
}

.tm-site-footer .tm-footer-badges span {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.79rem;
  font-weight: 700;
}

.tm-site-footer .tm-footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.42rem;
}

.tm-site-footer .tm-footer-links li {
  margin: 0;
}

.tm-site-footer .tm-footer-links a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  width: fit-content;
}

.tm-site-footer .tm-footer-links a::before {
  content: "→";
  font-size: 0.75rem;
  line-height: 1;
  color: rgba(242, 223, 116, 0.96);
  transform: translateY(-1px);
}

.tm-site-footer .tm-footer-links a:hover,
.tm-site-footer .tm-footer-links a:focus-visible {
  color: var(--tm-gold);
  border-bottom-color: var(--tm-gold);
  transform: translateX(3px);
}

.tm-site-footer .tm-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  margin-top: 0.55rem;
}

.tm-site-footer .tm-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.09);
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.tm-site-footer .tm-footer-social a:hover,
.tm-site-footer .tm-footer-social a:focus-visible {
  transform: translateY(-1px) scale(1.02);
  background: var(--tm-maroon);
  border-color: rgba(255, 255, 255, 0.62);
  color: #ffffff;
}

.tm-site-footer .tm-footer-col .tm-btn .elementor-button,
.tm-site-footer .tm-footer-col .tm-btn-primary .elementor-button,
.tm-site-footer .tm-footer-col .tm-btn-secondary .elementor-button {
  min-height: 44px;
  box-shadow: 0 8px 20px rgba(1, 12, 21, 0.22);
}

.tm-site-footer .tm-footer-rule {
  border: 0;
  height: 1px;
  margin: 1.34rem 0 0.88rem;
  background: rgba(255, 255, 255, 0.34);
}

.tm-site-footer .tm-footer-copy,
.tm-site-footer .tm-footer-copy p {
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.84rem, 2.8vw, 0.95rem);
  line-height: 1.45;
  letter-spacing: 0.01em;
}

@media (min-width: 768px) {
  .tm-site-footer .tm-footer-cta-row {
    margin-bottom: 1.28rem;
  }

  .tm-site-footer .tm-footer-cta-row .elementor-column {
    flex: 1 1 0;
    width: auto;
  }

  .tm-site-footer .tm-footer-cta-row .tm-btn .elementor-button,
  .tm-site-footer .tm-footer-cta-row .tm-btn-primary .elementor-button,
  .tm-site-footer .tm-footer-cta-row .tm-btn-secondary .elementor-button {
    min-width: 230px;
    width: auto;
  }

  .tm-site-footer .tm-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .tm-site-footer .tm-footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tm-site-footer .tm-footer-col {
    min-height: 100%;
  }
}

@media (max-width: 767px) {
  .tm-site-footer .tm-container {
    border-radius: 22px;
    padding: 1rem 0.95rem 1.2rem;
  }

  .tm-site-footer .tm-footer-col {
    border-radius: 16px;
    padding: 0.86rem 0.82rem;
  }
}

@media (min-width: 1024px) {
  .tm-hero .tm-container {
    padding-inline: clamp(1.7rem, 3vw, 3rem);
    border-radius: 28px;
  }

  .tm-section h2::after,
  .tm-section .elementor-heading-title::after {
    width: 74px;
    height: 4px;
  }

  .tm-card:hover {
    transform: translateY(-3px);
  }
}

/* v12.2 text-fit hardening across breakpoints */
.tm-main,
.tm-section,
.tm-container,
.elementor-element,
.elementor-widget-container {
  min-width: 0;
}

.tm-main h1,
.tm-main h2,
.tm-main h3,
.tm-main p,
.tm-main li,
.tm-main blockquote,
.tm-main summary,
.tm-next-session .tm-next-session-meta {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.tm-main h1,
.tm-main h2,
.tm-main h3 {
  text-wrap: balance;
}

.tm-main p,
.tm-main li,
.tm-main blockquote {
  text-wrap: pretty;
}

.tm-btn .elementor-button,
.tm-btn-primary .elementor-button,
.tm-btn-secondary .elementor-button,
.elementor-widget-button.tm-btn .elementor-button,
.elementor-widget-button.tm-btn-primary .elementor-button,
.elementor-widget-button.tm-btn-secondary .elementor-button {
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(0.95rem, 3.6vw, 1.02rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  padding-inline: clamp(0.85rem, 3vw, 1.15rem);
}

.tm-plan-table th,
.tm-plan-table td {
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: top;
}

@media (max-width: 767px) {
  .tm-hero h1,
  .tm-hero .elementor-heading-title {
    font-size: clamp(1.9rem, 8.6vw, 2.45rem);
    line-height: 1.08;
    letter-spacing: -0.018em;
  }

  .tm-main h2 {
    font-size: clamp(1.45rem, 6.3vw, 1.85rem);
    line-height: 1.15;
  }

  .tm-main h3 {
    font-size: clamp(1.1rem, 5vw, 1.3rem);
    line-height: 1.22;
  }

  .tm-hero .tm-lead,
  .tm-hero p,
  .tm-main p,
  .tm-main li,
  .tm-next-session .tm-next-session-meta {
    font-size: 1rem;
    line-height: 1.52;
  }

  .tm-btn .elementor-button,
  .tm-btn-primary .elementor-button,
  .tm-btn-secondary .elementor-button,
  .elementor-widget-button.tm-btn .elementor-button,
  .elementor-widget-button.tm-btn-primary .elementor-button,
  .elementor-widget-button.tm-btn-secondary .elementor-button {
    min-height: 46px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .tm-hero h1,
  .tm-hero .elementor-heading-title {
    font-size: clamp(2.15rem, 5.4vw, 2.95rem);
    line-height: 1.06;
  }

  .tm-main h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.25rem);
  }

  .tm-main h3 {
    font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  }
}

@media (min-width: 1024px) {
  .tm-hero .tm-lead,
  .tm-hero p {
    max-width: 58ch;
  }
}

/* Testimonials carousel: shows 3 or 4 opinions per view */
.tm-testimonials-carousel.is-ready .elementor-column.tm-card,
.tm-testimonials-carousel.is-ready .tm-card {
  display: none !important;
}

.tm-testimonials-carousel.is-ready .elementor-column.tm-card.is-visible,
.tm-testimonials-carousel.is-ready .tm-card.is-visible {
  display: block !important;
}

.tm-testimonials-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.62rem;
  margin-top: 1rem;
}

.tm-testimonials-carousel-controls[hidden] {
  display: none !important;
}

.tm-testimonials-carousel-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(0, 65, 101, 0.22);
  background: #ffffff;
  color: var(--tm-navy);
  font-family: var(--tm-font-display);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.tm-testimonials-carousel-btn:hover,
.tm-testimonials-carousel-btn:focus-visible {
  transform: translateY(-1px);
  background: var(--tm-maroon);
  border-color: var(--tm-maroon);
  color: #ffffff;
}

.tm-testimonials-carousel-status {
  margin: 0;
  min-width: 120px;
  text-align: center;
  font-family: var(--tm-font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--tm-navy-deep);
}

@media (min-width: 768px) and (max-width: 1279px) {
  .tm-testimonials-carousel.is-ready .elementor-column.tm-card.is-visible {
    width: calc(33.333% - 0.9rem);
  }
}

@media (min-width: 1280px) {
  .tm-testimonials-carousel.is-ready .elementor-column.tm-card.is-visible {
    width: calc(25% - 1rem);
  }
}

/* v12.5 Premium Footer Refinement */
.tm-site-footer {
  background:
    linear-gradient(180deg, #021a2a 0%, #003452 48%, #004165 100%);
  padding-top: clamp(1.9rem, 3.6vw, 2.9rem);
  padding-bottom: clamp(2rem, 3.8vw, 3rem);
}

.tm-site-footer::before {
  opacity: 0.35;
  transform: scale(0.92);
}

.tm-site-footer::after {
  opacity: 0.32;
  transform: scale(0.92);
}

.tm-site-footer .tm-container {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    linear-gradient(180deg, rgba(2, 30, 48, 0.72), rgba(2, 30, 48, 0.52));
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.tm-site-footer .tm-footer-intro-title,
.tm-site-footer .tm-footer-intro-title .elementor-heading-title {
  font-size: clamp(1.72rem, 4.6vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 0.4rem;
}

.tm-site-footer .tm-footer-intro-title::after,
.tm-site-footer .tm-footer-intro-title .elementor-heading-title::after {
  width: 96px;
  height: 4px;
  background: linear-gradient(90deg, #f2df74, #f8efad);
}

.tm-site-footer .tm-footer-intro-text,
.tm-site-footer .tm-footer-intro-text p {
  color: rgba(241, 247, 252, 0.94);
  max-width: 62ch;
  font-size: clamp(0.97rem, 2.2vw, 1.03rem);
}

.tm-site-footer .tm-footer-cta-row {
  padding: 0.72rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
}

.tm-site-footer .tm-footer-cta-row .tm-btn-primary .elementor-button {
  background: linear-gradient(135deg, #8b2f3e 0%, #772432 100%);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 22px rgba(23, 8, 11, 0.36);
}

.tm-site-footer .tm-footer-cta-row .tm-btn-primary .elementor-button:hover,
.tm-site-footer .tm-footer-cta-row .tm-btn-primary .elementor-button:focus-visible {
  background: linear-gradient(135deg, #9a3547 0%, #84293a 100%);
}

.tm-site-footer .tm-footer-cta-row .tm-btn-secondary .elementor-button {
  background: rgba(255, 255, 255, 0.96);
  color: #00324f;
  border-color: rgba(242, 223, 116, 0.8);
}

.tm-site-footer .tm-footer-cta-row .tm-btn-secondary .elementor-button:hover,
.tm-site-footer .tm-footer-cta-row .tm-btn-secondary .elementor-button:focus-visible {
  background: #f2df74;
  color: #122031;
}

.tm-site-footer .tm-footer-grid {
  gap: clamp(0.88rem, 2.1vw, 1.15rem);
}

.tm-site-footer .tm-footer-col {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    linear-gradient(180deg, rgba(2, 30, 48, 0.45), rgba(2, 30, 48, 0.3));
}

.tm-site-footer .tm-footer-col::before {
  left: 12px;
  right: 12px;
  height: 2px;
  opacity: 0.9;
}

.tm-site-footer .tm-footer-col:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 223, 116, 0.68);
}

.tm-site-footer .tm-footer-col h3,
.tm-site-footer .tm-footer-col .elementor-heading-title {
  font-size: clamp(1.05rem, 2.8vw, 1.24rem);
  margin-bottom: 0.35rem;
}

.tm-site-footer .tm-footer-links a {
  border-bottom-color: rgba(242, 223, 116, 0.34);
}

.tm-site-footer .tm-footer-links a::before {
  color: rgba(242, 223, 116, 0.98);
}

.tm-site-footer .tm-footer-social a {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.tm-site-footer .tm-footer-social a:hover,
.tm-site-footer .tm-footer-social a:focus-visible {
  background: #772432;
  border-color: #f2df74;
  color: #ffffff;
}

.tm-site-footer .tm-footer-rule {
  margin-top: 1.3rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(242, 223, 116, 0.7), rgba(255, 255, 255, 0));
}

.tm-site-footer .tm-footer-copy,
.tm-site-footer .tm-footer-copy p {
  color: rgba(240, 246, 251, 0.88);
  font-size: clamp(0.82rem, 2.4vw, 0.93rem);
}

@media (max-width: 767px) {
  .tm-site-footer {
    padding-top: 1.4rem;
    padding-bottom: 1.8rem;
  }

  .tm-site-footer .tm-container {
    border-radius: 20px;
    padding: 0.92rem 0.86rem 1.1rem;
  }

  .tm-site-footer .tm-footer-intro-title,
  .tm-site-footer .tm-footer-intro-title .elementor-heading-title {
    font-size: clamp(1.5rem, 8vw, 1.9rem);
  }
}

/* v12.6 Premium Pro: more air, cleaner rhythm, stronger CTA spacing */
.tm-site-footer .tm-container {
  padding: clamp(1.5rem, 4.5vw, 2.9rem);
}

.tm-site-footer .tm-footer-intro-title,
.tm-site-footer .tm-footer-intro-title .elementor-heading-title {
  margin-bottom: 0.5rem;
}

.tm-site-footer .tm-footer-intro-text,
.tm-site-footer .tm-footer-intro-text p {
  margin-bottom: 0.2rem;
}

.tm-site-footer .tm-footer-cta-row {
  gap: 0.9rem;
  margin-top: 1.2rem;
  margin-bottom: 1.4rem;
  padding: clamp(0.88rem, 2.4vw, 1.08rem);
  border-radius: 16px;
}

.tm-site-footer .tm-footer-cta-row .tm-btn .elementor-button,
.tm-site-footer .tm-footer-cta-row .tm-btn-primary .elementor-button,
.tm-site-footer .tm-footer-cta-row .tm-btn-secondary .elementor-button {
  min-height: 56px;
  padding: 0.9rem 1.45rem;
  letter-spacing: 0.005em;
}

.tm-site-footer .tm-footer-grid {
  margin-top: 1.45rem;
  gap: clamp(0.95rem, 2.2vw, 1.22rem);
}

.tm-site-footer .tm-footer-col {
  padding: clamp(1rem, 2.6vw, 1.35rem);
}

.tm-site-footer .tm-footer-col h3,
.tm-site-footer .tm-footer-col .elementor-heading-title {
  margin-bottom: 0.46rem;
}

.tm-site-footer .tm-footer-text,
.tm-site-footer .tm-footer-text p {
  margin: 0 0 0.46rem;
  line-height: 1.62;
}

.tm-site-footer .tm-footer-col .tm-btn .elementor-button,
.tm-site-footer .tm-footer-col .tm-btn-primary .elementor-button,
.tm-site-footer .tm-footer-col .tm-btn-secondary .elementor-button {
  margin-top: 0.32rem;
  min-height: 50px;
  padding: 0.82rem 1.25rem;
}

.tm-site-footer .tm-footer-social {
  gap: 0.56rem;
  margin-top: 0.68rem;
}

.tm-site-footer .tm-footer-social a {
  min-height: 38px;
  padding: 0.4rem 0.88rem;
}

.tm-site-footer .tm-footer-rule {
  margin-top: 1.52rem;
  margin-bottom: 1.02rem;
}

@media (min-width: 1024px) {
  .tm-site-footer .tm-footer-cta-row .tm-btn .elementor-button,
  .tm-site-footer .tm-footer-cta-row .tm-btn-primary .elementor-button,
  .tm-site-footer .tm-footer-cta-row .tm-btn-secondary .elementor-button {
    min-width: 250px;
  }
}

@media (max-width: 767px) {
  .tm-site-footer .tm-container {
    padding: 1.05rem 0.92rem 1.3rem;
  }

  .tm-site-footer .tm-footer-cta-row {
    gap: 0.68rem;
    margin-top: 0.95rem;
    margin-bottom: 1.08rem;
    padding: 0.72rem;
  }

  .tm-site-footer .tm-footer-cta-row .tm-btn .elementor-button,
  .tm-site-footer .tm-footer-cta-row .tm-btn-primary .elementor-button,
  .tm-site-footer .tm-footer-cta-row .tm-btn-secondary .elementor-button {
    min-height: 52px;
    padding: 0.8rem 1rem;
  }
}

/* v12.7 Premium Minimal: institutional, cleaner, more whitespace */
.tm-site-footer {
  background: linear-gradient(180deg, #03273e 0%, #003f62 100%);
  padding-top: clamp(2.1rem, 3.8vw, 3.1rem);
  padding-bottom: clamp(2.2rem, 4vw, 3.2rem);
}

.tm-site-footer::before,
.tm-site-footer::after {
  opacity: 0.18;
  transform: scale(0.9);
}

.tm-site-footer .tm-container {
  padding: clamp(1.65rem, 4.4vw, 3rem);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(6, 52, 79, 0.62);
  box-shadow: 0 14px 34px rgba(2, 18, 30, 0.24);
}

.tm-site-footer .tm-footer-intro-title,
.tm-site-footer .tm-footer-intro-title .elementor-heading-title {
  font-size: clamp(1.7rem, 4.4vw, 2.45rem);
  line-height: 1.1;
  margin-bottom: 0.46rem;
}

.tm-site-footer .tm-footer-intro-title::after,
.tm-site-footer .tm-footer-intro-title .elementor-heading-title::after {
  width: 82px;
  height: 3px;
  box-shadow: none;
}

.tm-site-footer .tm-footer-intro-text,
.tm-site-footer .tm-footer-intro-text p {
  font-size: clamp(0.96rem, 2vw, 1.01rem);
  max-width: 60ch;
  color: rgba(243, 248, 252, 0.9);
}

.tm-site-footer .tm-footer-cta-row {
  margin-top: 1.26rem;
  margin-bottom: 1.5rem;
  padding: 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
}

.tm-site-footer .tm-footer-cta-row .tm-btn .elementor-button,
.tm-site-footer .tm-footer-cta-row .tm-btn-primary .elementor-button,
.tm-site-footer .tm-footer-cta-row .tm-btn-secondary .elementor-button {
  min-height: 58px;
  padding: 0.92rem 1.6rem;
  border-radius: 999px;
}

.tm-site-footer .tm-footer-cta-row .tm-btn-primary .elementor-button {
  background: #772432;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 18px rgba(24, 8, 11, 0.34);
}

.tm-site-footer .tm-footer-cta-row .tm-btn-primary .elementor-button:hover,
.tm-site-footer .tm-footer-cta-row .tm-btn-primary .elementor-button:focus-visible {
  background: #882d3d;
}

.tm-site-footer .tm-footer-cta-row .tm-btn-secondary .elementor-button {
  background: #f7f9fb;
  color: #003b5c;
  border-color: rgba(242, 223, 116, 0.65);
}

.tm-site-footer .tm-footer-cta-row .tm-btn-secondary .elementor-button:hover,
.tm-site-footer .tm-footer-cta-row .tm-btn-secondary .elementor-button:focus-visible {
  background: #f2df74;
  color: #102131;
}

.tm-site-footer .tm-footer-grid {
  gap: clamp(1rem, 2.2vw, 1.3rem);
  margin-top: 1.55rem;
}

.tm-site-footer .tm-footer-col {
  padding: clamp(1.08rem, 2.6vw, 1.4rem);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: none;
}

.tm-site-footer .tm-footer-col::before {
  left: 14px;
  right: 14px;
  height: 1px;
  opacity: 0.7;
}

.tm-site-footer .tm-footer-col:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.tm-site-footer .tm-footer-col h3,
.tm-site-footer .tm-footer-col .elementor-heading-title {
  margin-bottom: 0.5rem;
}

.tm-site-footer .tm-footer-text,
.tm-site-footer .tm-footer-text p {
  line-height: 1.64;
  margin: 0 0 0.5rem;
}

.tm-site-footer .tm-footer-links a {
  border-bottom-color: rgba(255, 255, 255, 0.22);
}

.tm-site-footer .tm-footer-links a:hover,
.tm-site-footer .tm-footer-links a:focus-visible {
  transform: none;
}

.tm-site-footer .tm-footer-social {
  gap: 0.5rem;
  margin-top: 0.74rem;
}

.tm-site-footer .tm-footer-social a {
  min-height: 40px;
  padding: 0.42rem 0.92rem;
  background: rgba(255, 255, 255, 0.08);
}

.tm-site-footer .tm-footer-social a:hover,
.tm-site-footer .tm-footer-social a:focus-visible {
  background: #772432;
  border-color: #f2df74;
}

.tm-site-footer .tm-footer-col .tm-btn .elementor-button,
.tm-site-footer .tm-footer-col .tm-btn-primary .elementor-button,
.tm-site-footer .tm-footer-col .tm-btn-secondary .elementor-button {
  min-height: 52px;
  padding: 0.85rem 1.25rem;
}

.tm-site-footer .tm-footer-rule {
  margin-top: 1.65rem;
  margin-bottom: 1.08rem;
  background: rgba(255, 255, 255, 0.28);
}

.tm-site-footer .tm-footer-copy,
.tm-site-footer .tm-footer-copy p {
  font-size: clamp(0.82rem, 2.2vw, 0.92rem);
  color: rgba(238, 245, 251, 0.86);
}

@media (max-width: 767px) {
  .tm-site-footer .tm-container {
    padding: 1.12rem 0.94rem 1.36rem;
    border-radius: 16px;
  }

  .tm-site-footer .tm-footer-cta-row {
    padding: 0.72rem;
    margin-top: 1rem;
    margin-bottom: 1.14rem;
  }

  .tm-site-footer .tm-footer-cta-row .tm-btn .elementor-button,
  .tm-site-footer .tm-footer-cta-row .tm-btn-primary .elementor-button,
  .tm-site-footer .tm-footer-cta-row .tm-btn-secondary .elementor-button {
    min-height: 54px;
  }
}

/* v12.8 Footer: professional polish + clickable nav + updated schedule/copy ready */
.tm-site-footer .tm-footer-links,
.tm-site-footer .tm-footer-links ul,
.tm-site-footer .tm-footer-links li {
  position: relative;
  z-index: 3;
}

.tm-site-footer .tm-footer-links a {
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
}

.tm-site-footer .tm-footer-links a:hover,
.tm-site-footer .tm-footer-links a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.tm-site-footer .tm-footer-cta-row {
  border-color: rgba(255, 255, 255, 0.2);
}

.tm-site-footer .tm-footer-cta-row .tm-btn .elementor-button,
.tm-site-footer .tm-footer-cta-row .tm-btn-primary .elementor-button,
.tm-site-footer .tm-footer-cta-row .tm-btn-secondary .elementor-button {
  min-height: 60px;
  padding-inline: 1.75rem;
}

.tm-site-footer .tm-footer-col {
  border-color: rgba(255, 255, 255, 0.18);
}

.tm-site-footer .tm-footer-copy,
.tm-site-footer .tm-footer-copy p {
  opacity: 0.94;
}

@media (max-width: 767px) {
  .tm-site-footer .tm-footer-cta-row .tm-btn .elementor-button,
  .tm-site-footer .tm-footer-cta-row .tm-btn-primary .elementor-button,
  .tm-site-footer .tm-footer-cta-row .tm-btn-secondary .elementor-button {
    min-height: 56px;
    padding-inline: 1.1rem;
  }
}

/* v12.9 Button Audit + Footer Premium Polish */
.tm-btn .elementor-button,
.tm-btn-primary .elementor-button,
.tm-btn-secondary .elementor-button,
.elementor-widget-button.tm-btn .elementor-button,
.elementor-widget-button.tm-btn-primary .elementor-button,
.elementor-widget-button.tm-btn-secondary .elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.84rem 1.45rem;
  border-radius: 999px;
  font-family: var(--tm-font-display);
  font-weight: 700;
  letter-spacing: 0.003em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  box-shadow: 0 8px 18px rgba(7, 20, 31, 0.16);
}

.tm-btn-primary .elementor-button,
.elementor-widget-button.tm-btn-primary .elementor-button {
  background: #772432;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.tm-btn-primary .elementor-button:hover,
.tm-btn-primary .elementor-button:focus-visible,
.elementor-widget-button.tm-btn-primary .elementor-button:hover,
.elementor-widget-button.tm-btn-primary .elementor-button:focus-visible {
  background: #8a2f3f;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(24, 8, 11, 0.28);
}

.tm-btn-secondary .elementor-button,
.elementor-widget-button.tm-btn-secondary .elementor-button {
  background: #ffffff;
  border: 1px solid rgba(0, 65, 101, 0.36);
  color: #003b5d;
}

.tm-btn-secondary .elementor-button:hover,
.tm-btn-secondary .elementor-button:focus-visible,
.elementor-widget-button.tm-btn-secondary .elementor-button:hover,
.elementor-widget-button.tm-btn-secondary .elementor-button:focus-visible {
  background: #f2df74;
  border-color: #f2df74;
  color: #122031;
  transform: translateY(-1px);
}

.tm-btn .elementor-button:focus-visible,
.tm-btn-primary .elementor-button:focus-visible,
.tm-btn-secondary .elementor-button:focus-visible,
.elementor-widget-button.tm-btn .elementor-button:focus-visible,
.elementor-widget-button.tm-btn-primary .elementor-button:focus-visible,
.elementor-widget-button.tm-btn-secondary .elementor-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(242, 223, 116, 0.45), 0 10px 20px rgba(7, 20, 31, 0.2);
}

.tm-site-footer .tm-footer-cta-row {
  gap: 0.98rem;
  padding: 0.88rem;
  border-color: rgba(255, 255, 255, 0.22);
}

.tm-site-footer .tm-footer-cta-row .tm-btn .elementor-button,
.tm-site-footer .tm-footer-cta-row .tm-btn-primary .elementor-button,
.tm-site-footer .tm-footer-cta-row .tm-btn-secondary .elementor-button {
  min-height: 62px;
  padding-inline: 1.9rem;
}

.tm-site-footer .tm-footer-links ul {
  gap: 0.52rem;
}

.tm-site-footer .tm-footer-links a {
  pointer-events: auto;
  cursor: pointer;
}

.tm-site-footer .tm-footer-links a:hover,
.tm-site-footer .tm-footer-links a:focus-visible {
  color: #f2df74;
}

.tm-site-footer .tm-footer-col .tm-btn .elementor-button,
.tm-site-footer .tm-footer-col .tm-btn-primary .elementor-button,
.tm-site-footer .tm-footer-col .tm-btn-secondary .elementor-button {
  min-height: 54px;
}

@media (max-width: 767px) {
  .tm-btn .elementor-button,
  .tm-btn-primary .elementor-button,
  .tm-btn-secondary .elementor-button,
  .elementor-widget-button.tm-btn .elementor-button,
  .elementor-widget-button.tm-btn-primary .elementor-button,
  .elementor-widget-button.tm-btn-secondary .elementor-button {
    min-height: 50px;
    padding: 0.78rem 1rem;
  }

  .tm-site-footer .tm-footer-cta-row .tm-btn .elementor-button,
  .tm-site-footer .tm-footer-cta-row .tm-btn-primary .elementor-button,
  .tm-site-footer .tm-footer-cta-row .tm-btn-secondary .elementor-button {
    min-height: 58px;
    padding-inline: 1.15rem;
  }
}

/* v13: button text centering + tighter width to content */
.tm-main .elementor-widget-button.tm-btn,
.tm-main .elementor-widget-button.tm-btn-primary,
.tm-main .elementor-widget-button.tm-btn-secondary,
.tm-site-footer .elementor-widget-button.tm-btn,
.tm-site-footer .elementor-widget-button.tm-btn-primary,
.tm-site-footer .elementor-widget-button.tm-btn-secondary {
  width: auto !important;
}

.tm-main .tm-btn .elementor-button,
.tm-main .tm-btn-primary .elementor-button,
.tm-main .tm-btn-secondary .elementor-button,
.tm-main .elementor-widget-button.tm-btn .elementor-button,
.tm-main .elementor-widget-button.tm-btn-primary .elementor-button,
.tm-main .elementor-widget-button.tm-btn-secondary .elementor-button,
.tm-site-footer .tm-btn .elementor-button,
.tm-site-footer .tm-btn-primary .elementor-button,
.tm-site-footer .tm-btn-secondary .elementor-button,
.tm-site-footer .elementor-widget-button.tm-btn .elementor-button,
.tm-site-footer .elementor-widget-button.tm-btn-primary .elementor-button,
.tm-site-footer .elementor-widget-button.tm-btn-secondary .elementor-button {
  width: fit-content !important;
  min-width: 0 !important;
  max-width: 100%;
  padding-inline: clamp(0.95rem, 2.1vw, 1.35rem) !important;
  text-align: center !important;
  justify-content: center !important;
  white-space: nowrap;
}

.tm-main .elementor-button-text,
.tm-site-footer .elementor-button-text {
  text-align: center !important;
  line-height: 1.15;
}

.tm-main .elementor-widget-button .elementor-button-wrapper,
.tm-site-footer .elementor-widget-button .elementor-button-wrapper {
  display: inline-flex;
  width: auto !important;
  max-width: 100%;
}

.tm-site-footer .tm-footer-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
}

.tm-site-footer .tm-footer-cta-row .elementor-column {
  width: auto !important;
  flex: 0 0 auto !important;
}

.tm-site-footer .tm-footer-cta-row .tm-btn .elementor-button,
.tm-site-footer .tm-footer-cta-row .tm-btn-primary .elementor-button,
.tm-site-footer .tm-footer-cta-row .tm-btn-secondary .elementor-button {
  min-height: 54px !important;
  padding-inline: 1.3rem !important;
}

.tm-site-footer .tm-footer-col .tm-btn .elementor-button,
.tm-site-footer .tm-footer-col .tm-btn-primary .elementor-button,
.tm-site-footer .tm-footer-col .tm-btn-secondary .elementor-button {
  min-height: 48px !important;
  padding-inline: 1.1rem !important;
}

@media (max-width: 767px) {
  .tm-site-footer .tm-footer-cta-row {
    justify-content: flex-start;
  }

  .tm-site-footer .tm-footer-cta-row .elementor-column {
    width: auto !important;
    flex: 0 0 auto !important;
    max-width: 100%;
  }

  .tm-main .tm-btn .elementor-button,
  .tm-main .tm-btn-primary .elementor-button,
  .tm-main .tm-btn-secondary .elementor-button,
  .tm-main .elementor-widget-button.tm-btn .elementor-button,
  .tm-main .elementor-widget-button.tm-btn-primary .elementor-button,
  .tm-main .elementor-widget-button.tm-btn-secondary .elementor-button,
  .tm-site-footer .tm-btn .elementor-button,
  .tm-site-footer .tm-btn-primary .elementor-button,
  .tm-site-footer .tm-btn-secondary .elementor-button,
  .tm-site-footer .elementor-widget-button.tm-btn .elementor-button,
  .tm-site-footer .elementor-widget-button.tm-btn-primary .elementor-button,
  .tm-site-footer .elementor-widget-button.tm-btn-secondary .elementor-button {
    padding-inline: 1.05rem !important;
  }
}

/* v13.1: uniform button height across the site */
.tm-main .tm-btn .elementor-button,
.tm-main .tm-btn-primary .elementor-button,
.tm-main .tm-btn-secondary .elementor-button,
.tm-main .elementor-widget-button.tm-btn .elementor-button,
.tm-main .elementor-widget-button.tm-btn-primary .elementor-button,
.tm-main .elementor-widget-button.tm-btn-secondary .elementor-button,
.tm-site-footer .tm-btn .elementor-button,
.tm-site-footer .tm-btn-primary .elementor-button,
.tm-site-footer .tm-btn-secondary .elementor-button,
.tm-site-footer .elementor-widget-button.tm-btn .elementor-button,
.tm-site-footer .elementor-widget-button.tm-btn-primary .elementor-button,
.tm-site-footer .elementor-widget-button.tm-btn-secondary .elementor-button,
.tm-floating-cta a {
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}
