/* Homepage — hero, offers, info sections */

/* Hero */
.hero {
  background: var(--bg);
  padding: 4rem 20px 5rem;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  padding-left: clamp(0px, 8vw, 80px);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
  margin-left: clamp(-20px, -3vw, -40px);
  margin-bottom: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 520px;
  margin-left: clamp(40px, 12vw, 120px);
  font-style: italic;
}

.hero-visual {
  position: relative;
  min-height: 280px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  background-size: cover;
  background-position: center;
  max-width: 500px;
  max-height: 320px;
}

.hero-visual::after {
  content: "Fig. 0 — Pregled tržišta";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  background: rgba(10, 10, 10, 0.85);
  padding: 6px 10px;
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    padding-left: 0;
  }
  .hero h1 {
    margin-left: 0;
  }
  .hero-subtitle {
    margin-left: 0;
    margin: 0 auto;
  }
  .hero-visual {
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .offer-logo-wrap {
    width: 140px;
    height: 48px;
  }

  .offer-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }
}

@media (max-width: 375px) {
  .decor-wrap {
    max-height: 220px;
  }

  .decor-wrap img {
    max-height: 220px;
  }

  .hero-visual {
    max-height: 220px;
    min-height: 200px;
  }
}

/* Offers */
.offers-section {
  position: relative;
  padding: 4rem 20px;
  background-color: var(--surface);
  background-size: cover;
  background-position: center;
}

.offers-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.88);
}

.offers-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
}

.offers-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.offers-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.offers-header p {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}

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

.offer-card {
  background: #1a1a2e;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.offer-card:nth-child(1) {
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  border-color: rgba(56, 189, 248, 0.25);
}

.offer-card:nth-child(2) {
  background: linear-gradient(145deg, #1a1f16 0%, #0d1208 100%);
  border-color: rgba(163, 230, 53, 0.25);
}

.offer-card:nth-child(3) {
  background: linear-gradient(145deg, #2a1520 0%, #150a10 100%);
  border-color: rgba(244, 63, 94, 0.25);
}

.offer-card:nth-child(4) {
  background: linear-gradient(145deg, #1a1a28 0%, #0e0e18 100%);
  border-color: rgba(167, 139, 250, 0.25);
}

.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.offer-logo-wrap {
  width: 160px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.offer-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.offer-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

.offer-bonus-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.offer-bonus {
  font-family: var(--sans);
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  color: var(--primary);
  font-weight: 600;
  line-height: 1.35;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.offer-terms {
  font-family: var(--sans);
  font-size: 0.7rem;
  color: var(--muted);
}

.offer-cta {
  margin-top: auto;
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.9rem;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s;
}

.offer-cta:hover {
  background: rgba(163, 230, 53, 0.15);
  color: var(--primary);
}

/* Info sections base */
.info-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3.5rem 20px;
  border-bottom: 1px solid var(--border);
}

.info-section h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: 1rem;
  color: var(--text);
}

.info-section p {
  color: var(--muted);
  font-size: 1rem;
}

.footnote {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
}

.decor-wrap {
  max-width: 100%;
  width: 100%;
  max-height: 320px;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.decor-wrap img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  max-height: 320px;
}

/* Layout 1: two-column */
.info-layout-split {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}

.info-layout-split.reverse {
  grid-template-columns: 280px 1fr;
}

@media (max-width: 700px) {
  .info-layout-split,
  .info-layout-split.reverse {
    grid-template-columns: 1fr;
  }
}

/* Layout 2: mono equation block */
.info-equation {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--secondary);
  border-left: 3px solid var(--primary);
}

/* Layout 3: pull quote */
.info-pullquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 0 1rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text);
}

/* Layout 4: numbered list */
.info-steps {
  list-style: none;
  counter-reset: step;
  margin: 1.25rem 0;
}

.info-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 0.85rem;
  color: var(--muted);
}

.info-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--primary);
  background: var(--surface);
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
}

/* Layout 5: diagram boxes */
.info-diagram {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.info-diagram-box {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1rem;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
}

.info-diagram-box strong {
  display: block;
  color: var(--primary);
  font-family: var(--mono);
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
}

@media (max-width: 600px) {
  .info-diagram {
    grid-template-columns: 1fr;
  }
}

/* Layout 6: table */
.info-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.85rem;
}

.info-table th,
.info-table td {
  border: 1px solid var(--border);
  padding: 0.65rem 1rem;
  text-align: left;
}

.info-table th {
  background: var(--surface);
  color: var(--primary);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.info-table td {
  color: var(--muted);
}

/* Layout 7: card inset */
.info-inset {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem 2rem;
  margin: 1rem 0;
  position: relative;
}

.info-inset::before {
  content: attr(data-label);
  position: absolute;
  top: -0.6rem;
  left: 1rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--secondary);
  background: var(--bg);
  padding: 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Layout 8: horizontal rule + columns */
.info-columns {
  columns: 2;
  column-gap: 2rem;
  margin: 1rem 0;
}

@media (max-width: 600px) {
  .info-columns {
    columns: 1;
  }
}

/* Section label */
.section-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: block;
}
