/* Elegant Classic – Akademia Liderów Online
   Full CSS Stylesheet: style.css
   -----------------------------------------------
   Features: Flexbox only layouts, mobile nav, cookie banner, elegant classic style
*/

/* RESET & BASE STYLES */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #F1F3F8;
  color: #1F3556;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.02em;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #1F3556;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #E88331;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.2em;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Georgia', serif;
  color: #1F3556;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

p {
  margin-bottom: 16px;
}

blockquote {
  font-family: 'Georgia', serif;
  font-size: 1.125rem;
  color: #2C466A;
  background: #F1F3F8;
  border-left: 4px solid #E88331;
  padding: 12px 20px 12px 16px;
  margin-bottom: 12px;
  font-style: italic;
}
cite {
  display: block;
  color: #787878;
  font-size: 1rem;
  margin-top: 0;
}

/* Container, Section, Card Patterns */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 6px 24px rgba(31, 53, 86, 0.06);
  transition: box-shadow .22s;
}
.section:last-child {
  margin-bottom: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.text-section {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 3px 14px rgba(31,53,86,0.09);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.22s, transform 0.22s;
  min-width: 260px;
  flex: 1 1 310px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px rgba(31,53,86,0.14);
  transform: translateY(-4px);
  z-index: 2;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: #F1F3F8;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(31, 53, 86, 0.07);
  margin-bottom: 20px;
  border-left: 5px solid #E88331;
  max-width: 520px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}
.social-links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

/* BUTTONS */
.btn-primary {
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1.125rem;
  font-weight: 600;
  background: #1F3556;
  color: #fff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(31, 53, 86, 0.05);
  padding: 12px 38px;
  margin-top: 4px;
  cursor: pointer;
  transition: background .2s, box-shadow .22s, transform .22s;
  letter-spacing: 0.02em;
  outline: none;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: #E88331;
  color: #fff;
  box-shadow: 0 4px 16px rgba(31, 53, 86, 0.12);
  transform: translateY(-2px);
}

/* --- HEADER & NAVIGATION --- */
header {
  position: relative;
  box-shadow: 0 1px 8px rgba(31,53,86,0.08);
  background: #fff;
  z-index: 30;
}
.main-navigation {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: flex-start;
  height: 78px;
  padding: 0 20px;
  font-family: 'Montserrat', 'Georgia', serif;
  background: #fff;
}
.main-navigation img {
  height: 40px;
  min-width: 108px;
  margin-right: 24px;
  display: block;
}
.main-navigation a {
  font-weight: 500;
  font-size: 1.05rem;
  padding: 8px 0;
  transition: color .18s;
  position: relative;
}
.main-navigation a:not(:first-child):after {
  content: '';
  display: block;
  height: 2px;
  background: transparent;
  transition: background 0.3s;
  width: 0;
  margin: 0 auto;
}
.main-navigation a:hover:after, .main-navigation a:focus:after {
  background: #E88331;
  width: 75%;
}

/* Hamburger Menu Button */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 16px;
  top: 19px;
  background: #fff;
  color: #1F3556;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  z-index: 61;
  box-shadow: 0 1px 8px rgba(31,53,86,0.12);
  cursor: pointer;
  transition: background .23s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #E88331;
  color: #fff;
}

/* Mobile MENU overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 95vw;
  max-width: 350px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 18px rgba(31,53,86,0.16);
  padding: 32px 20px 20px 24px;
  transform: translateX(110%);
  transition: transform 0.33s cubic-bezier(.6,.09,.26,1.18);
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #F1F3F8;
  color: #1F3556;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  z-index: 101;
  transition: background .22s, color .2s;
  cursor: pointer;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #E88331;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 36px;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1.15rem;
  padding: 12px 0 12px 8px;
  border-radius: 6px;
  color: #1F3556;
  transition: background .18s, color .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E88331;
  color: #fff;
}

/* Hide desktop nav on mobile, show burger */
@media (max-width: 1024px) {
  .main-navigation {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .mobile-menu {
    display: flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu, .mobile-menu-close, .mobile-menu-toggle {
    display: none !important;
  }
}


/* ---------- MAIN & SECTIONS ---------- */
main {
  margin-top: 0;
  flex: 1 1 auto;
}
section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: transparent;
}

/* Cards/Testimonials overlap fix */
@media (min-width: 768px) {
  .testimonial-card {
    min-width: 350px;
    max-width: 520px;
  }
}

/* Newsletter/Contact Forms (if any) */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid #b0b9c9;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
  width: 100%;
  background: #fff;
  color: #1F3556;
  transition: border .18s;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: #E88331;
}

/* Footer & Legal Links */
footer {
  background: #1F3556;
  color: #fff;
  width: 100%;
  position: relative;
  margin-top: 40px;
  padding: 0 0 16px 0;
}
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0 auto 18px auto;
  font-size: 1rem;
  flex-wrap: wrap;
  padding: 26px 0 10px 0;
}
.footer-links nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
}
.footer-links a {
  color: #F1F3F8;
  opacity: .92;
  font-weight: 500;
  transition: color .17s;
  font-family: 'Montserrat', serif;
}
.footer-links a:hover, .footer-links a:focus {
  color: #E88331;
}
.footer-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 0;
}
.footer-copy img {
  height: 33px;
}
.footer-copy p {
  color: #F1F3F8;
  font-size: 0.95rem;
}

/* --- Cookie Consent Banner & Modal --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  color: #1F3556;
  box-shadow: 0 -4px 16px rgba(31,53,86,0.09);
  padding: 24px 12px 22px 16px;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  font-size: 1.07rem;
  opacity: 1;
  transition: opacity .33s, transform .33s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner-message {
  flex: 1 1 auto;
  color: #1F3556;
  margin-right: 16px;
 }
 
 .cookie-banner-btns {
  display: flex;
  align-items: center;
  gap: 14px;
 }
.btn-cookie {
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  margin: 0 4px;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  background: #1F3556;
  color: #fff;
  cursor: pointer;
  transition: background .18s;
}
.btn-cookie.reject {
  background: #F1F3F8;
  color: #1F3556;
  border: 1px solid #b0b9c9;
}
.btn-cookie.settings {
  background: #E88331;
  color: #fff;
}
.btn-cookie:focus, .btn-cookie:hover {
  background: #E88331;
  color: #fff;
}
.btn-cookie.reject:focus, .btn-cookie.reject:hover {
  background: #dce2ee;
  color: #1F3556;
}

/* Cookie Preferences Modal */
.cookie-modal-backdrop {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(38, 45, 56, 0.24);
  z-index: 1250;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity .24s;
}
.cookie-modal-backdrop.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  padding: 38px 30px 24px 30px;
  max-width: 410px;
  width: 95vw;
  box-shadow: 0 7px 32px rgba(31,53,86,0.20);
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: relative;
}
.cookie-modal h2 {
  font-family: 'Montserrat', serif;
  color: #1F3556;
  margin-bottom: 8px;
  font-size: 1.45rem;
}
.cookie-modal .cookie-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F1F3F8;
  color: #1F3556;
  font-size: 1rem;
  border-radius: 8px;
  margin-bottom: 14px;
  padding: 14px 13px;
}
.cookie-modal .cookie-toggle {
  accent-color: #E88331;
}
.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 15px;
  background: #F1F3F8;
  color: #1F3556;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.45rem;
  cursor: pointer;
  transition: background .17s;
}
.cookie-modal-close:focus, .cookie-modal-close:hover {
  background: #d3d9e1;
}

/* Utility Classes for Spacing, Alignment */
.mt-8 { margin-top: 8px !important; } .mb-8 { margin-bottom: 8px !important; }
.mt-16 { margin-top: 16px !important; } .mb-16 { margin-bottom: 16px !important; }
.mt-24 { margin-top: 24px !important; } .mb-24 { margin-bottom: 24px !important; }
.mt-32 { margin-top: 32px !important; } .mb-32 { margin-bottom: 32px !important; }

/* MEDIA QUERIES – RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .main-navigation {
    display: none;
  }
  .container {
    padding: 0 10px;
  }
  .footer-links nav {
    gap: 12px;
  }
}
@media (max-width: 900px) {
  .section { padding: 32px 4px; }
  .content-wrapper { gap: 18px; }
  .card { padding: 18px 8px; }
  .testimonial-card { padding: 16px; }
  .brand-logo img, .footer-copy img { max-width: 110px; }
}
@media (max-width: 768px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.14rem; }
  .section { margin-bottom: 36px; padding: 18px 2px; border-radius: 16px; }
  .content-wrapper { gap: 13px; }
  .card, .testimonial-card { min-width: 180px; max-width: 100%; }
  .content-grid { gap: 10px; }
  .text-image-section { flex-direction: column; gap: 10px; }
  .footer-links, .footer-links nav {
    flex-direction: column; gap: 7px;
  }
}
@media (max-width: 500px) {
  body { font-size: 0.98rem; }
  .cookie-modal { padding: 20px 6px 18px 8px; }
}

/* MICRO-INTERACTIONS & TRANSITIONS */
.card, .btn-primary, .mobile-menu, .cookie-banner, .footer-links a, .main-navigation a, .testimonial-card {
  transition: box-shadow .22s, background .18s, color .18s, transform .2s;
}

/* Elegant list marker styling */
ul li::marker, ol li::marker {
  color: #E88331;
  font-size: 1.1em;
}

/* Accessibility: Focus Styles */
a:focus, button:focus, input:focus {
  outline: 2px solid #E88331;
  outline-offset: 2px;
}

/* Hide outline for mouse users */
:focus:not(:focus-visible) { outline: none; }

/* Animate section/card on hover */
.section:hover, .testimonial-card:hover {
  box-shadow: 0 7px 25px rgba(31,53,86,0.18);
}

/* Brand accent to highlights/text */
strong, b {
  color: #E88331;
  font-weight: bold;
}

/* Custom Scrollbars */
html {
  scrollbar-color: #B8BECC #F1F3F8;
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  width: 8px; background: #F1F3F8;
}
::-webkit-scrollbar-thumb {
  background: #B8BECC; border-radius: 6px;
}

/* END CSS */
