/*
============================================================
 AZ Esthetics — Responsive Layer
 Loaded after style.css so responsive fixes stay isolated.
 Covers: large desktop, laptop, tablet, mobile & small phones.
============================================================
*/

/* ---------- Global responsive safety ---------- */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

img {
  height: auto;
}

iframe {
  max-width: 100%;
}

.container,
.container-fluid {
  --bs-gutter-x: 1.5rem;
}

/* Existing pages contain a few "containe" wrappers.
   Keep their visual intent while making them responsive. */
.containe {
  width: 100%;
  max-width: 1320px;
  margin-right: auto;
  margin-left: auto;
  padding-right: calc(var(--bs-gutter-x, 1.5rem) * .5);
  padding-left: calc(var(--bs-gutter-x, 1.5rem) * .5);
}

/* Prevent long URLs/text from creating horizontal scroll. */
p,
li,
a,
span,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: anywhere;
}

button,
input,
select,
textarea {
  max-width: 100%;
}

.text-nowrap {
  overflow-wrap: normal;
}

/* ---------- Large desktop: 1400px+ ---------- */
@media (min-width: 1400px) {
  .hero-inner {
    padding-top: 190px;
    padding-bottom: 120px;
  }

  .page-hero {
    padding-top: 210px;
    padding-bottom: 110px;
  }

  .lux-nav .container {
    max-width: 1320px;
  }
}

/* ---------- Laptop / smaller desktop: 1200px–1399px ---------- */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .lux-nav .nav-link {
    padding-left: .72rem !important;
    padding-right: .72rem !important;
    font-size: .68rem;
    letter-spacing: .11em;
  }

  .lux-nav .nav-link::after {
    left: .72rem;
    right: .72rem;
  }

  .mega {
    min-width: min(640px, calc(100vw - 40px));
    max-width: calc(100vw - 40px);
  }

  .services-menu {
    max-width: min(420px, calc(100vw - 40px));
  }

  .hero-inner {
    padding-top: 170px;
    padding-bottom: 100px;
  }

  .page-hero {
    padding-top: 180px;
    padding-bottom: 90px;
  }
}

/* ---------- Tablet + mobile navigation: below XL ---------- */
@media (max-width: 1199.98px) {
  .lux-nav {
    position: sticky;
    top: 0;
    padding: 10px 0;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
  }

  .lux-nav .container {
    position: relative;
  }

  .main-logo-w {
    width: 105px !important;
    max-width: 42vw;
  }

  .navbar-toggler {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .navbar-collapse {
    width: 100%;
    max-height: calc(100vh - 78px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 0 20px;
  }

  .navbar-nav {
    width: 100%;
    align-items: stretch !important;
  }

  .lux-nav .nav-item {
    width: 100%;
  }

  .lux-nav .nav-link {
    width: 100%;
    color: var(--navy) !important;
    padding: .78rem 0 !important;
    font-size: .74rem;
    letter-spacing: .12em;
    border-bottom: 1px solid var(--line);
  }

  .lux-nav .nav-link::after {
    display: none;
  }

  .lux-nav .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Bootstrap dropdowns become part of the mobile menu. */
  .mega,
  .mega-2,
  .services-menu,
  .courses-dropdown {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 8px 0 10px !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
  }

  .mega:not(.show),
  .mega-2:not(.show),
  .services-menu:not(.show),
  .courses-dropdown:not(.show) {
    display: none;
    opacity: 1;
    visibility: visible;
  }

  .mega.show,
  .mega-2.show,
  .services-menu.show,
  .courses-dropdown.show {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  .mega .row,
  .mega-2 .row {
    --bs-gutter-y: .25rem;
  }

  .mega h6,
  .mega-2 h6 {
    margin-top: 8px;
    margin-bottom: 7px;
  }

  .mega a.mega-link,
  .mega-2 a.mega-link,
  .mega-2 a.mega-link-2 {
    padding: 8px 12px !important;
    font-size: .82rem;
    line-height: 1.45;
  }

  .lux-nav .courses-nav .courses-dropdown .dropdown-item {
    width: 100% !important;
    padding: 9px 12px !important;
    font-size: .84rem;
    white-space: normal !important;
  }

  .services-overview {
    padding: 8px 0 10px;
  }

  .service-menu-row,
  .services-menu > .services-menu-list > .service-menu-item > .service-menu-link {
    min-height: 44px;
  }

  .service-menu-link,
  .service-menu-label,
  .service-submenu a {
    font-size: .84rem;
  }

  .service-menu-row > .service-menu-link,
  .service-menu-label,
  .services-menu > .services-menu-list > .service-menu-item > .service-menu-link {
    padding-left: 0;
    padding-right: 0;
  }

  .service-submenu {
    width: 100%;
    max-width: none;
    padding: 4px 0 8px 16px !important;
  }

  .service-submenu a {
    padding: 9px 0;
  }

  .facial-submenu-list {
    padding-left: 12px;
  }

  .hero {
    min-height: min(900px, 100svh);
  }

  .hero-inner {
    padding: 155px 0 95px;
  }

  .hero h1 {
    max-width: 780px;
  }

  .page-hero {
    padding: 160px 0 90px;
  }

  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .padding-exogrow {
    padding-left: 0;
    padding-right: 0;
  }

  .stat-float {
    max-width: 42%;
  }

  .map-frame iframe {
    height: 360px;
  }
}

/* ---------- Tablet: 768px–991px ---------- */
@media (min-width: 768px) and (max-width: 991.98px) {
  .container,
  .containe {
    max-width: 960px;
  }

  .hero-inner {
    padding-top: 145px;
    padding-bottom: 85px;
  }

  .hero h1 {
    font-size: clamp(3rem, 7vw, 4.5rem);
  }

  .hero p {
    max-width: 680px;
  }

  .page-hero {
    padding-top: 145px;
    padding-bottom: 80px;
  }

  .page-hero h1 {
    font-size: clamp(2.7rem, 6vw, 4rem);
  }

  .lux-card .card-body {
    padding: 25px 24px 28px;
  }

  .soft-card,
  .glass-card {
    padding: 30px 26px;
  }

  .quote-card {
    padding: 32px 28px;
  }

  .frame-tall-2 {
    height: auto;
    min-height: 360px;
  }

  .map-frame iframe {
    height: 330px;
  }

  .lux-footer {
    padding-top: 75px;
  }

  .foot-bottom {
    margin-top: 50px;
  }
}

/* ---------- Mobile: below 767px ---------- */
@media (max-width: 767.98px) {
  html {
    font-size: 15px;
  }

  .container,
  .container-fluid,
  .containe {
    --bs-gutter-x: 1.25rem;
  }

  .container,
  .containe {
    width: 100%;
    max-width: 100%;
  }

  body {
    line-height: 1.65;
  }

  p {
    text-align: left !important;
  }

  h1 {
    font-size: clamp(2.35rem, 11vw, 3.4rem);
    line-height: 1.02;
  }

  h2 {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  h3 {
    font-size: clamp(1.35rem, 6vw, 1.8rem);
  }

  .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .eyebrow {
    max-width: 100%;
    font-size: .58rem;
    letter-spacing: .28em;
    gap: 9px;
    margin-bottom: 16px;
  }

  .eyebrow::before,
  .eyebrow.center::after {
    width: 24px;
  }

  .lead-lux {
    font-size: .96rem;
  }

  /* Buttons: never force a wider-than-screen control. */
  .btn-lux,
  .btn-lux-outline,
  .btn-lux-ghost {
    max-width: 100%;
    min-height: 48px;
    padding: .85rem 1.25rem;
    font-size: .65rem;
    letter-spacing: .12em;
    justify-content: center;
    text-align: center;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-inner {
    padding: 115px 0 75px;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero p {
    max-width: 100%;
  }

  .hero-inner .d-flex {
    width: 100%;
  }

  .hero-inner .d-flex > a {
    flex: 1 1 100%;
    width: 100%;
  }

  .hero-video {
    object-position: center center;
  }

  .hero::after {
    background: linear-gradient(
      180deg,
      rgba(11, 21, 36, .82) 0%,
      rgba(11, 21, 36, .62) 55%,
      rgba(11, 21, 36, .78) 100%
    );
  }

  .hero-dots {
    bottom: 25px;
  }

  .hero-dots button {
    width: 30px;
  }

  .page-hero {
    padding: 125px 0 65px;
  }

  .page-hero h1 {
    font-size: clamp(2.35rem, 10vw, 3.2rem);
  }

  .page-hero .ph-bg {
    transform: scale(1.02);
  }

  .crumb {
    font-size: .57rem;
    letter-spacing: .14em;
    line-height: 1.7;
  }

  .crumb .sep {
    margin: 0 6px;
  }

  .marquee-track {
    gap: 34px;
  }

  .marquee span {
    font-size: clamp(1.45rem, 8vw, 2.15rem);
  }

  .lux-card {
    border-radius: 22px;
  }

  .lux-card:hover,
  .soft-card:hover,
  .glass-card:hover,
  .quote-card:hover {
    transform: none;
  }

  .lux-card .card-body {
    padding: 23px 20px 25px;
  }

  .lux-card h3 {
    font-size: 1.35rem;
  }

  .soft-card,
  .glass-card {
    padding: 25px 21px;
    border-radius: 22px;
  }

  .quote-card {
    padding: 25px 21px;
    border-radius: 22px;
  }

  .quote-card blockquote {
    font-size: 1.15rem;
  }

  .frame-tall,
  .frame-tall-2,
  .frame-wide,
  .frame-wide-2 {
    height: auto;
  }

  .frame-tall {
    aspect-ratio: 4 / 5;
  }

  .frame-tall-2 {
    aspect-ratio: 4 / 5;
    min-height: 0;
  }

  .frame-wide {
    aspect-ratio: 4 / 3 !important;
  }

  .frame-wide-2 {
    aspect-ratio: 1 / 1 !important;
  }

  .gold-edge::before {
    display: none;
  }

  .split-media {
    width: 100%;
  }

  .stat-float {
    position: relative;
    inset: auto;
    max-width: 100%;
    width: 100%;
    margin-top: -24px;
    z-index: 2;
  }

  .ba-wrap {
    aspect-ratio: 4 / 3;
    border-radius: 20px;
  }

  .ba-handle::after {
    width: 38px;
    height: 38px;
    font-size: .9rem;
  }

  .ba-tag {
    bottom: 10px;
    font-size: .52rem;
    padding: 6px 10px;
  }

  .lux-tabs {
    justify-content: flex-start;
    gap: 7px;
  }

  .lux-tabs button {
    flex: 1 1 auto;
    min-height: 42px;
    padding: .65rem .9rem;
    font-size: .58rem;
    letter-spacing: .1em;
  }

  .lux-accordion .accordion-button {
    padding: 1.1rem 0;
    font-size: .95rem;
  }

  .lux-timeline {
    padding-left: 27px;
  }

  .tl-item {
    padding-bottom: 34px;
  }

  .tl-item::before {
    left: -27px;
  }

  .map-frame {
    border-radius: 20px;
  }

  .map-frame iframe {
    height: 280px;
  }

  .video-orb {
    width: 72px;
    height: 72px;
  }

  .main-logo-footer-w {
    width: 125px !important;
  }

  .lux-footer {
    padding-top: 58px;
  }

  .lux-footer h6 {
    margin-bottom: 17px;
  }

  .foot-bottom {
    margin-top: 38px;
    padding: 20px 0;
    text-align: center;
  }

  .footer-contact li:hover {
    transform: none;
  }

  .wa-float {
    left: 14px;
    bottom: 14px;
    width: 50px;
    height: 50px;
  }

  /* Disable hover-only motion on touch screens. */
  .insta-tile:hover img,
  .lux-card:hover .card-media img,
  .frame-img:hover img {
    transform: none;
  }

  /* Prevent wide form controls. */
  .row > [class*="col-"] {
    min-width: 0;
  }

  textarea.lux-field {
    min-height: 110px;
  }
}

/* ---------- Small phones: 576px and below ---------- */
@media (max-width: 575.98px) {
  .navbar-toggler {
    padding: 6px 9px;
  }

  .main-logo-w {
    width: 92px !important;
  }

  .hero-inner {
    padding-top: 105px;
    padding-bottom: 68px;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 11.5vw, 3rem);
  }

  .hero-inner .mt-5 {
    margin-top: 1.7rem !important;
  }

  .page-hero {
    padding-top: 110px;
    padding-bottom: 55px;
  }

  .page-hero h1 {
    font-size: clamp(2.1rem, 10.5vw, 2.85rem);
  }

  .section {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .rule-gold {
    width: 62px;
  }

  .list-check li {
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: .9rem;
  }

  .icon-orb {
    width: 54px;
    height: 54px;
    margin-bottom: 17px;
  }

  .map-frame iframe {
    height: 240px;
  }

  .footer-contact li {
    padding: 10px 11px;
    gap: 10px;
  }

  .footer-contact i {
    width: 34px;
    height: 34px;
  }
}

/* ---------- Extra-small phones: 400px and below ---------- */
@media (max-width: 400px) {
  html {
    font-size: 14px;
  }

  .container,
  .containe {
    --bs-gutter-x: 1rem;
  }

  .hero-inner {
    padding-top: 0px;
    padding-bottom: 0px;
  }

  .hero h1 {
    font-size: 4.05rem;
  }

  .hero p {
    font-size: .9rem;
  }

  .btn-lux,
  .btn-lux-outline,
  .btn-lux-ghost {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .lux-card .card-body,
  .soft-card,
  .glass-card,
  .quote-card {
    padding-left: 17px;
    padding-right: 17px;
  }

  .map-frame iframe {
    height: 210px;
  }

  .wa-float {
    width: 46px;
    height: 46px;
    left: 10px;
    bottom: 10px;
  }
}

/* ---------- Landscape phones ---------- */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero {
    min-height: 680px;
  }

  .hero-inner {
    padding-top: 100px;
    padding-bottom: 65px;
  }

  .navbar-collapse {
    max-height: calc(100vh - 68px);
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .lux-card,
  .soft-card,
  .glass-card,
  .quote-card,
  .frame-img img,
  .insta-tile img {
    transition: none !important;
  }
}

/* ============================================================
   FULL-WIDTH MOBILE OVERRIDE
   Keeps every page edge-to-edge on real mobile viewports.
   ============================================================ */
@media (max-width: 767.98px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  body > *,
  main,
  footer,
  .topbar,
  .lux-nav,
  .hero,
  .page-hero,
  .section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero,
  .page-hero,
  .section,
  footer {
    margin-left: 0;
    margin-right: 0;
  }

  /* Bootstrap containers provide inner breathing room only;
     the actual page sections remain edge-to-edge. */
  .container,
  .container-fluid,
  .containe {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
  }

  .hero .container,
  .page-hero .container,
  .section > .container,
  .section > .containe,
  footer .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-video,
  .hero-overlay,
  .hero::after {
    width: 100%;
    max-width: none;
  }

  .hero-inner {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .hero-inner .row {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .hero-inner .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
  }

  .lux-nav .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .main-logo-w {
    max-width: 48vw;
  }
}

/* Small phones: retain edge-to-edge layout while tightening only content. */
@media (max-width: 374.98px) {
  .hero .container,
  .page-hero .container,
  .section > .container,
  .section > .containe,
  footer .container,
  .lux-nav .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-inner {
    padding-top: 0px;
    padding-bottom: 45px;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 10.5vw, 2.7rem);
  }

  .lead-lux {
    font-size: .9rem;
  }
}
