/* Crimson Bloom Auto – style.css | Elegancki klasyczny styl | ONLY flexbox for all layouts */

/*
───────────────────────────
 CSS RESET & BASE SETTINGS
───────────────────────────
*/
html {
  box-sizing: border-box;
  font-size: 16px; /* base, will adjust in media queries */
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: #F3F6F9;
  color: #212738;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  min-height: 100vh;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}
a {
  color: #B01030;
  text-decoration: none;
  transition: color 0.18s;
}
a:focus {
  outline: 2px solid #B01030;
  outline-offset: 2px;
}
a:hover {
  color: #212738;
}
ul, ol {
  padding-left: 20px;
  margin-bottom: 24px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: #212738;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; margin-top: 0; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p {
  margin-bottom: 20px;
}
strong { font-weight: 600; }
blockquote {
  quotes: "\201C" "\201D";
  font-family: 'Georgia', serif;
  font-size: 1.125rem;
  color: #333;
  background: #fff;
  padding: 12px 20px;
  border-left: 4px solid #B01030;
  margin-bottom: 16px;
  font-style: italic;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/*
───────────────────────────
 HEADER & NAVIGATION
───────────────────────────
*/
header {
  background: #fff;
  border-bottom: 1px solid #dedede;
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 990;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  min-height: 72px;
  position: relative;
}
.logo img {
  height: 44px;
  width: auto;
  margin-right: 18px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 16px;
}
.main-nav a {
  font-size: 1rem;
  color: #212738;
  padding: 7px 6px;
  position: relative;
  transition: color 0.18s;
}
.main-nav a:after {
  content: '';
  display: block;
  width: 0%;
  height: 2px;
  background: #B01030;
  transition: width 0.18s;
  margin: 0 auto;
  margin-top: 5px;
}
.main-nav a:hover:after,
.main-nav a:focus:after {
  width: 80%;
}
.btn-primary, .btn-secondary {
  display: inline-block;
  font-family: 'Georgia', serif;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 36px;
  border: none;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, color 0.16s;
  margin-left: 28px;
  box-shadow: 0 2px 8px rgba(33,39,56,0.10);
  letter-spacing: 0.02em;
  position: relative;
}
.btn-primary {
  background: #B01030;
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: #8b0c25;
  color: #fff;
  box-shadow: 0 4px 14px rgba(33,39,56,0.12);
}
.btn-secondary {
  background: #fff;
  border: 1.5px solid #B01030;
  color: #B01030;
  margin-left: 0;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #B01030;
  color: #fff;
}

/* Hide burger menu on desktop */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #B01030;
  margin-left: auto;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 1002;
}
.mobile-menu-toggle:focus {
  outline: 2px dashed #B01030;
}

/* MOBILE MENU STYLES */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.36s cubic-bezier(.77,0,.18,1), opacity 0.35s;
  box-shadow: 0 0 24px 0 rgba(30,33,45,0.16);
  pointer-events: none;
  padding-top: 24px;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #B01030;
  position: absolute;
  right: 28px;
  top: 22px;
  cursor: pointer;
  z-index: 2002;
  transition: color 0.16s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #8b0c25;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin-top: 68px;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: #212738;
  padding: 14px 32px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.18s, color 0.18s;
  width: 100%;
  text-align: left;
}
.mobile-nav a:active,
.mobile-nav a:focus {
  background: #F3F6F9;
  color: #B01030;
}

/*
───────────────────────────
 HERO/BANNER SECTIONS
───────────────────────────
*/
.hero {
  background: #F3F6F9 url('../assets/hero-bg.svg') top right no-repeat;
  min-height: 320px;
  display: flex;
  align-items: center;
  /* vertical padding below for spacing */
  padding-top: 40px;
  padding-bottom: 40px;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.hero .content-wrapper {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(33,39,56,0.12);
  padding: 32px 24px;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero h1 {
  color: #B01030;
  font-family: 'Georgia', serif;
  margin-bottom: 16px;
  font-size: 2.35rem;
}
.hero p {
  font-size: 1.125rem;
}

/*
───────────────────────────
 CARD & FLEX LAYOUTS
───────────────────────────
*/
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(33,39,56,0.08);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 22px 24px 22px;
  min-width: 260px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.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;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(33,39,56,0.10);
  padding: 20px;
  margin-bottom: 20px;
  max-width: 700px;
  min-height: 100px;
  flex-direction: row;
  position: relative;
}
.testimonial-name {
  font-size: 1rem;
  color: #B01030;
  font-family: 'Georgia', serif;
  font-weight: 700;
  margin-left: 12px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
  background: #fff;
  border-radius: 8px;
  padding: 20px 16px;
}

/* Service cards for / */
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0 24px 0;
}
.service-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(33,39,56,0.09);
  padding: 22px 16px 18px 18px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 300px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  border-left: 3px solid #B01030;
  transition: box-shadow .23s, transform .2s;
}
.service-card:hover, .service-card:focus-within {
  box-shadow: 0 6px 22px rgba(33,39,56,0.14);
  transform: translateY(-4px) scale(1.018);
}
.service-card h3 {
  font-size: 1.125rem;
  color: #B01030;
  margin-bottom: 6px;
}
.service-price {
  font-weight: 700;
  color: #212738;
  letter-spacing: 0.01em;
  margin-top: 7px;
  font-size: 1.1rem;
}

/* Service list for services.html */
.service-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.service-list li {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(33,39,56,0.08);
  padding: 20px 16px 18px 16px;
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 320px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  border-left: 3px solid #B01030;
  transition: box-shadow .23s, transform .2s;
}
.service-list li:hover, .service-list li:focus-within {
  box-shadow: 0 6px 22px rgba(33,39,56,0.14);
  transform: scale(1.018);
}

/* For "why choose us" & features lists */
.content-wrapper > ul, .content-wrapper ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.content-wrapper ul li, .feature-item li {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  padding: 16px 14px;
  box-shadow: 0 1.5px 7px rgba(33,39,56,0.07);
  font-size: 1rem;
  gap: 13px;
  margin-bottom: 0;
  border-left: 2px solid #B01030;
  flex: 1 1 220px;
  min-width: 190px;
  max-width: 320px;
}
.content-wrapper ul li img, .feature-item img {
  width: 36px;
  height: 36px;
  margin-right: 12px;
}

/* FAQ accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}
.faq-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(33,39,56,0.08);
  padding: 22px 18px;
  transition: box-shadow .22s;
}
.faq-item:hover, .faq-item:focus-within {
  box-shadow: 0 4px 18px rgba(33,39,56,0.14);
}
.popular-topics h3 {
  font-size: 1.125rem;
  color: #B01030;
}
.popular-topics ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}
.popular-topics li {
  background: #eee;
  border-radius: 16px;
  padding: 8px 17px;
  color: #212738;
  font-size: 0.98rem;
}

/* Thank you */
.thank-you-section {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 28px rgba(33,39,56,0.16);
  margin: 44px 0;
  padding: 40px 16px 50px 16px;
}

/* Quick facts */
.quick-facts ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.quick-facts li {
  background: #fff;
  border-radius: 8px;
  color: #B01030;
  font-weight: 600;
  padding: 14px 12px;
  box-shadow: 0 1px 8px rgba(33,39,56,0.07);
  min-width: 190px;
  margin-bottom: 0;
}

/* Contact details */
.contact-details ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}
.contact-details li {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 1px 8px rgba(33,39,56,0.06);
  gap: 10px;
  color: #212738;
  font-size: 1rem;
  min-width: 230px;
}
.contact-details img {
  width: 28px;
  height: 28px;
  margin-right: 10px;
}

/*
───────────────────────────
 FOOTER
───────────────────────────
*/
footer {
  background: #212738;
  color: #fff;
  padding: 36px 0 16px 0;
  margin-top: 48px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  transition: color 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #B01030;
  text-decoration: underline;
}
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  font-size: 1rem;
}
.footer-info img {
  width: 48px;
  margin-bottom: 12px;
}

/*
───────────────────────────
 COOKIE CONSENT BANNER
───────────────────────────
*/
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2100;
  background: #fff;
  color: #212738;
  border-top: 1.5px solid #B01030;
  box-shadow: 0 -2px 26px rgba(33,39,56,0.13);
  padding: 28px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  transition: transform .32s cubic-bezier(.77,0,.18,1), opacity .23s;
}
.cookie-consent-banner.hide {
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
}
.cookie-consent-text {
  max-width: 690px;
  font-size: 1.025rem;
}
.cookie-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: 'Georgia', serif;
  border: none;
  border-radius: 28px;
  padding: 11px 22px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.18s, box-shadow 0.18s;
  margin-right: 6px;
}
.cookie-btn.accept {
  background: #B01030;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #8b0c25;
}
.cookie-btn.reject {
  background: #fff;
  color: #B01030;
  border: 1.3px solid #B01030;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #B01030;
  color: #fff;
}
.cookie-btn.settings {
  background: #212738;
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #fff;
  color: #212738;
  border: 1.3px solid #212738;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2101;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(33, 39, 56, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .23s;
}
.cookie-modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(33,39,56,0.17);
  padding: 28px 26px 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: fade-in-modal .25s;
}
@keyframes fade-in-modal {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-modal-title {
  font-family: 'Georgia', serif;
  font-weight: 700;
  font-size: 1.32rem;
  margin-bottom: 4px;
  color: #B01030;
}
.cookie-modal .modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: #B01030;
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal .modal-close:hover,
.cookie-modal .modal-close:focus {
  color: #212738;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 6px;
}
.category-name {
  font-weight: 700;
  font-size: 1.09rem;
  color: #212738;
}
.category-always {
  color: #666;
  font-size: 0.98rem;
  margin-left: 6px;
}
.category-toggle {
  margin-left: auto;
  display: flex;
  align-items: center;
}
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch-slider {
  position: absolute;
  top: 0; left: 0;
  width: 44px; height: 24px;
  background: #eee;
  border-radius: 20px;
  transition: background 0.18s;
}
.toggle-switch input:checked + .switch-slider {
  background: #B01030;
}
.switch-slider:before {
  content: '';
  position: absolute;
  left: 4px; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
.toggle-switch input:checked + .switch-slider:before{
  transform: translateX(20px);
}

/*
───────────────────────────
 GENERAL SPACING / UTILITY CLASSES
───────────────────────────
*/
.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 12px;
}
.map-location {
  margin-bottom: 22px;
}

/* Utility */
.mt-24 { margin-top: 24px !important; }
.mt-32 { margin-top: 32px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mb-32 { margin-bottom: 32px !important; }
.gap-20 { gap: 20px !important; }

/*
───────────────────────────
 RESPONSIVE DESIGN
───────────────────────────
*/
@media (max-width: 1200px) {
  .container { max-width: 98vw; }
}
@media (max-width: 992px) {
  .container { max-width: 97vw; }
}
@media (max-width: 900px) {
  .footer-info { align-items: flex-start; }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .main-nav {
    display: none;
  }
  .btn-primary {
    margin-left: auto;
  }
  .container {
    padding: 0 10px;
  }
  .service-cards,
  .service-list ul,
  .content-wrapper > ul,
  .quick-facts ul,
  .contact-details ul {
    flex-direction: column;
    gap: 16px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
  }
  .footer-info {
    align-items: flex-start;
  }
  .hero {
    min-height: 230px;
    padding-top: 22px; padding-bottom: 22px;
  }
  .hero .content-wrapper {
    padding: 22px 8px;
  }
  .content-grid, .card-container, .service-cards, .service-list ul {
    flex-direction: column;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 10px;
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .footer-info img {
    margin-bottom: 6px;
  }
  .section {
    padding: 26px 6px;
    margin-bottom: 40px;
  }
}
@media (max-width: 540px) {
  html { font-size: 14px; }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.18rem; }
  .hero .content-wrapper { max-width: 99vw; }
  .testimonial-card { padding: 14px 6px; }
  .btn-primary, .btn-secondary { padding: 10px 15px; font-size: 1rem; }
  .footer-info img { width: 36px; }
}

/*
───────────────────────────
 ANIMATION & INTERACTIONS
───────────────────────────
*/
.card, .service-card, .service-list li, .testimonial-card, .faq-item {
  will-change: box-shadow, transform;
  transition: box-shadow 0.17s, transform 0.2s;
}
a, .btn-primary, .btn-secondary, .cookie-btn {
  transition: background 0.16s, color .17s, box-shadow .18s;
}

/*
───────────────────────────
 ACCESSIBILITY
───────────────────────────
*/
:focus-visible {
  outline: 2px solid #B01030;
  outline-offset: 2px;
}

/*
───────────────────────────
 PRINT STYLES
───────────────────────────
*/
@media print {
  header, .mobile-menu, .cookie-consent-banner, footer { display: none !important; }
  main, .container, body { background: #fff !important; color: #212738 !important; }
  .section { padding: 0 !important; margin-bottom: 24px !important; }
}
