/* Front detail page styles — shared by all fronturi-detalii/*.html */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --orange: #FF8800; --orange-deep: #E67500; --orange-light: #FFA033;
  --cream-1: #F5E6BC; --cream-2: #FFF8E1;
  --dark: #1A1A1A; --text: #1A1A1A; --text-soft: #4A4540; --text-mute: #8A8175;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --ease: cubic-bezier(.2,.85,.3,1);
}
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: #FFFFFF; color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.has-topbar { padding-top: 38px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 99; background: var(--dark); color: rgba(255,255,255,0.85); height: 38px; padding: 0 clamp(1rem, 4vw, 4rem); display: flex; align-items: center; justify-content: center; gap: 1.5rem; font-size: 13px; letter-spacing: 0.05em; border-bottom: 1px solid rgba(230,215,184,0.25); white-space: nowrap; }
.topbar-phone { color: rgba(255,255,255,0.85); text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; transition: color 0.25s; }
.topbar-phone:hover { color: var(--orange-light); }
.topbar-phone-label { color: var(--orange); font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px; }
.topbar-search-btn { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); border: 1px solid rgba(255,136,0,0.4); padding: 5px 12px; text-decoration: none; transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s, opacity 0.25s, filter 0.25s; border-radius: var(--radius-sm, 6px); }
.topbar-search-btn:hover { background: rgba(255,136,0,0.12); border-color: var(--orange); }
.topbar-search-btn svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
@media (max-width: 760px) {
  .topbar { gap: 0.8rem; font-size: 11px; padding: 0 0.8rem; }
  .topbar-phone-label { font-size: 10px; letter-spacing: 0.08em; }
  .topbar-search-btn { padding: 4px 8px; font-size: 10px; border-radius: var(--radius-sm, 6px); }
}

nav.site-nav { position: fixed; top: 38px; left: 0; right: 0; z-index: 90; display: flex; align-items: center; justify-content: space-between; padding: 1.1rem clamp(1rem, 4vw, 4rem); background: #FFFFFF; border-bottom: 1px solid rgba(0,0,0,0.06); transition: padding 0.35s, box-shadow 0.35s, border-color 0.4s; }
nav.site-nav.scrolled { padding: 0.7rem clamp(1rem, 4vw, 4rem); box-shadow: 0 4px 30px rgba(0,0,0,0.08); }
.nav-logo { text-decoration: none; display: flex; align-items: center; }
.nav-logo-img { height: 65px; width: auto; transition: height 0.35s; }
nav.site-nav.scrolled .nav-logo-img { height: 52px; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-soft); text-decoration: none; transition: color 0.3s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 1px; background: var(--orange); transition: width 0.4s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--orange); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase; color: #fff; background: var(--orange); padding: 0.85rem 1.7rem; text-decoration: none; transition: background 0.3s, transform 0.2s; border-radius: var(--radius-sm, 6px); }
.nav-cta:hover { background: var(--orange-deep); transform: translateY(-1px); }
.menu-toggle { display: none; width: 40px; height: 40px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--orange); transition: transform 0.35s, opacity 0.25s; }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; background: rgba(255,255,255,0.98); backdrop-filter: blur(20px); z-index: 100; padding: 6rem 2rem 2rem; display: none; flex-direction: column; overflow-y: auto; opacity: 0; pointer-events: none; transition: opacity 0.35s; }
.mobile-menu.active { opacity: 1; pointer-events: auto; }
.mobile-menu a { display: block; padding: 1.2rem 0; border-bottom: 1px solid rgba(255,136,0,0.15); font-size: 1.4rem; font-family: var(--serif); color: var(--text); text-decoration: none; }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--orange); padding-left: 0.5rem; }
.mobile-menu-cta { margin-top: 2rem; text-align: center; padding: 1rem 2rem !important; background: var(--orange); color: #fff !important; border-bottom: none !important; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.85rem !important; font-family: var(--sans) !important; border-radius: var(--radius-sm, 6px); }
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .mobile-menu { display: flex; }
  nav.site-nav { padding: 0.7rem 1.2rem; }
  .nav-logo-img { height: 48px; }
}

/* Detail layout */
.detail-wrap { max-width: 1300px; margin: 0 auto; padding: 7rem clamp(1.5rem, 6vw, 6rem) 3rem; display: grid; grid-template-columns: 1.15fr 1fr; gap: 4rem; align-items: start; }
@media (max-width: 980px) { .detail-wrap { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 6rem; } }

/* Gallery — single high-quality image, no thumbnails */
.gallery { display: flex; flex-direction: column; gap: 1rem; }
.gallery-main { aspect-ratio: 16/9; background: var(--cream-1); border-radius: 6px; overflow: hidden; cursor: zoom-in; border: 1px solid rgba(0,0,0,0.06); position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-main:hover img { transform: scale(1.03); }
.gallery-main .placeholder-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--serif); color: var(--orange-deep); text-align: center; padding: 2rem; }
.gallery-main .placeholder-text strong { font-size: 1.4rem; font-weight: 400; margin-bottom: 0.4rem; }
.gallery-main .placeholder-text span { font-size: 1rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-soft); }
.gallery-main::after { content: ''; position: absolute; right: 0.8rem; bottom: 0.8rem; width: 36px; height: 36px; background: rgba(26,26,26,0.7) url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E") no-repeat center / 18px; border-radius: 50%; pointer-events: none; opacity: 0.85; transition: opacity 0.25s, transform 0.25s; }
.gallery-main:hover::after { opacity: 1; transform: scale(1.1); }

/* Info column */
.info-supplier { display: inline-block; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--orange-deep); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--orange); }
.info-name { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 300; line-height: 1.1; letter-spacing: -0.015em; margin-bottom: 1rem; color: var(--text); }
.info-code { font-size: 0.92rem; color: var(--text-mute); margin-bottom: 1.1rem; letter-spacing: 0.04em; }
.info-code strong { color: var(--text); font-weight: 500; letter-spacing: 0.12em; }
.info-badges { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.badge { font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.32rem 0.7rem; border-radius: 50px; font-weight: 500; }
.badge-dark { background: var(--dark); color: #fff; }
.badge-orange { background: var(--orange); color: #fff; }
.badge-outline { border: 1px solid rgba(0,0,0,0.15); color: var(--text-soft); background: #fff; }
.cta-btn { display: inline-flex; width: 100%; align-items: center; justify-content: center; gap: 0.6rem; padding: 1.1rem 1.6rem; background: var(--orange); color: #fff; font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; border-radius: 50px; transition: background 0.3s, transform 0.2s; margin-bottom: 2rem; }
.cta-btn:hover { background: var(--orange-deep); transform: translateY(-1px); }

.section { border-top: 1px solid rgba(0,0,0,0.08); padding-top: 1.4rem; margin-top: 1.4rem; }
.section h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; margin-bottom: 0.9rem; color: var(--text); }
.section-content { font-size: 0.92rem; color: var(--text-soft); line-height: 1.7; }
.section-content p { margin-bottom: 0.6rem; }
.section-content ul, .section-content ol { padding-left: 1.4rem; margin-bottom: 0.6rem; }
.section-content li { margin-bottom: 0.3rem; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.spec-table th, .spec-table td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid rgba(0,0,0,0.06); }
.spec-table th { color: var(--text-mute); font-weight: 500; width: 38%; }
.spec-table td { color: var(--text); }

/* Compositions — full-width carousel, prominent placement below detail-wrap */
.compositions { background: linear-gradient(180deg, var(--cream-2) 0%, #FFFFFF 100%); padding: 3rem 0 3.5rem; margin: 1rem 0 0; border-top: 1px solid rgba(255,136,0,0.15); border-bottom: 1px solid rgba(0,0,0,0.06); }
.compositions-inner { max-width: 1400px; margin: 0 auto; padding: 0 clamp(1.5rem, 6vw, 6rem); }
.compositions-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.compositions h3 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 300; color: var(--text); letter-spacing: -0.01em; }
.compositions h3 em { color: var(--orange-deep); font-style: italic; }
.compositions-count { font-family: var(--serif); font-style: italic; color: var(--orange-deep); font-size: 1rem; }
.comp-carousel { position: relative; }
.comp-track-wrap { overflow: hidden; margin: 0 -0.5rem; cursor: grab; }
.comp-track-wrap.dragging { cursor: grabbing; }
.comp-track { display: flex; gap: 1rem; padding: 0.5rem; transition: transform 0.45s var(--ease); user-select: none; will-change: transform; }
.comp-card { flex: 0 0 360px; max-width: 360px; background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 6px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.04); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.comp-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.comp-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--cream-1); display: block; pointer-events: none; }
.comp-card .caption { padding: 0.9rem 1.1rem; font-family: var(--serif); font-size: 1rem; color: var(--text-soft); line-height: 1.3; min-height: 3.2em; }
.comp-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,0.18); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s, opacity 0.25s, filter 0.25s; z-index: 5; color: var(--text); }
.comp-nav:hover:not(:disabled) { background: var(--orange); color: #fff; transform: translateY(-50%) scale(1.05); }
.comp-nav:disabled { opacity: 0; pointer-events: none; }
.comp-nav.prev { left: -22px; }
.comp-nav.next { right: -22px; }
.comp-nav svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.5; }
.comp-dots { display: flex; justify-content: center; gap: 0.4rem; margin-top: 1.4rem; flex-wrap: wrap; }
.comp-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(0,0,0,0.18); border: none; padding: 0; cursor: pointer; transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s, opacity 0.25s, filter 0.25s; }
.comp-dot.active { background: var(--orange); transform: scale(1.3); }
.comp-dot:hover { background: var(--orange-light); }
@media (max-width: 700px) {
  .comp-card { flex: 0 0 78vw; max-width: 78vw; }
  .comp-nav { width: 40px; height: 40px; }
  .comp-nav.prev { left: 0; }
  .comp-nav.next { right: 0; }
}

/* Full-width text sections below compositions — collapsible */
.text-sections { max-width: 1300px; margin: 2.5rem auto 3rem; padding: 0 clamp(1.5rem, 6vw, 6rem); }
.info-toggle { display: flex; align-items: center; justify-content: center; gap: 0.7rem; margin: 0 auto; padding: 1rem 2.2rem; background: transparent; border: 1px solid var(--orange); color: var(--orange); font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 500; cursor: pointer; border-radius: 50px; transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease), opacity 0.3s var(--ease), filter 0.3s var(--ease); font-family: var(--sans); }
.info-toggle:hover { background: var(--orange); color: #fff; transform: translateY(-1px); }
.info-toggle svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.5; transition: transform 0.35s var(--ease); }
.info-toggle.open svg { transform: rotate(180deg); }
.info-collapse { overflow: hidden; max-height: 0; opacity: 0; transition: max-height 0.55s var(--ease), opacity 0.4s ease, margin-top 0.4s ease; margin-top: 0; }
.info-collapse.open { max-height: 12000px; opacity: 1; margin-top: 2.5rem; }
.text-sections .section { border-top: 1px solid rgba(0,0,0,0.08); padding-top: 1.8rem; margin-top: 1.8rem; }
.text-sections .section:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.text-sections .section h3 { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 300; margin-bottom: 1rem; color: var(--text); }
.text-sections .section-content { font-size: 0.95rem; color: var(--text-soft); line-height: 1.75; max-width: 920px; }
.text-sections .section-content img { max-width: 100%; height: auto; margin: 0.6rem 0; }

.back-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-mute); text-decoration: none; margin: 2rem clamp(1.5rem, 6vw, 6rem); transition: color 0.3s, gap 0.3s; }
.back-link:hover { color: var(--orange); gap: 0.8rem; }
.back-link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: 1.5rem; right: 1.5rem; width: 48px; height: 48px; color: #fff; font-size: 2rem; line-height: 1; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.1); transition: background 0.2s; }
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; color: #fff; font-size: 1.6rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.1); transition: background 0.2s; }
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-nav svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Footer */
footer.site-footer { background: var(--dark); color: rgba(255,255,255,0.85); padding: 4rem clamp(1.5rem, 6vw, 6rem) 2rem; }
.footer-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand img { height: 60px; width: auto; margin-bottom: 1.2rem; filter: brightness(0) invert(1); opacity: 0.95; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.6; max-width: 320px; }
.footer-col h4 { font-family: var(--serif); font-size: 1.05rem; font-weight: 400; color: #fff; margin-bottom: 1.2rem; }
.footer-col a { display: block; font-size: 0.88rem; color: rgba(255,255,255,0.7); text-decoration: none; margin-bottom: 0.7rem; transition: color 0.3s, padding-left 0.3s; }
.footer-col a:hover { color: var(--orange); padding-left: 6px; }
.footer-bottom { max-width: 1400px; margin: 0 auto; padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; color: rgba(255,255,255,0.5); font-size: 0.78rem; }
.footer-socials { display: flex; gap: 0.8rem; }
.footer-socials a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; transition: background 0.3s, border-color 0.3s; }
.footer-socials a:hover { background: var(--orange); border-color: var(--orange); }
.footer-socials svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; color: #fff; }
.footer-legal { display: flex; gap: 1.2rem; }
.footer-legal a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.3s; }
.footer-legal a:hover { color: var(--orange); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; text-align: center; } }

/* Loader */
.loader { position: fixed; inset: 0; background: #FFF8E1; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem; transition: opacity 0.6s ease, visibility 0.6s; }
.loader.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.loader img { width: 110px; height: auto; opacity: 0.9; animation: loaderFade 1.4s ease-in-out infinite; }
.loader-bar { width: 180px; height: 1px; background: rgba(0,0,0,0.1); overflow: hidden; position: relative; }
.loader-bar::after { content: ''; position: absolute; inset: 0; background: #FF8800; transform: translateX(-100%); animation: loaderProgress 1.4s ease-in-out infinite; }
@keyframes loaderFade { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes loaderProgress { 0% { transform: translateX(-100%); } 50% { transform: translateX(0%); } 100% { transform: translateX(100%); } }

/* TOPBAR-MOBILE-FIX */
@media (max-width: 600px) {
  .topbar { gap: 0.4rem 1.2rem !important; font-size: 11px !important; padding: 0.2rem 0.5rem !important; letter-spacing: 0 !important; flex-wrap: wrap !important; justify-content: center !important; }
  .topbar-phone { gap: 0.2rem !important; }
  .topbar-phone-label { font-size: 10px !important; letter-spacing: 0.02em !important; }
}

/* NAV-UNIFORM-V1 */
.nav-links { gap: 1.7rem; align-items: center; }
.nav-links a { font-size: 0.92rem; letter-spacing: normal; text-transform: none; font-weight: 500; color: var(--text, #1f1f1f); }
.nav-links a::after { bottom: -2px; height: 2px; }
.nav-cta { font-size: 0.86rem; letter-spacing: 0.02em; text-transform: none; font-weight: 600; padding: 0.72rem 1.5rem; border-radius: var(--radius-sm, 6px); box-shadow: 0 8px 20px -8px rgba(230,117,0,.7); }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(230,117,0,.8); }
.nav-cta:active { transform: translateY(0) scale(0.97); }
