/* Responsive luxury layer for the public photography site */

.site-header,
.nav-wrap {
  min-width: 0;
}

.logo-img {
  width: auto;
  max-width: min(190px, 42vw);
  object-fit: contain;
}

.nav-wrap {
  gap: clamp(10px, 2vw, 24px);
}

.nav-cta {
  gap: clamp(6px, 0.8vw, 12px);
}

.theme-toggle {
  width: 38px;
  height: 38px;
  min-width: 38px;
}

.client-login-label {
  max-width: 82px;
  overflow: hidden;
}

.hero-inner {
  min-width: 0;
  width: 100%;
  padding-inline: var(--gutter);
}

.hero-content {
  min-width: 0;
  max-width: min(760px, 100%);
}

.hero-content > * {
  min-width: 0;
}

.hero h1 {
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.hero .lead {
  max-width: 58ch;
  overflow-wrap: anywhere;
}

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

.hero-actions .btn {
  min-width: min(210px, 100%);
  white-space: normal;
  text-align: center;
}

.hero-trust {
  flex-wrap: wrap;
}

.hero-script {
  font-size: clamp(1.35rem, 4.2vw, 2.25rem);
  line-height: 1.15;
}

.eyebrow {
  line-height: 1.5;
}

.section-title,
.page-hero h1 {
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.about-grid,
.contact-grid,
.service-detail {
  min-width: 0;
}

.about-grid > *,
.contact-grid > *,
.service-detail > * {
  min-width: 0;
}

.about-frame {
  max-width: 100%;
  overflow: hidden;
}

.about-frame img {
  width: 100%;
}

.about-badge {
  max-width: calc(100% - 32px);
  overflow-wrap: anywhere;
}

.offer-grid,
.pricing-grid,
.footer-grid {
  min-width: 0;
}

.offer-card,
.price-card,
.footer-about,
.footer-contact li {
  min-width: 0;
  overflow-wrap: anywhere;
}

.price-card ul {
  min-width: 0;
}

.price-card li {
  overflow-wrap: anywhere;
}

.filter-bar {
  max-width: 100%;
}

.filter-bar button,
.filter-bar a {
  min-height: 44px;
}

.masonry-grid.gallery-grid {
  min-width: 0;
}

.gallery-item {
  min-width: 0;
}

.gallery-item img {
  min-height: 100%;
}

.marquee-track {
  min-width: 0;
}

.mobile-nav {
  overscroll-behavior: contain;
}

.mobile-nav-inner {
  min-height: 0;
  overscroll-behavior: contain;
}

.mobile-nav-inner > a,
.mobile-nav-subitem {
  min-height: 52px;
}

.mobile-prefs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mobile-prefs .btn-primary {
  min-height: 52px;
}

.back-to-top,
.wa-float {
  z-index: 1200;
}

.main-content,
main {
  min-width: 0;
}

@media (max-width: 1100px) {
  .client-login-label {
    max-width: 0;
    opacity: 0;
  }

  .client-login-btn {
    padding-inline: 11px;
  }

  .nav-cta {
    margin-left: auto;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 72px;
    --header-h-scrolled: 62px;
    --gutter: 20px;
  }

  body {
    font-size: 15px;
  }

  .site-header {
    height: var(--header-h);
  }

  .site-header.scrolled,
  .site-header.no-hero {
    height: var(--header-h-scrolled);
  }

  .nav-wrap {
    min-height: var(--header-h);
    padding-block: 8px;
    gap: 10px;
  }

  .logo-img {
    height: 42px;
    max-width: 42vw;
  }

  .site-header.scrolled .logo-img {
    height: 38px;
  }

  .nav-cta {
    gap: 6px;
  }

  .lang-toggle {
    min-width: 42px;
    height: 42px;
    justify-content: center;
    padding-inline: 10px;
  }

  .theme-toggle,
  .burger {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
  }

  .client-login-btn {
    width: 42px;
    height: 42px;
    justify-content: center;
    padding-inline: 0;
  }

  .client-login-label {
    display: none;
  }

  .hero {
    min-height: max(620px, 92svh);
  }

  .hero-inner {
    min-height: max(620px, 92svh);
    padding-top: calc(var(--header-h) + 28px);
    padding-bottom: 72px;
    justify-content: center;
  }

  .hero .hero-inner {
    padding-top: calc(var(--header-h) + 30px);
    padding-bottom: 78px;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
  }

  .hero-content::before {
    left: 0;
    width: 2px;
  }

  .hero h1 {
    max-width: 12ch;
    font-size: clamp(2.45rem, 11vw, 4.1rem);
    line-height: 1.04;
  }

  .hero .lead {
    max-width: 44ch;
    font-size: clamp(0.96rem, 3.2vw, 1.08rem);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    margin-top: 28px;
  }

  .hero-actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding-inline: 18px;
    justify-content: center;
  }

  .hero-trust {
    gap: 8px 12px;
    margin-top: 22px;
  }

  .hero-trust .trust-note {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .hero-stats .container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stat {
    min-width: 0;
    padding: 22px 10px;
  }

  .hero-stat b {
    font-size: clamp(1.65rem, 8vw, 2.35rem);
  }

  .hero-stat span {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
  }

  .page-hero {
    min-height: 360px;
    padding-top: calc(var(--header-h) + 44px);
    padding-bottom: 52px;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 9vw, 3.15rem);
    line-height: 1.08;
  }

  .section {
    padding-block: 58px;
  }

  .section-head {
    margin-bottom: 34px;
  }

  .section-title {
    font-size: clamp(1.85rem, 8vw, 2.7rem);
    line-height: 1.12;
  }

  .about-grid {
    gap: 36px;
  }

  .about-frame {
    max-width: min(100%, 560px);
    margin-inline: auto;
    width: 100%;
  }

  .about-frame::after {
    right: -8px;
    bottom: -8px;
    width: 84px;
    height: 84px;
  }

  .about-badge {
    left: 12px;
    bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
  }

  .about-badge b {
    font-size: 1.55rem;
  }

  .about-list {
    gap: 11px;
  }

  .offer-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .offer-card,
  .price-card {
    width: 100%;
    padding-inline: 24px;
  }

  .price-card.featured {
    transform: none;
  }

  .price-card.featured:hover {
    transform: translateY(-5px);
  }

  .prewedding-banner {
    align-items: stretch;
  }

  .prewedding-cta {
    align-items: stretch;
    width: 100%;
  }

  .prewedding-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .filter-bar {
    max-width: 100%;
    margin-inline: -20px;
    padding-inline: 20px;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    scrollbar-width: thin;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .filter-bar button,
  .filter-bar a {
    flex: 0 0 auto;
  }

  .masonry-grid.gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 132px;
    gap: 9px;
  }

  .gallery-item.large,
  .gallery-item.wide {
    grid-column: span 2;
  }

  .gallery-item.tall,
  .gallery-item.normal {
    grid-column: span 1;
    grid-row: span 2;
  }

  .footer-grid {
    gap: 34px;
  }

  .footer-about,
  .footer-contact li {
    min-width: 0;
  }

  .mobile-nav {
    width: min(390px, 92vw);
  }

  .mobile-nav-inner {
    padding-inline: 22px;
  }

  .mobile-prefs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-inline: 20px;
  }

  .mobile-prefs .btn {
    min-width: 0;
    padding-inline: 8px;
    white-space: normal;
    text-align: center;
  }

  .wa-float {
    right: 16px;
    bottom: 28px;
    width: 50px;
    height: 50px;
  }

  .back-to-top {
    right: 16px;
    bottom: 88px;
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 480px) {
  :root {
    --gutter: 18px;
  }

  .nav-wrap {
    gap: 7px;
  }

  .logo-img {
    height: 38px;
    max-width: 40vw;
  }

  .lang-toggle .lang-toggle-label {
    display: none;
  }

  .client-login-btn {
    display: inline-flex;
  }

  .hero {
    min-height: max(600px, 94svh);
  }

  .hero-inner,
  .hero .hero-inner {
    min-height: max(600px, 94svh);
    padding-bottom: 68px;
  }

  .hero h1 {
    max-width: 11ch;
    font-size: clamp(2.35rem, 12vw, 3.35rem);
  }

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

  .hero-stats .container {
    grid-template-columns: 1fr;
  }

  .hero-stat {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 17px 4px;
    border-bottom: 1px solid var(--border-soft) !important;
    text-align: left;
  }

  .hero-stat:last-child {
    border-bottom: 0 !important;
  }

  .hero-stat + .hero-stat::before {
    display: none !important;
  }

  .hero-stat span {
    max-width: 60%;
    text-align: right;
  }

  .page-hero {
    min-height: 330px;
    padding-top: calc(var(--header-h) + 38px);
    padding-bottom: 44px;
  }

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

  .section {
    padding-block: 50px;
  }

  .offer-card,
  .price-card {
    padding-inline: 20px;
  }

  .price-amt {
    font-size: clamp(2rem, 12vw, 2.7rem);
  }

  .masonry-grid.gallery-grid {
    grid-auto-rows: 118px;
    gap: 7px;
  }

  .gallery-item.tall,
  .gallery-item.normal {
    grid-row: span 2;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    text-align: left;
  }
}

@media (max-width: 400px) {
  .masonry-grid.gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
  }

  .gallery-item.large,
  .gallery-item.wide,
  .gallery-item.tall,
  .gallery-item.normal {
    grid-column: span 1;
    grid-row: span 1;
  }

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

  .hero-actions .btn {
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
