/* =========================================================
   Ashi's Kitchen — Responsive Layer
   Breakpoints: 1200 / 992 / 768 / 480
   Preserves branding & design; layout only
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
}

img,
video,
iframe,
svg {
  max-width: 100%;
  height: auto;
}

.g-carousel__feature img,
.hero__photo,
.about__media img,
.card__media img,
.lightbox__img {
  max-width: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wrap {
  width: min(100% - 2.5rem, 1280px);
  margin-inline: auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__row {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

/* Force mobile drawer closed unless toggled — legacy cleanup */
@media (max-width: 992px) and (min-width: 769px) {
  .nav-btn {
    display: none !important;
  }
}

/* Fluid type (desktop baseline preserved via clamp) */
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
}
.hero__script {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}
.hero__desc {
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
}
.section-head h2,
.gallery__head h2,
.models__intro h2,
.process .section-head h2,
.faq .section-head h2,
.contact .section-head h2,
.testimonials .section-head h2 {
  font-size: clamp(1.45rem, 2.8vw, 2.35rem);
}
.about__heading {
  font-size: clamp(1.7rem, 2.8vw, 2.6rem) !important;
}
.card h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem) !important;
}
.stat strong {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.features,
.process,
.gallery,
.faq,
.contact,
.testimonials,
.models {
  padding-block: clamp(3rem, 6vw, 6rem);
}

.btn,
.btn-reg,
.about__cta,
.card__cta {
  max-width: 100%;
}

/* ---------- ≤ 1200px ---------- */
@media (max-width: 1200px) {
  .wrap {
    width: min(100% - 2rem, 1120px);
  }

  .nav {
    gap: 1rem;
  }

  .nav a {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
  }

  .models__grid {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 1rem;
  }

  .models__cards {
    gap: 1rem;
  }

  .card--featured {
    transform: none;
    min-height: auto;
  }

  .card--featured:hover,
  .card--featured.is-tilting {
    transform: translateY(-10px) !important;
  }

  .card {
    min-height: 0;
  }

  .features__row {
    gap: 0.75rem;
  }

  .footer__grid {
    gap: 1.5rem;
  }

  .g-carousel {
    max-width: 100%;
  }
}

/* ---------- ≤ 992px (tablet layout — desktop nav stays) ---------- */
@media (max-width: 992px) {
  .wrap {
    width: min(100% - 1.75rem, 960px);
  }

  .brand__text em {
    display: none;
  }

  .btn-reg {
    margin-left: 0.5rem;
    margin-right: 0;
    padding: 0.5rem 0.85rem;
    font-size: 0.68rem;
    flex-shrink: 0;
  }

  .hero {
    min-height: clamp(520px, 70vh, 680px);
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 4rem 0 3rem;
  }

  .hero__float-stats {
    max-width: 440px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__btns {
    flex-wrap: wrap;
  }

  .features__row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about__split {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }

  .about__media {
    min-height: 340px !important;
    height: 340px !important;
  }

  .about__copy {
    min-height: 0 !important;
    height: auto !important;
    padding: 2.25rem 1.5rem !important;
  }

  .models__grid {
    grid-template-columns: 1fr;
  }

  .models__intro {
    text-align: center;
    align-items: center;
    padding: 0 0 1rem;
  }

  .models__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }

  .models__cards .card:last-child {
    grid-column: 1 / -1;
    max-width: 420px;
    margin-inline: auto;
    width: 100%;
  }

  .opp__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats__row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .process__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process__line {
    display: none !important;
  }

  .g-carousel__stage {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
  }

  .g-carousel__feature {
    width: 100%;
    order: -1;
    aspect-ratio: 16 / 10;
  }

  .g-carousel__thumbs {
    grid-auto-columns: minmax(88px, 1fr);
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .register__grid {
    grid-template-columns: 1fr;
  }

  .register__side,
  .register__form,
  .page-register .form {
    height: auto;
  }

  .t-slider {
    max-width: 100%;
  }
}

/* ---------- ≤ 768px ---------- */
@media (max-width: 768px) {
  .wrap {
    width: min(100% - 1.5rem, 720px);
  }

  .header__row {
    min-height: 70px;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .brand__text strong {
    font-size: 0.8rem;
  }

  .brand__text small {
    font-size: 0.6rem;
  }

  .hero {
    min-height: auto;
  }

  .hero__grid {
    padding: 3.5rem 0 2.5rem;
  }

  .hero__copy {
    max-width: 100%;
  }

  .hero__btns .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .features__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature h3 {
    font-size: 0.9rem;
  }

  .about__media {
    min-height: 280px !important;
    height: 280px !important;
  }

  .models__cards {
    grid-template-columns: 1fr;
  }

  .models__cards .card:last-child {
    max-width: none;
  }

  .card {
    min-height: 0 !important;
  }

  .card__media {
    height: 160px !important;
  }

  .card__cta {
    width: 100%;
  }

  .opp__list {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }

  .process__list {
    grid-template-columns: 1fr;
  }

  .g-carousel__nav {
    padding: 0.55rem 0.85rem;
    font-size: 0.8rem;
  }

  .g-carousel__thumbs {
    grid-auto-columns: minmax(78px, 100px);
  }

  .t-slide {
    padding: 1.5rem 1.15rem;
    min-height: 0;
  }

  .t-slider__track {
    min-height: 0;
  }

  .contact__cards {
    display: grid;
    gap: 0.85rem;
  }

  .form,
  .form--glass {
    padding: 1.25rem !important;
  }

  .form .btn,
  .form button {
    width: 100%;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer__form {
    flex-direction: column;
  }

  .footer__form .btn {
    width: 100%;
  }

  .footer__bar-inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .footer__bar p {
    text-align: center;
  }

  .section-head,
  .gallery__head {
    margin-bottom: 1.75rem;
  }
}

/* ---------- ≤ 480px ---------- */
@media (max-width: 480px) {
  .wrap {
    width: calc(100% - 1.25rem);
  }

  .header__row {
    min-height: 64px;
    gap: 0.5rem;
  }

  .brand {
    gap: 0.45rem;
    min-width: 0;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand__text strong {
    font-size: 0.72rem;
  }

  .brand__text small {
    display: none;
  }

  .btn-reg {
    padding: 0.45rem 0.55rem;
    font-size: 0.58rem;
    letter-spacing: 0.03em;
  }

  .nav-btn {
    width: 40px;
    height: 40px;
    padding: 7px;
  }

  .nav {
    top: calc(100% + 0.25rem);
    border-radius: 14px;
  }

  .hero__grid {
    padding: 3rem 0 2rem;
    gap: 1.25rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 2.45rem);
  }

  .hero__script {
    font-size: clamp(1.35rem, 6vw, 1.8rem);
  }

  .hero__float-stats {
    width: 100%;
    max-width: none;
    gap: 0.55rem;
  }

  .hero-stat {
    padding: 0.85rem 0.55rem;
    border-radius: 14px;
  }

  .hero-stat strong {
    font-size: 1.25rem;
  }

  .hero-stat span {
    font-size: 0.68rem;
  }

  .features__row {
    grid-template-columns: 1fr;
    padding: 1rem 0.75rem;
  }

  .feature {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.85rem;
    align-items: center;
    text-align: left;
    padding: 0.65rem;
  }

  .feature__icon {
    grid-row: 1 / span 2;
  }

  .opp__list {
    grid-template-columns: 1fr;
  }

  .stats__row {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.65rem;
  }

  .stat {
    padding: 1rem 0.65rem;
  }

  .about__media {
    min-height: 220px !important;
    height: 220px !important;
  }

  .about__badge {
    right: 0.75rem;
    bottom: 0.75rem;
    min-width: 96px;
    padding: 0.7rem 0.85rem;
  }

  .about__copy {
    padding: 1.75rem 1.1rem !important;
  }

  .g-carousel__feature {
    aspect-ratio: 4 / 3;
    border-radius: 18px;
  }

  .g-carousel__nav span {
    font-size: 1.1rem;
  }

  .g-carousel__thumbs {
    grid-auto-columns: minmax(68px, 84px);
    gap: 0.45rem;
  }

  .faq details summary {
    font-size: 0.92rem;
    padding: 1rem;
  }

  .faq__body > p {
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
  }

  .contact__map iframe {
    height: 220px;
  }

  .to-top {
    right: 0.75rem;
    bottom: 0.75rem;
    width: 42px;
    height: 42px;
  }

  .register__hero {
    padding: 3rem 0 1.75rem !important;
  }

  .register__hero h1 {
    font-size: clamp(1.6rem, 8vw, 2rem);
  }
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}
