/* Responsive corrections for the original inline-styled design. Desktop is unchanged. */

html, body { max-width: 100%; overflow-x: clip; }
img, svg, video { max-width: 100%; }
.nav-row { display: contents; }
.submenu-toggle { display: none; }

@media (max-width: 1100px) {
  header { padding: 1.35rem 5%; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(82vw, 360px);
    height: 100svh;
    padding: 7rem 2rem 3rem;
    overflow-y: auto;
    background-color: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.5rem;
    transition: var(--transition-smooth);
    z-index: 1000;
  }
  .nav-links.active { right: 0; }
  .nav-item { width: 100%; }
  .nav-link { display: block; width: 100%; }
  .nav-row { display: flex; align-items: center; justify-content: space-between; width: 100%; }
  .nav-row .nav-link { flex: 1 1 auto; }
  .submenu-toggle {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--color-gold);
    cursor: pointer;
    font-size: 1.35rem;
  }
  .nav-item-tailoring .dropdown-menu { display: none; }
  .nav-item-tailoring.submenu-open .dropdown-menu {
    position: static;
    display: flex;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: .9rem 0 .4rem 1rem;
    margin: 0;
    gap: .75rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
  }
  .nav-item-tailoring.submenu-open .dropdown-link { padding: .25rem 0; }
  .mobile-toggle { display: flex; padding: .5rem; }
  header:not(.scrolled) .mobile-toggle span { background-color: #fff; }
  .mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .mobile-toggle.active span:nth-child(2) { opacity: 0; }
  .mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  #process [style*="grid-template-columns: repeat(3"],
  #pricing [style*="grid-template-columns: repeat(3"],
  #style-guide [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 2rem !important;
  }
}

@media (max-width: 768px) {
  header, header.scrolled { padding: 1rem 5% !important; }
  .logo { font-size: clamp(1.05rem, 5vw, 1.35rem); letter-spacing: .11em; max-width: calc(100vw - 105px); }
  .logo span { font-size: .48rem; letter-spacing: .25em; }
  .header-actions { gap: .35rem; }
  .header-actions .btn-gold { display: none !important; }
  .mobile-toggle { width: 42px; height: 42px; align-items: center; justify-content: center; }
  .mobile-toggle span { flex: 0 0 auto; }

  .section { padding: 5rem 7% !important; }
  .section-title { font-size: clamp(2.2rem, 11vw, 3.2rem) !important; line-height: 1.05 !important; }

  #home {
    height: auto !important;
    min-height: 100svh;
    padding: 6.5rem 0 3rem !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
  }
  #home .hero-content { width: 100%; padding: 2.5rem 7% 1.5rem !important; }
  #home .hero-title {
    max-width: 100%;
    font-size: clamp(3rem, 15vw, 4.25rem) !important;
    line-height: .98 !important;
    overflow-wrap: anywhere;
  }
  #home .hero-description { max-width: 100%; margin-bottom: 2rem; }
  #home .hero-buttons { width: 100%; flex-direction: column; gap: .8rem; }
  #home .hero-buttons > * { width: 100%; text-align: center; }
  #home .floating-quote-box {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    width: 86% !important;
    max-width: none !important;
    margin: 1rem 7% 0 !important;
  }

  .legacy-page-root section [style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  #personalized-fashion > div,
  #quality-trust > div,
  #showcase-grid > div,
  #booking-block > div,
  #testimonials > div,
  #faq > div {
    gap: 3rem !important;
  }
  #quality-trust [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  #personalized-fashion [style*="left: -20px"] { left: 0 !important; }
  #pricing > div > div { min-height: auto !important; padding: 2.2rem 1.5rem !important; transform: none !important; }
  #booking-block img { height: 340px !important; }

  .configurator-layout { grid-template-columns: minmax(0, 1fr) !important; gap: 2.5rem !important; }
  .configurator-preview-pane { height: 440px; padding: 1rem; }
  .configurator-controls-pane { min-width: 0; }
  .config-tabs { overflow-x: auto; justify-content: flex-start; }
  .config-tab { flex: 0 0 auto; }

  .inner-hero {
    width: 100%;
    min-height: 78svh;
    padding: 7rem 7% 4rem !important;
    overflow: hidden;
  }
  .inner-hero-content { width: 100%; min-width: 0; }
  .inner-hero h1 {
    color: #fff;
    max-width: 100%;
    font-size: clamp(2.65rem, 8vw, 3.5rem) !important;
    line-height: 1 !important;
    overflow-wrap: anywhere;
  }
  .inner-hero p { width: 100%; max-width: 100%; overflow-wrap: anywhere; }
  .editorial-image img { height: 360px !important; }

  .booking-modal { width: 94%; max-height: calc(100svh - 1rem); overflow: hidden; }
  .booking-header { padding: 1.25rem 1.25rem .85rem; }
  .booking-header h3 { padding-inline: 1.5rem; font-size: 1.55rem; }
  .booking-stepper-progress { flex-wrap: wrap; gap: .6rem 1rem; }
  .booking-body { padding: 1.15rem 1.25rem !important; }
  .booking-footer { padding: .85rem 1.25rem 1rem !important; }
  .booking-footer .btn-gold { padding: .75rem 1rem; }

  .footer-bottom { flex-direction: column; gap: .8rem; }
}

@media (max-width: 420px) {
  #home .hero-title { font-size: clamp(2.75rem, 14vw, 3.65rem) !important; }
  #home .hero-atelier-status { letter-spacing: .18em; }
  #quality-trust [style*="grid-template-columns: repeat(4"] { grid-template-columns: 1fr !important; }
  .configurator-preview-pane { height: 380px; }
  .service-card { padding: 1rem; }
  .booking-stepper-progress { display: grid; grid-template-columns: repeat(2, auto); }
  .booking-footer button { min-width: 0; }
}

@media (min-width: 540px) and (max-width: 768px) {
  .booking-modal .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
