:root {
  color-scheme: light;
  --blue: #0f4c81;
  --red: #e53935;
  --cyan: #00aeef;
  --ink: #1a1a1a;
  --bg: #f7f9fc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
}

img,
iframe {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(15, 76, 129, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 76, 129, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
}

.industrial-band {
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(15, 76, 129, 0.06), rgba(0, 174, 239, 0.08)),
    repeating-linear-gradient(135deg, rgba(15, 76, 129, 0.055) 0 1px, transparent 1px 16px);
}

.nav-glow {
  box-shadow: 0 12px 38px rgba(15, 76, 129, 0.09);
}

.mobile-menu-toggle {
  display: none;
}

.brand-logo-premium {
  width: auto;
  height: 70px;
  max-width: 160px;
  object-fit: contain;
}

.footer-logo-premium {
  width: auto;
  height: 116px;
  max-width: 170px;
  object-fit: contain;
}

.headline-balance {
  text-wrap: balance;
}

.product-stage {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 174, 239, 0.18), transparent 28%),
    linear-gradient(145deg, #ffffff 0%, #eef6fb 55%, #ffffff 100%);
}

.product-stage::before {
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(15, 76, 129, 0.12);
  content: "";
}

.product-stage::after {
  position: absolute;
  right: -10%;
  bottom: -18%;
  width: 56%;
  height: 56%;
  border-radius: 999px;
  background: rgba(0, 174, 239, 0.1);
  content: "";
  filter: blur(2px);
}

.product-shadow {
  filter: drop-shadow(0 26px 28px rgba(15, 76, 129, 0.18));
}

.photo-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #dfe8ef;
}

.photo-panel::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(180deg, transparent 42%, rgba(15, 76, 129, 0.72));
}

.photo-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms ease;
}

.photo-panel:hover img {
  transform: scale(1.035);
}

.water-line {
  position: relative;
}

.water-line::after {
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 78px;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--red), var(--cyan));
}

.section-kicker {
  letter-spacing: 0.12em;
}

.product-card img,
.gallery-tile img {
  transition: transform 420ms ease;
}

.product-card:hover img,
.gallery-tile:hover img {
  transform: scale(1.045);
}

.featured-product-card {
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.featured-product-card:hover,
.featured-product-card:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.featured-details p {
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.55;
}

.featured-details strong {
  color: var(--blue);
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 112px;
  gap: 18px;
}

.masonry-grid > *:nth-child(1) {
  grid-column: span 5;
  grid-row: span 3;
}

.masonry-grid > *:nth-child(2) {
  grid-column: span 3;
  grid-row: span 2;
}

.masonry-grid > *:nth-child(3) {
  grid-column: span 4;
  grid-row: span 3;
}

.masonry-grid > *:nth-child(4) {
  grid-column: span 4;
  grid-row: span 2;
}

.masonry-grid > *:nth-child(5) {
  grid-column: span 4;
  grid-row: span 2;
}

.masonry-grid > *:nth-child(6) {
  grid-column: span 4;
  grid-row: span 2;
}

.gallery-tile {
  overflow: hidden;
  background: #ffffff;
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-tile.photo img {
  object-fit: cover;
}

.input-field {
  width: 100%;
  border: 1px solid rgba(15, 76, 129, 0.16);
  background: #ffffff;
  padding: 15px 16px;
  color: var(--ink);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.input-field:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.1);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 255px;
  border: 0;
  filter: saturate(0.92) contrast(1.02);
}

.mobile-announcement-break {
  display: none;
}

@media (max-width: 1024px) {
  .brand-logo-premium {
    height: 58px;
    max-width: 138px;
  }

  .masonry-grid {
    grid-auto-rows: 104px;
  }
}

@media (max-width: 760px) {
  body {
    width: 100%;
    overflow-x: hidden;
  }

  #root,
  main,
  section,
  header,
  footer {
    max-width: 100vw;
    overflow-x: hidden;
  }

  #root > .bg-saloni-blue {
    padding-inline: 10px;
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    line-height: 1.45;
    white-space: normal;
  }

  .mobile-announcement-break {
    display: block;
  }

  .brand-logo-premium {
    height: 64px;
    max-width: 112px;
  }

  .premium-header-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 14px;
    width: 100%;
    min-height: 92px;
    padding-block: 14px;
  }

  header.nav-glow {
    position: relative;
  }

  .premium-header-inner > a:first-child {
    display: inline-flex;
    justify-self: start;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    min-width: 76px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    color: var(--blue);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(15, 76, 129, 0.18);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 76, 129, 0.08);
    justify-self: end;
  }

  header.nav-glow nav {
    display: grid !important;
    grid-column: 1 / -1;
    width: 100%;
    max-height: 0;
    grid-template-columns: 1fr;
    gap: 0;
    overflow: hidden;
    padding: 0;
    border: 1px solid transparent;
    font-size: 0.82rem;
    line-height: 1.2;
    text-align: left;
    opacity: 0;
    pointer-events: none;
    margin-top: 12px;
    transition:
      max-height 220ms ease,
      opacity 180ms ease,
      padding 180ms ease,
      border-color 180ms ease;
  }

  header.mobile-nav-open nav {
    max-height: 270px;
    padding: 8px 14px;
    border-color: rgba(15, 76, 129, 0.14);
    opacity: 1;
    pointer-events: auto;
  }

  header.nav-glow nav a {
    padding: 12px 2px;
    border-bottom: 1px solid rgba(15, 76, 129, 0.08);
  }

  header.nav-glow .header-cta {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 12px;
    min-height: 40px;
    padding-inline: 14px;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
  }

  header.mobile-nav-open .header-cta {
    display: inline-flex;
  }

  #home > div.mx-auto {
    min-height: auto;
    gap: 34px;
    padding-top: 44px;
    padding-bottom: 58px;
  }

  #home h1 {
    max-width: 350px;
    font-size: 1.78rem;
    line-height: 1.07;
    text-wrap: auto;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .headline-balance {
    text-wrap: auto;
  }

  #home p {
    max-width: 350px;
    font-size: 1rem;
    line-height: 1.7;
  }

  #home .mt-8 {
    gap: 8px;
  }

  #home .mt-9 {
    align-items: stretch;
  }

  #home .mt-9 a {
    width: 100%;
  }

  #home .product-stage {
    min-height: 320px;
    padding: 22px 14px;
  }

  #home .product-stage img {
    max-width: 100%;
  }

  .product-stage::before {
    inset: 14px;
  }

  .product-stage::after {
    width: 76%;
    height: 46%;
  }

  .product-stage {
    min-height: 340px !important;
  }

  .product-stage .absolute {
    position: static;
    display: inline-flex;
    width: fit-content;
    margin: 0 0 10px;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .product-stage .relative {
    align-content: center;
    justify-items: start;
  }

  .product-stage .relative img {
    justify-self: center;
  }

  #featured-products .product-stage {
    min-height: 320px !important;
  }

  #featured-products .product-stage img {
    max-height: 270px;
  }

  .featured-details {
    grid-template-columns: 1fr !important;
  }

  .featured-product-card h3 {
    font-size: 1.28rem;
    line-height: 1.2;
  }

  .photo-panel {
    min-height: 330px !important;
  }

  .photo-panel .absolute {
    padding: 22px;
  }

  .photo-panel h3 {
    font-size: 1.45rem;
    line-height: 1.14;
  }

  section {
    scroll-margin-top: 150px;
  }

  section.py-24,
  section.lg\:py-32,
  section.lg\:py-28 {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  h2 {
    font-size: 2rem !important;
    line-height: 1.12 !important;
  }

  .water-line::after {
    bottom: -9px;
  }

  .grid.grid-cols-2 {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: auto !important;
  }

  .product-card > div:first-child {
    height: 210px;
  }

  .product-card img {
    max-height: 176px;
  }

  .footer-logo-premium {
    height: 102px;
  }

  .masonry-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .masonry-grid > * {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}
