/* One-page home sections, new pages, wishlist, lightbox, floating buttons.
   Loaded last on every public page. */

html { scroll-behavior: smooth; }
section[id], main[id] { scroll-margin-top: 84px; }
#hero, #top { scroll-margin-top: 0; }
html.reduce-motion { scroll-behavior: auto; }

/* ---------- Product grids: always fill the row ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 56px;
}
@media (max-width: 1040px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px)  { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 340px)  { .product-grid { grid-template-columns: 1fr; } }
.product-card { position: relative; display: block; }
.product-link { display: block; color: inherit; }
.product-card .product-image img { transition: transform 0.6s ease; }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-name { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.2; margin-bottom: 6px; }
.badge-featured { background: rgba(201, 164, 92, 0.92); color: #082A2F; }

/* ---------- Wishlist heart ---------- */
.wish-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(247, 231, 206, 0.35);
  background: rgba(8, 42, 47, 0.6);
  backdrop-filter: blur(4px);
  color: var(--gold-light);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
}
.wish-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.wish-btn:hover { transform: scale(1.08); border-color: var(--gold); }
.wish-btn[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #082A2F; }
.wish-btn[aria-pressed="true"] svg { fill: currentColor; }
.wish-inline {
  position: static;
  width: auto;
  height: auto;
  border-radius: 999px;
  padding: 9px 18px;
  gap: 8px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.wish-inline svg { width: 17px; height: 17px; }
.wishlist-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: center; margin-top: 8px; padding-bottom: 40px; }

/* ---------- Nav additions ---------- */
.main-nav { gap: 22px; }
.nav-more { cursor: default; }
.wish-link { position: relative; display: inline-flex; align-items: center; color: var(--text-muted); }
.wish-link svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; }
.wish-link:hover, .wish-link.active { color: var(--gold); }
.wish-count {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--gold);
  color: #082A2F;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 17px;
  text-align: center;
  font-family: var(--font-body);
}
.wish-count[hidden] { display: none; }
.main-nav a.active { color: var(--gold); }

/* ---------- Reveal on scroll ---------- */
html.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
html.js .rv.in { opacity: 1; transform: none; }
html.js.reduce-motion .rv { opacity: 1; transform: none; transition: none; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.center-actions { text-align: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 28px 0 0; }
.center-link { text-align: center; margin-top: 8px; }
.narrow-text { max-width: 36em; margin-left: auto; margin-right: auto; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.btn-xl { padding: 20px 52px; font-size: 1.05rem; letter-spacing: 0.08em; display: inline-flex; flex-direction: column; align-items: center; gap: 4px; }
.btn-xl small { font-size: 0.68rem; letter-spacing: 0.12em; opacity: 0.7; text-transform: uppercase; font-weight: 400; }
.see-more-wrap { text-align: center; margin: 8px 0 8px; }
.section-tight { padding-top: 40px; }
.panel { background: rgba(8, 42, 47, 0.62); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding-bottom: 72px; }
.section { padding-top: 88px; }
.section.panel { padding-top: 80px; margin-top: 88px; }
.section-head.center { text-align: center; }

/* Placeholder markers (hide with SHOW_PLACEHOLDER_FLAGS=false) */
.ph-flag {
  display: inline-block;
  margin: 4px 0;
  padding: 2px 8px;
  border: 1px dashed #e0a020;
  border-radius: 4px;
  background: rgba(224, 160, 32, 0.12);
  color: #f0c060;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  background: linear-gradient(90deg, #9A7838, #C9A45C 30%, #E6CB8E 50%, #C9A45C 70%, #9A7838);
  color: #082A2F;
  padding: 15px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.marquee-group span {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-group i { font-style: normal; font-size: 0.6rem; margin: 0 30px; opacity: 0.7; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html.reduce-motion .marquee-track { animation: none; }

/* ---------- Carousel ---------- */
.carousel-controls { display: flex; gap: 10px; }
.carousel-btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--gold); background: transparent; color: var(--gold);
  font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.carousel-btn:hover { background: var(--gold); color: #082A2F; }
.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 20px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item { flex: 0 0 clamp(220px, 24%, 290px); scroll-snap-align: start; }
@media (max-width: 720px) { .carousel-item { flex-basis: 62%; } }

/* ---------- Split feature blocks ---------- */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature-split.reverse .feature-img { order: 2; }
.feature-img { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4 / 5; background: #010300; }
.feature-img.tall { aspect-ratio: 3 / 4; max-height: 560px; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-copy h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
@media (max-width: 800px) {
  .feature-split { grid-template-columns: 1fr; }
  .feature-split.reverse .feature-img { order: 0; }
  .feature-img, .feature-img.tall { aspect-ratio: 4 / 3; max-height: 380px; }
}

/* ---------- Gift tiles ---------- */
.gift-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 800px) { .gift-grid { grid-template-columns: repeat(2, 1fr); } }
.gift-tile { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--bg-card); transition: border-color 0.2s, transform 0.2s; }
.gift-tile:hover { border-color: var(--gold); transform: translateY(-3px); }
.gift-tile img, .gift-tile .category-fallback { width: 100%; height: 100%; object-fit: cover; display: block; }
.gift-label {
  position: absolute; inset: auto 0 0 0; padding: 36px 16px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  font-family: var(--font-heading); font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: var(--heading-weight);
}

/* ---------- Process, services, why, stats ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 12px; }
@media (max-width: 800px) { .process { grid-template-columns: repeat(2, 1fr); } }
.process-step { position: relative; padding: 26px 22px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(15, 58, 64, 0.7); }
.process-step span { font-family: var(--font-heading); font-size: 2.4rem; color: var(--gold); opacity: 0.85; line-height: 1; }
.process-step h3 { margin: 10px 0 6px; font-size: 1.5rem; }
.process-step p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .service-grid { grid-template-columns: 1fr; } }
.service-card { display: block; padding: 26px 22px; border: 1px solid var(--border); border-top: 2px solid var(--gold); border-radius: var(--radius); background: rgba(15, 58, 64, 0.72); transition: transform 0.2s, border-color 0.2s; }
.service-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.service-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.service-card p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

.service-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.service-row h2 { font-size: 1.8rem; margin-bottom: 6px; }
.service-row p { margin: 0 0 8px; max-width: 38em; }
.service-price { color: var(--text); }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-bottom: 40px; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
.why-grid h3 { color: var(--gold); font-size: 1.4rem; margin-bottom: 6px; }
.why-grid p { margin: 0; color: var(--text-muted); font-size: 0.93rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 36px 0 8px; border-top: 1px solid var(--border); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; }
.stat strong { display: block; font-family: var(--font-heading); font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; color: var(--gold-light); line-height: 1.1; }
.stat span { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }

/* ---------- Reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .review-grid { grid-template-columns: 1fr; } }
.review-card { margin: 0; padding: 28px 24px; border: 1px solid var(--border); border-radius: 8px; background: rgba(15, 58, 64, 0.75); }
.review-card blockquote { margin: 14px 0; font-family: var(--font-heading); font-size: 1.3rem; line-height: 1.4; color: var(--text); }
.review-card figcaption { font-size: 0.9rem; }
.stars { color: var(--gold); letter-spacing: 0.15em; }
.rating-summary { display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 36px; }
.rating-big { font-family: var(--font-heading); font-size: 4.5rem; color: var(--gold-light); line-height: 1; }

/* ---------- Instagram strip ---------- */
.insta-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
@media (max-width: 800px) { .insta-strip { grid-template-columns: repeat(3, 1fr); } }
.insta-tile { aspect-ratio: 1; overflow: hidden; border-radius: 4px; border: 1px solid var(--border); display: block; background: var(--bg-card); }
.insta-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease, opacity 0.3s; }
.insta-tile:hover img { transform: scale(1.08); opacity: 0.85; }

/* ---------- Visit us ---------- */
.visit-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .visit-grid { grid-template-columns: 1fr; } }
.visit-info .contact-list { margin-top: 0; }
.map-box { margin: 24px 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-card); }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(0.6) invert(0.9) contrast(0.9); }
.map-placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--text-muted); background: repeating-linear-gradient(45deg, rgba(201, 164, 92,0.05) 0 12px, transparent 12px 24px); text-align: center; padding: 16px; }
.map-placeholder > span:first-child { font-family: var(--font-heading); font-size: 1.8rem; color: var(--gold); }
.visit-grid .form-card { margin: 0; }

/* ---------- Content page blocks ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .info-grid { grid-template-columns: 1fr; } }
.info-card { padding: 28px 24px; border: 1px solid var(--border); border-radius: 8px; background: rgba(15, 58, 64, 0.75); }
.info-card h3 { font-size: 1.5rem; }
.info-card p { color: var(--text-muted); }
.page-hero-img {
  background:
    linear-gradient(rgba(8, 42, 47, 0.78), rgba(8, 42, 47, 0.9)),
    var(--hero-img) center 40% / cover no-repeat;
  padding-top: 110px;
}
.collection-block { padding-top: 24px; }
.table-wrap { overflow-x: auto; }
.size-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.95rem; }
.size-table th, .size-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.size-table th { color: var(--gold); font-weight: 500; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.12em; }
.thank-you { padding: 130px 24px 90px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0 72px; }
.page-link { min-width: 42px; height: 42px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 999px; color: var(--text-muted); font-size: 0.9rem; transition: all 0.2s; }
.page-link:hover { border-color: var(--gold); color: var(--gold-light); }
.page-link.active { background: var(--gold); border-color: var(--gold); color: #082A2F; font-weight: 600; }

/* ---------- Gallery masonry + lightbox ---------- */
.masonry { columns: 4 240px; column-gap: 16px; }
.masonry-item { display: block; break-inside: avoid; margin-bottom: 16px; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-card); position: relative; }
.masonry-item img { width: 100%; display: block; transition: transform 0.5s ease; }
.masonry-item:hover img { transform: scale(1.05); }
/* gentle height variety so the grid reads as a masonry */
.masonry-item:nth-child(3n+1) img { aspect-ratio: 4 / 5; object-fit: cover; }
.masonry-item:nth-child(5n+2) img { aspect-ratio: 1 / 1; object-fit: cover; }
.masonry-item:nth-child(7n+3) img { aspect-ratio: 3 / 4; object-fit: cover; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5, 30, 34, 0.94); display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(92vw, 1100px); max-height: 88vh; text-align: center; }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: 6px; display: inline-block; }
.lightbox figcaption { margin-top: 12px; color: var(--text-muted); font-size: 0.9rem; }
.lightbox figcaption a { color: var(--gold); margin-left: 10px; }
.lb-close, .lb-nav { position: absolute; background: rgba(15, 58, 64, 0.8); border: 1px solid var(--border); color: var(--text); cursor: pointer; border-radius: 50%; width: 46px; height: 46px; font-size: 1.7rem; line-height: 1; }
.lb-close:hover, .lb-nav:hover { border-color: var(--gold); color: var(--gold); }
.lb-close { top: 18px; right: 18px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }

/* ---------- Floating buttons ---------- */
.fab-stack { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.fab {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 0; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s, opacity 0.3s;
}
.fab:hover { transform: translateY(-3px) scale(1.05); }
.fab svg { width: 26px; height: 26px; }
.fab-wa { background: #25d366; color: #fff; }
.fab-top { width: 44px; height: 44px; background: rgba(15, 58, 64, 0.92); color: var(--gold); border: 1px solid var(--gold); }
.fab-top svg { width: 20px; height: 20px; }
.fab-top[hidden] { display: none; }

/* ---------- Footer: five columns ---------- */
.footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Mobile polish ---------- */
@media (max-width: 720px) {
  .section { padding-top: 64px; }
  .section.panel { margin-top: 64px; padding-top: 56px; padding-bottom: 56px; }
  .btn-xl { padding: 18px 34px; width: 100%; }
  .service-row { flex-direction: column; align-items: flex-start; }
}
.btn-xl-main { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
button.btn { font-family: var(--font-body); }

@media (max-width: 720px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .category-tile:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .category-label { padding: 28px 12px 12px; }
}

/* ---------- Why Edwards: cards ---------- */
.why-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 44px; }
@media (max-width: 1000px) { .why-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-cards { grid-template-columns: 1fr; } }
.why-card {
  position: relative;
  padding: 30px 24px 26px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(19, 67, 73, 0.82), rgba(8, 42, 47, 0.82));
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.3s, box-shadow 0.3s;
  transform-style: preserve-3d;
}
.why-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.7;
}
.why-card::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  right: -60px;
  bottom: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 164, 92, 0.16), transparent 70%);
  pointer-events: none;
}
.why-card:hover { border-color: var(--gold); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(201, 164, 92, 0.12); }
.why-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  border: 1px solid rgba(201, 164, 92, 0.55);
  background: rgba(201, 164, 92, 0.08);
  color: var(--gold);
}
.why-icon svg { width: 26px; height: 26px; }
.why-card h3 { color: var(--text); font-size: 1.55rem; margin-bottom: 8px; }
.why-card p { margin: 0; color: var(--text-muted); font-size: 0.93rem; }
.service-card[data-tilt] { transition: transform 0.25s ease, border-color 0.2s; }
html.reduce-motion .why-card, html.reduce-motion .service-card { transition: none; }

/* ---------- Animations switch ---------- */
.motion-toggle {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(8, 42, 47, 0.88);
  backdrop-filter: blur(6px);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.motion-toggle:hover { border-color: var(--gold); color: var(--gold-light); }
.motion-toggle small { opacity: 0.6; font-size: inherit; }
.mt-dot { width: 9px; height: 9px; border-radius: 50%; background: #5fd08a; box-shadow: 0 0 8px rgba(95, 208, 138, 0.8); }
html.reduce-motion .mt-dot { background: #8a8378; box-shadow: none; }
.mt-off-text { display: none; }
html.reduce-motion .mt-on-text { display: none; }
html.reduce-motion .mt-off-text { display: inline; }
@media (max-width: 520px) { .motion-toggle small { display: none; } .motion-toggle { padding: 8px 12px 8px 10px; } }
