/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --cream: #faf8f4;
  --stone: #e8e2d9;
  --brown: #7a6a5a;
  --deep: #1a1512;
  --gold: #b8956a;
  --gold-light: #d4aa80;
  --text: #2c2218;
  --text-light: #6b5c4e;
  --overlay: rgba(26, 21, 18, 0.4);
}

html { scroll-behavior: smooth; }
body { 
  font-family: 'EB Garamond', Georgia, serif; 
  background: var(--cream); 
  color: var(--text); 
  overflow-x: hidden; 
  line-height: 1.6;
}

/* ACCESSIBILITY */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* NAVBAR */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.8rem 4rem; transition: all 0.4s ease;
  animation: navBg linear both; animation-timeline: scroll(root); animation-range: 0px 100px;
}
@keyframes navBg {
  from { background: transparent; }
  to { background: rgba(26, 21, 18, 0.95); box-shadow: 0 1px 10px rgba(0,0,0,0.3); }
}
@supports not (animation-timeline: scroll()) {
  #navbar { background: rgba(26,21,18,0.95); box-shadow: 0 1px 10px rgba(0,0,0,0.3); }
}
.nav-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: #fff; text-decoration: none; letter-spacing: .08em; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: rgba(255,255,255,0.8); transition: color .3s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
#navbar.scrolled { background: rgba(250,248,244,.97) !important; box-shadow: 0 1px 0 var(--stone) !important; }
#navbar.scrolled .nav-logo { color: var(--deep) !important; }
#navbar.scrolled .nav-links a { color: var(--text-light) !important; }

/* HERO */
#hero { position: relative; height: 100vh; min-height: 600px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(160deg,rgba(26,21,18,.4) 0%,rgba(90,70,50,.2) 50%,rgba(26,21,18,.55) 100%), url('FLOWER_LOOP_EARRINGS1.webp') center/cover no-repeat; transform: scale(1.05); animation: zoomOut 5s ease-out forwards; }
@keyframes zoomOut { from { transform: scale(1.05); } to { transform: scale(1); } }
.hero-content { position: relative; text-align: center; padding: 2rem; }
.hero-logo { width: clamp(260px, 70vw, 560px); display: block; margin: 0 auto 2.5rem; }
.hero-cta { display: inline-block; padding: 1.1rem 3.5rem; border: 1px solid rgba(184,149,106,.7); color: #fff; text-decoration: none; font-size: .92rem; letter-spacing: .28em; text-transform: uppercase; transition: background .3s, border-color .3s, color .3s; }
.hero-cta:hover { background: var(--gold); border-color: var(--gold); color: var(--deep); }
.hero-scroll { position: absolute; bottom: 7rem; left: 50%; transform: translateX(-50%); }
.scroll-arrow { color: rgba(255,255,255,.7); font-size: 2rem; animation: arrowPulse 2s ease-in-out infinite; display: block; }
@keyframes arrowPulse { 0%,100% { opacity:.4; transform: scale(0.85) translateY(0); } 50% { opacity:1; transform: scale(1.15) translateY(4px); } }
@media(min-width: 769px) { .hero-scroll { bottom: 2.5rem; } }

/* SHOWCASE */
#showcase { background: #000; }
.showcase-item { position: relative; height: 100vh; overflow: hidden; opacity: 1; transform: none; transition: opacity 1.2s cubic-bezier(.16,1,.3,1), transform 1.2s cubic-bezier(.16,1,.3,1); }
.showcase-item.animate { opacity: 0; transform: translateY(80px); }
.showcase-item.visible { opacity: 1; transform: translateY(0); }
.showcase-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* VIDEO */
#video-section { line-height: 0; background: var(--cream); }
#video-section video { width: 100%; height: auto; display: block; }

/* ABOUT */
#about { background: var(--cream); padding: 6rem 4rem; text-align: center; max-width: 700px; margin: 0 auto; }
.section-label { font-size: .72rem; letter-spacing: .35em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; display: block; }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.2rem,4vw,3.4rem); font-weight: 300; line-height: 1.15; color: var(--deep); margin-bottom: 1.5rem; }
.section-title em { font-style: italic; color: var(--brown); }
.divider { width: 48px; height: 1px; background: var(--gold); margin-bottom: 2rem; }
.about-text p { font-size: 1.08rem; line-height: 1.85; color: var(--text-light); margin-bottom: 1.4rem; }
.about-signature { margin-top: 2rem; font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-style: italic; font-weight: 300; color: var(--gold); }

/* CONTACT */
#contact { background: var(--deep); color: var(--cream); text-align: center; padding: 6rem 4rem; }
#contact .section-title { color: var(--cream); }
#contact .section-title em { color: var(--gold-light); }
.contact-sub { font-size: 1.05rem; font-style: italic; color: rgba(250,248,244,.6); margin-bottom: 3rem; }
.contact-details { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.contact-detail { display: flex; flex-direction: column; gap: .3rem; }
.contact-detail-label { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.contact-detail-val { font-size: .95rem; color: rgba(250,248,244,.7); }
.contact-detail-val a { color: inherit; text-decoration: none; transition: color .25s; }
.contact-detail-val a:hover { color: var(--cream); }

/* FOOTER */
footer { background: #1e1510; padding: 1.5rem 4rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; border-top: 1px solid rgba(250,248,244,.07); }
footer span { font-size: .72rem; letter-spacing: .12em; color: rgba(250,248,244,.3); }
.footer-links { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.footer-links a { font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; text-decoration: none; color: rgba(250,248,244,.3); transition: color .25s; }
.footer-links a:hover { color: var(--gold); }

/* WHATSAPP & A11Y BTN */
.whatsapp-float { position: fixed; bottom: 2rem; left: 2rem; width: 54px; height: 54px; background: #25D366 url('whatsapp.svg') center/28px no-repeat; border-radius: 50%; text-decoration: none; box-shadow: 0 4px 16px rgba(37,211,102,.4); z-index: 999; transition: transform .25s; display: block; }
.whatsapp-float:hover { transform: scale(1.1); }
.a11y-btn { position: fixed; bottom: 2rem; right: 2rem; width: 48px; height: 48px; background: var(--deep); border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-size: 1.3rem; cursor: pointer; z-index: 1100; display: flex; align-items: center; justify-content: center; transition: background .25s; }
.a11y-btn:hover { background: var(--gold); color: var(--deep); }
.a11y-panel { position: fixed; bottom: 5.5rem; right: 2rem; background: #fff; border: 1px solid var(--stone); border-radius: 8px; padding: 1.2rem; width: 220px; z-index: 1100; box-shadow: 0 8px 24px rgba(0,0,0,.12); display: none; flex-direction: column; gap: .8rem; }
.a11y-panel.open { display: flex; }
.a11y-panel-title { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-light); }
.a11y-option { display: flex; align-items: center; justify-content: space-between; font-size: .9rem; color: var(--deep); font-family: 'EB Garamond', serif; }
.a11y-option button { padding: .3rem .8rem; border: 1px solid var(--stone); background: transparent; color: var(--deep); font-size: .8rem; cursor: pointer; border-radius: 3px; transition: background .2s; }
.a11y-option button:hover { background: var(--stone); }
.a11y-option button.active { background: var(--deep); color: #fff; border-color: var(--deep); }
.a11y-reset { width: 100%; padding: .5rem; border: 1px solid var(--stone); background: transparent; color: var(--text-light); font-size: .8rem; cursor: pointer; border-radius: 3px; font-family: 'EB Garamond', serif; transition: background .2s; }
.a11y-reset:hover { background: var(--stone); }

/* A11Y MODES */
body.a11y-large-text { font-size: 120%; }
body.a11y-high-contrast { filter: contrast(1.5); }
body.a11y-grayscale { filter: grayscale(1); }
body.a11y-line-height p, body.a11y-line-height li { line-height: 2.2 !important; }

/* GALLERY BANNER */
.gallery-banner { position: relative; height: 55vh; min-height: 320px; overflow: hidden; }
.gallery-banner-video { position: absolute; inset: 0; }
.gallery-banner-video video { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.gallery-banner-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(26,21,18,.2), rgba(26,21,18,.45)); display: flex; align-items: center; justify-content: center; }
.gallery-banner-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 300; color: #fff; letter-spacing: .15em; font-style: italic; }

/* GALLERY */
.gallery-page { padding: 8rem 2rem 4rem; background: var(--cream); min-height: 100vh; }
.gallery-filters { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 4rem; flex-wrap: wrap; }
.gfilter { background: none; border: none; font-family: 'EB Garamond', serif; font-size: 1rem; color: var(--text-light); cursor: pointer; border-bottom: 1px solid transparent; padding-bottom: .3rem; transition: .3s; white-space: nowrap; }
.gfilter.active { color: var(--gold); border-bottom-color: var(--gold); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; max-width: 1400px; margin: 0 auto; }
.product-card { text-decoration: none; display: block; }
.product-card.animate { opacity: 0; transform: translateY(20px); }
.product-card.visible { opacity: 1; transform: translateY(0); transition: opacity .6s ease, transform .6s ease; }
.product-card-imgs { position: relative; overflow: hidden; aspect-ratio: 3/4; background: var(--stone); }
.product-card-imgs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s ease, transform .6s ease; }
.product-card-imgs .img-hover { opacity: 0; }
.product-card:hover .img-main { opacity: 0; transform: scale(1.04); }
.product-card:hover .img-hover { opacity: 1; }
/* במובייל עם img-track — תמונות תמיד נראות */
.product-card-imgs .img-track img { opacity: 1 !important; position: static !important; transform: none !important; }
.product-card-info { padding: .8rem 0 0; }
.product-card-name { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; color: var(--deep); text-align: center; letter-spacing: .03em; }

/* SWIPE MOBILE */
@media(max-width:768px) {
  .product-card-imgs { touch-action: pan-y; overflow: hidden; position: relative; }
  .product-card-imgs .img-track { display: flex; width: 200%; height: 100%; position: absolute; top: 0; left: 0; bottom: 0; transition: transform .3s cubic-bezier(.25,.46,.45,.94); }
  .product-card-imgs .img-track img { width: 50%; height: 100%; object-fit: cover; flex-shrink: 0; position: static; opacity: 1 !important; transform: none !important; transition: none !important; }
  .swipe-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; z-index: 2; pointer-events: none; }
  .swipe-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(100,100,100,.35); transition: background .3s; }
  .swipe-dot.active { background: rgba(50,50,50,.75); }
}

/* PRODUCT PAGE */
.product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; max-width: 1200px; margin: 0 auto; padding: 8rem 4rem 6rem; }
.product-images { display: flex; flex-direction: column; gap: 1rem; }
.product-main-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; cursor: pointer; transition: opacity .3s; }
.product-thumbs { display: flex; gap: .8rem; flex-wrap: wrap; }
.product-thumb { width: 80px; height: 80px; object-fit: cover; cursor: pointer; border: 2px solid transparent; transition: border-color .25s, opacity .25s; opacity: .65; }
.product-thumb:hover, .product-thumb.active { border-color: var(--gold); opacity: 1; }
.product-details { padding-top: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.product-name { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.8rem,3vw,2.8rem); font-weight: 300; color: var(--deep); }
.product-price { font-size: 1.3rem; color: var(--text-light); }
.product-divider { width: 48px; height: 1px; background: var(--gold); }
.product-material-label { font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; display: block; }
.product-material { font-size: 1rem; line-height: 1.8; color: var(--text-light); }
.product-cta { display: inline-block; margin-top: 1rem; padding: 1rem 2.5rem; background: var(--deep); color: var(--cream); text-decoration: none; font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; transition: background .3s; align-self: flex-start; }
.product-cta:hover { background: var(--gold); }
.product-note { font-size: .85rem; line-height: 1.7; color: var(--text-light); font-style: italic; border-top: 1px solid var(--stone); padding-top: 1.2rem; }
.back-link { padding: 0 4rem 4rem; max-width: 1200px; margin: 0 auto; }
.back-link a { font-size: .85rem; letter-spacing: .15em; text-transform: uppercase; color: var(--text-light); text-decoration: none; transition: color .25s; }
.back-link a:hover { color: var(--gold); }
.img-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(30,21,16,.95); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
.img-lightbox.open { opacity: 1; pointer-events: all; }
.img-lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.img-lightbox-close { position: absolute; top: 1.5rem; left: 1.5rem; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; font-size: 1.2rem; cursor: pointer; }

/* RESPONSIVE */
@media(max-width:900px) {
  #navbar { padding: 1.5rem 2rem; }
  #about, #contact { padding: 4rem 2rem; }
  footer { padding: 1.5rem 2rem; flex-direction: column; text-align: center; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .product-page { grid-template-columns: 1fr; gap: 2rem; padding: 7rem 2rem 4rem; }
  .back-link { padding: 0 2rem 3rem; }
}
@media(max-width:560px) {
  #navbar { padding: 1.2rem 1.2rem; }
  .nav-links { gap: 1.2rem; }
  .contact-details { gap: 1.5rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .gallery-page { padding: 6rem 1rem 3rem; }
  .gallery-filters { gap: .8rem; }
  .gfilter { font-size: .85rem; }
}
