/* ==== 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;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  background: #F7F8F9;
  color: #29314D;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; outline: none; }
img { max-width: 100%; height: auto; vertical-align: middle; }

/* ==== BRAND COLORS & VARIABLES (fallbacks included) ==== */
:root {
  --primary: #29314D;
  --secondary: #F2B134;
  --accent: #F7F8F9;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --radius: 12px;
  --shadow: 0 4px 16px rgba(41,49,77,0.07), 0 1px 2px rgba(41,49,77,0.04);
}

/* ==== TYPOGRAPHY ==== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display), Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
h1 {
  font-size: 2.25rem; /* 36px */
  margin-bottom: 20px;
}
h2 {
  font-size: 1.5rem; /* 24px */
  margin-bottom: 18px;
}
h3 {
  font-size: 1.125rem; /* 18px */
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 8px;
}
p, ul, ol {
  font-family: var(--font-body), Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #29314D;
  margin-bottom: 12px;
}
strong { font-weight: bold; }
a {
  color: var(--secondary);
  font-weight: 500;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FFD166;
  outline: none;
}

/* ==== LAYOUT: CONTAINER & FLEX STRUCTURE ==== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  max-width: 800px;
  margin: 0 auto;
}

/* ==== SECTIONS AND SPACING PATTERNS ==== */
section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
section > .container {
  padding: 0;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  flex: 1 1 300px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  min-width: 220px;
}
.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;
  margin-bottom: 20px;
  padding: 20px 28px;
  background: #F7F8F9;
  border-left: 5px solid var(--secondary);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(41,49,77,0.04);
  max-width: 630px;
  min-width: 0;
  color: #29314D;
}
.testimonial-card p {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin-bottom: 10px;
}
.testimonial-card span {
  display: block;
  font-family: var(--font-body);
  font-size: 1rem;
  color: #6C7293;
  margin-bottom: 8px;
}
.testimonial-card img {
  width: 22px; height: 22px; margin-right: 2px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F7F8F9;
  padding: 24px 20px;
  border-radius: var(--radius);
  box-shadow: 0 1px 6px rgba(41,49,77,0.05);
  flex: 1 1 240px;
  min-width: 220px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.feature-item img {
  width: 36px;
  height: 36px;
  margin-bottom: 5px;
  filter: grayscale(30%) contrast(120%);
}
.feature-item:hover {
  box-shadow: 0 8px 16px rgba(41,49,77,0.10);
  transform: translateY(-3px) scale(1.017);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

ul, ol {
  margin-left: 22px;
  margin-bottom: 12px;
}
ul li, ol li {
  margin-bottom: 8px;
  position: relative;
  font-size: 1rem;
  padding-left: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
ol li::before {
  content: counter(item) ". ";
  counter-increment: item;
  color: var(--secondary);
  font-family: var(--font-display);
  font-weight: bold;
}
ol { counter-reset: item; }

.text-section ul li,
.text-section ol li {
  margin-bottom: 10px;
}

/* ==== HEADER & NAVIGATION ==== */
header {
  width: 100%;
  padding: 0;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(41,49,77,0.08);
  position: relative;
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 30px;
}
header a img {
  height: 44px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 25px;
}
.main-nav a {
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  padding: 7px 12px;
  border-radius: 7px;
  transition: background 0.18s, color 0.18s;
  position: relative;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.cta-btn {
  background: var(--secondary);
  color: var(--primary);
  padding: 12px 28px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: 28px;
  box-shadow: 0 2px 8px rgba(242,177,52,0.08);
  transition: background 0.2s, color 0.2s, transform 0.16s, box-shadow 0.14s;
  margin-left: 20px;
  cursor: pointer;
  display: inline-block;
}
.cta-btn:hover,
.cta-btn:focus {
  background: #FFD166;
  color: #29314D;
  transform: scale(1.045);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 2rem;
  margin-left: 22px;
  cursor: pointer;
  transition: color 0.16s;
  z-index: 401;
}
.mobile-menu-toggle:focus { color: #FFD166; }

/* ==== MOBILE MENU ==== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(41,49,77,0.96);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.4,1,.6,1);
  z-index: 400;
  padding: 0;
  opacity: 1;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  margin-top: 26px;
  margin-left: 26px;
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--secondary);
  cursor: pointer;
  z-index: 405;
}
.mobile-nav {
  margin-top: 46px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-left: 36px;
  padding-top: 12px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.23rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 6px 0;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
@media (max-width: 1024px) {
  .main-nav { gap: 14px; margin-left: 0; }
  .header .container { gap: 10px; }
}
@media (max-width: 900px) {
  header .container {
    padding: 0 12px;
    gap: 10px;
  }
  .main-nav a { font-size: 0.96rem; }
  .cta-btn { font-size: 0.98rem; }
}
@media (max-width: 768px) {
  header .container {
    gap: 0;
    height: 62px;
  }
  .main-nav { display: none; }
  .cta-btn { display: none; }
  .mobile-menu-toggle { display: block; }
}

/* ==== FOOTER ==== */
footer {
  background: var(--primary);
  color: #fff;
  padding: 36px 0 20px 0;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
}
footer .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
footer nav {
  display: flex;
  gap: 22px;
}
footer nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  opacity: 0.85;
  transition: color 0.16s, opacity 0.16s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--secondary);
  opacity: 1;
}
footer div:last-child {
  font-size: 0.95rem;
  opacity: 0.77;
  font-family: var(--font-body);
  margin-top: 0;
}
@media (max-width: 700px) {
  footer .container {
    flex-direction: column;
    gap: 8px;
  }
  footer nav { justify-content: center; }
}

/* ==== CARDS, BUTTONS & MICROINTERACTIONS ==== */
button, .cta-btn {
  cursor: pointer;
}
button:active, .cta-btn:active {
  transform: scale(0.97);
}
button:focus-visible, .cta-btn:focus-visible {
  outline: 2px dashed var(--secondary);
  outline-offset: 3px;
}
.card, .feature-item {
  transition: box-shadow 0.2s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 10px 24px rgba(41,49,77,0.18);
  transform: translateY(-4px) scale(1.018);
}

/* ==== RESPONSIVE FLEX PATTERNS ==== */
@media (max-width: 1024px) {
  .card-container, .feature-grid, .content-grid {
    gap: 16px;
  }
  .section {
    padding: 32px 12px;
  }
}
@media (max-width: 900px) {
  .card, .feature-item {
    min-width: 180px;
    padding: 18px 14px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  section {
    padding: 24px 0;
    margin-bottom: 30px;
  }
  .card-container, .feature-grid, .content-grid {
    gap: 10px;
    flex-direction: column;
  }
  .testimonial-card {
    flex-direction: column;
    padding: 16px 12px;
  }
  .feature-item {
    min-width: 0;
    width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* ==== HERO & HEADER SECTIONS Styling ==== */
main > section:first-child {
  background: linear-gradient(140deg, #F7F8F9 68%, #F2B134 100%);
  box-shadow: none;
  border-bottom: 3px solid #FFD166;
  margin-top: 0;
}
main > section:first-child h1 {
  font-size: 2.45rem;
  color: var(--primary);
  letter-spacing: 0.015em;
  margin-bottom: 18px;
}
main > section:first-child p {
  font-size: 1.15rem;
  color: #373C51;
  margin-bottom: 28px;
}
@media (max-width: 600px) {
  main > section:first-child h1 { font-size: 1.45rem; }
  main > section:first-child { padding: 16px 0 24px 0; }
}

/* ==== ICON WITH LISTS ==== */
ul li img, ol li img {
  width: 24px;
  height: 24px;
  margin-right: 6px;
  margin-top: 2px;
  flex-shrink: 0;
  filter: grayscale(40%) contrast(120%);
}

/* ==== CONTACT DETAILS ==== */
.text-section ul li, .text-section p img {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  vertical-align: middle;
}

/* ==== GEOMETRIC DECORATIVES ==== */
section, .card, .feature-item, .testimonial-card {
  border-radius: 18px 18px 16px 32px/22px 24px 18px 36px;
  /* geometric/structured asymmetric corners */
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #fff;
  border-top: 2.5px solid var(--secondary);
  box-shadow: 0 -2px 32px rgba(41,49,77,0.10);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px 20px 16px;
  gap: 32px;
  transition: transform 0.4s cubic-bezier(.48,1,.4,1), opacity 0.2s;
  font-size: 1rem;
}
.cookie-banner.hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-text {
  max-width: 630px;
  color: #29314D;
  font-family: var(--font-body);
  margin-right: 20px;
}
.cookie-banner-btns {
  display: flex;
  gap: 16px;
}
.cookie-btn {
  padding: 9px 22px;
  border-radius: 22px;
  border: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.17s, color 0.17s, box-shadow 0.13s;
  margin-right: 2px;
}
.cookie-btn.accept {
  background: var(--secondary);
  color: #29314D;
}
.cookie-btn.accept:hover { background: #FFD166; }
.cookie-btn.reject {
  background: #EFEFF1;
  color: #A0A4B8;
}
.cookie-btn.reject:hover { background: #FFD4A4; color: var(--primary); }
.cookie-btn.settings {
  background: #fff;
  border: 1.5px solid var(--secondary);
  color: var(--secondary);
}
.cookie-btn.settings:hover {
  background: var(--secondary);
  color: var(--primary);
}

/* ==== COOKIE PREFERENCES MODAL ==== */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(41,49,77,0.48);
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.18s;
}
.cookie-modal-backdrop.active {
  display: flex;
  opacity: 1;
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(41,49,77,0.14);
  max-width: 450px;
  width: 95%;
  padding: 32px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 2150;
  position: relative;
  animation: modalFadeIn 0.45s cubic-bezier(.43,1,.285,1) 1;
}
@keyframes modalFadeIn {
  from { transform: scale(0.88) translateY(30px); opacity:0; }
  to { transform: scale(1) translateY(0); opacity:1; }
}
.cookie-modal h2 {
  font-family: var(--font-display);
  font-size: 1.325rem;
  margin-bottom: 8px;
  color: var(--primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 10px;
  font-size: 1rem;
}
.cookie-category label {
  font-weight: 600;
  color: var(--primary);
}
.cookie-modal-toggle {
  width: 36px;
  height: 18px;
  background: #E0E2EE;
  border-radius: 12px;
  position: relative;
  margin-left: 8px;
  transition: background 0.18s;
  cursor: pointer;
}
.cookie-modal-toggle input[type="checkbox"] {
  display: none;
}
.cookie-modal-toggle .slider {
  width: 18px;
  height: 18px;
  background: var(--secondary);
  border-radius: 50%;
  display: block;
  position: absolute;
  left: 2px; top: 0;
  transition: left 0.22s, background 0.17s;
}
.cookie-modal-toggle input[type="checkbox"]:checked + .slider {
  left: 16px;
  background: var(--primary);
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal .close-modal {
  position: absolute;
  right: 15px; top: 18px;
  background: none;
  border: none;
  font-size: 1.45rem;
  color: #B2B2B2;
  cursor: pointer;
}
.cookie-modal .close-modal:hover { color: var(--secondary); }

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 8px 16px 8px;
    font-size: 0.97rem;
  }
  .cookie-banner-btns { flex-wrap: wrap; gap: 8px; margin-top: 6px; }
  .cookie-modal { padding: 14px 8px 14px 14px; }
}

/* ==== MISC UTILS ==== */
/* Hide visually but not from screen readers */
.visually-hidden {
  border: 0 !important;
  clip: rect(1px,1px,1px,1px) !important;
  height: 1px !important; width: 1px !important;
  margin: -1px !important; padding: 0 !important;
  position: absolute !important;
  overflow: hidden !important;
}

/* ==== GENERAL UTILITY CLASSES ==== */
.centered {
  display: flex;
  align-items: center;
  justify-content: center;
}
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-20 { margin-top: 20px !important; }
.mb-20 { margin-bottom: 20px !important; }

/* ==== PRINT OPTIMIZATION ==== */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal-backdrop, footer { display: none !important; }
  section, .container { box-shadow: none !important; border-radius: 0 !important; background: #fff !important; }
  body { background: #fff !important; color: #000 !important; }
}

/* ==== SCROLLBAR STYLE ==== */
::-webkit-scrollbar {
  width: 10px;
  background: #F1F2F7;
}
::-webkit-scrollbar-thumb {
  background: #DFE0E6;
  border-radius: 8px;
}

/* ==== ANIMATIONS FOR INTERACTIONS ==== */
.cta-btn, button, .cookie-btn {
  transition: background 0.18s, color 0.18s, transform 0.17s, box-shadow 0.12s;
}

/* ==== FORMS (Add-on for Contact forms if Needed) ==== */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 8px;
  border: 1.5px solid #C5CBDD;
  padding: 10px 12px;
  margin-bottom: 12px;
  outline: none;
  width: 100%;
  transition: border 0.17s;
  background: #F9FAFB;
  color: #29314D;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--secondary);
  box-shadow: 0 1px 6px rgba(242,177,52,0.14);
}
button:disabled, .cta-btn:disabled {
  opacity: 0.6;
  pointer-events: none;
}

/*
  ==== End of Comprehensive CSS for BrilliantLoom Auto Guide (geometric_structured style, flexbox only, fully responsive, cookie and mobile nav included) ====
*/
