/* ==========================================================
   Strona Marek Oleniacz - paleta z brand-kit
   Kolory: granat #142846 / #283C64, cyjan #00B4D2
   ========================================================== */

:root {
  /* Paleta brand */
  --navy: #142846;
  --navy-light: #283C64;
  --cyan: #00B4D2;
  --cyan-hover: #0095af;
  --text-light: #FAFAFA;
  --text-muted-dark: #A0BED2;

  /* Neutralne (dla jasnych sekcji) */
  --text: #142846;
  --text-muted: #556581;
  --bg: #ffffff;
  --bg-alt: #F5F7FA;
  --border: #dbe3ed;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --max-width: 1140px;
  --max-width-narrow: 760px;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(20, 40, 70, 0.08);
  --shadow-md: 0 8px 24px rgba(20, 40, 70, 0.12);
  --shadow-lg: 0 20px 50px rgba(20, 40, 70, 0.2);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 1em; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TOP NAV ===== */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: rgba(20, 40, 70, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-light);
}
.logo:hover { text-decoration: none; color: var(--cyan); }

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted-dark);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text-light); text-decoration: none; }

.nav-cta {
  background: var(--cyan);
  color: var(--navy) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 700;
}
.nav-cta:hover { background: var(--text-light); color: var(--navy); }

/* ===== HERO ===== */
.hero {
  background:
    linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--text-light);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

/* Delikatny akcent graficzny w tle - okrąg cyan blur */
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 180, 210, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  margin-bottom: 28px;
}

.hero-text h1 .accent {
  color: var(--cyan);
}

.hero-text .lead {
  font-size: 1.2rem;
  color: var(--text-muted-dark);
  max-width: 48ch;
  margin-bottom: 36px;
  line-height: 1.55;
}

.hero-portrait {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-portrait img {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--cyan);
  box-shadow: var(--shadow-lg);
}

/* Dekoracja kropek przy portrecie */
.hero-portrait::after {
  content: '';
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 80px;
  height: 80px;
  background-image: radial-gradient(circle, var(--cyan) 2px, transparent 2px);
  background-size: 16px 16px;
  opacity: 0.5;
  z-index: -1;
}

/* ===== SEKCJE ===== */
.section {
  padding: clamp(64px, 8vw, 100px) 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-dark {
  background: var(--navy);
  color: var(--text-light);
}

.section-dark h2, .section-dark .big-text { color: var(--text-light); }
.section-dark p { color: var(--text-muted-dark); }

.section-intro {
  padding: clamp(56px, 6vw, 80px) 0;
  text-align: center;
}

.intro-text {
  max-width: 52ch;
  margin: 0 auto;
  font-size: 1.2rem;
  color: var(--text);
  line-height: 1.65;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 16px;
}

/* Big text - subheading */
.big-text {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.45;
}

/* ===== CARDS - CO ROBIĘ ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--cyan);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--cyan);
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card h3 {
  color: var(--navy);
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin: 0;
}

/* ===== STORY / CYTAT (ciemna sekcja) ===== */
.story {
  background: var(--navy-light);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
  margin-top: 32px;
}

.story::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 32px;
  font-size: 8rem;
  line-height: 1;
  color: var(--cyan);
  font-family: Georgia, serif;
  font-weight: 700;
}

.story p {
  color: var(--text-light);
  font-size: 1.15rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.story-closing {
  font-weight: 600;
  color: var(--cyan) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 16px;
  margin-top: 24px !important;
}

/* ===== KTO ZA TYM STOI - split z portretem ===== */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 56px;
  align-items: center;
  margin-top: 32px;
}

.about-portrait {
  position: relative;
}

.about-portrait img {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about-portrait::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  width: 100%;
  max-width: 340px;
  height: 100%;
  border: 3px solid var(--cyan);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-text .big-text {
  color: var(--navy);
}

/* ===== KONTAKT ===== */
.section-contact {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.contact-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.contact-alt {
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
}

.contact-alt a {
  color: var(--navy);
  font-weight: 600;
  border-bottom: 2px solid var(--cyan);
}
.contact-alt a:hover { color: var(--cyan); text-decoration: none; }

/* ===== FORMULARZ ===== */
.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 180, 210, 0.15);
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-status {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  display: none;
}

.form-status-success {
  display: block;
  background: #e6f8fc;
  color: #00728a;
  border: 1px solid #b3e5f0;
}

.form-status-error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.form-status-error a { color: #991b1b; text-decoration: underline; }

/* ===== PRZYCISKI ===== */
.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--cyan);
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(0, 180, 210, 0.35);
}

.btn-primary:hover {
  background: var(--cyan-hover);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 180, 210, 0.45);
}

.btn-primary:disabled {
  background: var(--text-muted);
  cursor: wait;
  transform: none;
}

.btn-dark {
  background: var(--navy);
  color: var(--text-light);
}
.btn-dark:hover {
  background: var(--navy-light);
  color: var(--text-light);
  text-decoration: none;
  transform: translateY(-2px);
}

/* ===== SOCIAL LINKS (w sekcji "Kto za tym stoi") ===== */
.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.social-label {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-right: 4px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.social-btn:hover {
  background: var(--navy);
  color: var(--cyan);
  border-color: var(--navy);
  text-decoration: none;
  transform: translateY(-1px);
}

.social-btn svg {
  width: 20px;
  height: 20px;
}

/* ===== STOPKA ===== */
.site-footer {
  background: var(--navy);
  color: var(--text-muted-dark);
  padding: 36px 0;
  font-size: 0.9rem;
}

.site-footer p { margin: 0; }
.site-footer a { color: var(--cyan); }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted-dark);
  transition: all 0.2s;
}

.footer-social a:hover {
  background: var(--cyan);
  color: var(--navy);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-text h1 { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-text .lead { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-portrait { order: -1; }
  .hero-portrait img { max-width: 260px; }

  .about-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-portrait { text-align: center; }
  .about-portrait img { margin: 0 auto; }
  .about-portrait::before { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .top-nav { position: sticky; }
  .nav-links { gap: 16px; }
  .nav-links li:not(:last-child) { display: none; }

  .hero { padding: 100px 0 60px; }
  .hero-text .lead { font-size: 1.05rem; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 24px 20px; }

  .story { padding: 32px 24px; }
  .story::before { font-size: 5rem; top: -10px; left: 20px; }
  .story p { font-size: 1rem; }

  .card { padding: 28px 22px; }
}
