/* ==========================================================================
   LatinoTax WordPress Block Theme Bridge (Frontend + Gutenberg Editor)
   Ensures 100% visual fidelity with original LatinoTax design while keeping
   every section native, valid, and WYSIWYG-editable in WordPress 7.1.4.
   ========================================================================== */

@font-face {
  font-family: "Roboto";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/assets/www.latinotax.ca/_hcms/googlefonts/Roboto/regular.woff2") format("woff2"), url("/assets/www.latinotax.ca/_hcms/googlefonts/Roboto/regular.woff") format("woff");
}
@font-face {
  font-family: "Roboto";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/assets/www.latinotax.ca/_hcms/googlefonts/Roboto/700.woff2") format("woff2"), url("/assets/www.latinotax.ca/_hcms/googlefonts/Roboto/700.woff") format("woff");
}
@font-face {
  font-family: "Source Serif Pro";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/assets/www.latinotax.ca/_hcms/googlefonts/Source_Serif_Pro/regular.woff2") format("woff2"), url("/assets/www.latinotax.ca/_hcms/googlefonts/Source_Serif_Pro/regular.woff") format("woff");
}
@font-face {
  font-family: "Source Serif Pro";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/assets/www.latinotax.ca/_hcms/googlefonts/Source_Serif_Pro/600.woff2") format("woff2"), url("/assets/www.latinotax.ca/_hcms/googlefonts/Source_Serif_Pro/600.woff") format("woff");
}
@font-face {
  font-family: "Source Serif Pro";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/assets/www.latinotax.ca/_hcms/googlefonts/Source_Serif_Pro/700.woff2") format("woff2"), url("/assets/www.latinotax.ca/_hcms/googlefonts/Source_Serif_Pro/700.woff") format("woff");
}
@font-face {
  font-family: "Montserrat";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/assets/www.latinotax.ca/_hcms/googlefonts/Montserrat/regular.woff2") format("woff2"), url("/assets/www.latinotax.ca/_hcms/googlefonts/Montserrat/regular.woff") format("woff");
}
@font-face {
  font-family: "Montserrat";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/assets/www.latinotax.ca/_hcms/googlefonts/Montserrat/600.woff2") format("woff2"), url("/assets/www.latinotax.ca/_hcms/googlefonts/Montserrat/600.woff") format("woff");
}
@font-face {
  font-family: "Montserrat";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/assets/www.latinotax.ca/_hcms/googlefonts/Montserrat/700.woff2") format("woff2"), url("/assets/www.latinotax.ca/_hcms/googlefonts/Montserrat/700.woff") format("woff");
}

.header-row-0-force-full-width-section > .row-fluid {
  max-width: none !important;
}
.header-row-0-padding {
  padding: 0 !important;
}

/* ---------- Base Section Containers ---------- */
.lt-section.wp-block-group {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 56px 20px;
  box-sizing: border-box;
}

.lt-section-wrap.wp-block-group {
  width: 100%;
  margin: 0;
  padding: 56px 20px;
  box-sizing: border-box;
}

.lt-section-wrap--muted.wp-block-group {
  background-color: #f5f8fa;
}

.lt-section-wrap--tight-bottom.wp-block-group {
  padding-bottom: 16px;
}

.lt-section-wrap--tight-top.wp-block-group {
  padding-top: 16px;
}

.lt-section-wrap--compact.wp-block-group {
  padding-top: 28px;
  padding-bottom: 24px;
}

.lt-section-inner.wp-block-group {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Typography & Buttons ---------- */
.body-container-wrapper h1.wp-block-heading,
.body-container-wrapper h2.wp-block-heading,
.body-container-wrapper h3.wp-block-heading,
.body-container-wrapper h4.wp-block-heading,
.editor-styles-wrapper h1.wp-block-heading,
.editor-styles-wrapper h2.wp-block-heading,
.editor-styles-wrapper h3.wp-block-heading,
.editor-styles-wrapper h4.wp-block-heading {
  font-family: Montserrat, sans-serif;
  color: #1e293b;
  line-height: 1.2;
}

.body-container-wrapper .lt-heading-navy,
.editor-styles-wrapper .lt-heading-navy {
  color: #485e88 !important;
}

.body-container-wrapper .lt-heading-xl,
.editor-styles-wrapper .lt-heading-xl {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 0.4em;
}

.body-container-wrapper .wp-block-buttons,
.editor-styles-wrapper .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.body-container-wrapper .wp-block-buttons.lt-buttons-center,
.editor-styles-wrapper .wp-block-buttons.lt-buttons-center {
  justify-content: center;
}

.body-container-wrapper .wp-block-button .wp-block-button__link,
.editor-styles-wrapper .wp-block-button .wp-block-button__link {
  background-color: #485e88;
  color: #ffffff !important;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  padding: 13px 28px;
  border-radius: 6px;
  border: 2px solid #485e88;
  text-decoration: none !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  display: inline-block;
}

.body-container-wrapper .wp-block-button .wp-block-button__link:hover,
.editor-styles-wrapper .wp-block-button .wp-block-button__link:hover {
  background-color: #36496b;
  border-color: #36496b;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.body-container-wrapper .wp-block-button.lt-btn-secondary .wp-block-button__link,
.body-container-wrapper .wp-block-button.is-style-outline .wp-block-button__link,
.editor-styles-wrapper .wp-block-button.lt-btn-secondary .wp-block-button__link,
.editor-styles-wrapper .wp-block-button.is-style-outline .wp-block-button__link {
  background-color: transparent;
  color: #485e88 !important;
  border: 2px solid #485e88;
}

.body-container-wrapper .wp-block-button.lt-btn-secondary .wp-block-button__link:hover,
.body-container-wrapper .wp-block-button.is-style-outline .wp-block-button__link:hover,
.editor-styles-wrapper .wp-block-button.lt-btn-secondary .wp-block-button__link:hover,
.editor-styles-wrapper .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background-color: #485e88;
  color: #ffffff !important;
}

/* ---------- Home Video Hero (core/cover) ---------- */
.lt-hero-video.wp-block-cover {
  min-height: 540px;
  padding: 60px 20px;
  width: 100%;
}

.lt-hero-video .wp-block-cover__inner-container {
  max-width: 680px;
  margin: 0 auto;
}

.lt-hero-card.wp-block-group {
  background: #ffffff;
  padding: 32px 36px;
  border-radius: 4px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
  text-align: center;
}

.lt-hero-card h1.wp-block-heading {
  color: #485e88 !important;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 900;
  margin: 0 0 12px;
}

.lt-hero-card h3.wp-block-heading {
  color: #1e293b !important;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 700;
  margin: 0 0 18px;
}

/* ---------- Interior Page Banners & Mid-Page Cover Banners ---------- */
.lt-page-banner.wp-block-cover {
  min-height: 390px;
  padding: 80px 20px;
  width: 100%;
}

.lt-mid-banner.wp-block-cover {
  min-height: 320px;
  padding: 70px 20px;
  width: 100%;
}

.lt-divider-banner.wp-block-cover {
  min-height: 350px;
  padding: 0;
  width: 100%;
}

.lt-page-banner .wp-block-cover__inner-container,
.lt-mid-banner .wp-block-cover__inner-container {
  max-width: 620px;
  margin: 0 auto;
}

.lt-banner-card.wp-block-group {
  background: rgba(255, 255, 255, 0.92);
  padding: 26px 44px;
  text-align: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.lt-banner-card h1.wp-block-heading {
  color: #1e293b !important;
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  font-weight: 800;
  margin: 0;
}

.lt-banner-card h2.wp-block-heading,
.lt-banner-card h3.wp-block-heading {
  color: #1e293b !important;
  margin: 0 0 12px;
}

.lt-banner-card p {
  color: #1e293b !important;
  margin: 0 0 14px;
}

/* ---------- Bottom CTA Cover Banner ---------- */
.lt-cta-banner.wp-block-cover {
  min-height: 320px;
  padding: 64px 24px;
  width: 100%;
}

.lt-cta-banner .wp-block-cover__background {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.72) 100%) !important;
  opacity: 1 !important;
}

.lt-cta-banner .wp-block-cover__inner-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.lt-cta-banner h3.wp-block-heading {
  color: #ffffff !important;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 800;
  margin: 0 0 10px;
}

.lt-cta-banner p {
  color: #f8fafc !important;
  font-size: 1.1rem;
  margin: 0;
}

/* ---------- Service Cards Grid (Home / Español) ---------- */
.lt-service-cards-grid.wp-block-columns {
  gap: 26px !important;
  align-items: stretch !important;
}

.lt-service-card.wp-block-column {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lt-service-card.wp-block-column:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.13);
}

.lt-service-card > figure.wp-block-image {
  margin: 0 !important;
  width: 100%;
  overflow: hidden;
}

.lt-service-card > figure.wp-block-image img {
  width: 100%;
  height: 220px !important;
  object-fit: cover;
  display: block;
}

.lt-service-card .lt-card-body.wp-block-group {
  padding: 20px 22px 24px;
  flex: 1;
}

.lt-service-card h3.wp-block-heading {
  font-size: 23px;
  margin: 0 0 10px;
  color: #1e293b;
}

.lt-service-card p {
  margin: 0 0 12px;
  color: #334155;
}

ul.wp-block-list.other-check-mark {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 8px 0 0 !important;
}

ul.wp-block-list.other-check-mark > li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  line-height: 1.45;
  color: #334155;
}

ul.wp-block-list.other-check-mark > li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #485e88;
  font-weight: 900;
}

/* ---------- Core Beliefs 3D Flip Cards (Services / Servicios) ---------- */
.lt-beliefs-grid.wp-block-columns {
  gap: 24px !important;
}

.cnhw-flip-card.wp-block-group {
  background-color: transparent;
  width: 100%;
  height: 300px;
  perspective: 1000px;
  margin: 20px 0;
}

.cnhw-flip-card .flip-inner.wp-block-group {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.65s ease;
  transform-style: preserve-3d;
}

.cnhw-flip-card:hover .flip-inner.wp-block-group {
  transform: rotateY(180deg);
}

.cnhw-flip-card .flip-front.wp-block-cover,
.cnhw-flip-card .flip-back.wp-block-group {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 300px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.cnhw-flip-card .flip-front h3.wp-block-heading {
  color: #ffffff !important;
  font-size: 28px;
  font-weight: 800;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.cnhw-flip-card .flip-back.wp-block-group {
  background-color: #485e88;
  color: #ffffff;
  transform: rotateY(180deg);
}

.cnhw-flip-card .flip-back p {
  color: #ffffff !important;
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
}

/* Inside Gutenberg Block Editor: stack Front + Back cleanly so both are easy to click & edit! */
.editor-styles-wrapper .cnhw-flip-card.wp-block-group {
  height: auto !important;
  perspective: none !important;
}

.editor-styles-wrapper .cnhw-flip-card .flip-inner.wp-block-group {
  position: static !important;
  transform: none !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.editor-styles-wrapper .cnhw-flip-card .flip-front.wp-block-cover,
.editor-styles-wrapper .cnhw-flip-card .flip-back.wp-block-group {
  position: relative !important;
  inset: auto !important;
  min-height: 160px !important;
  height: auto !important;
  transform: none !important;
  backface-visibility: visible !important;
}

/* ---------- Alternating Image + Text Rows (Services) & General Columns ---------- */
.lt-cols-gap.wp-block-columns {
  gap: 40px !important;
}

.lt-rounded-img img {
  border-radius: 10px;
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- About Us Team Grid & Individual Bio Float ---------- */
.lt-team-grid.wp-block-columns {
  gap: 36px !important;
  align-items: flex-start !important;
}

.lt-team-card > figure.wp-block-image {
  margin: 0 0 16px !important;
}

.lt-team-card > figure.wp-block-image img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  border-radius: 8px;
}

.lt-team-card h3.wp-block-heading {
  font-size: 32px;
  margin: 0 0 12px;
}

.lt-bio-section::after {
  content: "";
  display: table;
  clear: both;
}

.lt-bio-section figure.wp-block-image.picture-person {
  float: right;
  max-width: 460px;
  width: 45%;
  margin: 0 0 18px 28px;
}

.lt-bio-section figure.wp-block-image.picture-person img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .lt-bio-section figure.wp-block-image.picture-person {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 20px 0;
  }
}

/* ---------- Native FAQ Accordion (core/details) ---------- */
.lt-faq-group.wp-block-group {
  max-width: 960px;
  margin: 0 auto;
}

.lt-faq-group details.wp-block-details {
  background: #ffffff;
  border: 1px solid #dce4ee;
  border-radius: 10px;
  margin-bottom: 14px;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lt-faq-group details.wp-block-details[open] {
  border-color: #485e88;
  box-shadow: 0 6px 18px rgba(72, 94, 136, 0.12);
}

.lt-faq-group details.wp-block-details > summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 52px 20px 24px;
  font-family: Montserrat, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  position: relative;
  line-height: 1.4;
}

.lt-faq-group details.wp-block-details > summary::-webkit-details-marker {
  display: none;
}

.lt-faq-group details.wp-block-details > summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 700;
  color: #485e88;
  line-height: 1;
}

.lt-faq-group details.wp-block-details[open] > summary::after {
  content: "−";
}

.lt-faq-group details.wp-block-details > *:not(summary) {
  padding: 0 24px 20px 24px;
  margin: 0;
  color: #334155;
  line-height: 1.65;
}

.lt-faq-group details.wp-block-details > ul.wp-block-list:not(summary),
.lt-faq-group details.wp-block-details > ol.wp-block-list:not(summary) {
  padding-left: 44px;
}

/* ---------- Testimonials Carousel (core/quote) ---------- */
.lt-testimonial-slider.wp-block-group {
  border-top: 1px solid #cbd5e1;
  padding: 44px 20px 28px;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}

.lt-testimonial-slider blockquote.wp-block-quote {
  border-left: none;
  background: #f8fafc;
  border-radius: 12px;
  padding: 32px 36px;
  margin: 0 0 18px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.lt-testimonial-slider blockquote.wp-block-quote p {
  font-size: 1.12rem;
  line-height: 1.65;
  color: #1e293b;
  font-style: italic;
  margin: 0 0 16px;
}

.lt-testimonial-slider blockquote.wp-block-quote cite {
  display: block;
  font-style: normal;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: #485e88;
}

/* Frontend JS carousel active mode */
.lt-testimonial-slider.is-carousel-ready blockquote.wp-block-quote {
  display: none;
  margin-bottom: 0;
}

.lt-testimonial-slider.is-carousel-ready blockquote.wp-block-quote.is-active-slide {
  display: block;
  animation: ltFadeSlide 0.35s ease;
}

@keyframes ltFadeSlide {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.lt-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.lt-slider-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #485e88;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.lt-slider-btn:hover {
  background: #485e88;
  color: #ffffff;
  border-color: #485e88;
}

.lt-slider-dots {
  display: flex;
  gap: 8px;
}

.lt-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #cbd5e1;
  padding: 0;
  cursor: pointer;
}

.lt-slider-dot.is-active {
  background: #485e88;
  transform: scale(1.2);
}

/* ---------- Contact Page Info & Map ---------- */
.lt-contact-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px !important;
  color: #0f172a;
}

.lt-contact-line::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.lt-icon-address::before {
  background-image: url("/assets/www.latinotax.ca/hs-fs/hubfs/icons8-home-address-50-db408f3c57.png");
}

.lt-icon-phone::before {
  background-image: url("/assets/www.latinotax.ca/hs-fs/hubfs/icons8-telephone-50-1--2024a9aedd.png");
}

.lt-icon-email::before {
  background-image: url("/assets/www.latinotax.ca/hs-fs/hubfs/icons8-email-50-1--937180d456.png");
}

.lt-contact-line a {
  color: inherit;
  text-decoration: none;
}

.lt-contact-line a:hover {
  color: #485e88;
  text-decoration: underline;
}

.lt-footer-logo img {
  max-width: 150px !important;
  height: auto !important;
}

.lt-map-embed iframe {
  width: 100% !important;
  min-height: 360px;
  border: 0;
  border-radius: 10px;
  display: block;
}

/* ---------- Synced Global Footer Blocks ---------- */
.footer .lt-footer-blocks.wp-block-group {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 20px 24px;
}

.footer .lt-footer-blocks h4.wp-block-heading {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  color: inherit;
}

.footer .lt-footer-blocks p {
  margin: 0 0 10px;
  line-height: 1.55;
}

.footer .lt-footer-blocks .wp-block-social-links {
  gap: 12px;
  margin-top: 12px;
}

.footer .lt-footer-sep.wp-block-separator {
  border: none;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  margin: 28px 0 0;
}

/* ---------- Top Language Switcher Bar ---------- */
.lt-lang-topbar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 6px 16px 2px;
}

.lt-lang-topbar__inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.lt-lang-topbar__link {
  color: #485e88;
  text-decoration: none;
}

.lt-lang-topbar__link.is-active {
  font-weight: 800;
  text-decoration: underline;
}

.lt-lang-topbar__sep {
  color: #ed1c24;
  margin: 0 6px;
}
