/* Aida de la Herran */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { color: #282c2e; font-family: 'DM Sans', sans-serif; overflow-x: hidden; }
::selection { background: rgba(168,204,200,0.3); }
a { color: inherit; }
img { display: block; }
input, textarea, select, button { font-family: 'DM Sans', sans-serif; }
input::placeholder, textarea::placeholder { color: rgba(40,44,46,0.4); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroIn { from { opacity: 0; transform: scale(1.035); } to { opacity: 1; transform: scale(1); } }
@keyframes slideDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
.hero-bg { background: #e8e2da url('products/hero-wide.jpg') 30% 45% / cover no-repeat; }
@media (max-width: 680px) { .hero-bg { background-image: url('products/hero-tall.jpg'); background-position: 46% 35%; } }
.tile img { transition: transform 0.7s ease; }
.tile:hover img { transform: scale(1.045); }
details summary::-webkit-details-marker { display: none; }
button { font: inherit; }

/* ---- Aida — shared layer: floating header, scroll reveals, responsive layout. Inlined into every page. ---- */
img, video { max-width: 100%; }

/* Floating header: see-through at the top of the page, frosted once you scroll */
.nav {
  position: fixed; top: 14px; left: 16px; right: 16px; z-index: 100; height: 68px;
  padding: 0 24px 0 20px; display: flex; align-items: center; justify-content: space-between;
  border-radius: 14px; color: #232a2c; background: rgba(244,242,239,0);
  border: 0.5px solid rgba(40,44,46,0);
  transition: background .45s ease, box-shadow .45s ease, border-color .45s ease, top .45s ease;
}
.nav.scrolled, .nav.solid {
  background: rgba(255,255,255,0.58);
  -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  border-color: rgba(255,255,255,0.7); box-shadow: 0 6px 24px rgba(35,42,44,0.06);
}
.nav.scrolled { top: 10px; }
.nav-logo { height: 44px; width: auto; object-fit: contain; display: block; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.burger { display: none; }
.nav-links a:focus-visible, .nav-actions a:focus-visible, .burger:focus-within { outline: 2px solid #5a7a78; outline-offset: 3px; }

/* Home hero: full screen height, but never taller than a landscape picture of the window's width */
.hero-full { height: 100vh; height: min(100vh, 58vw); height: min(100svh, 58vw); min-height: 460px; }

/* Things arrive as you scroll */
html.js-reveal .reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
html.js-reveal .reveal.in { opacity: 1; transform: none; }
html.js-reveal .reveal-stagger > * { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
html.js-reveal .reveal-stagger.in > * { opacity: 1; transform: none; }
html.js-reveal .reveal-stagger.in > *:nth-child(2) { transition-delay: .12s; }
html.js-reveal .reveal-stagger.in > *:nth-child(3) { transition-delay: .24s; }
html.js-reveal .reveal-stagger.in > *:nth-child(4) { transition-delay: .36s; }
html.js-reveal .reveal-stagger.in > *:nth-child(5) { transition-delay: .48s; }
html.js-reveal .reveal-stagger.in > *:nth-child(6) { transition-delay: .6s; }
@media (prefers-reduced-motion: reduce) {
  html.js-reveal .reveal, html.js-reveal .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

@media (max-width: 980px) {
  .nav { top: 10px; left: 10px; right: 10px; height: 60px; padding: 0 8px 0 14px; border-radius: 12px; }
  .nav.scrolled { top: 8px; }
  .nav-logo { height: 34px; }

  .burger {
    display: flex !important; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; align-items: center; cursor: pointer; margin-left: 2px;
  }
  .burger span { display: block; width: 20px; height: 1.5px; background: currentColor; }
  .nav-links {
    display: none !important; position: fixed; top: 78px; left: 10px; right: 10px;
    flex-direction: column !important; align-items: stretch !important; gap: 0 !important;
    padding: 6px 20px 16px !important; background: rgba(255,255,255,0.9); border-radius: 12px;
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border: 0.5px solid rgba(40,44,46,0.1);
    max-height: calc(100vh - 96px); overflow-y: auto;
    box-shadow: 0 12px 32px rgba(40,44,46,0.08);
  }
  .nav-toggle:checked ~ .nav-links { display: flex !important; }
  .nav-links a {
    color: #232a2c !important; font-size: 13px !important; letter-spacing: 2px !important;
    padding: 17px 2px !important; border-bottom: 0.5px solid rgba(40,44,46,0.08) !important;
    opacity: 1 !important;
  }
  .nav-links a:last-child { border-bottom: none !important; }
  .nav-actions { gap: 4px !important; }
  .nav-actions .shop-btn { padding: 9px 14px !important; font-size: 10px !important; }

  /* page rhythm */
  .pad { padding-left: 36px !important; padding-right: 36px !important; }
  .g4, .g3, .g32, .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .gfoot { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 32px !important; }
  .gfoot > div:first-child { grid-column: 1 / -1; }
  .sidecol { flex: 1 1 280px !important; }
  .right-on-wide { text-align: left !important; align-items: flex-start !important; }
  .filterbar { top: 76px !important; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .mosaic > a { grid-column: auto !important; grid-row: auto !important; min-height: 300px !important; }
}

@media (max-width: 680px) {
  .pad { padding-left: 20px !important; padding-right: 20px !important; }
  .pad-top { padding-top: 96px !important; }
  .tight { padding-top: 56px !important; padding-bottom: 56px !important; }
  .g4, .g3, .g32, .g2, .gfoot { grid-template-columns: minmax(0, 1fr) !important; }
  .gfoot { gap: 28px !important; }
  .card { padding: 28px 22px !important; }
  .stack-sm { flex-direction: column !important; align-items: stretch !important; gap: 12px !important; }
  .btn-row { flex-direction: column !important; align-items: stretch !important; }
  .btn-row > a { text-align: center; }
  .h-big { font-size: clamp(30px, 10vw, 46px) !important; }
  .lead { font-size: 15px !important; }

  /* full-image hero */
  .hero-full { height: 92vh; height: 92svh; min-height: 520px; }
  .hero-scrim { background: linear-gradient(180deg, rgba(244,242,239,0) 40%, rgba(244,242,239,0.82) 72%, rgba(244,242,239,0.95) 100%) !important; }
  .hero-words { left: 20px !important; right: 20px !important; top: auto !important; bottom: 36px !important; width: auto !important; padding-top: 0 !important; justify-content: flex-end !important; }
  .hero-words h1 { font-size: clamp(44px, 13vw, 62px) !important; }
  .hero-words-in { text-align: left !important; }
  .hero-btns { gap: 14px 22px !important; flex-wrap: wrap !important; justify-content: flex-start !important; }
  .hero-btns > a:first-child { padding: 14px 22px !important; }
  .scroll-cue { display: none !important; }

  /* product + cart + checkout panels */
  .prod-media { min-height: 0 !important; aspect-ratio: 1 / 1; flex: 1 1 100% !important; }
  .prod-info { padding: 28px 20px 44px !important; flex: 1 1 100% !important; }
  .sidecol { flex: 1 1 100% !important; width: 100% !important; }
  .foot-bottom { flex-direction: column !important; gap: 10px !important; align-items: flex-start !important; }
  .mosaic { grid-template-columns: minmax(0, 1fr) !important; }
  .mosaic > a { min-height: 260px !important; padding: 28px !important; }
  .gj-mark { height: 52px !important; }
  .gj-section { padding-top: 20px !important; padding-bottom: 20px !important; }
  .gj-inner { gap: 14px !important; }
  .gj-text { border-left: none !important; padding-left: 0 !important; }
  .gj-date-row { display: none !important; }
  .gj-dates { display: none !important; }
  .gj-text h2 { font-size: 18px !important; }
  .gj-text p { margin-bottom: 6px !important; }
}

@media (max-width: 420px) {
  .prodgrid { grid-template-columns: minmax(0, 1fr) !important; }
}

/* hover states */
.hv1:hover { opacity:0.5 !important; }
.hv2:hover { background:#232a2c !important; border-color:#232a2c !important; color:#f6f4f1 !important; }
.hv3:hover { background:#3d4a4e !important; }
.hv4:hover { text-decoration:underline !important; text-underline-offset:5px !important; text-decoration-thickness:1px !important; }
.hv5:hover { border-color:#3d4a4e !important; }
.hv6:hover { box-shadow:0 6px 28px rgba(40,44,46,0.12) !important; }
.hv7:hover { border-color:#cfe4e1 !important; }
.hv8:hover { background:#efece8 !important; }
.hv9:hover { color:#5a7a78 !important; }
.hv10:hover { opacity:0.85 !important; }
.hv11:hover { color:#a8ccc8 !important; }
.hv12:hover { color:#282c2e !important; }
.hv13:hover { border-color:#282c2e !important; }
.hv14:hover { opacity:0.6 !important; }
.hv15:hover { box-shadow:0 6px 28px rgba(40,44,46,0.1) !important; }
