/* ==========================================================================
   LIFECORA - Dark Theme with Green & Orange Accents (Croatia Edition)
   ========================================================================== */

:root {
  --bg-primary: #070b14;
  --bg-secondary: #0d1527;
  --bg-card: rgba(15, 23, 42, 0.88);
  --bg-card-hover: rgba(22, 34, 61, 0.95);
  
  /* Green & Orange Theme Colors */
  --accent-green: #10b981;
  --accent-green-hover: #059669;
  --accent-green-light: #34d399;
  --accent-orange: #f97316;
  --accent-orange-hover: #ea580c;
  --accent-orange-light: #fb923c;
  --accent-orange-glow: rgba(249, 115, 22, 0.35);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow-green: rgba(16, 185, 129, 0.3);
  --border-glow-orange: rgba(249, 115, 22, 0.35);

  --error-color: #ef4444;
  --error-glow: 0 0 16px rgba(239, 68, 68, 0.75);

  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(16, 185, 129, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 85% 55%, rgba(249, 115, 22, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.06) 0%, transparent 40%);
  background-attachment: fixed;
}

.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at top, rgba(249, 115, 22, 0.04), transparent 70%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Typography & Badges */
h1, h2, h3, h4 {
  color: #ffffff;
  font-weight: 700;
  line-height: 1.25;
}

.text-gradient-orange {
  background: linear-gradient(135deg, #ffffff 25%, var(--accent-orange-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-green {
  background: linear-gradient(135deg, #ffffff 25%, var(--accent-green-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-orange {
  color: var(--accent-orange-light);
}

.text-green {
  color: var(--accent-green-light);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  color: var(--accent-green-light);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.badge-orange {
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: var(--accent-orange-light);
}

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 20, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
  transition: var(--transition);
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo span {
  color: var(--accent-orange);
  background: linear-gradient(135deg, var(--accent-orange-light), var(--accent-green-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-leaf {
  width: 10px;
  height: 10px;
  background: var(--accent-green);
  border-radius: 50% 0 50% 0;
  display: inline-block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}

.nav-links a.active {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-green-light);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--accent-orange);
  border-radius: 2px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-hover));
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px var(--accent-orange-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.55);
  background: linear-gradient(135deg, var(--accent-orange-light), var(--accent-orange));
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-green-light);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1px solid rgba(16, 185, 129, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--accent-green);
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* Page Section Common Layout */
.page-hero {
  padding: 50px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.7rem;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 580px;
}

.hero-highlights {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 34px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.highlight-item:hover {
  border-color: var(--border-glow-green);
  transform: translateX(4px);
}

.highlight-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.hero-image-wrap:hover img {
  transform: scale(1.03);
}

/* Dosage & Usage Box */
.dosage-banner {
  margin: 50px 0 40px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(249, 115, 22, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  padding: 30px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.dosage-info h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
  color: var(--accent-green-light);
}

.dosage-pills {
  display: flex;
  gap: 16px;
}

.dosage-step {
  background: rgba(7, 11, 20, 0.85);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  text-align: center;
}

.dosage-step .time {
  font-weight: 700;
  color: var(--accent-orange-light);
  font-size: 0.95rem;
}

.dosage-step .desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Story Section */
.story-section {
  padding: 50px 0;
}

.story-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 45px;
  align-items: center;
}

.story-card {
  background: var(--bg-card);
  padding: 38px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.story-card h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}

.story-text {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 16px;
}

.story-quote {
  border-left: 3px solid var(--accent-orange);
  padding-left: 18px;
  margin: 22px 0;
  font-style: italic;
  color: #e2e8f0;
}

.author-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.author-meta .name {
  font-weight: 700;
  color: #ffffff;
}

.author-meta .role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Ingredients Section */
.ingredients-section {
  padding: 50px 0;
}

.section-head {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 45px;
}

.section-head h1,
.section-head h2 {
  font-size: 2.3rem;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.ingredient-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.ingredient-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-orange));
  opacity: 0;
  transition: var(--transition);
}

.ingredient-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow-green);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.ingredient-card:hover::before {
  opacity: 1;
}

.ingredient-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(249, 115, 22, 0.15);
  color: var(--accent-orange-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.ingredient-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.ingredient-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Certificates Prominent Box */
.cert-section {
  padding: 50px 0;
}

.cert-banner {
  background: radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.12), rgba(13, 21, 39, 0.95));
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: var(--radius-lg);
  padding: 45px 35px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 36px;
}

.cert-item {
  background: rgba(7, 11, 20, 0.75);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  text-align: center;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

.cert-item:hover {
  border-color: var(--accent-orange);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px var(--accent-orange-glow);
}

.cert-badge-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent-green-light);
}

.cert-item h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.cert-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Order / Checkout Section (ONLY on narudzba.html) */
.order-section {
  padding: 50px 0 70px;
}

.order-box {
  background: linear-gradient(145deg, #0f172a, #0a0f1d);
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: var(--radius-lg);
  padding: 45px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.order-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  align-items: center;
}

.product-preview {
  text-align: center;
}

.product-preview-img-wrap {
  max-width: 380px;
  margin: 0 auto 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.product-preview-img-wrap img {
  width: 100%;
  display: block;
}

.product-dosage-reminder {
  background: rgba(7, 11, 20, 0.85);
  border: 1px dashed rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-size: 0.9rem;
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Form Styles */
.form-wrap h2 {
  font-size: 2.1rem;
  margin-bottom: 12px;
}

.form-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.offer-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.4);
  color: var(--accent-orange-light);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #e2e8f0;
}

.form-control {
  width: 100%;
  padding: 15px 18px;
  background: rgba(7, 11, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 1.05rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 15px var(--accent-orange-glow);
}

/* RED GLOW ON INVALID INPUT */
.form-control.is-invalid {
  border-color: var(--error-color) !important;
  box-shadow: var(--error-glow) !important;
  background-color: rgba(239, 68, 68, 0.06);
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 6px;
}

.form-error-msg {
  display: none;
  color: #f87171;
  font-size: 0.82rem;
  margin-top: 6px;
  font-weight: 500;
}

.form-control.is-invalid + .form-error-msg,
.form-control.is-invalid ~ .form-error-msg {
  display: block;
}

.form-guarantees {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.guarantee-item i {
  color: var(--accent-green);
}

/* Big Footer Panel */
.footer {
  background: #05080e;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 60px 0 30px;
  margin-top: 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 16px 0 20px;
  line-height: 1.6;
}

.footer-title {
  font-size: 1.15rem;
  margin-bottom: 20px;
  color: #ffffff;
  position: relative;
  padding-bottom: 8px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--accent-orange);
}

.footer-contacts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contacts li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-contacts li strong {
  color: #e2e8f0;
}

/* Footer Accordion Mini-Tabs */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.accordion-header {
  width: 100%;
  padding: 14px 18px;
  background: none;
  border: none;
  color: #f1f5f9;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.accordion-icon {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
  color: var(--accent-orange-light);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  background: rgba(7, 11, 20, 0.7);
}

.accordion-body {
  padding: 16px 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom {
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Thanks Page Styling */
.thanks-container {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.thanks-card {
  max-width: 650px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.thanks-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--accent-green-light);
  margin: 0 auto 24px;
}

.thanks-card h1 {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.thanks-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.thanks-details-box {
  background: rgba(7, 11, 20, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 30px;
  text-align: left;
  font-size: 0.92rem;
  color: #cbd5e1;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid,
  .story-grid,
  .order-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dosage-banner {
    flex-direction: column;
    text-align: center;
  }

  .dosage-pills {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #0d1527;
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links.show {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
