﻿/* ==========================================================================
   KontoRodzinne.pl - Główny arkusz stylów (Design System)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Playfair+Display:ital,wght@0,600;0,700;1,400;1,600&display=swap');

:root {
  /* Główne kolory bazowe */
  --font-primary: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-handwriting: 'Caveat', cursive, sans-serif;

  /* Kolory - Koncepcja Główna & Fintech (01) */
  --teal-primary: #00828a;
  --teal-hover: #006b72;
  --teal-light: #e6f7f6;
  --teal-mint: #d1f2ef;
  --teal-dark: #004d52;

  /* Kolory - Koncepcja Rodzina & Budżet (02) */
  --warm-bg: #fbf8f3;
  --warm-card: #ffffff;
  --coral-primary: #d85a48;
  --coral-hover: #bf4736;
  --gold-warm: #d49b3e;
  --gold-warm-hover: #b8822e;
  --sage-accent: #6c8a77;

  /* Kolory - Koncepcja Marka Premium (03) */
  --dark-bg: #060b14;
  --dark-card: #0c1524;
  --dark-border: rgba(223, 183, 108, 0.25);
  --gold-primary: #dfb76c;
  --gold-light: #f6dc9c;
  --gold-gradient: linear-gradient(135deg, #f7dfa5 0%, #dfb76c 50%, #ab7f2e 100%);
  --gold-shadow: rgba(223, 183, 108, 0.28);

  /* Kolory neutralne */
  --text-main: #14213d;
  --text-muted: #596780;
  --text-light: #8c98a9;
  --text-white: #ffffff;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e5e9f0;
  --border-light: #f1f4f8;

  /* Promienie zaokrągleń */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-pill: 9999px;

  /* Cienie */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-hover: 0 20px 48px rgba(0, 130, 138, 0.15);

  --transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Podstawowe reguły */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-primary);
  color: var(--text-main);
  background-color: var(--bg-page);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Header & Nawigacja */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 233, 240, 0.8);
  transition: var(--transition);
}

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

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
}

.brand-logo .logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--teal-primary);
}

.brand-logo .logo-dot {
  color: var(--teal-primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.98rem;
  font-weight: 500;
  color: #4b5563;
  position: relative;
  padding: 6px 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--teal-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: var(--teal-primary);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-pill.status-available {
  background: #e6f6f2;
  color: #0b7051;
  border: 1px solid rgba(11, 112, 81, 0.15);
}

.badge-pill.status-available .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

/* Przyciski */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  transition: var(--transition);
}

.btn-primary-teal {
  background: var(--teal-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 130, 138, 0.25);
}

.btn-primary-teal:hover {
  background: var(--teal-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 130, 138, 0.35);
}

.btn-outline-teal {
  border: 1.5px solid var(--teal-primary);
  color: var(--teal-primary);
  background: transparent;
}

.btn-outline-teal:hover {
  background: var(--teal-light);
  transform: translateY(-2px);
}

.btn-warm-gold {
  background: var(--gold-warm);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(212, 155, 62, 0.25);
}

.btn-warm-gold:hover {
  background: var(--gold-warm-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 155, 62, 0.35);
}

.btn-coral {
  background: var(--coral-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(216, 90, 72, 0.25);
}

.btn-coral:hover {
  background: var(--coral-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(216, 90, 72, 0.35);
}

.btn-dark-luxury {
  background: #091220;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn-dark-luxury:hover {
  background: #111d33;
  border-color: var(--gold-primary);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold-gradient);
  color: #0b1322;
  font-weight: 700;
  box-shadow: 0 4px 18px var(--gold-shadow);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(223, 183, 108, 0.45);
}

/* Home Hero */
.home-hero {
  position: relative;
  padding: 60px 0 40px;
  text-align: center;
  overflow: hidden;
}

.leaf-decoration {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

.leaf-top-left {
  top: 10px;
  left: -20px;
  width: 140px;
}

.leaf-top-right {
  top: 20px;
  right: -10px;
  width: 160px;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 24px;
  background: #e2f4f2;
  color: var(--teal-primary);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

.home-hero-title {
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111a2c;
  line-height: 1.18;
  margin-bottom: 18px;
}

.home-hero-subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: #55627a;
  max-width: 780px;
  margin: 0 auto 10px;
  line-height: 1.6;
}

.handwritten-note {
  font-family: var(--font-handwriting);
  font-size: 1.75rem;
  color: #586985;
  line-height: 1.2;
}

.handwritten-note .heart-icon {
  display: inline-block;
  color: #e05244;
  margin-left: 4px;
}

.hero-sub-note-wrapper {
  margin-top: 14px;
  margin-bottom: 20px;
}

/* Concepts Grid */
.concepts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.concept-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e7ecf3;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.concept-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.card-preview-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #f1f5f9;
  overflow: hidden;
  border-bottom: 1px solid #eef2f6;
}

.card-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.concept-card:hover .card-preview-img {
  transform: scale(1.04);
}

.card-content {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
}

.concept-number-title {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.card-teal .concept-number-title {
  color: var(--teal-primary);
}

.card-warm .concept-number-title {
  color: #c48734;
}

.card-dark .concept-number-title {
  color: #111d33;
}

.concept-desc {
  font-size: 0.96rem;
  color: #5c687e;
  line-height: 1.55;
  margin-bottom: 24px;
  flex-grow: 1;
}

.card-content .btn {
  width: 100%;
  padding: 12px 20px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* Baner dolny */
.custom-idea-banner {
  margin: 20px 0 60px;
  background: #ffffff;
  border-radius: var(--radius-pill);
  border: 1px solid #e6ebf2;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
  padding: 16px 24px 16px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.banner-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eaf6f6;
  color: var(--teal-primary);
}

.banner-text {
  font-size: 1.18rem;
  font-weight: 700;
  color: #121c2e;
}

/* Sekcja kontaktowa */
.contact-section {
  padding: 70px 0 80px;
  background: #ffffff;
  border-top: 1px solid #eef2f7;
  position: relative;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
  align-items: flex-start;
}

.contact-info-col {
  padding-right: 20px;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-primary);
  margin-bottom: 12px;
}

.contact-title {
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 800;
  line-height: 1.22;
  color: #101a2c;
  margin-bottom: 16px;
}

.contact-lead {
  font-size: 1.05rem;
  color: #55627a;
  line-height: 1.6;
  margin-bottom: 30px;
}

.email-highlight-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.email-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.email-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.email-link {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--teal-primary);
  word-break: break-all;
}

.email-link:hover {
  color: var(--teal-hover);
  text-decoration: underline;
}

.btn-copy-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  transition: var(--transition);
}

.btn-copy-email:hover {
  background: var(--teal-primary);
  border-color: var(--teal-primary);
  color: #ffffff;
}

.contact-perks-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.98rem;
  color: #374151;
  font-weight: 500;
}

.perk-icon {
  color: #10b981;
  display: flex;
}

.contact-form-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 13px 18px;
  border-radius: 12px;
  border: 1.5px solid #d8e0ea;
  background: #fdfdfd;
  color: #1e293b;
  font-size: 0.96rem;
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--teal-primary);
  box-shadow: 0 0 0 4px rgba(0, 130, 138, 0.12);
  background: #ffffff;
}

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

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.45;
  cursor: pointer;
}

.form-checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--teal-primary);
}

.form-actions {
  margin-top: 8px;
}

.form-actions .btn {
  width: 100%;
  padding: 15px;
  font-size: 1.05rem;
}

/* Okno Modalne */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 30, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background: #ffffff;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 24px;
  padding: 36px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.is-active .modal-window {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.modal-header {
  margin-bottom: 24px;
  padding-right: 30px;
}

.modal-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.modal-subtitle {
  font-size: 0.95rem;
  color: #64748b;
}

/* Toast */
.toast-notification {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #111827;
  color: #ffffff;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.94rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.toast-notification.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-notification .toast-icon {
  color: #10b981;
}

/* Stopka */
.site-footer {
  background: #0d1523;
  color: #94a3b8;
  padding: 60px 0 30px;
  margin-top: auto;
  font-size: 0.92rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .brand-logo {
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 420px;
  line-height: 1.6;
  color: #94a3b8;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a:hover {
  color: var(--teal-light);
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: #64748b;
}

@media (max-width: 1024px) {
  .concepts-grid {
    grid-template-columns: 1fr;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-info-col {
    padding-right: 0;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .custom-idea-banner {
    flex-direction: column;
    text-align: center;
    border-radius: 20px;
    padding: 24px 20px;
  }

  .banner-left {
    flex-direction: column;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-box {
    padding: 24px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* Box informacyjny formularza bez wyświetlania maila/telefonu */
.contact-secure-badge-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 20px 24px;
  margin-bottom: 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.secure-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e6f7f6;
  color: var(--teal-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.secure-badge-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.secure-badge-text strong {
  font-size: 1.05rem;
  color: #0f1e36;
}

.secure-badge-text span {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
}

.privacy-link {
  color: var(--teal-primary);
  text-decoration: underline;
  font-weight: 600;
}

.privacy-link:hover {
  color: var(--teal-hover);
}

.theme-family .contact-secure-badge-box {
  border-color: #ebdcd0;
  background: #ffffff;
}

.theme-family .secure-badge-icon {
  background: #fdf2f0;
  color: #d85a48;
}

.theme-family .privacy-link {
  color: #d85a48;
}

.theme-premium .contact-secure-badge-box {
  background: #0d1627;
  border-color: rgba(223, 183, 108, 0.3);
}

.theme-premium .secure-badge-icon {
  background: rgba(223, 183, 108, 0.15);
  color: var(--prem-gold);
}

.theme-premium .secure-badge-text strong {
  color: #ffffff;
}

.theme-premium .secure-badge-text span {
  color: #9ba8bd;
}

.theme-premium .privacy-link {
  color: var(--prem-gold);
}
