/* ============================================================
   3Shape Winners Landing - styles.css
   Brand: 3Shape Red #C8143C | Font: Inter
   ============================================================ */

:root {
  --color-primary: #C8143C;       /* 3Shape Red (accent1 from theme1.xml) */
  --color-primary-dark: #A8102F;  /* hover */
  --color-text-dark: #1E1E1E;     /* logo, headings */
  --color-text-muted: #5F5F64;    /* graphite, body text */
  --color-bg-light: #FFFFFF;
  --color-bg-section: #F7F7F8;    /* alternating section bg */
  --color-border: #E5E5E7;
  --color-dark: #1E1E1E;          /* dark section bg */

  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw-content: 1200px;
  --maxw-text: 720px;

  --radius: 4px;
  --radius-photo: 8px;

  --header-h: 64px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text-muted);
  background: var(--color-bg-light);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-text-dark);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1.1em; }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--maxw-content);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 60px 0; }
.text-content { max-width: var(--maxw-text); }
.text-content p { line-height: 1.75; }
.text-content--centered { margin: 0 auto; text-align: center; }

.section--light { background: var(--color-bg-light); }
.section--alt { background: var(--color-bg-section); }
.section--closing { background: var(--color-bg-section); text-align: center; }
.section--closing .container { max-width: var(--maxw-text); }
.section--dark { background: var(--color-dark); }
.section--dark h2 { color: #fff; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: 14px;
}
.eyebrow--light { color: #fff; opacity: 0.9; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  border: 1.5px solid transparent;
  text-align: center;
}
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); transform: translateY(-1px); }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.2s ease;
}
.header--scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.06); }
.header__container {
  max-width: var(--maxw-content);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
/* Header logo (real 3Shape brand PNG, transparent bg on white header) */
.header__logo { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.header__logo-img { height: 28px; width: auto; display: block; }
.header__nav { display: flex; gap: 26px; }
.header__nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.15s ease;
}
.header__nav a:hover { color: var(--color-primary); }
.header__meta { display: flex; align-items: center; gap: 18px; }
.header__badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-dark);
  background: var(--color-bg-section);
  border: 1px solid var(--color-border);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.header__lang { font-size: 0.88rem; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.header__lang .active { color: var(--color-primary); }
.header__lang a { color: var(--color-text-muted); }
.header__lang a:hover { color: var(--color-primary); }
.header__lang .separator { color: var(--color-border); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  background: url('./assets/hero-lobby.jpeg') center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,20,22,0.45) 0%, rgba(20,20,22,0.75) 100%),
    rgba(20,20,22,0.25);
}
.hero__container {
  position: relative;
  z-index: 2;
  max-width: var(--maxw-content);
  margin: 0 auto;
  padding: 90px 24px;
  width: 100%;
}
.hero__title {
  color: #fff;
  font-size: clamp(2.1rem, 5.4vw, 4rem);
  font-weight: 800;
  max-width: 16ch;
  margin-bottom: 0.4em;
  letter-spacing: -0.02em;
}
.hero__subtitle {
  max-width: 640px;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
  margin-bottom: 2em;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   THE AWARD - stats
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.stat {
  padding: 28px 24px;
  background: var(--color-bg-section);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  border-top: 3px solid var(--color-primary);
}
.stat__number {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 12px;
}
.stat__label { font-size: 0.95rem; color: var(--color-text-muted); line-height: 1.5; }

/* ============================================================
   SPLIT layout (Challenge, Recognition)
   ============================================================ */
.container--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split__text h2 { margin-bottom: 0.6em; }
.split__image img {
  width: 100%;
  border-radius: var(--radius-photo);
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

/* ============================================================
   SOLUTION
   ============================================================ */
.solution-image {
  margin: 40px 0;
}
.solution-image img {
  width: 100%;
  border-radius: var(--radius-photo);
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.four-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 16px;
}
.column h3 { color: var(--color-primary); margin-bottom: 0.4em; }
.column p { font-size: 0.97rem; margin: 0; }

/* ============================================================
   RESULTS - map background
   ============================================================ */
.section--map { position: relative; background: var(--color-bg-light); overflow: hidden; }
.section__map-bg {
  position: absolute;
  inset: 0;
  background: url('./assets/results-map.png') center/cover no-repeat;
  opacity: 0.08;
  pointer-events: none;
}
.section--map .container { position: relative; z-index: 2; }
.three-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 44px;
}
.block {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 26px;
  border-left: 3px solid var(--color-primary);
}
.block h3 { margin-bottom: 0.5em; }
.block p { font-size: 0.95rem; margin: 0; }

/* ============================================================
   TEAM
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 44px;
}
.team-card { text-align: center; }
.team-card img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: var(--radius-photo);
  border: 3px solid var(--color-primary);
  margin: 0 auto 18px;
}
.team-card h3 { margin-bottom: 0.3em; }
.team-card__role { font-size: 0.92rem; color: var(--color-text-muted); line-height: 1.5; }
.team-card__quote {
  margin: 20px 0 0;
  text-align: left;
  font-style: italic;
  color: var(--color-text-dark);
  border-left: 2px solid var(--color-primary);
  padding-left: 20px;
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ============================================================
   METHOD
   ============================================================ */
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  margin-top: 44px;
}
.method-item__number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--color-primary);
  text-stroke: 1.5px var(--color-primary);
  line-height: 1;
  margin-bottom: 14px;
}
.method-item h3 { margin-bottom: 0.5em; }
.method-item p { font-size: 0.97rem; margin: 0; }

/* ============================================================
   VIDEO
   ============================================================ */
.section--dark .eyebrow--light { color: var(--color-primary); opacity: 1; }
.video__caption {
  max-width: var(--maxw-text);
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  line-height: 1.7;
}
.video__embed {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-photo);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.video__embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ============================================================
   RECOGNITION placeholder
   ============================================================ */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  border: 2px dashed var(--color-primary);
  border-radius: var(--radius-photo);
  color: var(--color-primary);
  font-weight: 600;
  background: rgba(200,20,60,0.04);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 40px 0;
  background: var(--color-bg-light);
}
.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.footer__lang .active { color: var(--color-primary); font-weight: 600; }
.footer__lang a:hover, .footer__links a:hover { color: var(--color-primary); }
.footer__copy { color: var(--color-text-muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 769px) {
  .section { padding: 100px 0; }
}

@media (max-width: 980px) {
  .header__nav { display: none; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .header__logo-img { height: 22px; }
  .container--split { grid-template-columns: 1fr; gap: 40px; }
  .stats-row { grid-template-columns: 1fr; gap: 20px; }
  .team-grid { grid-template-columns: 1fr; gap: 40px; }
  .header__badge { display: none; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; }
  .footer__row { flex-direction: column; text-align: center; gap: 14px; }
}

@media (max-width: 420px) {
  .container, .header__container, .hero__container { padding-left: 18px; padding-right: 18px; }
  .stat__number { font-size: 2.8rem; }
}
