/* ===== 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,
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section { display: block; }
body {
  line-height: 1.5;
  background: #F6F8FA;
  color: #202942;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; transition: color 0.2s cubic-bezier(.4,0,.2,1); }
ul, ol, li { list-style: none; } 
p, ul, ol, dl, blockquote { margin-bottom: 1.2em; }
img { max-width: 100%; height: auto; border: 0; display: block; }

/* ===== VARIABLE FALLBACKS ===== */
:root {
  --color-primary: #202942;
  --color-secondary: #F6F8FA;
  --color-accent: #E58D08;
  --color-card-bg: #fff;
  --color-hero-bg: #202942;
  --color-on-primary: #fff;
  --color-on-secondary: #202942;
  --color-on-accent: #fff;
  --shadow-elevate: 0 4px 24px rgba(32,41,66,0.10);
  --shadow-card: 0 2px 12px rgba(32,41,66,0.08);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --transition: all 0.18s cubic-bezier(.4,0,.2,1);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 20px;
  color: #202942;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.8rem; line-height: 1.13; }
h2 { font-size: 2.0rem; line-height: 1.25; }
h3 { font-size: 1.35rem; line-height: 1.3; }
h4 { font-size: 1.18rem; line-height: 1.35; }
p, li, dd, dt, blockquote {
  font-family: var(--font-body);
  font-size: 1.06rem;
  color: #222a44;
  font-weight: 500;
}
strong { font-weight: 800; }
blockquote {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-style: italic;
  border-left: 6px solid var(--color-accent);
  margin: 0 0 6px 0; 
  padding: 0 0 0 18px;
  color: #202942;
}
dt { font-weight: 700; color: #202942; }
dd { margin-bottom: 18px; margin-left: 0; }
.text-section h2, .text-section h3, .text-section h4 {
  margin-top: 32px;
}
@media (max-width: 768px) {
  h1 { font-size: 2.0rem; }
  h2 { font-size: 1.32rem; }
  h3 { font-size: 1.1rem; }
  p, li, dd, dt, blockquote { font-size: 1rem; }
}

/* ===== GLOBAL CONTAINERS & SPACING PATTERNS ===== */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
  box-sizing: border-box;
}
.content-wrapper {
  margin: 0 auto;
  padding: 0;
  max-width: 750px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
  box-sizing: border-box;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
  margin-bottom: 10px;
}
.card {
  background: var(--color-card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 26px 25px 22px 25px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  flex: 1 0 280px;
}
.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: 20px;
  padding: 20px;
  margin-bottom: 22px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(32,41,66,0.12);
  border-left: 8px solid var(--color-accent);
  transition: box-shadow 0.18s cubic-bezier(.4,0,.2,1), transform 0.13s cubic-bezier(.4,0,.2,1);
}
.testimonial-card:hover {
  box-shadow: 0 8px 36px rgba(32,41,66,0.17);
  transform: translateY(-4px) scale(1.017);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 12px 0;
}

/* ===== HERO SECTION ===== */
.hero {
  background: var(--color-hero-bg);
  color: var(--color-on-primary);
  padding: 68px 0 60px 0;
  width: 100%;
  min-height: 340px;
  display: flex;
  align-items: center;
}
.hero .container {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.hero .content-wrapper {
  max-width: 600px;
  color: var(--color-on-primary);
}
.hero h1, .hero p {
  color: var(--color-on-primary);
}
.hero .btn-primary { margin-top: 24px; }

/* ===== BUTTONS ===== */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 13px 34px;
  border: none;
  font-size: 1.14rem;
  font-family: var(--font-display);
  font-weight: 800;
  border-radius: var(--radius-md);
  background: var(--color-accent);
  color: var(--color-on-accent);
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(229,141,8,0.11);
  letter-spacing: 0.01em;
  transition: var(--transition), box-shadow 0.17s cubic-bezier(.4,0,.2,1);
  text-transform: uppercase;
}
.btn-primary:hover, .btn-primary:focus {
  background: #c87706;
  color: #fff;
  box-shadow: 0 6px 16px rgba(229,141,8,0.19);
  transform: translateY(-1px) scale(1.016);
}
.btn-secondary {
  background: var(--color-primary);
  color: #fff;
  border: none;
  margin-top: 18px;
  box-shadow: 0 2px 12px rgba(32,41,66,0.08);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #151928;
  color: #fff;
}
a.btn-primary, a.btn-secondary { text-decoration: none; }

/* ===== NAVIGATION ===== */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(32,41,66,0.06);
  position: sticky;
  top: 0;
  z-index: 1020;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1150px;
  margin: 0 auto;
}
header nav ul {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-left: 28px;
}
header nav li {
  display: flex;
  align-items: center;
}
header nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  padding: 6px 2px;
  border-radius: var(--radius-sm);
  transition: background 0.18s, color 0.18s;
}
header nav a:hover, header nav a:focus {
  color: var(--color-accent);
  background: rgba(229,141,8,0.09);
}
header nav .btn-primary {
  margin-left: 34px;
  font-size: 1.05rem;
  padding: 9px 25px;
}
header nav img {
  height: 44px;
  margin-right: 8px;
  display: block;
}
@media (max-width: 1076px) {
  header nav { padding-left: 10px; padding-right: 10px; }
  header nav ul { gap: 16px; margin-left: 12px; }
}
@media (max-width: 900px) {
  header nav ul { gap: 10px; }
  header nav .btn-primary { margin-left: 8px; }
}
@media (max-width: 730px) {
  header nav ul, header nav .btn-primary { display: none; }
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 22px;
  right: 20px;
  z-index: 2002;
  font-size: 2.3rem;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 9px rgba(229,141,8,0.13);
  transition: var(--transition);
  cursor: pointer;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #c87706;
  color: #fff;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  z-index: 2080;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 2px 28px rgba(32,41,66,0.19);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.54,.01,.5,1.2);
}
.mobile-menu.open { /* .open added by js */
  display: flex;
  transform: translateX(0%);
}
.mobile-menu-close {
  margin: 24px 0 0 22px;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--color-primary);
  align-self: flex-start;
  cursor: pointer;
  padding: 4px 7px;
  border-radius: 50%;
  transition: background 0.14s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus { background: #F6F8FA; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 68px 0 0 0;
  align-items: flex-start;
  padding-left: 38px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-primary);
  font-weight: 700;
  padding: 10px 0;
  border-radius: var(--radius-md);
  width: 96vw;
  max-width: 340px;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(229,141,8,0.13);
  color: var(--color-accent);
}
@media (max-width: 730px) {
  .mobile-menu-toggle { display: flex; }
}

/* ===== MAIN SECTION SPACING & STRUCTURE ===== */
main {
  width: 100%;
  padding-bottom: 70px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
}
/* text-section for compact, text-heavy sections */
.text-section {
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==== CARD & LIST DESIGN ==== */
ul, ol {
  padding-left: 25px;
  margin-bottom: 20px;
}
ul li, ol li {
  position: relative;
  padding-left: 13px;
  margin-bottom: 9px;
  font-weight: 600;
}
ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  background: var(--color-accent);
  border-radius: 2px;
}
.feature-item ul li::before { /* for .feature-item override if exists Nested */
  content: none;
}

/* ==== VISUAL HIERARCHY ==== */
.section h2 {
  font-size: 2.0rem;
  margin-bottom: 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #202942;
}
.section p, .section li {
  font-size: 1.09rem;
  color: #222a44;
  font-weight: 500;
}

/* ===== FOOTER ===== */
footer {
  background: #fff;
  border-top: 1px solid #e5e9f2;
  box-shadow: 0 -2px 12px rgba(32,41,66,0.04);
  padding: 32px 0 24px 0;
  width: 100%;
  margin-top: 30px;
}
footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
footer nav li {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  display: flex; align-items: center;
}
footer nav a {
  color: #202942;
  transition: color 0.18s;
  border-radius: var(--radius-sm);
  padding: 5px 2px;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-accent);
  background: rgba(229,141,8,0.09);
}
footer p {
  font-size: 0.95rem;
  color: #878ca0;
  text-align: center;
  margin-top: 6px;
  letter-spacing: 0.03em;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #fff;
  color: #202942;
  box-shadow: 0 -2px 18px rgba(32,41,66,0.10);
  z-index: 3100;
  width: 100vw;
  padding: 22px 14px 22px 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  font-family: var(--font-display);
  font-size: 1rem;
  animation: banner-in 0.55s cubic-bezier(.35,0,1,1);
}
@keyframes banner-in {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  max-width: 490px;
  color: #202942;
  margin: 0 20px 0 0;
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 500;
}
.cookie-action-group {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cookie-btn {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 26px;
  margin: 0 3px;
  background: var(--color-accent);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(229,141,8,0.12);
  transition: background 0.16s, transform 0.17s;
}
.cookie-btn.accept { background: var(--color-accent); color: #fff; }
.cookie-btn.reject {
  background: #bbbfc6;
  color: #222a44;
  font-weight: 800;
}
.cookie-btn.settings {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn:hover, .cookie-btn:focus { filter: brightness(0.92) contrast(1.12); transform: scale(1.035); }

/* ========== COOKIE MODAL ========== */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 3200;
  background: rgba(32, 41, 66, 0.37);
  justify-content: center;
  align-items: center;
  animation: modal-fade-in .44s cubic-bezier(.34,0,.72,1);
}
.cookie-modal-overlay.open { display: flex; }
@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 9px 46px rgba(0,0,0,0.15);
  padding: 38px 38px 28px 38px;
  max-width: 360px;
  min-width: 280px;
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: modal-slidein 0.21s cubic-bezier(.32,.08,.75,1.0);
}
@keyframes modal-slidein {
  from { transform: translateY(47px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  font-family: var(--font-display);
  font-size: 1.19rem;
  font-weight: 800;
  margin-bottom: 5px;
  color: #202942;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  gap: 16px;
}
.cookie-category-name {
  font-size: 1rem;
  font-weight: 800;
  color: #202942;
}
.cookie-category-desc {
  font-size: 0.97rem;
  font-weight: 500;
  color: #555a72;
}
.cookie-toggle {
  appearance: none;
  width: 42px;
  height: 25px;
  background: #e1e3e9;
  border-radius: 14px;
  position: relative;
  outline: none;
  transition: background 0.16s;
  cursor: pointer;
  border: none;
}
.cookie-toggle:checked {
  background: var(--color-accent);
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 3.5px;
  top: 3.5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.16s, background 0.16s;
  box-shadow: 0 1px 4px rgba(32,41,66,0.09);
}
.cookie-toggle:checked:before {
  left: 20px;
  background: #fff4e3;
}
.cookie-modal-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 16px;
}
.cookie-modal-close {
  position: absolute;
  top: 15px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.24rem;
  color: #202942;
  padding: 3px 7px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #f2f4fd;
}

/* ===== TESTIMONIALS & CARD VISIBILITY ===== */
.testimonial-card blockquote {
  color: #202942;
  font-weight: 700;
}
.testimonial-card p {
  color: #586094;
  font-size: 1.03rem;
  font-family: var(--font-display);
}

/* ===== LINKS & INTERACTIVES ===== */
a {
  text-decoration: underline;
  color: var(--color-accent);
  transition: color 0.17s;
}
a:hover, a:focus {
  color: #c87706;
}
.text-section a,
.card a {
  text-decoration: underline;
  color: var(--color-accent);
  font-weight: 700;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 900px) {
  .container, section {
    padding-left: 7px;
    padding-right: 7px;
  }
  .content-wrapper {
    padding: 0 2px;
    max-width: 98vw;
  }
  .section {
    padding: 32px 6px;
    margin-bottom: 40px;
  }
}
@media (max-width: 768px) {
  .container, section { max-width: 100vw; padding-left: 0; padding-right: 0; }
  .content-wrapper, .text-section { max-width: 100vw; padding: 0 4px; }
  .hero { padding: 44px 0 32px 0; min-height: 0; }
  .hero .content-wrapper { max-width: 98vw; }
  .testimonial-card { padding: 17px 10px; }
}
@media (max-width: 670px) {
  .card-container, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .card { min-width: unset; padding: 16px 10px; }
}
@media (max-width: 650px) {
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .section { padding: 22px 2px; }
}
@media (max-width: 500px) {
  .testimonial-card { padding: 10px 3px; gap: 14px; }
  .cookie-modal { max-width: 94vw; min-width: 85vw; padding: 11vw 3vw 7vw 3vw; }
  .cookie-consent-banner p { max-width: 89vw; margin: 0 0 10px 0; }
}

/* ====== ANIMATION FOR BUTTONS & CARDS ====== */
.btn-primary:active, .btn-secondary:active, .cookie-btn:active {
  transform: scale(0.96);
}
.card:focus-within, .card:hover {
  box-shadow: 0 7px 28px rgba(32,41,66,0.21);
  outline: 2px solid var(--color-accent);
}

/* ======= FOCUS VISIBLE STATES ======= */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 1px;
}

/* ===== SCROLLBAR COLOR ===== */
body::-webkit-scrollbar {
  width: 11px;
  background: #F6F8FA;
}
body::-webkit-scrollbar-thumb {
  background: #dbdfea;
  border-radius: 9px;
}

/******* OPTIONAL: Hide some UI on mobile visually to reduce clutter ******/
@media (max-width: 430px) {
  footer nav ul { gap: 7px; font-size: 0.95rem; }
}
