/* ============================================================
   Starfish Academy – Gimtadienio Akcija
   ============================================================ */

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

:root {
  --brand-orange: #f97316;
  --brand-orange-light: #fb923c;
  --brand-dark: #1a1a2e;
  --brand-navy: #16213e;
  --brand-mid: #0f3460;
  --gold: #f59e0b;
  --gold-light: #fcd34d;
  --cream: #f8f7f4;
  --text-main: #1e1e1e;
  --text-muted: #64748b;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 8px 32px rgba(0,0,0,.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--cream);
  color: var(--text-main);
  line-height: 1.6;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-mid) 60%, #1a4a7a 100%);
  color: var(--white);
  padding: 60px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-bg-circles {
  position: absolute; inset: 0; pointer-events: none;
}
.circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  background: var(--brand-orange);
}
.c1 { width: 500px; height: 500px; top: -150px; right: -100px; }
.c2 { width: 300px; height: 300px; bottom: 0; left: -80px; background: var(--gold); }
.c3 { width: 200px; height: 200px; top: 40%; left: 30%; background: white; }

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
  position: relative;
  z-index: 2;
}

/* Logo */
.logo-wrap { display: flex; align-items: center; justify-content: center; }
.logo-img { height: 52px; }
.logo-text {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem; font-weight: 800; letter-spacing: 2px; color: white;
}
.logo-text .star { color: var(--brand-orange); font-size: 2rem; }
.logo-text small { font-size: 0.65em; font-weight: 400; letter-spacing: 4px; display: block; }

/* Badge */
.badge-wrap { animation: float 3s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.badge {
  width: 160px; height: 160px;
  border-radius: 50%;
  background: conic-gradient(var(--brand-orange) 0%, var(--gold) 50%, var(--brand-orange) 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 8px rgba(249,115,22,0.25), 0 0 0 16px rgba(249,115,22,0.10), var(--shadow-lg);
  animation: pulse-ring 2s ease-out infinite, float 3s ease-in-out infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 8px rgba(249,115,22,0.25), 0 0 0 16px rgba(249,115,22,0.10), var(--shadow-lg); }
  50% { box-shadow: 0 0 0 14px rgba(249,115,22,0.20), 0 0 0 28px rgba(249,115,22,0.08), var(--shadow-lg); }
  100% { box-shadow: 0 0 0 8px rgba(249,115,22,0.25), 0 0 0 16px rgba(249,115,22,0.10), var(--shadow-lg); }
}
.badge-inner {
  background: var(--brand-dark);
  width: 130px; height: 130px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1;
}
.badge-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--brand-orange), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.badge-pct { font-size: 1.4rem; font-weight: 700; color: var(--gold); margin-top: -4px; }
.badge-label { font-size: 0.55rem; letter-spacing: 3px; color: rgba(255,255,255,0.7); margin-top: 4px; }

/* Hero text */
.hero-eyebrow { font-size: 1rem; opacity: 0.8; letter-spacing: 1px; }
.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
}
.highlight {
  background: linear-gradient(135deg, var(--brand-orange), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { font-size: 1.1rem; max-width: 560px; opacity: 0.9; }

/* Coupon */
.coupon-box {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px dashed rgba(255,255,255,0.3);
  border-radius: 50px;
  padding: 10px 20px;
  flex-wrap: wrap; justify-content: center;
  position: relative;
}
.coupon-label { font-size: 0.85rem; opacity: 0.75; }
.coupon-code {
  background: linear-gradient(135deg, var(--brand-orange), var(--gold));
  color: white; border: none; border-radius: 50px;
  padding: 8px 20px; font-size: 1rem; font-weight: 700;
  letter-spacing: 2px; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.coupon-code:hover { transform: scale(1.06); box-shadow: 0 4px 20px rgba(249,115,22,0.5); }
.coupon-code i { margin-left: 6px; }
.copied-msg {
  font-size: 0.85rem; color: #4ade80;
  opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
.copied-msg.show { opacity: 1; }

/* Deadline */
.deadline {
  font-size: 0.95rem; opacity: 0.85;
  display: flex; align-items: center; gap: 8px; justify-content: center;
}
.deadline i { color: var(--brand-orange); }

/* Countdown */
.countdown {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  flex-wrap: wrap;
}
.cd-block {
  display: flex; align-items: baseline; gap: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px; padding: 10px 16px;
  min-width: 72px; justify-content: center;
}
.cd-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem; font-weight: 700; color: var(--gold);
  line-height: 1;
}
.cd-unit { font-size: 0.7rem; opacity: 0.7; }
.cd-sep { font-size: 2rem; font-weight: 700; color: var(--brand-orange); line-height: 1; }

/* Wave */
.wave-wrap {
  position: absolute; bottom: 0; left: 0; right: 0;
  line-height: 0;
}
.wave-wrap svg { width: 100%; height: 60px; display: block; }

/* ============================================================
   PRODUCTS SECTION
   ============================================================ */
.products-section {
  padding: 80px 0 100px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.section-header p { color: var(--text-muted); font-size: 1.05rem; }

/* Grid wrapper */
.products-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Row 1 – 3 columns */
.grid-row-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Row 2 – 2 columns, centered (occupies 2/3 of full width) */
.grid-row-bottom {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: calc(66.666% - 9.334px);
  margin: 0 auto;
  width: 100%;
}

/* Tablet: 2-column top row, 2-column bottom row (full width) */
@media (max-width: 899px) and (min-width: 641px) {
  .grid-row-top {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-row-bottom {
    max-width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Product card */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: transform .3s, box-shadow .3s;
  border: 1px solid rgba(0,0,0,0.06);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.product-card.featured {
  border: 2px solid var(--brand-orange);
}

.card-badge-top {
  background: linear-gradient(90deg, var(--brand-orange), var(--gold));
  color: white; font-size: 0.78rem; font-weight: 700;
  padding: 6px 16px; text-align: center;
  letter-spacing: 0.5px;
}
.badge-gold {
  background: linear-gradient(90deg, var(--gold), #c07a00) !important;
}

.card-icon {
  display: flex; align-items: center; justify-content: center;
  padding: 32px 0 16px;
  font-size: 2.8rem;
  color: var(--brand-orange);
}
.card-dark .card-icon { color: var(--gold); }

.card-body {
  padding: 0 28px 24px;
  flex: 1;
}
.card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem; font-weight: 700; margin-bottom: 4px;
}
.card-tagline {
  font-size: 0.9rem; color: var(--brand-orange); font-weight: 600;
  margin-bottom: 14px;
}
.card-dark .card-tagline { color: var(--gold); }
.card-desc { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 18px; line-height: 1.7; }

/* Price block */
.card-price {
  background: rgba(249,115,22,0.06);
  border: 1px solid rgba(249,115,22,0.18);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 18px;
  display: flex; flex-direction: column; gap: 5px;
}
.card-price-dark {
  background: rgba(245,158,11,0.10);
  border-color: rgba(245,158,11,0.25);
}
.price-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  flex-wrap: wrap;
}
.price-label {
  font-size: 0.78rem; color: var(--text-muted); font-weight: 500;
}
.card-dark .price-label { color: rgba(255,255,255,0.6); }
.highlight-label {
  color: var(--brand-orange) !important; font-weight: 600;
}
.card-dark .highlight-label { color: var(--gold) !important; }
.price-original {
  font-size: 1rem; font-weight: 700; color: var(--text-main);
  text-decoration: none;
}
.card-dark .price-original { color: rgba(255,255,255,0.9); }
.price-discounted {
  font-size: 1rem; font-weight: 800;
  color: var(--brand-orange);
}
.card-dark .price-discounted { color: var(--gold); }

.vat-note {
  font-size: 0.72rem; font-weight: 500;
  opacity: 0.75; margin-left: 2px;
}

/* Price note at bottom of grid */
.price-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 24px;
  font-style: italic;
  display: none; /* hidden by default – only show if needed */
}

.card-features {
  list-style: none;
  display: flex; flex-direction: column; gap: 7px;
}
.card-features li {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 0.875rem; line-height: 1.45;
}
.card-features .fa-check {
  color: #22c55e;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.card-footer {
  padding: 20px 28px 28px;
  display: flex; align-items: center; gap: 16px;
  border-top: 1px solid rgba(0,0,0,0.06);
  flex-wrap: wrap;
}
.card-footer .btn {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-summary {
  font-size: 0.88rem; font-weight: 700;
  color: var(--brand-orange);
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(249,115,22,0.25);
  text-align: center;
}

/* Discount ribbon */
.discount-ribbon {
  background: linear-gradient(135deg, var(--brand-orange), var(--gold));
  color: white; font-weight: 800; font-size: 1.1rem;
  border-radius: 50px; padding: 6px 14px;
  white-space: nowrap; flex-shrink: 0;
}
.ribbon-gold {
  background: linear-gradient(135deg, var(--gold), #b45309) !important;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 50px;
  font-size: 0.95rem; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-orange), var(--gold));
  color: white;
}
.btn-primary:hover { transform: scale(1.05); box-shadow: 0 6px 24px rgba(249,115,22,0.45); }

.btn-secondary {
  background: var(--brand-dark);
  color: white;
}
.btn-secondary:hover { transform: scale(1.05); background: var(--brand-mid); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #b45309);
  color: white;
}
.btn-gold:hover { transform: scale(1.05); box-shadow: 0 6px 24px rgba(245,158,11,0.45); }

/* Dark card */
.card-dark {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-navy) 100%);
  color: var(--white);
  border: 1px solid rgba(245,158,11,0.3);
}
.card-dark .card-title { color: var(--white); }
.card-dark .card-desc { color: rgba(255,255,255,0.75); }
.card-dark .card-features li { color: rgba(255,255,255,0.9); }
.card-dark .card-footer { border-color: rgba(255,255,255,0.1); }
.card-dark .card-features .fa-check { color: var(--gold); }

/* For dark card grid layout on large screens */
@media (min-width: 900px) {
  .card-dark .card-body,
  .card-dark .card-footer {
    max-width: 800px;
  }
  .card-dark {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
  .card-dark .card-badge-top {
    grid-column: 1 / -1;
  }
  .card-dark .card-icon {
    grid-row: 2 / 4;
    padding: 32px 28px;
    font-size: 4rem;
    align-items: flex-start;
    padding-top: 48px;
  }
  .card-dark .card-body,
  .card-dark .card-footer {
    max-width: none;
  }
}

/* ============================================================
   HOW TO SECTION
   ============================================================ */
.how-section {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-mid) 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}
.how-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 48px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}
.step {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 32px 24px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
}
.step-num {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--brand-orange), var(--gold));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800;
}
.step h4 { font-size: 1.05rem; font-weight: 700; }
.step p { font-size: 0.9rem; opacity: 0.8; line-height: 1.6; }

.coupon-center {
  justify-content: center;
  background: rgba(255,255,255,0.07) !important;
  border-color: rgba(255,255,255,0.25) !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--brand-dark);
  color: rgba(255,255,255,0.7);
  padding: 40px 0;
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
.footer-logo {
  font-size: 1.2rem; font-weight: 700; color: white;
  display: flex; align-items: center; gap: 8px;
}
.footer-logo .star { color: var(--brand-orange); }
.footer-note { font-size: 0.88rem; max-width: 500px; line-height: 1.7; }
.footer-link {
  color: var(--brand-orange); text-decoration: none; font-size: 0.9rem;
}
.footer-link:hover { text-decoration: underline; }

/* ============================================================
   FLOATING BAR
   ============================================================ */
.floating-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand-mid));
  color: white;
  display: flex; align-items: center; justify-content: center; gap: 24px;
  padding: 12px 24px;
  font-size: 0.9rem; font-weight: 500;
  z-index: 999;
  border-top: 2px solid var(--brand-orange);
  transform: translateY(100%);
  transition: transform .4s ease;
}
.floating-bar.visible { transform: translateY(0); }
.floating-bar i { color: var(--brand-orange); }
.floating-deadline { color: var(--gold); font-size: 0.82rem; }
.btn-floating-scroll {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, var(--brand-orange), var(--gold));
  color: white; text-decoration: none;
  font-size: 0.82rem; font-weight: 700;
  padding: 7px 16px; border-radius: 50px;
  white-space: nowrap;
  transition: transform .2s, box-shadow .2s;
}
.btn-floating-scroll:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(249,115,22,0.5); }
.btn-floating-scroll i { color: white; font-size: 0.75rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .hero { padding: 40px 0 80px; }
  .badge { width: 130px; height: 130px; }
  .badge-inner { width: 105px; height: 105px; }
  .badge-num { font-size: 2.5rem; }
  .grid-row-top,
  .grid-row-bottom {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .card-footer { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .floating-bar { flex-direction: column; gap: 4px; font-size: 0.82rem; }
}
