/*
Theme Name: DigiWeb
Theme URI: https://digiweb.com.vn/
Author: DigiWeb
Author URI: https://digiweb.com.vn/
Description: DigiWeb dynamic WordPress theme (ACF + qTranslate-XT ready)
Version: 1.1.8
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: digiweb
*/

html,
body {
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wp-caption,
.wp-block-image {
  max-width: 100%;
}

.tet-effects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  overflow: hidden;
}
.tet-glow {
  position: absolute;
  width: 45vw;
  height: 45vw;
  left: -10vw;
  top: -15vw;
  background: radial-gradient(circle, rgba(255,216,104,.28), rgba(255,173,80,.12) 45%, rgba(255,173,80,0) 70%);
  filter: blur(4px);
}
.tet-glow-right {
  left: auto;
  right: -12vw;
  top: auto;
  bottom: -18vw;
  width: 50vw;
  height: 50vw;
}
.tet-petals { position: absolute; inset: 0; }
.tet-petal {
  position: absolute;
  top: -10vh;
  left: var(--x);
  width: var(--size);
  height: var(--size);
  opacity: var(--opacity);
  transform: translateY(-20vh) rotate(0deg);
  animation: tet-fall var(--duration) linear infinite, tet-spin calc(var(--duration) * .9) ease-in-out infinite;
  animation-delay: var(--delay);
  background: url('/hoamai_icon.svg') center/contain no-repeat;
  filter: drop-shadow(0 3px 6px rgba(255,176,64,.45));
}
@keyframes tet-fall {
  0% { transform: translateY(-20vh) translate(-4vw) rotate(0deg); }
  100% { transform: translateY(120vh) translate(6vw) rotate(280deg); }
}
@keyframes tet-spin {
  0%, 100% { filter: blur(.1px); }
  50% { filter: blur(.4px); }
}
@media (prefers-reduced-motion: reduce) {
  .tet-effects { display: none; }
}

.language-switcher .language-flag {
  background: transparent;
  box-shadow: none;
}

.language-switcher .language-flag span {
  font-size: 28px;
  line-height: 1;
}

/* Global badge typography (exclude Home hero badge which is custom-tuned) */
:is(p, span)[class*="uppercase"][class*="tracking-"]:not([data-hero-badge]):not(.dw-page-hero-badge) {
  font-family: "Oswald", "Be Vietnam Pro", sans-serif;
  font-size: calc(1em + 4px) !important;
}

/* Badge with background: increase top/bottom breathing room */
:is(p, span)[class*="uppercase"][class*="tracking-"][class*="bg-"]:not([data-hero-badge]):not(.dw-page-hero-badge) {
  padding-top: calc(0.25rem + 5px) !important;
  padding-bottom: calc(0.25rem + 5px) !important;
}

/* Badge without background: keep normal letter spacing */
:is(p, span)[class*="uppercase"][class*="tracking-"]:not([class*="bg-"]):not([data-hero-badge]):not(.dw-page-hero-badge) {
  letter-spacing: normal !important;
}

.contact-maps-section iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 380px;
  border: 0;
  display: block;
}

/* Hero typography tune for About + Service Detail + Vehicle Detail */
.dw-page-hero-badge {
  font-family: "Oswald", "Be Vietnam Pro", sans-serif !important;
  font-size: 42px !important;
  line-height: 1.05 !important;
  letter-spacing: normal !important;
}

.dw-page-hero-title {
  font-size: 34px !important;
  line-height: 1.18 !important;
  text-align: justify !important;
}

.dw-page-hero-copy,
.dw-page-hero-copy p {
  text-align: justify !important;
}

/* Global CTA button typography */
a.rounded-full.font-semibold,
button.rounded-full.font-semibold {
  font-size: 18px !important;
  text-transform: uppercase !important;
}

.digiweb-submenu-link {
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .digiweb-submenu-wrap {
    width: max-content;
    min-width: 17rem;
  }
  .digiweb-submenu-panel {
    width: max-content;
    min-width: 17rem;
    background: rgba(255, 255, 255, 0.9);
  }
  .digiweb-submenu-panel a {
    font-size: 16px !important;
  }
}

@media (max-width: 1024px) {
  .dw-page-hero-badge {
    font-size: 34px !important;
  }
  .dw-page-hero-title {
    font-size: 28px !important;
  }
}

@media (min-width: 1024px) {
  .digiweb-mobile-menu-list {
    gap: 0.45rem !important;
  }

  .digiweb-mobile-menu-list > li > a,
  .digiweb-mobile-menu-list > li > button {
    letter-spacing: 0.015em !important;
    padding-left: 0.68rem !important;
    padding-right: 0.68rem !important;
  }
}

@media (max-width: 767px) {
  .dw-mobile-lang-switch {
    padding: 0 !important;
  }

  .dw-mobile-lang-switch span {
    font-size: 2rem !important;
    line-height: 1 !important;
  }

  #astronav-menu svg {
    width: 2rem !important;
    height: 2rem !important;
  }

  .digiweb-mobile-menu-list {
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .digiweb-mobile-menu-list {
    --tw-ring-offset-shadow: 0 0 #0000 !important;
    --tw-ring-shadow: 0 0 #0000 !important;
  }

  .astronav-dropdown.is-open > button,
  .astronav-dropdown.is-open > button:hover,
  .astronav-dropdown.is-open > button:focus {
    background: transparent !important;
    color: #1f2937 !important;
  }

  :is(p, span)[class*="uppercase"][class*="tracking-"]:not([data-hero-badge]):not(.dw-page-hero-badge) {
    font-size: 0.72rem !important;
    line-height: 1 !important;
    letter-spacing: 0.06em !important;
    white-space: nowrap !important;
  }

  :is(p, span)[class*="uppercase"][class*="tracking-"][class*="bg-"]:not([data-hero-badge]):not(.dw-page-hero-badge) {
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
    padding-left: 0.9rem !important;
    padding-right: 0.9rem !important;
  }

  [data-hero-badge] {
    width: auto !important;
    max-width: 100% !important;
    justify-content: center !important;
    padding: 0.9rem 1.2rem !important;
    font-size: 1.7rem !important;
    line-height: 1 !important;
    letter-spacing: 0.02em !important;
    white-space: nowrap !important;
  }

  .dw-page-hero-badge {
    display: inline-flex !important;
    width: fit-content !important;
    max-width: 100% !important;
    font-size: 1.5rem !important;
    line-height: 1 !important;
    letter-spacing: 0.03em !important;
    white-space: nowrap !important;
    justify-content: center !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .dw-page-hero-badge,
  .dw-page-hero-title {
    display: block !important;
  }

  h1,
  .dw-page-hero-title,
  .dw-home-hero-title {
    text-align: left !important;
    letter-spacing: -0.03em !important;
  }

  .dw-page-hero-title,
  .dw-home-hero-title,
  #hero h1 {
    font-size: 2rem !important;
    line-height: 1.14 !important;
    text-wrap: balance;
  }

  .dw-page-hero-title {
    text-align: center !important;
  }

  .dw-home-hero-title,
  #hero h1 {
    text-align: center !important;
  }

  .dw-page-hero-copy,
  .dw-page-hero-copy p,
  #hero p[style*="text-align:justify"] {
    text-align: left !important;
  }

  .dw-home-hero-ctas {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0.75rem !important;
  }

  .dw-home-hero-cta {
    flex: 1 1 0 !important;
    justify-content: center !important;
    min-width: 0 !important;
    padding: 0.95rem 1rem !important;
    font-size: 1rem !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
  }

  #dich-vu > div > .flex.items-end.justify-between {
    align-items: flex-start !important;
  }

  .dw-home-service-title {
    font-size: 2.05rem !important;
    line-height: 1.12 !important;
    letter-spacing: -0.045em !important;
    text-wrap: balance;
  }

  .dw-mobile-section-link {
    display: none !important;
  }
}

.digiweb-pricing-region-title {
  margin: 0;
  padding: 14px 18px;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.digiweb-pricing-table-wrap {
  overflow-x: auto;
}

.digiweb-pricing-tables > .digiweb-pricing-region + .digiweb-pricing-region {
  margin-top: 50px;
}

.digiweb-pricing-table-raw table {
  width: max(100%, max-content);
  min-width: 940px;
  max-width: none;
  border-collapse: collapse;
  table-layout: auto;
}

.digiweb-pricing-tables > .digiweb-pricing-region:nth-of-type(-n + 2) .digiweb-pricing-table-raw table {
  min-width: 100%;
}

.digiweb-pricing-tables > .digiweb-pricing-region:nth-of-type(3) .digiweb-pricing-table-raw tr > *:last-child {
  display: none;
}

.digiweb-pricing-tables > .digiweb-pricing-region:nth-of-type(3) .digiweb-pricing-table-raw table {
  min-width: 100%;
  width: 100%;
}

.digiweb-pricing-tables > .digiweb-pricing-region:last-of-type {
  margin-bottom: 50px;
}

.digiweb-pricing-table-raw h3 {
  display: inline-flex;
  align-items: center;
  margin: 22px 0 16px;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fd0305 0%, #ff2f2f 45%, #008300 100%);
  color: #fff !important;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(0, 131, 0, 0.22);
}

.digiweb-pricing-table-raw h3 * {
  color: #fff !important;
}

.digiweb-pricing-table-raw tr:first-child td h3,
.digiweb-pricing-table-raw tr:first-child td h3 *,
.digiweb-pricing-table-raw tr:first-child td h3 span,
.digiweb-pricing-table-raw tr:first-child td h3 strong {
  color: #fff !important;
}

.digiweb-pricing-table-raw td,
.digiweb-pricing-table-raw th {
  border: 1px solid #e2e8f0;
  padding: 6px 7px;
  line-height: 1.3;
  font-size: 12px;
  color: #0f172a;
  white-space: normal;
}

.digiweb-pricing-table-raw tr:first-child td,
.digiweb-pricing-table-raw thead th {
  background: transparent;
  color: #0f172a !important;
}

.digiweb-pricing-table-raw tr:first-child td *,
.digiweb-pricing-table-raw thead th * {
  color: inherit !important;
}

.digiweb-pricing-table-raw tr:first-child td:nth-child(n + 7),
.digiweb-pricing-table-raw thead th:nth-child(n + 7) {
  background: transparent;
}

.digiweb-pricing-table-raw tbody > tr:nth-child(2) > td {
  background: #effcf0;
  color: #046c2e !important;
  font-weight: 700;
}

.digiweb-pricing-table-raw tbody > tr:nth-child(2) > td:nth-child(n + 7) {
  background: #fff1f1;
  color: #bd1111 !important;
}

.digiweb-pricing-tables > .digiweb-pricing-region:nth-of-type(2) .digiweb-pricing-table-raw tbody > tr:nth-child(2) > td,
.digiweb-pricing-tables > .digiweb-pricing-region:nth-of-type(3) .digiweb-pricing-table-raw tbody > tr:nth-child(2) > td {
  font-weight: 400 !important;
}

.digiweb-pricing-tables > .digiweb-pricing-region:nth-of-type(2) .digiweb-pricing-table-raw tbody > tr:nth-child(2) > td *,
.digiweb-pricing-tables > .digiweb-pricing-region:nth-of-type(3) .digiweb-pricing-table-raw tbody > tr:nth-child(2) > td * {
  font-weight: 400 !important;
}

.digiweb-pricing-tables > .digiweb-pricing-region:nth-of-type(2) .digiweb-pricing-table-raw tbody td,
.digiweb-pricing-tables > .digiweb-pricing-region:nth-of-type(2) .digiweb-pricing-table-raw tbody th,
.digiweb-pricing-tables > .digiweb-pricing-region:nth-of-type(3) .digiweb-pricing-table-raw tbody td,
.digiweb-pricing-tables > .digiweb-pricing-region:nth-of-type(3) .digiweb-pricing-table-raw tbody th {
  background: #fff !important;
}

.digiweb-pricing-table-raw td:nth-child(-n + 6),
.digiweb-pricing-table-raw th:nth-child(-n + 6) {
  min-width: 62px;
}

.digiweb-pricing-table-raw td:nth-child(2),
.digiweb-pricing-table-raw th:nth-child(2) {
  min-width: 96px;
}

.digiweb-pricing-table-raw td:nth-child(3),
.digiweb-pricing-table-raw th:nth-child(3) {
  min-width: 124px;
}

.digiweb-pricing-table-raw td:nth-child(n + 7),
.digiweb-pricing-table-raw th:nth-child(n + 7) {
  min-width: 78px;
  padding-left: 4px;
  padding-right: 4px;
}

.digiweb-pricing-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  background: #fff;
}

.digiweb-pricing-table th,
.digiweb-pricing-table td {
  border: 1px solid #e2e8f0;
  padding: 12px 10px;
  text-align: center;
  vertical-align: middle;
  font-size: 15px;
  line-height: 1.4;
}

.digiweb-pricing-table thead th {
  background: #0f172a;
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.digiweb-pricing-table .digiweb-pricing-destination {
  min-width: 180px;
  font-weight: 700;
  color: #0f172a;
  background: #f8fafc;
}

.digiweb-pricing-table tbody tr:nth-child(even) td {
  background: #fcfdff;
}
