/* --- Complete css/style.css (merged with requested color updates) --- */

/* root variables for easy tuning */
:root {
  --base-font-size: 16px;
  --h1-size: 56px;
  --h2-size: 32px;
  --h3-size: 24px;
  --body-size: 16px;
  --accent-color: #C9A847;
  --accent-color-dark: #a8863c;
  /* Darker gold for contrast */
  --muted-gold: #efe4c5;
  --text-gold: #997404;
  --card-bg: #faf6ee;
  --kontakt-bg: #fff9e8;

  /* requested background colors */
  --header-nav-bg: #555c66;
  /* navbar (logo + navigation) */
  --hero-bg: #f5f7fa;
  /* hero section background */
  --footer-bg: #555c66;
  /* footer background */
}

/* base */
html {
  font-size: var(--base-font-size);
}

body {
  font-family: "Open Sans", "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  /* Unified body text size */
  color: #212529;
  line-height: 1.6;
  /* Slightly increased for readability */
}

/* Perex style */
.perex {
  font-style: italic;
  font-size: 1.1rem;
  color: #555;
}

/* Headings */
h1.hero-title {
  font-size: var(--h1-size);
  font-weight: 700;
  line-height: 1.1;
  margin: .25rem 0;
  text-align: center;
  color: #212529;
}

h2,
.h2,
h2.display-5 {
  font-size: var(--h2-size);
  font-weight: 700;
  margin-top: 15px;
  margin-bottom: 15px;
  text-align: center;
  text-transform: uppercase;
}

h3,
.h3 {
  font-size: var(--h3-size);
  font-weight: 700;
  margin-top: 15px;
  margin-bottom: 15px;
  text-align: center;
  text-transform: uppercase;
  color: var(--accent-color-dark);
  /* Distinct color for H3 */
}

.section-subtitle,
h5 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}

/* hero */
.hero-section {
  padding: 4rem 0;
  background-color: var(--hero-bg);
}

.hero-image {
  max-width: 340px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 7px solid #fff;
  display: inline-block;
  max-width: 340px;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-gold);
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.hero-benefits {
  gap: .5rem;
  margin-bottom: .5rem;
  justify-content: center;
  row-gap: 0.5rem;
}

.benefit-pill {
  background: #fff;
  border: 1px solid var(--accent-color);
  color: #212529;
  padding: .45rem .9rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: .98rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 146px;
}

.benefit-pill i {
  color: var(--accent-color);
  font-size: 1em;
}


/* accent color */
.accent {
  color: var(--accent-color);
}

/* buttons */
.btn-gold {
  background: var(--accent-color);
  border: 2px solid var(--accent-color-dark);
  color: #fff;
}

.btn-gold.btn-white-text {
  color: #fff;
}

.btn-gold:hover,
.btn-gold:focus {
  background: #af953d;
  opacity: 1;
}

.btn {
  margin-top: 15px;
  margin-bottom: 15px;
}

.hero-section .btn {
  font-size: 1.13rem;
}


/* GARANCIA */
.garancia-section {
  background: var(--hero-bg);
  padding: 2rem 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.garancia-inner {
  gap: 1.5rem;
  padding: 1rem;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  max-width: 900px;
  margin: auto;
}

.garancia-badge {
  background: var(--accent-color);
  color: #fff;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  font-size: 1.1rem;
}

.garancia-badge i {
  color: #fff;
  font-size: 1.2em;
}

.garancia-text {
  color: #333;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  max-width: 720px;
}

/* FAQ Section Styling */
.accordion-item {
  border: 1px solid var(--accent-color-dark) !important;
  border-radius: 0.5rem !important;
}

.accordion-button {
  background-color: var(--card-bg) !important;
  color: var(--text-gold) !important;
  font-weight: 600;
}

.accordion-button:not(.collapsed) {
  background-color: var(--accent-color) !important;
  color: #fff !important;
}

.accordion-body {
  background-color: #fff;
}

/* KONTAKT */
.kontakt-section {
  background: var(--kontakt-bg);
  padding: 3rem 0;
}

.kroky-row {
  padding-left: 0;
  padding-right: 0;
}

.krok-card {
  background: var(--card-bg);
  border-radius: .5rem;
  padding: 1.25rem;
  min-height: 160px;
}

.krok-badge {
  background: var(--muted-gold);
  color: var(--text-gold);
  display: inline-block;
  padding: .35rem .6rem;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: .5rem;
}

.krok-desc {
  color: #705d30;
  font-size: .95rem;
}

/* Formy */
.form-control {
  font-size: 1rem;
}

/* Global container / section side padding (apply globally) */
.container,
.container-fluid,
section {
  padding-left: 15px !important;
  padding-right: 15px !important;
}

/* Add vertical spacing ONLY between sections */
section+section {
  margin-top: 30px;
}

/* Global headings spacing */
h2,
.h2,
h3,
.h3 {
  margin-top: 15px !important;
  margin-bottom: 15px !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  h1.hero-title {
    font-size: 38px;
  }

  .hero-image {
    max-width: 280px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .benefit-pill {
    font-size: .95rem;
    padding: .4rem .8rem;
  }

  .krok-card {
    min-height: auto;
  }
}

/* Navbar / header (logo + navigation) */
.navbar,
.navbar.bg-white,
nav.navbar {
  background-color: var(--header-nav-bg) !important;
  box-shadow: none !important;
}

/* Navbar link and brand styles for contrast */
.navbar .navbar-brand,
.navbar .navbar-brand img {
  color: #ffffff !important;
  height: 50px;
  width: auto;
}

.navbar .nav-link {
  color: #ffffff !important;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #fff8e6 !important;
  /* slight warm highlight on hover */
}

.navbar .nav-link.active {
  color: var(--accent-color) !important;
  font-weight: 700 !important;
}

/* Global Links */
a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color-dark);
  text-decoration: underline;
}

/* Navbar toggler (mobile) */
.navbar-toggler {
  border-color: var(--accent-color) !important;
  padding: 0.5rem;
}

.navbar-toggler-icon {
  background-image: none !important;
  width: 1.5em;
  height: 2px;
  /* Middle bar height */
  display: inline-block;
  position: relative;
  background-color: var(--accent-color);
  /* Middle bar */
  vertical-align: middle;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: var(--accent-color);
  position: absolute;
  left: 0;
}

.navbar-toggler-icon::before {
  top: -7px;
  /* Position top bar */
}

.navbar-toggler-icon::after {
  bottom: -7px;
  /* Position bottom bar */
}

/* Ensure hero inner container doesn't override hero background */
.hero-section .container {
  background: transparent !important;
}

/* Card and badge adjustments */
.krok-card {
  background: var(--card-bg) !important;
  border: 1px solid var(--accent-color);
  box-shadow: none;
}

.card {
  background: var(--card-bg) !important;
  border: 1px solid #d8caaf;
  margin-top: 20px;
  margin-bottom: 20px;
  /* Reverted based on code review */
  box-shadow: none !important;
}

.toc-columns {
  column-count: 2;
  column-gap: 2rem;
}

.badge[style],
.badge {
  background: var(--muted-gold) !important;
  color: var(--text-gold) !important;
}

/* Images with inline background */
img[style] {
  background: transparent !important;
}

/* Footer */
footer,
footer.bg-dark {
  background-color: var(--footer-bg) !important;
  color: #ffffff !important;
}

footer a,
footer .text-white,
footer .nav-link {
  color: #ffffff !important;
  text-decoration: none;
}

footer a:hover,
footer .nav-link:hover {
  color: #fff8e6 !important;
}

/* Utility classes from inline styles */
.bg-grey {
  background: #f7f6f3 !important;
}

.bg-white {
  background: #fff;
}

.price-card-alt {
  background: #f5f5f7;
}

.country-badge {
  background: #efe4c5;
  color: #997404;
  font-size: 1.09rem;
  border: 1px solid var(--accent-color-dark);
}

.country-icon {
  max-height: 60px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  display: block;
}

.price-card a.btn {
  margin: 15px 0;
}

.price-card.featured {
  border: 2px solid var(--accent-color-dark);
  background: #f5eecf !important;
}

.badge-container-absolute {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.badge-odporucame {
  background: #333;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: none;
  font-weight: 700;
  padding: .6rem 1.2rem;
  border: 2px solid #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feature-icon {
  height: 70px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
}

.toc-link {
  text-decoration: none;
  color: var(--text-gold);
  font-weight: 600;
}

.toc-link:hover {
  color: var(--accent-color-dark);
  text-decoration: underline;
}

/* Cennik */
.cennik-stepov {
  background-color: #efe4c5;
  color: #997404;
  font-size: 1.05rem;
}

.cennik-price {
  color: #C9A847;
}

.cennik-vlasov {
  color: #888;
}

.alert.alert-cennik {
  max-width: 700px;
  margin: 40px auto 0;
  /* Increased top margin */
  background-color: #fff !important;
  /* Ensure override */
  border-color: var(--accent-color);
  /* Match border to the theme */
}

.alert-success {
  background-color: var(--muted-gold);
  border-color: var(--accent-color);
  color: var(--text-gold);
}

.text-success {
  color: var(--accent-color-dark) !important;
}


/* Footer additions */
.footer-copyright {
  font-size: 13px;
  color: #bbb;
}

.footer-copyright a {
  color: #bbb;
}

.footer-address {
  font-size: 10px;
  color: #ccc;
  margin-top: 2px;
}

/* Notes:
 - This file contains urgent overrides using !important where necessary to restore visuals.
 - For long-term maintenance, consider removing inline styles from HTML and reducing use of !important.
*/

/* Google Form Responsive Container */
.responsive-form-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 150%;
  /* Aspect ratio of the form height/width */
  margin-top: 2rem;
}

.responsive-form-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Viktorov pribeh section styling */
.viktor-story-section {
  background-color: var(--muted-gold);
  border-top: 2px solid var(--accent-color-dark);
  border-bottom: 2px solid var(--accent-color-dark);
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.viktor-story-section .story-text-box {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.viktor-story-section .story-text-box p {
  margin-bottom: 0;
}

/* Video Container for responsive videos */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin-bottom: 15px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Contact Form Styling */
.contact-form {
  background-color: var(--card-bg);
  /* Light background matching site design */
  padding: 2rem;
  border-radius: 0.5rem;
  border: 1px solid var(--accent-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.responsive-form-container {
  margin-top: 30px !important;
  /* Reduced top margin as requested */
  padding-top: 0 !important;
  /* Remove the aspect ratio padding */
  position: relative;
  overflow: visible;
}

.contact-form .form-label {
  color: var(--text-gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-form .form-control {
  border: 1px solid #d8caaf;
  background-color: #fff;
  padding: 0.75rem;
  border-radius: 0.375rem;
}

.contact-form .form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(201, 168, 71, 0.25);
}

.contact-form button[type="submit"] {
  margin-top: 1rem;
}