/* ===== 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;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body {
  line-height: 1.55;
  background: #F7FBFD;
  color: #263347;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  min-height: 100vh;
}

img { max-width: 100%; display: block; border: 0; }
a { text-decoration: none; color: inherit; }
ol, ul { list-style: none; }
button, input, select, textarea { font: inherit; }

/* ===== PALETTE (Soft Pastels, Brand) ===== */
:root {
  --primary: #0F3557;
  --secondary: #F5A623;
  --accent: #F2F7FA;
  --bg-light: #FDFDFD;
  --soft-blue: #B7D8F6;
  --soft-mint: #D3F5EF;
  --soft-violet: #E2DAF3;
  --soft-peach: #FAE3D9;
  --soft-yellow: #FFF6D6;
  --soft-green: #E5F7E0;
  --border-color: #E1EAF3;
  --text-dark: #24314D;
  --text-body: #384A6D;
  --shadow-color: rgba(37, 69, 94, 0.10);
  --card-bg: #fff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-light: #192435;
    --text-dark: #F4F6FA;
    --card-bg: #263347;
    --border-color: #263347;
  }
}

/* ===== BODY & BASE TYPO ===== */
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: var(--text-body);
  background: linear-gradient(160deg, var(--soft-blue) 0%, var(--soft-peach) 100%);
  font-size: 16px;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem; /* 40px */
  margin-bottom: 12px;
}
h2 {
  font-size: 2rem; /* 32px */
  margin-bottom: 10px;
}
h3 {
  font-size: 1.375rem; /* 22px */
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-size: 1rem;
}
p, ul, ol, blockquote {
  color: var(--text-body);
  font-size: 1.025rem;
  margin-bottom: 1.125em;
}

strong, b {
  font-weight: 700;
  color: var(--primary);
}

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

/* ====== FLEX SPACING RULES ====== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: 0 6px 24px var(--shadow-color);
  border: 1px solid var(--border-color);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 0 240px;
  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;
  padding: 20px;
  background: var(--soft-violet);
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px var(--shadow-color);
  border: 1px solid var(--border-color);
  min-height: 80px;
}
.testimonial-card blockquote {
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.38;
}
.testimonial-card blockquote span {
  display: block;
  margin-top: 10px;
  font-size: 0.96rem;
  color: var(--primary);
  letter-spacing: 0.01em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 24px 18px;
  background: var(--soft-mint);
  border-radius: 16px;
  box-shadow: 0 3px 10px var(--shadow-color);
  margin-bottom: 20px;
}

/* ==== HEADER AND NAV ==== */
header {
  background: linear-gradient(90deg, var(--soft-blue) 50%, var(--soft-peach) 100%);
  box-shadow: 0 3px 12px 0 var(--shadow-color);
  position: sticky;
  top: 0; left: 0; width: 100%; z-index: 30;
}
header nav {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 16px 18px;
  width: 100%;
  flex-wrap: wrap;
  justify-content: flex-start;
}
header nav img {
  height: 42px;
  margin-right: 18px;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 12px;
  transition: background 0.2s, color 0.18s;
  font-size: 1rem;
  color: var(--primary);
}
header nav a.cta-primary {
  background: var(--secondary);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 18px;
  margin-left: 12px;
  box-shadow: 0 2px 10px var(--shadow-color);
  transition: background 0.18s, transform 0.17s;
}
header nav a.cta-primary:hover, header nav a.cta-primary:focus {
  background: #e29723;
  transform: translateY(-2px) scale(1.04);
  color: #fff;
}
header nav a:hover, header nav a:focus {
  background: var(--soft-blue);
}

header .mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 22px;
  top: 18px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  z-index: 51;
  cursor: pointer;
  transition: color 0.2s;
}
header .mobile-menu-toggle:hover {
  color: var(--secondary);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(247,251,253, 0.94);
  z-index: 100;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100%);
  transition: transform 0.42s cubic-bezier(.77,.2,.05,1.0);
  overflow-y: auto;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--primary);
  margin: 18px 22px 10px 0;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding: 24px 28px;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: var(--primary);
  background: var(--soft-blue);
  border-radius: 13px;
  padding: 12px 20px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  margin-bottom: 2px;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a.cta-primary {
  background: var(--secondary);
  color: #fff;
  font-weight: 700;
  margin-top: 14px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--soft-mint);
  color: var(--primary);
}

/* ==== HERO & MAIN SECTIONS ==== */
.hero {
  background: linear-gradient(120deg, var(--soft-blue) 50%, var(--soft-mint) 100%);
  min-height: 260px;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 30px;
  padding-bottom: 30px;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.2rem;
  background: none;
  font-weight: 800;
  margin-bottom: 6px;
}
.hero h2 {
  color: #6B6D7D;
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 15px;
}
.hero .cta-primary {
  margin-top: 12px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: transparent;
}
.text-section {
  border-radius: 20px;
  padding: 32px 22px;
  margin-bottom: 24px;
  box-shadow: 0 2px 14px var(--shadow-color);
  border: 1px solid var(--border-color);
}
.text-section ul li, .text-section ol li {
  margin-bottom: 18px;
  line-height: 1.55;
  padding-left: 36px;
  position: relative;
}
.text-section ul li img, .text-section ol li img {
  position: absolute;
  left: 0; top: 1px;
  width: 24px;
  height: 24px;
  display: inline-block;
}

ul li, ol li {
  margin-bottom: 14px;
  line-height: 1.48;
  padding-left: 32px;
  position: relative;
}
ul li img, ol li img {
  position: absolute;
  left: 0; top: 0;
  width: 22px;
  height: 22px;
  display: inline-block;
}

/* ==== CTA BUTTONS ==== */
a.cta-primary, .cta-primary, button.cta-primary {
  display: inline-block;
  background: var(--secondary);
  color: #fff !important;
  font-size: 1.17rem;
  padding: 13px 34px;
  border: none;
  border-radius: 19px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.030em;
  box-shadow: 0px 4px 16px var(--shadow-color);
  margin-top: 18px;
  margin-bottom: 6px;
  transition: background 0.18s, box-shadow 0.16s, transform 0.18s;
  cursor: pointer;
  text-align: center;
}
a.cta-primary:hover, .cta-primary:hover, .cta-primary:focus {
  background: #e29723;
  box-shadow: 0px 7px 32px 0 var(--shadow-color);
  transform: translateY(-2px) scale(1.04);
  color: #fff !important;
}

/* ==== FOOTER ==== */
footer {
  background: linear-gradient(90deg, var(--soft-peach) 60%, var(--soft-blue) 120%);
  color: var(--primary);
  padding: 38px 0 16px 0;
  box-shadow: 0 -3px 18px 0 var(--shadow-color);
  margin-top: 28px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-bottom: 18px;
}
footer nav a {
  color: var(--primary);
  border-radius: 12px;
  padding: 7px 15px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: var(--soft-yellow);
  font-weight: 500;
  transition: background 0.19s, color 0.19s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--soft-mint);
  color: var(--primary);
}
.footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.96rem;
  color: var(--text-dark);
}
.footer-info p {
  margin-bottom: 2px;
  text-align: center;
}

/* ===== FORM, FAQ, ETC ===== */
.faq h3 {
  margin-top: 22px;
  color: var(--secondary);
  font-size: 1.15rem;
}
.faq p {
  margin-bottom: 8px;
}
.faq a {
  color: var(--secondary);
  text-decoration: underline;
}
.faq a:hover, .faq a:focus {
  color: var(--primary);
}

/* ==== COOKIE BANNER + MODAL ==== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--soft-blue);
  color: var(--text-dark);
  border-top: 2px solid var(--border-color);
  box-shadow: 0 -2px 16px var(--shadow-color);
  z-index: 1051;
  padding: 24px 14px 18px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 1rem;
  animation: fadeInCookie 0.96s cubic-bezier(.68,-0.55,.26,1.55);
}
@keyframes fadeInCookie {
  0% { opacity: 0; transform: translateY(56px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  margin: 0 7px 0 0;
  flex: 2 1 200px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}
.cookie-button {
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 13px;
  font-weight: 600;
  padding: 10px 22px;
  font-size: 1rem;
  margin-right: 3px;
  transition: background 0.18s, box-shadow 0.16s, transform 0.15s;
  cursor: pointer;
}
.cookie-button:hover, .cookie-button:focus {
  background: #e29723;
  transform: translateY(-1.5px) scale(1.04);
}
 .cookie-settings-btn {
  background: var(--primary);
  color: #fff;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
   background: var(--secondary);
   color: #fff;
}
/* Cookie modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(35,54,73,0.3);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.3s both;
}
@keyframes fadeInModal { from { opacity: 0;} to { opacity: 1; } }
.cookie-modal {
  background: var(--card-bg);
  border-radius: 22px;
  box-shadow: 0 2px 30px var(--shadow-color);
  padding: 38px 30px 26px 30px;
  max-width: 370px;
  width: 94vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--text-dark);
}
.cookie-modal h2 {
  font-size: 1.35rem;
  color: white;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 1.05rem;
}
.cookie-category:last-of-type { border-bottom: none; }
.cookie-category input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--secondary);
  margin-left: 10px;
}
.cookie-modal .cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 14px;
}

/* ===== ANIMATIONS ===== */
.cta-primary, a.cta-primary, button.cta-primary,
.cookie-button, .mobile-menu, .mobile-nav a {
  transition: background 0.18s, color 0.18s, box-shadow 0.16s, transform 0.13s;
}
.section, .text-section, .testimonial-card, .feature-item, .card {
  transition: box-shadow 0.22s, background 0.16s;
}
.card:hover, .feature-item:hover {
  box-shadow: 0 8px 32px 0 var(--shadow-color);
  background: var(--soft-mint);
}

/* ======= RESPONSIVE DESIGN ======= */
@media (max-width: 1024px) {
  .container { max-width: 98vw; }
  .section { padding: 32px 7vw; }
}
@media (max-width: 900px) {
  .content-wrapper, .text-section {
    padding-left: 12px;
    padding-right: 12px;
  }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.49rem; }
}
@media (max-width: 768px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block !important;
  }
  .hero, .section {
    min-height: unset;
    padding: 28px 0 10px 0;
    border-radius: 0;
    margin-bottom: 38px;
  }
  .hero .container {
    padding-top: 18px; padding-bottom: 18px;
    flex-direction: column;
  }
  .container { padding: 0 7px; }
  .card-container, .content-grid { flex-direction: column; gap: 20px; }
  .text-image-section { flex-direction: column; gap: 18px; }
  .testimonial-card { flex-direction: column; gap: 10px; }
  .footer-info { font-size: 0.90rem; }
}

@media (max-width: 576px) {
  h1 { font-size: 1.46rem; }
  h2 { font-size: 1.12rem; }
  .section { padding: 17px 3vw; margin-bottom: 34px; }
  .text-section { padding: 15px 8px; }
  .card, .feature-item { min-width: 0; padding: 18px 10px; }
  .cookie-modal { padding: 19px 6px 18px 6px; max-width: 99vw; }
}

/* ========== UTILS, MICROINTERACTIONS, ETC ========== */
::-webkit-scrollbar {
  width: 8px; background: var(--soft-blue); border-radius: 3px;
}
::-webkit-scrollbar-thumb {
  background: var(--soft-violet); border-radius: 3px;
}
::-webkit-input-placeholder { color: #a3b6d6; }
::placeholder { color: #a3b6d6; }

[tabindex]:focus, button:focus, .cta-primary:focus, a:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* --- Hide cookie banner/overlay helpers (for JS) --- */
.cookie-banner.hide {
  display: none !important;
}
.cookie-modal-overlay.hide {
  display: none !important;
}

/* ========== END OF STYLE.CSS ========== */
