/* =========================================
   TALENTRA – style.css
   Centrum Profesjonalnego Nauczania
   ========================================= */

/* --- TOKENS --- */
:root {
  --sapphire:   #1B2B5E;
  --sapphire-d: #132147;
  --gold:       #E8A020;
  --gold-light: #FDE9C0;
  --white:      #FFFFFF;
  --grey-bg:    #F5F7FA;
  --grey-border:#E2E6ED;
  --text:       #2D2D2D;
  --text-muted: #6B7280;
  --radius:     10px;
  --radius-lg:  18px;
  --shadow:     0 4px 24px rgba(27,43,94,.10);
  --shadow-lg:  0 8px 40px rgba(27,43,94,.16);
  --transition: .22s ease;
  --container:  1160px;
  --font-display: 'Sora', sans-serif;
  --font-body:    'Inter', sans-serif;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }
input, select, textarea {
  font: inherit;
  width: 100%;
  border: 1.5px solid var(--grey-border);
  border-radius: var(--radius);
  padding: .72rem 1rem;
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--sapphire);
  box-shadow: 0 0 0 3px rgba(27,43,94,.12);
}
textarea { resize: vertical; min-height: 110px; }
label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--sapphire);
}

/* --- LAYOUT --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section-pad { padding: 96px 0; }
.bg-light { background: var(--grey-bg); }

/* --- TYPOGRAPHY --- */
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--sapphire);
  line-height: 1.18;
  margin-bottom: 1.1rem;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  padding: .85rem 2rem;
  border-radius: 50px;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  color: var(--sapphire);
}
.btn-gold:hover { background: #d48f10; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,160,32,.38); }
.btn-outline {
  border: 2px solid rgba(255,255,255,.65);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-sm { padding: .6rem 1.4rem; font-size: .875rem; }
.btn-full { width: 100%; }

/* =========================================
   HEADER
   ========================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 1.1rem 0;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.site-header.scrolled {
  background: var(--sapphire-d);
  box-shadow: 0 2px 20px rgba(0,0,0,.22);
  padding: .7rem 0;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.logo-img { height: 38px; width: auto; }

/* NAV */
.main-nav { margin-left: auto; }
.nav-list { display: flex; gap: 2rem; }
.nav-link {
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 600;
  color: rgba(255,255,255,.88);
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { transform: scaleX(1); }

/* HEADER RIGHT */
.header-right { display: flex; align-items: center; gap: 1rem; }

/* LANG SWITCHER */
.lang-switcher { position: relative; }
.lang-current {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.88);
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 600;
  padding: .45rem .85rem;
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 50px;
  transition: all var(--transition);
}
.lang-current:hover, .lang-current[aria-expanded="true"] {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.6);
}
.lang-flag { font-size: 1.1rem; line-height: 1; }
.lang-chevron { transition: transform var(--transition); color: rgba(255,255,255,.6); }
.lang-current[aria-expanded="true"] .lang-chevron { transform: rotate(180deg); }
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1.5px solid var(--grey-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 170px;
  overflow: hidden;
  z-index: 100;
}
.lang-dropdown.open { display: block; animation: dropIn .16s ease; }
@keyframes dropIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }
.lang-option {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  padding: .7rem 1.1rem;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--text);
  transition: background var(--transition);
}
.lang-option:hover { background: var(--grey-bg); }
.lang-option span { font-size: 1.15rem; }

/* BURGER */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(19,33,71,.9) 0%, rgba(27,43,94,.75) 60%, rgba(19,33,71,.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 100px;
  padding-bottom: 80px;
  max-width: 700px;
}
.hero-badge {
  display: inline-block;
  background: rgba(232,160,32,.18);
  border: 1px solid rgba(232,160,32,.4);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.4rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 1.2rem;
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.82);
  max-width: 540px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.2);
}
.stat { display: flex; flex-direction: column; gap: .15rem; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: .82rem;
  color: rgba(255,255,255,.7);
  font-weight: 500;
}
.stat-divider {
  width: 1px; height: 40px;
  background: rgba(255,255,255,.2);
}

/* =========================================
   ABOUT
   ========================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-images {
  position: relative;
}
.about-img-main img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 420px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.about-img-accent {
  position: absolute;
  bottom: -2.5rem;
  right: -2.5rem;
  width: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
}
.about-img-accent img { width: 100%; height: 140px; object-fit: cover; }
.about-text { padding-left: 1rem; }
.about-features {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: 1.5rem;
}
.about-features li {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .97rem;
  font-weight: 500;
}
.check-icon { flex-shrink: 0; }

/* =========================================
   COURSES
   ========================================= */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.course-card {
  background: var(--white);
  border: 1.5px solid var(--grey-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.course-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.course-card--cta {
  background: var(--sapphire);
  border-color: var(--sapphire);
  color: var(--white);
}
.course-card--cta .course-name,
.course-card--cta .course-desc { color: rgba(255,255,255,.9); }
.course-card--cta .course-meta span { color: rgba(255,255,255,.6); }
.course-card--cta:hover { border-color: var(--gold); }
.course-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.course-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sapphire);
  margin-bottom: .6rem;
}
.course-desc {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.course-meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .8rem;
  color: var(--text-muted);
}
.course-tag {
  background: var(--gold-light);
  color: #8B5E00;
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .7rem;
  border-radius: 50px;
}

/* =========================================
   HOW IT WORKS
   ========================================= */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(25% / 2);
  right: calc(25% / 2);
  height: 2px;
  background: linear-gradient(to right, var(--gold), transparent);
  opacity: .35;
  pointer-events: none;
}
.step { text-align: center; }
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--sapphire);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  box-shadow: 0 4px 16px rgba(27,43,94,.22);
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--sapphire);
  margin-bottom: .5rem;
}
.step p { font-size: .9rem; color: var(--text-muted); }

/* =========================================
   REVIEWS
   ========================================= */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.review-card {
  background: var(--white);
  border: 1.5px solid var(--grey-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow var(--transition);
}
.review-card:hover { box-shadow: var(--shadow); }
.review-stars { color: var(--gold); font-size: 1.1rem; letter-spacing: .1rem; }
.review-text {
  font-size: .95rem;
  color: var(--text);
  line-height: 1.68;
  font-style: normal;
  flex: 1;
}
.review-author {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--grey-border);
}
.review-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-light);
}
.review-name {
  display: block;
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 700;
  color: var(--sapphire);
  font-style: normal;
}
.review-meta {
  display: block;
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: .15rem;
}

/* =========================================
   CONTACT
   ========================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-top: 2rem;
}
.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-icon { flex-shrink: 0; margin-top: 3px; }
.contact-details strong {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  margin-bottom: .25rem;
}
.contact-details span, .contact-details a {
  font-size: .97rem;
  color: var(--text);
  line-height: 1.5;
}
.contact-details a:hover { color: var(--sapphire); text-decoration: underline; }

/* FORM */
.contact-form-wrap {
  background: var(--white);
  border: 1.5px solid var(--grey-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.form-group { margin-bottom: 1.2rem; }
.field-error {
  display: block;
  font-size: .8rem;
  color: #D94040;
  margin-top: .35rem;
  min-height: 1.1em;
}
input.invalid, textarea.invalid { border-color: #D94040; }

/* SUCCESS */
.form-success {
  text-align: center;
  padding: 3rem 2rem;
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sapphire);
  margin: 1rem 0 .5rem;
}
.form-success p { color: var(--text-muted); }

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: var(--sapphire-d);
  color: rgba(255,255,255,.7);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-logo { height: 32px; width: auto; filter: brightness(0) invert(1); }
.footer-brand { display: flex; flex-direction: column; gap: .4rem; }
.footer-tagline { font-size: .82rem; color: rgba(255,255,255,.5); }
.footer-nav {
  display: flex;
  gap: 1.8rem;
  margin: 0 auto;
}
.footer-nav a {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--gold); }
.footer-copy { font-size: .82rem; color: rgba(255,255,255,.4); }

/* =========================================
   SCROLL REVEAL
   ========================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].visible {
  opacity: 1;
  transform: none;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 3rem; }
}

@media (max-width: 900px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img-accent { display: none; }
  .reviews-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--sapphire-d);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 800;
  }
  .main-nav.open { display: flex; }
  .nav-list { flex-direction: column; align-items: center; gap: 2.5rem; }
  .nav-link { font-size: 1.4rem; }
  .burger { display: flex; z-index: 900; }
  .courses-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 1.2rem; }
  .stat-divider { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .footer-nav { margin: 0; flex-wrap: wrap; gap: 1rem; }
  .section-pad { padding: 64px 0; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
