:root {
  --blue-50: #f5fdff;
  --blue-100: #e5f9fc;
  --blue-200: #d5f3f8;
  --blue-300: #b9e8f0;
  --blue-700: #207e91;
  --blue-900: #174c58;
  --gold: #c7a476;
  --ink: #17343b;
  --muted: #698087;
  --line: rgba(23, 76, 88, .11);
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 0 0, rgba(185,232,240,.35), transparent 28rem), var(--blue-50);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
button, input, select { font: inherit; }
a { color: inherit; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px clamp(18px,5vw,76px);
  background: rgba(245,253,255,.82);
  border-bottom: 1px solid rgba(23,76,88,.08);
  backdrop-filter: blur(22px) saturate(150%);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo {
  width: 48px; height: 48px; border-radius: 15px; object-fit: cover;
  box-shadow: 0 8px 22px rgba(32,126,145,.14);
}
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong {
  color: var(--gold); font: italic 21px Georgia,serif; letter-spacing: -.3px;
}
.brand-copy small {
  color: var(--muted); font-size: 9px; font-weight: 800;
  letter-spacing: 1.8px; text-transform: uppercase;
}
.wa-top, .wa-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 13px 20px; color: var(--white); background: var(--blue-900);
  border-radius: 999px; font-size: 14px; font-weight: 750; text-decoration: none;
  transition: .18s ease;
}
.wa-top:hover, .wa-button:hover {
  background: var(--blue-700); box-shadow: 0 12px 30px rgba(23,76,88,.2);
  transform: translateY(-2px);
}

.hero {
  display: grid; grid-template-columns: minmax(0,1.05fr) minmax(300px,.75fr);
  align-items: center; gap: clamp(32px,6vw,100px); min-height: 620px;
  padding: clamp(65px,9vw,120px) clamp(20px,7vw,110px); overflow: hidden;
}
.hero-copy { position: relative; z-index: 2; max-width: 760px; }
.eyebrow {
  margin: 0 0 16px; color: var(--blue-700); font-size: 12px; font-weight: 800;
  letter-spacing: 2.2px; text-transform: uppercase;
}
.hero h1 {
  margin: 0; font: 500 clamp(48px,6.4vw,92px)/.98 Georgia,serif;
  letter-spacing: -4px;
}
.hero h1 span { color: var(--gold); font-style: italic; }
.hero-description {
  max-width: 600px; margin: 26px 0 0; color: var(--muted);
  font-size: clamp(16px,1.35vw,20px); line-height: 1.75;
}
.search-box {
  display: flex; align-items: center; gap: 14px; max-width: 620px;
  margin-top: 38px; padding: 8px 18px;
  background: rgba(255,255,255,.88); border: 1px solid rgba(32,126,145,.12);
  border-radius: 22px; box-shadow: 0 20px 55px rgba(32,126,145,.1);
  backdrop-filter: blur(14px);
}
.search-box svg {
  width: 21px; flex: 0 0 auto; fill: none; stroke: var(--blue-700);
  stroke-linecap: round; stroke-width: 1.8;
}
.search-box input {
  width: 100%; height: 50px; color: var(--ink); background: transparent;
  border: 0; outline: 0; font-size: 16px;
}
.search-box input::placeholder { color: #8ca0a5; }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art img {
  position: relative; z-index: 1; width: min(100%,520px); aspect-ratio: 1;
  border: 10px solid rgba(255,255,255,.68);
  border-radius: 38% 62% 46% 54% / 52% 38% 62% 48%;
  object-fit: cover; box-shadow: 0 24px 70px rgba(24,95,109,.14);
  animation: float 7s ease-in-out infinite;
}
.hero-glow {
  position: absolute; width: 110%; aspect-ratio: 1; border-radius: 50%;
  background: var(--blue-200); opacity: .74;
}
@keyframes float {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-13px) rotate(1deg); }
}

.container { max-width: 1540px; margin: auto; padding: 80px clamp(16px,4vw,64px) 110px; }
.gallery-heading {
  display: flex; align-items: end; justify-content: space-between;
  gap: 24px; margin-bottom: 28px;
}
.gallery-heading h2 {
  margin: 0; font: 500 clamp(34px,4vw,56px) Georgia,serif; letter-spacing: -1.8px;
}
.toolbar { display: flex; align-items: center; gap: 22px; }
.toolbar > p { margin: 0; color: var(--muted); font-size: 14px; white-space: nowrap; }
.sort-control {
  display: flex; align-items: center; gap: 9px; padding: 7px 8px 7px 14px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  color: var(--muted); font-size: 12px; font-weight: 700;
}
.sort-control select {
  padding: 8px 10px; color: var(--ink); background: var(--blue-100);
  border: 0; border-radius: 9px; outline: 0; font-weight: 700;
}
.category-filter {
  display: flex; gap: 10px; margin: 0 0 36px; padding: 4px 0 8px;
  overflow-x: auto; scrollbar-width: none;
}
.category-filter::-webkit-scrollbar { display: none; }
.category-filter button {
  flex: 0 0 auto; padding: 11px 17px; color: var(--muted);
  background: rgba(255,255,255,.72); border: 1px solid var(--line);
  border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 700;
  transition: .18s ease;
}
.category-filter button:hover { color: var(--blue-700); border-color: var(--blue-300); }
.category-filter button.active {
  color: var(--white); background: var(--blue-900); border-color: var(--blue-900);
  box-shadow: 0 9px 20px rgba(23,76,88,.16);
}

.gallery-grid { column-count: 4; column-gap: 20px; }
.card {
  position: relative; display: inline-block; width: 100%; margin: 0 0 20px;
  background: var(--white); border-radius: 22px; overflow: hidden;
  box-shadow: 0 8px 28px rgba(23,76,88,.07); cursor: pointer;
  break-inside: avoid; transition: .22s ease;
}
.card:hover {
  box-shadow: 0 20px 45px rgba(23,76,88,.15); transform: translateY(-5px);
}
.card:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 3px; }
.card-image-wrap { position: relative; overflow: hidden; background: var(--blue-100); }
.card img {
  display: block; width: 100%; height: auto; min-height: 160px; object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.75,.25,1);
}
.card:hover img { transform: scale(1.035); }
.card-code {
  position: absolute; top: 12px; left: 12px; padding: 7px 10px;
  color: white; background: rgba(23,52,59,.64); border-radius: 999px;
  backdrop-filter: blur(12px); font-size: 10px; font-weight: 800; letter-spacing: .8px;
}
.card-body { padding: 16px 17px 18px; }
.card-title { margin: 0 0 10px; font: 600 19px/1.3 Georgia,serif; }
.badge {
  color: var(--blue-700); font-size: 11px; font-weight: 800;
  letter-spacing: .5px; text-transform: uppercase;
}
.empty-state {
  padding: 70px 24px; color: var(--muted); background: white;
  border: 1px dashed var(--blue-300); border-radius: 24px; text-align: center;
}
.load-more {
  display: block; margin: 40px auto 0; padding: 14px 28px;
  color: var(--blue-900); background: transparent; border: 1px solid var(--blue-300);
  border-radius: 999px; cursor: pointer; font-weight: 800; transition: .18s ease;
}
.load-more:hover { color: white; background: var(--blue-900); border-color: var(--blue-900); }

.modal {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  padding: 24px; background: rgba(9,35,42,.72); backdrop-filter: blur(20px);
}
.hidden { display: none; }
.modal-content {
  position: relative; display: grid; grid-template-columns: 1.2fr .8fr;
  width: min(1080px,100%); max-height: 90vh; background: white;
  border-radius: 30px; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,.3);
  animation: modal-in .22s ease-out;
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(.97) translateY(8px); }
  to { opacity: 1; transform: none; }
}
.modal-image-wrap { display: grid; place-items: center; min-height: 560px; background: var(--blue-100); }
.modal-image-wrap img { width: 100%; height: 100%; max-height: 90vh; object-fit: cover; }
.modal-info {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(30px,5vw,62px);
}
.modal-code {
  margin: 0 0 12px; color: var(--blue-700); font-size: 11px;
  font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
}
.modal-info h3 {
  margin: 0 0 20px; font: 500 clamp(32px,4vw,48px)/1.04 Georgia,serif;
  letter-spacing: -1.4px;
}
.modal-info p:not(.modal-code) { margin: 0 0 12px; color: var(--muted); line-height: 1.65; }
.modal-info .wa-button { align-self: flex-start; margin-top: 22px; }
.modal-close {
  position: absolute; top: 15px; right: 15px; z-index: 3;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  color: var(--ink); background: rgba(255,255,255,.85); border: 1px solid var(--line);
  border-radius: 50%; box-shadow: 0 8px 22px rgba(23,76,88,.12);
  backdrop-filter: blur(10px); cursor: pointer; font-size: 27px;
}
.wa-floating {
  position: fixed; right: 24px; bottom: 24px; z-index: 30;
  display: flex; align-items: center; gap: 9px; padding: 10px 16px 10px 10px;
  color: white; background: var(--blue-900); border-radius: 999px;
  box-shadow: 0 16px 40px rgba(23,76,88,.28); text-decoration: none;
  font-size: 13px; font-weight: 800;
}
.wa-icon {
  display: grid; place-items: center; width: 30px; height: 30px;
  color: var(--blue-900); background: var(--blue-200); border-radius: 50%;
}
footer {
  display: grid; justify-items: center; padding: 46px 20px 55px;
  color: var(--muted); background: var(--blue-100);
  border-top: 1px solid var(--line); text-align: center;
}
footer img { width: 70px; height: 70px; border-radius: 20px; object-fit: cover; }
footer p { margin: 12px 0 0; font: italic 16px Georgia,serif; }

@media (max-width: 1100px) {
  .hero { min-height: 550px; grid-template-columns: 1.2fr .8fr; }
  .gallery-grid { column-count: 3; }
}
@media (max-width: 780px) {
  .topbar { padding: 11px 16px; }
  .brand-logo { width: 43px; height: 43px; border-radius: 13px; }
  .brand-copy small { display: none; }
  .wa-top { padding: 11px 15px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 65px 20px 75px; }
  .hero-copy { text-align: center; }
  .hero h1 { font-size: clamp(43px,12.5vw,68px); letter-spacing: -2.5px; }
  .hero-description, .search-box { margin-inline: auto; }
  .hero-art { width: min(72vw,390px); margin: 10px auto 0; }
  .gallery-heading { align-items: start; flex-direction: column; }
  .toolbar { width: 100%; justify-content: space-between; }
  .gallery-grid { column-count: 2; column-gap: 14px; }
  .card { margin-bottom: 14px; border-radius: 18px; }
  .modal-content { display: block; max-width: 560px; max-height: 92vh; overflow-y: auto; }
  .modal-image-wrap { min-height: 0; aspect-ratio: 1; }
}
@media (max-width: 480px) {
  .brand-copy strong { font-size: 18px; }
  .hero-art { width: min(78vw,340px); }
  .container { padding-top: 60px; }
  .toolbar { align-items: start; flex-direction: column; gap: 12px; }
  .sort-control { width: 100%; justify-content: space-between; }
  .gallery-grid { column-gap: 10px; }
  .card { margin-bottom: 10px; border-radius: 15px; }
  .card-code { top: 8px; left: 8px; padding: 5px 7px; font-size: 8px; }
  .card-body { padding: 11px; }
  .card-title { margin-bottom: 7px; font-size: 15px; }
  .badge { font-size: 9px; }
  .wa-floating { right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after {
    scroll-behavior: auto !important; animation-duration: .01ms !important;
    animation-iteration-count: 1 !important; transition-duration: .01ms !important;
  }
}
