/*
 * SPORTOWA GŁOWA — project tokens
 * v0.1 — 2026-08-17
 */

:root {
  /* BRAND CORE */
  --sg-navy: #102F50;
  --sg-ink: #111820;
  --sg-white: #FFFFFF;
  --sg-paper: #F7F6F2;
  --sg-muted: #667788;

  /* SERIES ACCENTS */
  --sg-orange: #F26A21;
  --sg-teal: #118D8A;
  --sg-green: #07853F;
  --sg-red: #B62025;
  --sg-yellow: #F0B51A;
  --sg-rose: #C94F74;

  /* SURFACES */
  --sg-surface: #FFFFFF;
  --sg-surface-soft: #F3F5F6;
  --sg-border: rgba(16, 47, 80, 0.14);

  /* LAYOUT */
  --sg-container: 1200px;
  --sg-container-wide: 1360px;

  --sg-section-space: clamp(4.5rem, 8vw, 8rem);
  --sg-gap-sm: 0.75rem;
  --sg-gap-md: 1.5rem;
  --sg-gap-lg: 2.5rem;
  --sg-gap-xl: clamp(3rem, 6vw, 5rem);

  /* SHAPE */
  --sg-radius-sm: 8px;
  --sg-radius-md: 16px;
  --sg-radius-lg: 28px;

  /* SHADOW */
  --sg-shadow-card:
    0 16px 45px rgba(16, 47, 80, 0.10);

  /* LEGACY KF BASE MAPPING */
  --kf-radius-sm: var(--sg-radius-sm);
  --kf-radius-md: var(--sg-radius-md);
  --kf-space-section: var(--sg-section-space);
  --kf-content-max: var(--sg-container);
}

/* =========================================================
   SG HERO v0.1
   ========================================================= */

.sg-section {
  width: 100%;
  padding-block: var(--sg-section-space);
}

.sg-container {
  width: min(calc(100% - 2rem), var(--sg-container));
  margin-inline: auto;
}

.sg-hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, var(--sg-white) 0%, var(--sg-paper) 100%);
}

.sg-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}

.sg-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.sg-kicker {
  margin: 0;
  color: var(--sg-orange);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sg-hero__title {
  margin: 0;
  max-width: 760px;
  color: var(--sg-navy);
  font-size: clamp(3.5rem, 7vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 900;
}

.sg-hero__lead {
  margin: 0;
  max-width: 680px;
  color: var(--sg-muted);
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  line-height: 1.6;
}

.sg-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.5rem;
}

.sg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1.35rem;
  border-radius: var(--sg-radius-sm);
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.sg-btn:hover {
  transform: translateY(-2px);
}

.sg-btn--primary {
  background: var(--sg-navy);
  color: var(--sg-white);
}

.sg-btn--primary:hover {
  background: var(--sg-orange);
  color: var(--sg-white);
}

.sg-btn--secondary {
  background: transparent;
  color: var(--sg-navy);
  border: 2px solid var(--sg-navy);
}

.sg-btn--secondary:hover {
  background: var(--sg-navy);
  color: var(--sg-white);
}

.sg-hero__visual {
  position: relative;
  min-height: 570px;
}

.sg-cover {
  position: absolute;
  width: clamp(190px, 19vw, 300px);
  height: auto;
  border-radius: 10px;
  box-shadow: var(--sg-shadow-card);
}

.sg-cover--main {
  z-index: 3;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(2deg);
}

.sg-cover--left {
  z-index: 1;
  left: 2%;
  bottom: 5%;
  transform: rotate(-8deg) scale(0.87);
}

.sg-cover--right {
  z-index: 2;
  right: 0;
  top: 8%;
  transform: rotate(7deg) scale(0.88);
}

@media (max-width: 900px) {
  .sg-hero {
    min-height: auto;
  }

  .sg-hero__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sg-hero__visual {
    min-height: 460px;
  }

  .sg-cover {
    width: min(46vw, 250px);
  }
}

@media (max-width: 600px) {
  .sg-container {
    width: min(calc(100% - 1.5rem), var(--sg-container));
  }

  .sg-hero__title {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .sg-hero__visual {
    min-height: 390px;
  }

  .sg-btn-row,
  .sg-btn {
    width: 100%;
  }
}

/* SG HERO — button alignment fix */
.sg-btn-row {
  flex-direction: row !important;
  align-items: center;
}

.sg-btn--primary {
  background-color: var(--sg-navy) !important;
  color: var(--sg-white) !important;
  border: 2px solid var(--sg-navy) !important;
}

.sg-btn--secondary {
  background-color: transparent !important;
  color: var(--sg-navy) !important;
  border: 2px solid var(--sg-navy) !important;
}

@media (max-width: 600px) {
  .sg-btn-row {
    flex-direction: column !important;
    align-items: stretch;
  }
}

/* SG HERO — polish v0.2 */
.sg-hero {
  min-height: 650px;
}

.sg-hero__visual {
  min-height: 520px;
}

.sg-cover {
  width: clamp(210px, 21vw, 320px);
}

.sg-cover--main {
  transform: translate(-50%, -50%) rotate(2deg) scale(1.03);
}

@media (max-width: 900px) {
  .sg-hero {
    min-height: auto;
  }

  .sg-hero__visual {
    min-height: 470px;
  }
}

@media (max-width: 600px) {
  .sg-hero__visual {
    min-height: 410px;
  }

  .sg-cover {
    width: min(48vw, 235px);
  }
}

/* =========================================================
   SG — PROBLEM SECTION v0.1
   ========================================================= */

.sg-problem {
  background: var(--sg-navy);
  color: var(--sg-white);
}

.sg-problem__intro {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.sg-eyebrow {
  margin: 0;
  color: var(--sg-orange);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sg-section-title {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 900;
}

.sg-problem .sg-section-title {
  color: var(--sg-white);
}

.sg-section-lead {
  margin: 0;
  max-width: 760px;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.65;
}

.sg-problem .sg-section-lead {
  color: rgba(255, 255, 255, 0.76);
}

.sg-problem__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.sg-problem-card {
  position: relative;
  min-height: 245px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--sg-radius-md);
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}

.sg-problem-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--sg-card-accent, var(--sg-orange));
}

.sg-problem-card__number {
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--sg-card-accent, var(--sg-orange));
}

.sg-problem-card__title {
  margin: 0;
  color: var(--sg-white);
  font-size: 1.3rem;
  line-height: 1.15;
  font-weight: 800;
}

.sg-problem-card__text {
  margin: 0;
  color: rgba(255,255,255,0.72);
  line-height: 1.55;
}

.sg-problem-card--orange { --sg-card-accent: var(--sg-orange); }
.sg-problem-card--teal   { --sg-card-accent: var(--sg-teal); }
.sg-problem-card--green  { --sg-card-accent: var(--sg-green); }
.sg-problem-card--yellow { --sg-card-accent: var(--sg-yellow); }
.sg-problem-card--rose   { --sg-card-accent: var(--sg-rose); }

@media (max-width: 1050px) {
  .sg-problem__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .sg-problem-card {
    min-height: auto;
  }
}

/* =========================================================
   SG — AUDIENCE SECTION v0.1
   ========================================================= */

.sg-audience {
  background: var(--sg-paper);
  color: var(--sg-navy);
}

.sg-audience__intro {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.sg-audience__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.sg-audience-card {
  position: relative;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--sg-white);
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius-lg);
  box-shadow: var(--sg-shadow-card);
  overflow: hidden;
}

.sg-audience-card::after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -55px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--sg-card-accent, var(--sg-orange));
  opacity: 0.12;
}

.sg-audience-card__top {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.sg-audience-card__label {
  margin: 0;
  color: var(--sg-card-accent, var(--sg-orange));
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sg-audience-card__title {
  margin: 0;
  color: var(--sg-navy);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
  font-weight: 900;
}

.sg-audience-card__text {
  margin: 0;
  max-width: 540px;
  color: var(--sg-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.sg-audience-card--orange { --sg-card-accent: var(--sg-orange); }
.sg-audience-card--rose   { --sg-card-accent: var(--sg-rose); }
.sg-audience-card--teal   { --sg-card-accent: var(--sg-teal); }
.sg-audience-card--green  { --sg-card-accent: var(--sg-green); }

@media (max-width: 700px) {
  .sg-audience__grid {
    grid-template-columns: 1fr;
  }

  .sg-audience-card {
    min-height: auto;
  }
}

/* SG AUDIENCE — polish v0.2 */
.sg-audience-card {
  min-height: 235px;
}

@media (max-width: 700px) {
  .sg-audience-card {
    min-height: auto;
  }
}

/* =========================================================
   SG — MATERIALS SECTION v0.1
   ========================================================= */

.sg-materials {
  background: var(--sg-white);
  color: var(--sg-navy);
}

.sg-materials__intro {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.sg-materials__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.sg-material-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--sg-paper);
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius-lg);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.sg-material-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sg-shadow-card);
}

.sg-material-card__media {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 430px;
  padding: 2rem 1.5rem 0;
  overflow: hidden;
}

.sg-material-card__image {
  width: min(82%, 280px);
  height: auto;
  filter: drop-shadow(0 18px 25px rgba(16,47,80,.16));
}

.sg-material-card__body {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1.5rem;
}

.sg-material-card__label {
  margin: 0;
  color: var(--sg-orange);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sg-material-card__title {
  margin: 0;
  color: var(--sg-navy);
  font-size: 1.45rem;
  line-height: 1.15;
  font-weight: 900;
}

.sg-material-card__text {
  margin: 0;
  color: var(--sg-muted);
  line-height: 1.55;
}

.sg-material-card__link {
  margin-top: auto;
  color: var(--sg-navy);
  font-weight: 800;
  text-decoration: none;
}

.sg-material-card__link:hover {
  color: var(--sg-orange);
}

@media (max-width: 950px) {
  .sg-materials__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .sg-material-card__media {
    min-height: 390px;
  }
}

/* SG MATERIALS — layout fix v0.2 */
.sg-materials__grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1.5rem !important;
}

.sg-material-card {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
}

.sg-material-card__media {
  width: 100% !important;
}

.sg-material-card__body {
  width: 100% !important;
}

@media (max-width: 950px) {
  .sg-materials__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 600px) {
  .sg-materials__grid {
    grid-template-columns: 1fr !important;
  }
}
