/* ==========================================================================
   Luminar English — layout.css
   Header, navigation, sections, grids, hero, footer, floating contact
   ========================================================================== */

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 24px rgba(180, 20, 30, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  flex: none;
  max-width: 100%;
  color: var(--logo-red);
}
/* Full logo (807×104 viewBox): size by width, height follows the ratio */
.brand-logo {
  display: block;
  width: 270px;
  max-width: 100%;
  height: auto;
}
.main-nav {
  margin-left: auto;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: color 0.2s, background-color 0.2s;
}
.nav-link:hover,
.nav-item:focus-within > .nav-link {
  color: var(--red);
}
.nav-link[aria-current="page"],
.nav-item.is-active > .nav-link {
  color: var(--red);
  box-shadow: inset 0 -2px 0 var(--red);
  border-radius: 0;
}
.nav-link .icon {
  font-size: 14px;
  transition: transform 0.2s;
}
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  min-width: 260px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.dropdown::before {
  content: "";
  position: absolute;
  inset: -10px 0 auto;
  height: 10px;
}
.nav-item:hover > .dropdown,
.nav-item:focus-within > .dropdown,
.nav-item.is-open > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav-item:hover > .nav-link .icon,
.nav-item.is-open > .nav-link .icon {
  transform: rotate(180deg);
}
.dropdown-label {
  padding: 6px 10px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.dropdown a:hover,
.dropdown a:focus-visible {
  background: var(--red-50);
  color: var(--red);
}
.dropdown .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c, var(--red));
  flex: none;
}
.header-cta {
  flex: none;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: var(--r-sm);
  color: var(--red);
  align-items: center;
  justify-content: center;
}
.nav-toggle .icon {
  font-size: 26px;
}
.nav-backdrop,
.nav-close,
.nav-mobile-cta {
  display: none;
}
.site-header .container {
  max-width: 1360px;
}
@media (max-width: 1439px) {
  .header-inner {
    gap: 14px;
  }
  .nav-list {
    gap: 0;
  }
  .nav-link {
    padding: 10px 7px;
    font-size: 13.5px;
  }
  .brand-logo {
    width: 250px;
  }
  .header-cta {
    padding-inline: 14px;
  }
}
@media (max-width: 1279px) {
  .nav-link {
    padding: 10px 5px;
    font-size: 13px;
  }
  /* 1200–1279px with a desktop scrollbar: logo + 7 links + CTA must fit ~1183px */
  .header-inner {
    gap: 10px;
  }
  .brand-logo {
    width: 224px;
  }
}
/* Drawer navigation below 1200px (menu has 7 items + CTA) */
@media (max-width: 1199px) {
  /* backdrop-filter makes the header the containing block of position:fixed children,
     which would shrink the drawer to the header's height — use a solid header instead */
  .site-header {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .header-inner .header-cta {
    display: none;
  }
  .brand-logo {
    width: 250px;
  }
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    width: min(340px, 86vw);
    margin: 0;
    padding: 84px 18px 24px;
    background: #fff;
    box-shadow: var(--sh-lg);
    overflow-y: auto;
    /* clip-path (not translateX) so the closed drawer never widens the page on mobile */
    clip-path: inset(0 0 0 100%);
    visibility: hidden;
    transition: clip-path 0.3s var(--ease), visibility 0.3s;
  }
  .main-nav.is-open {
    clip-path: inset(0 0 0 0);
    visibility: visible;
  }
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(20, 10, 15, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }
  .nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
  }
  .nav-close {
    position: absolute;
    top: 18px;
    right: 14px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
  }
  .nav-close .icon {
    font-size: 24px;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 13px 12px;
    font-size: 15px;
  }
  .nav-link[aria-current="page"],
  .nav-item.is-active > .nav-link {
    box-shadow: none;
    border-radius: var(--r-sm);
    background: var(--red-50);
  }
  .dropdown,
  .nav-item:hover > .dropdown,
  .nav-item:focus-within > .dropdown {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 6px 12px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-item.is-open > .dropdown {
    display: block;
  }
  .nav-item:hover > .nav-link .icon {
    transform: none;
  }
  .nav-item.is-open > .nav-link .icon {
    transform: rotate(180deg);
  }
  .nav-mobile-cta {
    display: grid;
    gap: 10px;
    margin-top: 20px;
  }
}
@media (max-width: 767px) {
  .brand-logo {
    width: 210px;
  }
}

/* ---------- Sections & grids ---------- */
.section {
  position: relative;
  padding: 72px 0;
}
.section-sm {
  padding: 48px 0;
}
.section-soft {
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 15%, var(--bg-soft) 85%, #fff 100%);
}
.section-pink {
  background: var(--red-50);
}
.section-ribbon {
  overflow: hidden;
}
.section-ribbon::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 40% at 0% 20%, rgba(255, 180, 190, 0.35), transparent 70%),
    radial-gradient(50% 35% at 100% 80%, rgba(255, 180, 190, 0.3), transparent 70%);
}
.section > .container {
  position: relative;
  z-index: 1;
}
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1023px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .section {
    padding: 52px 0;
  }
  .section-sm {
    padding: 36px 0;
  }
  .grid {
    gap: 16px;
  }
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 479px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}
/* ---------- Page hero (designed pages) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 70px;
  background:
    radial-gradient(70% 60% at 10% 10%, #fff 0%, transparent 60%),
    linear-gradient(160deg, #fff 0%, #ffeef1 55%, #ffe1e6 100%);
}
.hero::after {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -1px;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 50 C 240 10 480 90 720 55 C 960 20 1200 80 1440 40 L1440 90 L0 90 Z' fill='%23ffffff'/%3E%3Cpath d='M0 62 C 260 28 520 96 760 66 C 1000 36 1220 84 1440 58' fill='none' stroke='%23ffc9cf' stroke-width='2'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 36px;
}
.hero-title {
  font-size: clamp(36px, 5.4vw, 66px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -1px;
  text-transform: uppercase;
}
.hero-title .l1 {
  display: block;
  color: var(--red);
}
.hero-title .l2 {
  display: block;
  color: var(--navy);
}
.hero-title.is-swap .l1 {
  color: var(--navy);
}
.hero-title.is-swap .l2 {
  color: var(--red);
}
.hero-sub {
  margin-top: 16px;
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.45;
}
.hero-sub strong {
  color: var(--red);
  font-weight: 800;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.hero-media {
  position: relative;
  padding: 18px 10px 0;
}
.hero-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  border: 6px solid #fff;
  border-radius: 46% 46% var(--r-xl) var(--r-xl) / 28% 28% var(--r-xl) var(--r-xl);
  box-shadow: var(--sh-lg);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-script {
  position: absolute;
  z-index: 2;
  color: var(--red);
  font-size: clamp(20px, 2.4vw, 30px);
  transform: rotate(-8deg);
  text-shadow: 0 2px 0 #fff, 0 0 12px #fff;
}
.hero-script.tl {
  top: -4px;
  left: -6px;
}
.hero-script.note {
  padding: 8px 14px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--sh);
  font-size: clamp(16px, 1.7vw, 21px);
  text-shadow: none;
}
.hero-script.tr {
  top: 6px;
  right: -4px;
  transform: rotate(7deg);
}
.hero-script.br {
  right: -4px;
  bottom: 18px;
  transform: rotate(-8deg);
}
@media (max-width: 1023px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  /* single column: the photo banner comes first, above the title */
  .hero-media {
    order: -1;
    width: 100%;
    max-width: 640px;
    margin-inline: auto;
  }
}
@media (max-width: 767px) {
  .hero {
    padding: 28px 0 56px;
  }
  .hero-actions .btn {
    flex: 1 1 100%;
  }
  .hero-script.tl {
    left: 4px;
  }
}

/* ---------- Page banner (pages without design) ---------- */
.page-banner {
  position: relative;
  overflow: hidden;
  padding: 52px 0 76px;
  text-align: center;
  background: linear-gradient(160deg, #fff 0%, #ffeef1 60%, #ffe1e6 100%);
}
.page-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C 360 0 720 60 1080 28 C 1260 12 1350 24 1440 30 L1440 60 L0 60 Z' fill='%23ffffff'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.page-banner .container {
  position: relative;
  z-index: 1;
}
.page-banner h1 {
  font-size: clamp(28px, 3.8vw, 48px);
  font-weight: 900;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}
.page-banner p {
  max-width: 720px;
  margin: 14px auto 0;
  font-size: 17px;
  color: var(--navy);
}
.breadcrumb {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--muted);
}
.breadcrumb a:hover {
  color: var(--red);
}
.breadcrumb li + li::before {
  content: "›";
  margin-right: 6px;
}
/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(135deg, #a50f17 0%, #d0161e 55%, #e2232b 100%);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(40% 70% at 100% 0%, rgba(255, 255, 255, 0.12), transparent 70%),
    radial-gradient(30% 60% at 0% 100%, rgba(0, 0, 0, 0.15), transparent 70%);
}
.footer-main {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.5fr;
  gap: 40px;
  padding-block: 52px 36px; /* block only: keep .container side gutters */
}
.footer-brand .brand {
  color: #fff;
}
.footer-brand .brand-logo {
  width: 340px;
}
.footer-brand p {
  max-width: 400px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
}
.socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.socials a,
.socials button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--red);
  transition: transform 0.2s, box-shadow 0.2s;
}
.socials a:hover,
.socials button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}
.socials .icon {
  font-size: 20px;
}
.zalo-text {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.2px;
}
.footer-title {
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.footer-links {
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-contact {
  display: grid;
  gap: 12px;
  font-size: 14px;
}
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.footer-contact .icon {
  margin-top: 1px;
  font-size: 20px;
  color: #fff;
}
.footer-contact a:hover {
  text-decoration: underline;
}
.footer-bottom {
  position: relative;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
}
@media (max-width: 1023px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 599px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 40px;
  }
}

/* ---------- Floating contact ---------- */
.float-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: grid;
  gap: 10px;
}
.float-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s, opacity 0.25s, visibility 0.25s;
}
.float-btn:hover {
  transform: scale(1.08);
}
.float-btn .icon {
  font-size: 24px;
}
.float-btn.phone {
  background: var(--red);
}
.float-btn.phone::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--red);
  border-radius: 50%;
  animation: ring 1.8s infinite;
}
.float-btn.zalo {
  background: #0068ff;
  font-size: 13px;
  font-weight: 800;
}
.float-btn.messenger {
  background: linear-gradient(135deg, #00b2ff, #a033ff);
}
.float-btn.to-top {
  background: #fff;
  color: var(--red);
  opacity: 0;
  visibility: hidden;
}
.float-btn.to-top.is-visible {
  opacity: 1;
  visibility: visible;
}
.float-label {
  position: absolute;
  right: calc(100% + 10px);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--sh);
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.float-btn:hover .float-label,
.float-btn:focus-visible .float-label {
  opacity: 1;
  transform: none;
}
@keyframes ring {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}
@media (max-width: 767px) {
  .float-contact {
    right: 12px;
    bottom: 12px;
  }
  .float-btn {
    width: 46px;
    height: 46px;
  }
  .float-label {
    display: none;
  }
}
