/* ==========================================================================
   AGROPROGRAMISTA.PL - Profesjonalna Strona Wizytówka
   Paweł Kowalik | Agro Programista
   ========================================================================== */

:root {
  /* Kolory bazowe */
  --bg-deep: #06110a;
  --bg-body: #08170d;
  --bg-surface: rgba(14, 31, 20, 0.75);
  --bg-surface-hover: rgba(20, 44, 29, 0.9);
  --bg-card: rgba(11, 26, 17, 0.85);

  /* Akcenty: Złoto Kłosów i Szmaragd */
  --gold-primary: #e5a93b;
  --gold-light: #f5c765;
  --gold-bright: #ffe28a;
  --gold-glow: rgba(229, 169, 59, 0.22);

  --emerald-primary: #10b981;
  --emerald-light: #34d399;

  /* Ramki */
  --border-subtle: rgba(229, 169, 59, 0.16);
  --border-glow: rgba(229, 169, 59, 0.38);

  /* Teksty */
  --text-main: #edf5ef;
  --text-muted: #9ab3a3;
  --text-dim: #6b8474;
  --text-white: #ffffff;

  /* Typografia */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;

  /* Zaokrąglenia i Cienie */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 0 25px rgba(229, 169, 59, 0.2);

  --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  line-height: 1.6;
  background: radial-gradient(circle at 50% 0%, #11281a 0%, var(--bg-body) 40%, var(--bg-deep) 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Subtelne tło dekoracyjne */
.ambient-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(150px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
}

.glow-top {
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-primary);
}

.glow-bottom {
  bottom: 0;
  right: 10%;
  background: var(--emerald-primary);
}

/* Kontenery */
.container {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  position: relative;
  z-index: 1;
}

.container.narrow {
  max-width: 780px;
}

/* Nagłówek */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 23, 13, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-glow);
  box-shadow: 0 0 12px var(--gold-glow);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-white);
}

.gold-brackets {
  color: var(--gold-light);
  font-family: var(--font-mono);
}

.brand-sub {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--emerald-light);
  letter-spacing: 0.08em;
}

/* Nawigacja */
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--gold-light);
}

.nav-btn {
  padding: 0.45rem 1rem;
  background: rgba(229, 169, 59, 0.12);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--gold-light);
}

.nav-btn:hover {
  background: var(--gold-primary);
  color: #06110a;
  border-color: var(--gold-primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(229, 169, 59, 0.1);
  border: 1px solid rgba(229, 169, 59, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 1.75rem;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--emerald-light);
  box-shadow: 0 0 8px var(--emerald-light);
}

.hero-logo-wrap {
  margin-bottom: 1.5rem;
  position: relative;
}

.hero-avatar {
  width: 110px;
  height: 110px;
  border-radius: 24px;
  object-fit: cover;
  border: 2px solid var(--border-glow);
  box-shadow: 0 0 35px var(--gold-glow), var(--shadow-md);
  transition: transform var(--transition);
}

.hero-avatar:hover {
  transform: scale(1.04);
}

.hero-name {
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-white);
  line-height: 1.15;
}

.hero-title-tag {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-light);
  font-family: var(--font-mono);
  margin-top: 0.35rem;
  margin-bottom: 1.25rem;
}

.hero-bio {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.7;
  margin-bottom: 2.25rem;
}

/* Przyciski Akcji */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, #f5c765 0%, #e5a93b 60%, #b88022 100%);
  color: #06110a;
  box-shadow: 0 4px 16px rgba(229, 169, 59, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(229, 169, 59, 0.45);
  background: linear-gradient(135deg, #ffe28a 0%, #f5c765 60%, #c6861f 100%);
}

.btn-secondary {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.btn-secondary:hover {
  background: rgba(16, 185, 129, 0.22);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(14, 31, 20, 0.6);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* Pigułka z szybkimi danymi */
.quick-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 600px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.fact-item {
  display: flex;
  flex-direction: column;
}

.fact-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

.fact-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-white);
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.icon-copy-btn {
  background: transparent;
  border: none;
  color: var(--emerald-light);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 0.2rem;
  transition: transform var(--transition);
}

.icon-copy-btn:hover {
  transform: scale(1.15);
  color: #fff;
}

/* ==========================================================================
   Wspólne style sekcji
   ========================================================================== */
.section {
  padding: 3.5rem 0;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  text-align: center;
  color: var(--text-white);
  margin-bottom: 0.45rem;
}

.section-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2.5rem;
}

/* Karta O Mnie */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

.card-heading {
  font-size: 1.45rem;
  color: var(--gold-light);
  margin-bottom: 1.1rem;
}

.card-body-text p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.card-body-text p:last-child {
  margin-bottom: 0;
}

.card-body-text strong {
  color: var(--text-white);
}

/* Kafelki Działalności */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.area-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.85rem 1.5rem;
  transition: all var(--transition);
}

.area-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-gold), var(--shadow-sm);
  background: var(--bg-surface-hover);
}

.area-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(229, 169, 59, 0.12);
  border: 1px solid rgba(229, 169, 59, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
}

.area-card h3 {
  font-size: 1.2rem;
  color: var(--text-white);
  margin-bottom: 0.65rem;
}

.area-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Kafelki Mediów */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.media-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  transition: all var(--transition);
}

.media-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-sm);
  background: var(--bg-surface-hover);
}

.media-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.media-icon.yt {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.media-icon.fb {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #60a5fa;
}

.media-icon.ig {
  background: rgba(236, 72, 153, 0.15);
  border: 1px solid rgba(236, 72, 153, 0.35);
  color: #f472b6;
}

.media-icon.tt {
  background: rgba(34, 211, 238, 0.15);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: #22d3ee;
}

.media-icon.pod {
  background: rgba(229, 169, 59, 0.15);
  border: 1px solid rgba(229, 169, 59, 0.35);
  color: var(--gold-light);
}

.media-info h3 {
  font-size: 1.15rem;
  color: var(--text-white);
  margin-bottom: 0.3rem;
}

.media-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0.65rem;
}

.media-link-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-light);
  font-family: var(--font-mono);
}

/* ==========================================================================
   Dane Firmowe & Kontakt
   ========================================================================== */
.contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md), var(--shadow-gold);
}

.contact-box-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.contact-mini-logo {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-glow);
}

.contact-title {
  font-size: 1.45rem;
  color: var(--text-white);
}

.contact-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.details-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.85rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(6, 17, 10, 0.6);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-row .label {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.detail-row .value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.link-gold {
  color: var(--gold-light);
  text-decoration: none;
}

.link-gold:hover {
  text-decoration: underline;
}

.mono {
  font-family: var(--font-mono);
}

.text-emerald {
  color: var(--emerald-light);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
  padding-bottom: 1.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

/* Prosty Formularz */
.simple-form-wrap {
  background: rgba(6, 17, 10, 0.4);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-title {
  font-size: 1.15rem;
  color: var(--text-white);
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(8, 22, 13, 0.8);
  border: 1px solid rgba(229, 169, 59, 0.2);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  transition: border-color var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold-light);
  box-shadow: 0 0 10px rgba(229, 169, 59, 0.2);
}

.form-textarea {
  resize: vertical;
}

.form-feedback {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  display: none;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
}

.form-feedback.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--emerald-primary);
  color: var(--emerald-light);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #0d2516;
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  box-shadow: var(--shadow-md), var(--shadow-gold);
  transform: translateY(80px);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Stopka */
.site-footer {
  background: #040c07;
  border-top: 1px solid var(--border-subtle);
  padding: 2.25rem 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* RWD */
@media (max-width: 820px) {
  .areas-grid,
  .media-grid,
  .quick-facts {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .nav {
    display: none; /* proste ukrycie na małych ekranach na rzecz widoku wizytówki */
  }

  .contact-box {
    padding: 1.5rem;
  }

  .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}
