/* ═══════════════════════════════════════════════════════
   Moon Baits — Custom Styles
   Bootstrap 5 base + custom overrides
═══════════════════════════════════════════════════════ */

:root {
  --nada-green:        #198754;
  --nada-green-dark:   #146c43;
  --nada-green-light:  #d1e7dd;
  --nada-dark:         #111827;
  --nada-overlay:      rgba(0, 0, 0, .55);
  --border-radius-lg:  1rem;
  /* Product accents (overridden inline per page) */
  --product-accent:       #198754;
  --product-accent-dark:  #0f5132;
  --product-accent-light: #d1e7dd;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #1e293b;
  overflow-x: hidden;
}

section[id] { scroll-margin-top: 70px; }

.py-lg-6 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

/* ── Section titles ───────────────────────────────────── */
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #1a3c1a;
  line-height: 1.2;
}
.section-title::after {
  content: '';
  display: block;
  width: 56px; height: 4px;
  background: var(--nada-green);
  border-radius: 2px;
  margin-top: .6rem;
}
.section-title.mx-auto::after { margin-left: auto; margin-right: auto; }

/* ── Navbar ───────────────────────────────────────────── */
#mainNav { transition: background-color .3s, box-shadow .3s; }
#mainNav.navbar-scrolled {
  background-color: rgba(17, 24, 39, .97) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,.3) !important;
}
.navbar-logo {
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.15);
}
.navbar-nav .nav-link {
  font-size: .9rem;
  letter-spacing: .02em;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: #4ade80 !important; }

.dropdown-menu {
  background: rgba(17, 24, 39, .98);
  backdrop-filter: blur(10px);
}
.dropdown-item:hover { background: rgba(25, 135, 84, .2); color: #fff; }

/* ── Hero (homepage) ─────────────────────────────────── */
.hero-section {
  height: 100dvh;
  min-height: 620px;
  background-color: #0f1a0f;
  position: relative;
  overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: .85;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: var(--nada-overlay);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; }
.hero-logo {
  width: 120px; height: 120px;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.hero-tagline {
  font-size: 1.15rem;
  opacity: .95;
}

/* ── Page hero (interior pages) ──────────────────────── */
.page-hero {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

/* ── Story hero (povestea-mea) ───────────────────────── */
.story-hero {
  background: #0f1a0f;
  min-height: 360px;
}
.story-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .25;
  filter: grayscale(.3);
}
.story-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(17,24,39,.85) 100%);
}

.story-content h2.story-chapter {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--nada-green-dark);
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--nada-green);
}
.story-content p { font-size: 1.05rem; line-height: 1.75; }
.story-photo { text-align: center; }
.story-photo img { max-width: 100%; }
.story-photo-caption {
  font-size: .85rem;
  color: #64748b;
  font-style: italic;
  margin-top: .75rem;
}
.story-quote {
  background: linear-gradient(135deg, var(--nada-green-light) 0%, #f8fafc 100%);
  border-radius: 1rem;
  padding: 2rem;
}
.story-quote blockquote { font-size: 1.2rem; color: var(--nada-green-dark); }

/* ── Contact hero ─────────────────────────────────────── */
.contact-hero {
  background: linear-gradient(135deg, #0d5927 0%, #198754 50%, #0a4a21 100%);
  position: relative;
  overflow: hidden;
}
.contact-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.contact-logo {
  border: 4px solid rgba(255,255,255,.3);
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}

/* ── Contact cards ────────────────────────────────────── */
.contact-card {
  transition: transform .2s, box-shadow .2s;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.1) !important;
}
.contact-card-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}

.quick-contact-btn { transition: transform .2s, box-shadow .2s; }
.quick-contact-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0,0,0,.12) !important;
}

.contact-tips-list {
  list-style: none;
  counter-reset: tips;
  padding: 0;
}
.contact-tips-list li {
  counter-increment: tips;
  position: relative;
  padding-left: 4rem;
  margin-bottom: 1.5rem;
  min-height: 3rem;
}
.contact-tips-list li::before {
  content: counter(tips);
  position: absolute;
  left: 0; top: 0;
  width: 2.75rem; height: 2.75rem;
  background: var(--nada-green);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
}

/* ── Section tiles (homepage 4 cards) ────────────────── */
.section-tile {
  display: block;
  padding: 2rem 1.5rem;
  text-align: center;
  background: white;
  border-radius: 1rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, border-color .2s;
  border: 2px solid transparent;
  box-shadow: 0 4px 12px rgba(0,0,0,.04);
}
.section-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
  border-color: var(--nada-green);
  color: inherit;
}
.section-tile-icon {
  font-size: 3rem;
  margin-bottom: .75rem;
  line-height: 1;
}
.section-tile-link {
  color: var(--nada-green);
  font-weight: 700;
  font-size: .9rem;
}

/* ── Why icons ────────────────────────────────────────── */
.why-icon {
  font-size: 3rem;
  display: inline-block;
}

/* ── Stat cards ───────────────────────────────────────── */
.stat-card { border: 1px solid #e2e8f0; transition: transform .2s, box-shadow .2s; }
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.08) !important;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: .25rem;
}
.stat-label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── Product cards (homepage grid) ────────────────────── */
.product-card {
  border-radius: var(--border-radius-lg);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
  overflow: hidden;
  --product-accent: var(--nada-green);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.14) !important;
}
.card-img-wrapper {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: #e8f5e9;
}
.product-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-img { transform: scale(1.05); }
.product-badge {
  position: absolute;
  top: 12px; right: 12px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .35em .7em;
  border-radius: 50rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.product-icon-corner {
  position: absolute;
  bottom: 12px; left: 12px;
  font-size: 2rem;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}
.product-tagline {
  color: var(--product-accent);
}

.btn-outline-product {
  border: 1.5px solid var(--product-accent);
  color: var(--product-accent);
  font-weight: 600;
  background: transparent;
  transition: all .2s;
}
.btn-outline-product:hover {
  background: var(--product-accent);
  color: white;
}

/* Theme tint on cards */
.theme-forest .card-img-wrapper { background: #d1e7dd; }
.theme-sunset .card-img-wrapper { background: #fff3e0; }
.theme-ocean  .card-img-wrapper { background: #cff4fc; }
.theme-fire   .card-img-wrapper { background: #f8d7da; }

/* ── PRODUCT PAGE styles ──────────────────────────────── */
.product-page { background: #fafbfc; }

.product-hero {
  background: linear-gradient(180deg, white 0%, var(--product-accent-light) 100%);
}
.product-hero-img-wrap {
  position: relative;
}
.product-hero-img {
  border: 6px solid white;
}
.product-hero-icon {
  position: absolute;
  top: -20px; right: -10px;
  width: 70px; height: 70px;
  background: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  border: 3px solid var(--product-accent);
}

.product-badge-pill {
  display: inline-block;
  background: var(--product-accent);
  color: white;
  font-weight: 700;
  font-size: .8rem;
  padding: .4em 1em;
  border-radius: 50rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.product-hero-subtitle {
  font-size: 1.1rem;
  color: var(--product-accent);
  font-weight: 600;
  font-style: italic;
}

.product-quick-facts {
  display: grid;
  gap: .75rem;
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: white;
  border-radius: 1rem;
  border-left: 4px solid var(--product-accent);
  box-shadow: 0 4px 12px rgba(0,0,0,.04);
}
.quick-fact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: .9rem;
}
.quick-fact-label {
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .04em;
}
.quick-fact-value {
  color: #1e293b;
  font-weight: 600;
  text-align: right;
}

.btn-product-primary {
  background: var(--product-accent);
  color: white;
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  transition: all .2s;
}
.btn-product-primary:hover {
  background: var(--product-accent-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

/* Story card */
.product-story-bg {
  background:
    radial-gradient(circle at 10% 0%, var(--product-accent-light) 0%, transparent 50%),
    radial-gradient(circle at 90% 100%, var(--product-accent-light) 0%, transparent 50%),
    #f8fafc;
}
.product-story-card {
  background: white;
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
  border-left: 6px solid var(--product-accent);
}
.product-story-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--product-accent);
}
.product-story-icon {
  font-size: 1.5rem;
  line-height: 1;
}

/* Feature cards */
.feature-card {
  border: 1px solid #e2e8f0;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--product-accent);
  box-shadow: 0 12px 32px rgba(0,0,0,.08) !important;
}
.feature-icon {
  font-size: 2.5rem;
  line-height: 1;
}

/* Tips section */
.product-tips-section {
  background: white;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
.product-section-label {
  display: inline-block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--product-accent);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.product-tips-list {
  list-style: none;
  padding: 0;
}
.product-tips-list li {
  position: relative;
  padding: 1rem 1rem 1rem 3rem;
  margin-bottom: .75rem;
  background: var(--product-accent-light);
  border-radius: .75rem;
  font-size: .95rem;
}
.product-tips-list li::before {
  content: '✓';
  position: absolute;
  left: 1rem; top: 50%;
  transform: translateY(-50%);
  width: 1.5rem; height: 1.5rem;
  background: var(--product-accent);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}

/* Related product cards */
.related-product-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
}
.related-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.1);
}
.related-product-img {
  width: 100%; height: 100%;
  object-fit: cover;
  min-height: 120px;
}
.related-product-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: .5rem;
}

/* ── Gallery masonry ──────────────────────────────────── */
.gallery-masonry {
  columns: 2;
  column-gap: .75rem;
}
@media (min-width: 576px) { .gallery-masonry { columns: 3; } }
@media (min-width: 992px) { .gallery-masonry { columns: 4; } }
@media (min-width: 1400px) { .gallery-masonry { columns: 5; } }

.gallery-item {
  break-inside: avoid;
  margin-bottom: .75rem;
  border-radius: .6rem;
  overflow: hidden;
  cursor: pointer;
}
.gallery-img {
  width: 100%; height: auto;
  display: block;
  transition: transform .35s, filter .35s;
  filter: brightness(.95);
}
.gallery-item:hover .gallery-img {
  transform: scale(1.04);
  filter: brightness(1.05);
}

.story-thumb {
  width: 100%; height: 160px;
  object-fit: cover;
  transition: transform .3s;
}
.story-thumb:hover { transform: scale(1.03); }

/* ── Video card (galerie) ─────────────────────────────── */
.video-card video { background: #111; }

/* ── FAQ accordion ────────────────────────────────────── */
.accordion-button {
  background: #fff;
  color: #1e293b;
  font-size: 1rem;
  padding: 1rem 1.25rem;
}
.accordion-button:not(.collapsed) {
  background: var(--nada-green-light);
  color: var(--nada-green-dark);
  box-shadow: none;
}
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(25,135,84,.25); }
.accordion-body { padding: 1.25rem; line-height: 1.7; }

/* ── WhatsApp button styles ──────────────────────────── */
.btn-whatsapp {
  background: #25D366;
  border-color: #25D366;
  color: #fff;
  font-weight: 600;
  font-size: .875rem;
  transition: background .2s, transform .15s;
}
.btn-whatsapp:hover, .btn-whatsapp:focus {
  background: #1ebe5d;
  border-color: #1ebe5d;
  color: #fff;
  transform: translateY(-1px);
}

/* ── Contact section ──────────────────────────────────── */
.section-contact {
  background: linear-gradient(135deg, #0d5927 0%, #198754 50%, #0a4a21 100%);
  position: relative;
  overflow: hidden;
}
.section-contact::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.text-white-75 { color: rgba(255,255,255,.75) !important; }
.contact-btn { font-size: 1.1rem; transition: transform .2s, box-shadow .2s; }
.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.25) !important;
}

/* ── WhatsApp floating button ─────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 62px; height: 62px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  z-index: 9999;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(37,211,102,.6);
}
.whatsapp-float-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  background: #111;
  color: #fff;
  white-space: nowrap;
  font-size: .78rem;
  font-weight: 600;
  padding: .4em .8em;
  border-radius: .4rem;
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .2s, transform .2s;
}
.whatsapp-float-tooltip::after {
  content: '';
  position: absolute;
  left: 100%; top: 50%;
  margin-top: -5px;
  border: 5px solid transparent;
  border-left-color: #111;
}
.whatsapp-float:hover .whatsapp-float-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ── Footer ───────────────────────────────────────────── */
.footer-link { transition: color .2s; }
.footer-link:hover { color: #4ade80 !important; }

/* ── Utility ──────────────────────────────────────────── */
.ls-wide { letter-spacing: .1em; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 575.98px) {
  .hero-logo { width: 100px; height: 100px; }
  .hero-section { min-height: 580px; }
  .stat-number { font-size: 1.75rem; }
  .whatsapp-float { width: 54px; height: 54px; bottom: 20px; right: 20px; }
  .card-img-wrapper { height: 200px; }
  .product-hero-icon { width: 56px; height: 56px; font-size: 2rem; }
  .contact-tips-list li { padding-left: 3.5rem; }
  .contact-tips-list li::before { width: 2.25rem; height: 2.25rem; font-size: 1rem; }
}

@media (max-width: 767.98px) {
  .section-title { text-align: center; }
  .section-title::after { margin-left: auto; margin-right: auto; }
  .story-content h2.story-chapter { text-align: left; padding-left: .75rem; }
}
