/* ===========================
   TRANSLOG — styles.css (v3)
   Professional Website Styles
   =========================== */

/* ===========================
   CSS VARIABLES
   =========================== */
:root {
  --color-primary: #1a5c38;
  --color-primary-light: #2d8a5b;
  --color-accent: #3cb371;
  --color-text: #333;
  --color-text-muted: #6c757d;
  --color-bg: #ffffff;
  --color-bg-light: #f8f9fa;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
}

/* ===========================
   PAGE TRANSITIONS
   =========================== */
/* Native cross-document view transitions (Chrome/Edge): smooth
   cross-fade when navigating between pages. Browsers without support
   simply ignore this and navigate as before — no fallback needed. */
@view-transition {
  navigation: auto;
}

/* ===========================
   GLOBAL STYLES
   =========================== */
html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  animation: page-fade-in .25s ease;
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@keyframes page-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }
}

h1,
h2,
h3,
.h1,
.h2,
.h3 {
  letter-spacing: .2px;
}

/* ===========================
   CARDS & HELPERS
   =========================== */
.hero-card {
  border: 1px solid rgba(0, 0, 0, .06);
  background: var(--color-bg);
}

.card {
  border: 1px solid rgba(0, 0, 0, .08);
  background: var(--color-bg);
}

.card-title {
  font-size: 1.25rem;
}

.footer-small {
  opacity: .9;
  font-size: .95rem;
}

.iban-box {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  letter-spacing: .02em;
}

.copy-btn:focus {
  box-shadow: 0 0 0 .2rem rgba(40, 167, 69, .25);
}

/* ===========================
   NAVBAR + LOGO + MENU
   =========================== */
.navbar {
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0)), #b1d7c3 !important;
  font-size: 20px;
  box-shadow: var(--shadow-sm);
  padding-top: .25rem;
  padding-bottom: .25rem;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.navbar-brand {
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  align-items: center;
}

.logo {
  height: 200px;
  width: auto;
  display: block;
  transform: translateY(-6px);
}

/* Responsywne logo */
@media (max-width:1199.98px) {
  .logo {
    height: 180px;
    transform: translateY(-4px);
  }
}

@media (max-width:991.98px) {
  .logo {
    height: 120px;
    transform: translateY(0);
  }
}

@media (max-width:575.98px) {
  .logo {
    height: 84px;
  }
}

.navbar-collapse {
  width: 100%;
}

.navbar-nav {
  margin: 0 auto;
}

.navbar-nav .nav-link {
  font-size: 1.1rem;
  font-weight: 500;
  padding: .5rem 1rem;
  color: #1f3a2e !important;
  border-radius: 999px;
  transition: background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  background-color: rgba(255, 255, 255, .55);
  color: #0d5e3f !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08) inset;
  text-decoration: none;
}

.navbar-nav .nav-item.active .nav-link {
  background-color: rgba(255, 255, 255, .75);
  color: #0b5136 !important;
}

/* Tighter, list-style nav for the collapsed mobile menu */
@media (max-width: 991.98px) {
  .navbar-nav .nav-link {
    padding: .65rem 1rem;
    line-height: 1.3;
    border-radius: 0;
  }

  .navbar-nav .nav-item {
    border-bottom: 1px solid rgba(0, 0, 0, .08);
  }

  .navbar-nav .nav-item:last-child {
    border-bottom: none;
  }

  .navbar-nav .nav-item.active .nav-link {
    border-radius: 8px;
  }
}

@media (min-width: 992px) {
  /* Bootstrap narrows nav-link side padding to .5rem here, which crowds the active pill */
  .navbar-expand-lg .navbar-nav .nav-link {
    padding: .45rem 1.1rem;
  }

  .navbar-nav .nav-item+.nav-item {
    margin-left: .25rem;
  }

  .navbar .container::after {
    content: "";
    display: block;
    flex: 0 0 220px;
  }
}

/* ===========================
   FOOTER
   =========================== */
footer a {
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.site-footer {
  background: #3e4551;
  color: #fff;
}

.site-footer h5 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .05em;
}

.site-footer a:not(.btn),
.site-footer a:not(.btn):hover {
  color: #fff;
}

.site-footer hr {
  border-color: rgba(255, 255, 255, .15);
}

.site-footer-bottom {
  background: rgba(0, 0, 0, .2);
  padding: 1rem;
  font-size: .9rem;
  text-align: center;
}

/* ===========================
   BANK TRANSFER CARD
   =========================== */
.transfer-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--color-bg);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.transfer-title {
  margin-bottom: .35rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
}

.transfer-title i {
  margin-right: .5rem;
  color: var(--color-accent);
}

.transfer-name {
  font-size: .95rem;
  color: var(--color-text-muted);
}

.transfer-iban {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--color-text);
}

@media (max-width: 575.98px) {
  .transfer-card {
    padding: 1.25rem;
  }

  .transfer-iban {
    font-size: clamp(.75rem, 3.6vw, .95rem);
    letter-spacing: 0;
    white-space: nowrap;
  }
}

/* ===========================
   TERMINY PAGE
   =========================== */
.card-header {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.list-group-item.py-3 {
  padding-top: 0.875rem !important;
  padding-bottom: 0.875rem !important;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.list-group-item.border-start.border-3 {
  border-left-width: 4px !important;
}

.card-body.p-4 hr {
  border-color: rgba(0, 0, 0, 0.1);
}

.card-body .alert {
  font-size: 0.9rem;
}

.badge.fs-6 {
  font-size: 0.875rem !important;
  font-weight: 600;
}

@media (max-width: 767.98px) {
  .list-group-item.py-3 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }

  .card-body.p-4 {
    padding: 1.25rem !important;
  }
}

/* ===========================
   SCROLL ANIMATIONS
   =========================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   BACK TO TOP BUTTON
   =========================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal), transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(26, 92, 56, 0.3);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(26, 92, 56, 0.4);
}

@media (max-width: 575.98px) {
  .back-to-top {
    width: 44px;
    height: 44px;
    bottom: 20px;
    right: 20px;
    font-size: 1.1rem;
  }
}

/* ===========================
   SHARED COMPONENTS
   =========================== */

/* Gradient Hero Section */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 50%, var(--color-accent) 100%);
  color: #fff;
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
  text-align: center;
  box-shadow: 0 10px 40px rgba(26, 92, 56, 0.3);
}

.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin: 0;
}

@media (max-width: 767.98px) {
  .page-hero {
    padding: 2rem 1.25rem;
  }

  .page-hero h1 {
    font-size: 1.8rem;
  }

  .page-hero p {
    font-size: 1rem;
  }
}

/* Info Cards */
.info-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.info-card-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  padding: 1rem 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
}

.info-card-header i {
  font-size: 1.25rem;
}

.info-card-body {
  padding: 1.25rem;
}

@media (min-width: 768px) {
  .info-card-body {
    padding: 1.5rem;
  }
}

/* CTA Buttons */
.btn-cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border: none;
  cursor: pointer;
  color: #fff;
  padding: 0.875rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 92, 56, 0.3);
  color: #fff;
  text-decoration: none;
}

/* Feature Lists */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding: 0.6rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-bottom: 1px solid #f0f0f0;
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li i {
  color: var(--color-accent);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* Price Display */
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e9ecef;
}

.price-row:last-child {
  border-bottom: none;
}

.price-label {
  color: #495057;
  font-size: 0.95rem;
}

.price-label i {
  color: var(--color-accent);
  margin-right: 0.5rem;
}

.price-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* Info Notes */
.info-note {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
}

.info-note i {
  color: #856404;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* Tappable phone-number pills in the green hero sections */
.phone-numbers {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.phone-numbers a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color var(--transition-fast);
}

.phone-numbers a:hover,
.phone-numbers a:focus {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  text-decoration: none;
}

/* Links (mainly tel:/mailto:) inside branded components */

.info-note a,
.feature-list a {
  color: var(--color-primary);
  font-weight: 600;
}

/* CTA button full-width on mobile (pairs with .btn-cta) */
.btn-cta-full {
  width: 100%;
  justify-content: center;
}

@media (min-width: 768px) {
  .btn-cta-full {
    width: auto;
  }
}

/* Small inline section heading used inside info-card bodies */
.info-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-section-title i {
  color: var(--color-accent);
}

/* Collapsible program/curriculum accordion */
.program-item {
  background: var(--color-bg-light);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.program-item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
  transition: background var(--transition-fast);
}

.program-item summary::-webkit-details-marker {
  display: none;
}

.program-item summary:hover {
  background: #e9ecef;
}

.program-item summary i {
  transition: transform var(--transition-normal);
}

.program-item[open] summary i {
  transform: rotate(90deg);
}

.program-content {
  padding: 0 1.25rem 1.25rem;
}

.program-content ul {
  margin: 0;
  padding-left: 1.25rem;
}

.program-content li {
  padding: 0.4rem 0;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ===========================
   COOKIE CONSENT BANNER
   =========================== */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 10000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  background: #fff;
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  font-size: 0.95rem;
  color: var(--color-text);
}

.cookie-banner p {
  flex: 1 1 320px;
  margin: 0;
}

.cookie-banner a {
  color: var(--color-primary);
  font-weight: 600;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.5rem;
}

/* Both choices deliberately get equal visual weight: rejecting must be as easy as accepting */
.cookie-btn {
  padding: 0.55rem 1.4rem;
  border: 2px solid var(--color-primary);
  border-radius: 50px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.cookie-btn:hover,
.cookie-btn:focus {
  background: var(--color-primary-light);
  border-color: var(--color-primary-light);
}

@media (max-width: 575.98px) {
  .cookie-banner-actions {
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
  }
}

/* ===========================
   PRIVACY POLICY PAGE
   =========================== */
.policy-body h2 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-primary);
}

.policy-body h2:first-child {
  margin-top: 0;
}

.policy-body p,
.policy-body li {
  line-height: 1.65;
  color: #444;
}

.policy-body table {
  width: 100%;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.policy-body th,
.policy-body td {
  padding: 0.5rem;
  border-bottom: 1px solid #e9ecef;
  vertical-align: top;
  text-align: left;
}
/* ===== Przyciski konturowe w kolorze marki (lepszy kontrast niż domyślna zieleń Bootstrapa) ===== */
.btn-outline-success {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline-success:hover,
.btn-outline-success:focus,
.btn-outline-success:not(:disabled):not(.disabled):active {
  color: #fff;
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline-success:focus {
  box-shadow: 0 0 0 0.2rem rgba(26, 92, 56, 0.35);
}
