/* =============================================
   MAGMA — Refined additions (v2)
   Extends style.css. Load AFTER style.css.
   Scope: homepage refinements — hero, brands,
   refined rhythm, type upgrades.
============================================= */

/* ---- GLOBAL TIGHTENING ---- */
.section { padding: 7rem 0; }
@media (max-width: 768px) { .section { padding: 4.5rem 0; } }

.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.section-label::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--blue);
  display: inline-block;
}
.section-title {
  font-size: clamp(2.1rem, 4.2vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.005em;
  margin-bottom: 2.5rem;
}
.section-lede {
  font-size: 1.1rem;
  color: #555;
  max-width: 640px;
  line-height: 1.6;
  margin-top: -1.25rem;
  margin-bottom: 2.5rem;
}

/* ---- HERO v2 — video right, type left ---- */
.hero-v2 {
  position: relative;
  background: var(--white);
  overflow: hidden;
  padding: 3.5rem 0 0;
}
.hero-v2::before {
  /* faint guide line down the left gutter */
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--grey) 20%, var(--grey) 80%, transparent);
  opacity: 0.7;
  pointer-events: none;
  display: none;
}
.hero-v2-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4.5rem;
  align-items: center;
  padding: 2rem 0 5rem;
  position: relative;
}
.hero-v2-content { position: relative; z-index: 2; }

.hero-v2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.5rem;
}
.hero-v2-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--blue);
}

.hero-v2-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.5rem, 8.2vw, 8rem);
  line-height: 0.88;
  letter-spacing: -0.015em;
  color: var(--black);
  margin-bottom: 1.75rem;
  text-wrap: balance;
}
.hero-v2-title .accent { color: var(--blue); }
.hero-v2-title .thin {
  font-weight: 300;
  font-style: italic;
  color: var(--grey-mid);
}

.hero-v2-sub {
  font-size: 1.15rem;
  color: #444;
  max-width: 500px;
  line-height: 1.65;
  margin-bottom: 2.25rem;
}
.hero-v2-sub strong { color: var(--black); font-weight: 600; }

.hero-v2-ctas { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero-v2-ctas .btn { padding: 1.05rem 2.25rem; font-size: 0.95rem; }

.hero-v2-meta {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-mid);
}
.hero-v2-meta::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--grey-mid);
  opacity: 0.5;
}
.hero-v2-meta-year {
  color: var(--black);
  font-weight: 800;
}

/* Video panel */
.hero-v2-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--black);
}
.hero-v2-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-v2-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #0087AE;
  opacity: 0.24;
  pointer-events: none;
  mix-blend-mode: normal;
}
.hero-v2-media-tag {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  background: rgba(35, 31, 32, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 2px;
}
.hero-v2-media-tag::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 135, 174, 0.25);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(0, 135, 174, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(0, 135, 174, 0); }
}

.hero-v2-media-badge {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 3;
  padding: 0.75rem 1rem;
  background: var(--white);
  border-radius: var(--radius);
  font-family: var(--font-display);
  min-width: 160px;
}
.hero-v2-media-badge-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-mid);
  display: block;
  margin-bottom: 0.15rem;
}
.hero-v2-media-badge-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--black);
  letter-spacing: 0.01em;
}

/* Hero stat ribbon — subordinate strip below hero */
.hero-v2-ribbon {
  border-top: 1px solid var(--grey);
  border-bottom: 1px solid var(--grey);
  background: var(--white);
}
.hero-v2-ribbon-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hero-v2-ribbon-cell {
  padding: 1.5rem 1.75rem;
  border-right: 1px solid var(--grey);
  display: flex;
  align-items: baseline;
  gap: 1rem;
  transition: background var(--transition);
}
.hero-v2-ribbon-cell:last-child { border-right: none; }
.hero-v2-ribbon-cell:hover { background: var(--offwhite); }
.hero-v2-ribbon-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--black);
  line-height: 1;
  letter-spacing: -0.01em;
}
.hero-v2-ribbon-num .plus { color: var(--blue); }
.hero-v2-ribbon-label {
  font-size: 0.78rem;
  color: var(--grey-mid);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.3;
}

@media (max-width: 1024px) {
  .hero-v2-inner { grid-template-columns: 1fr; gap: 3rem; padding: 1.5rem 0 3.5rem; }
  .hero-v2-media { aspect-ratio: 16 / 10; max-width: 640px; }
  .hero-v2-ribbon-inner { grid-template-columns: 1fr 1fr; }
  .hero-v2-ribbon-cell:nth-child(2) { border-right: none; }
  .hero-v2-ribbon-cell:nth-child(-n+2) { border-bottom: 1px solid var(--grey); }
}
@media (max-width: 520px) {
  .hero-v2-ribbon-inner { grid-template-columns: 1fr; }
  .hero-v2-ribbon-cell { border-right: none; border-bottom: 1px solid var(--grey); }
  .hero-v2-ribbon-cell:last-child { border-bottom: none; }
}

/* ---- GENERALNI UVOZNIK — brand wall ---- */
.brands {
  background: var(--white);
  padding: 5.5rem 0;
  border-bottom: 1px solid var(--grey);
}
.brands-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
  margin-bottom: 3rem;
}
.brands-head-text .section-title {
  margin-bottom: 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}
.brands-head-text p {
  color: var(--grey-mid);
  font-size: 0.95rem;
  max-width: 560px;
}
.brands-head-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--grey);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black);
  white-space: nowrap;
}
.brands-head-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--grey);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.brand-cell {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.5rem;
  border-right: 1px solid var(--grey);
  border-bottom: 1px solid var(--grey);
  background: var(--white);
  position: relative;
  transition: background var(--transition);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--black);
  text-align: center;
  line-height: 1.15;
}
.brand-cell:hover { background: var(--offwhite); }
.brand-cell:nth-child(6n) { border-right: none; }
.brand-cell:nth-last-child(-n+6) { border-bottom: none; }
.brand-cell .ph-style {
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
}
.brand-cell .ph-italic {
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  font-size: 1.5rem;
}
.brand-cell .ph-serif {
  font-family: 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  font-size: 1.25rem;
}
.brand-cell .ph-mono {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-mid);
}
.brand-cell small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-top: 0.3rem;
}

.brands-footnote {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--grey-mid);
  flex-wrap: wrap;
}
.brands-footnote a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.brands-footnote a:hover { color: #005f7a; }

@media (max-width: 1024px) {
  .brands-grid { grid-template-columns: repeat(3, 1fr); }
  .brand-cell:nth-child(6n) { border-right: 1px solid var(--grey); }
  .brand-cell:nth-child(3n) { border-right: none; }
  .brand-cell:nth-last-child(-n+6) { border-bottom: 1px solid var(--grey); }
  .brand-cell:nth-last-child(-n+3) { border-bottom: none; }
}
@media (max-width: 600px) {
  .brands-head { grid-template-columns: 1fr; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-cell { aspect-ratio: 3 / 2; }
  .brand-cell:nth-child(3n) { border-right: 1px solid var(--grey); }
  .brand-cell:nth-child(2n) { border-right: none; }
  .brand-cell:nth-last-child(-n+3) { border-bottom: 1px solid var(--grey); }
  .brand-cell:nth-last-child(-n+2) { border-bottom: none; }
}

/* ---- ABOUT SNIPPET — refined ---- */
.about-snippet { padding: 7rem 0; }
.about-snippet-grid { gap: 6rem; }
.about-snippet-text .section-title {
  margin-bottom: 1.5rem;
}
.about-snippet-text p {
  font-size: 1.075rem;
  line-height: 1.75;
  color: #444;
}
.about-snippet-text .pullquote {
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--blue);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--black);
  font-style: normal;
  letter-spacing: -0.005em;
}
.about-snippet-numbers { gap: 1.25rem; }
.number-block {
  padding: 1.5rem 1.5rem 1.5rem 1.25rem;
  border-left: 3px solid var(--blue);
  transition: transform var(--transition);
}
.number-block:hover { transform: translateX(4px); }
.number-big { font-size: 3rem; }

/* ---- CHANNELS — refined ---- */
.channels { background: var(--offwhite); padding: 7rem 0; }
.channels-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
  margin-bottom: 3rem;
}
.channels-head p {
  max-width: 500px;
  color: #555;
  font-size: 1rem;
  line-height: 1.65;
}
.channel-card {
  position: relative;
}
.channel-card-inner {
  padding: 3rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.channel-card--horeca .channel-card-inner {
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.channel-card--horeca .channel-card-inner::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 180px; height: 180px;
  background: var(--blue);
  opacity: 0.12;
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}
.channel-card--retail .channel-card-inner {
  background: var(--white);
  border: 1px solid var(--grey);
}
.channel-card h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.channel-icon { display: none; }
.channel-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0;
}
.channel-card--horeca .channel-card-tag { color: var(--blue); }
.channel-card--retail .channel-card-tag { color: var(--blue); }
.channel-card-tag::before {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
}
.channel-card p {
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}
.channel-card ul {
  flex: 1;
  margin-bottom: 2.25rem;
  gap: 0.7rem;
}
.channel-card ul li { font-size: 0.92rem; }
.channel-card--horeca ul li { color: rgba(255,255,255,0.8); }
.channel-link {
  font-size: 0.92rem;
  align-self: flex-start;
}

/* ---- SERVICES — refined ---- */
.services { padding: 7rem 0; }
.services-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
  margin-bottom: 3rem;
}
.services-head p {
  max-width: 500px;
  color: #555;
  font-size: 1rem;
  line-height: 1.65;
}
.service-card {
  padding: 2.5rem 2rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.service-num {
  font-size: 3.5rem;
  color: var(--grey);
}
.service-card h3 {
  font-size: 1.4rem;
  margin-top: auto;
}
.service-card p {
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* ---- PROMO BAR — slightly refined ---- */
.promo-bar { padding: 1.5rem 0; }
.promo-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.promo-label::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(0,135,174,0.2);
}
.promo-desc { font-size: 0.9rem; }
.promo-link { font-size: 0.88rem; letter-spacing: 0.08em; }

/* ---- CTA — refined ---- */
.cta-section { padding: 6rem 0; }
.cta-text h2 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); letter-spacing: -0.01em; }
.cta-text p { font-size: 1.1rem; }

/* ---- FOOTER — small polish ---- */
.footer { padding-top: 5rem; }

/* ---- HELPER: section divider ---- */
.divider-ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.divider-ornament::before,
.divider-ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--grey);
}
.divider-ornament span {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-mid);
}
