/* ================================================================
   BrightQuilt - Professional Corporate CSS Theme
   Author: Senior CSS Developer & UI Designer
   Strictly Flexbox-Only Layouts | No Grid/Columns
   Mobile-first Responsive | All Required Interactions Included
   ================================================================ */

/* ----------------- CSS RESET & NORMALIZE ----------------- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #f8fafc;
  color: #173963;
  min-height: 100vh;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: #173963;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #49B3A6;
  outline: none;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-sizing: border-box;
}
:focus-visible {
  outline: 2px solid #49B3A6;
}

/* --------- BRAND COLORS --------- */
:root {
  --primary: #173963;
  --secondary: #49B3A6;
  --accent: #FFEA9A;
  --bg-light: #f8fafc;
  --bg-section: #f3f6fa;
  --gray-100: #e6eef4;
  --gray-200: #dee3e9;
  --gray-500: #787d8a;
  --white: #fff;
  --shadow: 0 4px 24px rgba(23,57,99,0.08), 0 1.5px 3px rgba(23,57,99,0.04);
  --radius: 12px;
}

/* --------- TYPOGRAPHY --------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.125rem; margin-bottom: 20px; }
h2 { font-size: 1.5rem; margin-bottom: 18px; }
h3 { font-size: 1.18rem; margin-bottom: 14px; }
h4 { font-size: 1.07rem; }
h5, h6 { font-size: 1rem; }
p, li, blockquote, span {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-size: 1rem;
  line-height: 1.65;
}
strong { font-weight: 700; }
blockquote {
  padding-left: 20px;
  border-left: 4px solid var(--secondary);
  font-style: italic;
  margin-bottom: 12px;
  color: var(--primary);
}

/* Responsive typography (no clamp, use breakpoints) */
@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.14rem; }
}

/* --------- GLOBAL STRUCTURE --------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--bg-section);
  border-radius: var(--radius);
}

/* -------- HEADER & NAVIGATION -------- */
header {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(23,57,99,0.08);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 20px;
}
.logo img {
  height: 38px;
  max-width: 160px;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 500;
  color: var(--primary);
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  position: relative;
}
.main-nav a:after {
  content: "";
  display: block;
  border-bottom: 2px solid var(--secondary);
  width: 0;
  transition: width 0.2s;
  margin-top: 4px;
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 100%;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--secondary);
}
.btn.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-radius: 24px;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  padding: 11px 28px;
  border: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow);
  cursor: pointer;
  margin-left: 18px;
  transition: background 0.2s, color 0.2s, transform 0.16s;
  display: inline-block;
}
.btn.btn-primary:hover, .btn.btn-primary:focus {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px) scale(1.04);
}

/* -------- HAMBURGER MOBILE MENU -------- */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  color: var(--primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s;
  line-height: 1;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--primary);
  color: var(--white);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(23,57,99,0.92);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%);
  transition: opacity 0.25s, transform 0.3s cubic-bezier(.9,0,.6,1.15);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 20px; right: 28px;
  background: none;
  color: var(--white);
  font-size: 2rem;
  border: none;
  cursor: pointer;
  z-index: 1011;
  transition: color 0.2s;
}
.mobile-menu-close:hover {
  color: var(--accent);
}
.mobile-nav {
  margin-top: 72px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  align-items: flex-start;
  padding-left: 36px;
}
.mobile-nav a {
  color: var(--white);
  font-size: 1.18rem;
  font-weight: 500;
  padding: 8px 0;
  letter-spacing: 0.01em;
  transition: color 0.2s, background 0.15s;
  border-radius: 4px;
  min-width: 180px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .btn.btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --------- HERO/SECTION LAYOUTS --------- */
.hero-section {
  background: var(--primary);
  color: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 58px 0 48px 0;
  display: flex;
  align-items: center;
  min-height: 320px;
  margin-bottom: 54px;
}
.hero-section h1 {
  color: var(--white);
}
.hero-section p {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 26px;
  font-family: 'Open Sans', Arial, sans-serif;
}
.hero-section .btn.btn-primary {
  margin-left: 0;
  background: var(--secondary);
  color: var(--primary);
}
.hero-section .btn.btn-primary:hover, .hero-section .btn.btn-primary:focus {
  background: var(--accent);
  color: var(--primary);
}

@media (max-width: 768px) {
  .hero-section { padding: 36px 0 32px 0; min-height: 200px; }
  .container { padding: 0 10px; }
}

/* --------- FEATURES/FLEX GRIDS --------- */
.features-section, .services-section, .cta-section, .testimonials-section, .about-main-section, .team-features-section, .services-main-section, .guides-feature-section, .contact-main-section, .thankyou-hero-section, .privacy-policy-section, .cookies-policy-section, .rodo-policy-section, .terms-section, .faq-section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius);
  background: var(--bg-section);
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  list-style: none;
  width: 100%;
  margin-top: 24px;
  margin-bottom: 0;
}
.feature-grid li {
  flex: 1 1 210px;
  min-width: 215px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 20px 26px 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.16s, transform 0.2s;
}
.feature-grid li img {
  width: 44px; height: 44px; margin-bottom: 9px;
}
.feature-grid li h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--secondary);
}
.feature-grid li:hover {
  box-shadow: 0 8px 32px rgba(23,57,99,0.13);
  transform: translateY(-3px) scale(1.03);
}

@media (max-width: 768px) {
  .feature-grid { flex-direction: column; gap: 20px; }
  .feature-grid li { min-width: 0; }
}

/* --------- SERVICES CARDS / LIST --------- */
.service-list, .service-list.detailed {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  margin-top: 18px;
  justify-content: flex-start;
}
.service-item {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 20px 22px 20px;
  flex: 1 1 260px;
  min-width: 235px;
  max-width: 320px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.16s, transform 0.21s;
  position: relative;
}
.service-item h3, .service-item h2 {
  color: var(--primary);
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.17rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.service-item .price {
  margin-top: 10px;
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.09rem;
  padding: 7px 18px;
  border-radius: 28px;
  align-self: flex-start;
  box-shadow: 0 2px 10px rgba(23,57,99,0.07);
}
.service-item:hover {
  box-shadow: 0 8px 32px rgba(23,57,99,0.15);
  transform: translateY(-3px) scale(1.025);
}
.service-item ul {
  margin-top: 5px;
  margin-bottom: 0;
  font-size: 0.98rem;
  padding-left: 20px;
}

@media (max-width: 890px) {
  .service-list, .service-list.detailed {
    flex-direction: column;
    gap: 18px;
  }
}

/* --------- CTA SECTION ---------  */
.cta-section {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  border-radius: var(--radius);
}
.cta-section h2, .cta-section p { color: var(--white); }
.cta-section .btn.btn-primary {
  margin-top: 14px;
  background: var(--secondary);
  color: var(--primary);
}
.cta-section .btn.btn-primary:hover, .cta-section .btn.btn-primary:focus {
  background: var(--accent);
  color: var(--primary);
}

/* --------- TESTIMONIALS --------- */
.testimonials-section, .testimonials-main-section {
  background: var(--bg-section);
  border-radius: var(--radius);
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  margin-top: 0;
  min-width: 0;
  position: relative;
  transition: box-shadow 0.14s, transform 0.16s;
}
.testimonial-card blockquote {
  color: var(--primary);
  font-size: 1.1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  font-style: italic;
  margin-bottom: 0;
  border: none;
  padding-left: 0;
}
.testimonial-card span {
  display: inline-block;
  color: var(--gray-500);
  font-size: 0.99rem;
  margin-top: 6px;
}
.testimonial-card .stars {
  color: #FFBF14;
  font-size: 1.2rem;
  margin-left: 14px;
}
.testimonial-card.summaries {
  background: var(--gray-100);
  color: var(--primary);
  font-weight: 600;
  font-size: 1.07rem;
  box-shadow: none;
  margin-top: 18px;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(23,57,99,0.13);
  transform: translateY(-2px) scale(1.012);
}

@media (max-width: 768px) {
  .testimonial-card { flex-direction: column; gap: 10px; }
}

/* --------- CONTENT SECTIONS --------- */
.text-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.text-section ul,
.text-section ol {
  font-size: 1rem;
  margin-bottom: 0;
  margin-top: 0;
}
.contact-info {
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 6px;
  display: flex;
  flex-direction: column;
}

.guides-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.guides-list li {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 18px 22px;
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 0;
  border-left: 4px solid var(--secondary);
  transition: box-shadow 0.13s, transform 0.17s;
}
.guides-list li strong {
  color: var(--secondary);
}
.guides-list li:hover {
  box-shadow: 0 8px 32px rgba(23,57,99,0.13);
  transform: translateY(-2px) scale(1.014);
}

/**** Section & Card Flex containers ****/
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.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; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/**** Responsive stack on mobile ****/
@media (max-width: 768px) {
  .content-grid,
  .text-image-section,
  .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .content-wrapper {
    padding-left: 0; padding-right: 0;
  }
}

/**** Thank-you Page Section ****/
.thankyou-hero-section {
  min-height: 340px;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  border-radius: var(--radius);
  text-align: center;
  justify-content: center;
}
.thankyou-hero-section h1, .thankyou-hero-section p { color: var(--white); }
.thankyou-hero-section .btn.btn-primary {
  background: var(--secondary);
  color: var(--primary);
  margin-top: 24px;
}

/* --------- FOOTER --------- */
footer {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -2px 12px rgba(23,57,99,0.07);
  margin-top: 60px;
}
footer .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 20px 16px 20px;
}
.footer-logo img { height: 40px; }
.footer-nav {
  display: flex;
  gap: 22px;
}
.footer-nav a {
  color: var(--white);
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: underline dotted;
  transition: color 0.18s;
}
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }
.footer-contact {
  color: #dfeaf6;
  font-size: 0.97rem;
}
@media (max-width: 800px) {
  footer .container { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-logo { margin-bottom: 0; }
}

/* --------- FAQ SECTION --------- */
.faq-section ul {
  padding-left: 18px;
  margin-bottom: 0;
}
.faq-section li {
  margin-bottom: 12px;
}

/* --------- PRIVACY, COOKIE, RODO, TERMS SECTIONS --------- */
.privacy-policy-section, .cookies-policy-section, .rodo-policy-section, .terms-section {
  background: var(--bg-section);
  border-radius: var(--radius);
}
.privacy-policy-section h1, .privacy-policy-section h2,
.cookies-policy-section h1, .rodo-policy-section h1, .terms-section h1 {
  margin-bottom: 18px;
  color: var(--primary);
}
.text-section ol {
  list-style-type: decimal;
  margin-bottom: 0;
  margin-top: 0;
}
.text-section ol li {
  margin-bottom: 8px;
}

/* ------- ANIMATIONS, MICRO-INTERACTIONS ------- */
.btn, .card, .service-item, .feature-grid li, .testimonial-card, .guides-list li {
  transition: box-shadow 0.16s, transform 0.19s, background 0.2s, color 0.2s;
}

/* ------- COOKIE CONSENT BANNER & MODAL ------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 5000;
  background: var(--white);
  box-shadow: 0 -2px 32px rgba(23,57,99,0.19);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 16px 18px 16px;
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%;
  transition: transform 0.34s cubic-bezier(0.8,.2,.4,1.1);
  transform: translateY(0);
}
.cookie-banner.hide {
  transform: translateY(110%);
}
.cookie-banner p {
  color: var(--primary);
  margin-bottom: 10px;
  text-align: center;
}
.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-banner .btn {
  padding: 7px 16px;
  font-size: 0.99rem;
  border-radius: 20px;
  background: var(--secondary);
  color: var(--white);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.19s, color 0.17s;
}
.cookie-banner .btn.accept {
  background: var(--primary);
  color: var(--white);
}
.cookie-banner .btn.accept:hover,
.cookie-banner .btn.accept:focus {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner .btn.reject {
  background: var(--gray-200);
  color: var(--primary);
}
.cookie-banner .btn.reject:hover,
.cookie-banner .btn.reject:focus {
  background: var(--gray-500);
  color: var(--white);
}
.cookie-banner .btn.settings {
  background: var(--accent);
  color: var(--primary);
}
.cookie-banner .btn.settings:hover,
.cookie-banner .btn.settings:focus {
  background: var(--secondary);
  color: var(--white);
}

/**** COOKIE MODAL ****/
.cookie-modal {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: rgba(23,57,99,0.85);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s;
}
.cookie-modal.open {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal-content {
  background: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -3px 32px rgba(23,57,99,0.26);
  width: 100%;
  max-width: 420px;
  margin-bottom: 0;
  padding: 28px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transform: translateY(100%);
  transition: transform 0.36s cubic-bezier(0.7,0,0.5,1.2);
}
.cookie-modal.open .cookie-modal-content {
  transform: translateY(0);
}
.cookie-modal-content h3 {
  color: var(--primary);
  font-size: 1.13rem;
  margin-bottom: 2px;
}
.cookie-category {
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-category input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: var(--secondary);
}
.cookie-category label {
  font-size: 1rem;
  color: var(--primary);
}
.cookie-category.essential label {
  font-weight: 700;
  color: var(--primary);
}
.cookie-category .cookie-status {
  margin-left: 4px;
  color: var(--gray-500);
  font-weight: 400;
  font-size: 0.99em;
  font-style: italic;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.cookie-modal .btn {
  font-size: 0.99rem;
  border-radius: 16px;
  padding: 6px 16px;
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 24px;
  background: none;
  color: var(--gray-500);
  font-size: 2rem;
  border: none;
  cursor: pointer;
  z-index: 1011;
}
.cookie-modal-close:hover {
  color: var(--secondary);
}

@media (max-width: 600px) {
  .cookie-modal-content {
    border-radius: 0;
    max-width: 100vw;
    padding: 22px 10px 18px 16px;
  }
}

/* Hide scrollbars in cookie modal and hide on desktop if not open */
.cookie-modal:not(.open) {
  display: none;
}

/* --------- UTILITIES --------- */
.hide { display: none !important; }
.visible { display: block !important; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* Force all layouts to be flex-only! */
/* (For audit: NO display: grid/grid-* or columns or column-count, etc used anywhere!) */

