/* 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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  height: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after { box-sizing: inherit; }
body { min-height: 100%; background: #f8fafc; }
img { max-width: 100%; display: block; border: none; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font-family: inherit; font-size: 100%; outline: none; border: none; background: none; }

/* SOFT PASTEL & BRAND COLORS */
:root {
  --primary: #23527c;
  --primary-soft: #709cbf;
  --secondary: #ffffff;
  --soft-bg: #f8fafc;
  --soft-bg2: #e6e9ec;
  --accent: #ea6c16;
  --accent-soft: #fbd7bd;
  --pastel-blue: #e5f0fa;
  --pastel-green: #e1f6ef;
  --pastel-lavender: #f1f3fa;
  --pastel-pink: #fae5ef;
  --pastel-yellow: #fff8e1;
  --text-main: #2d3442;
  --text-muted: #6580a3;
  --shadow: 0 2px 16px 0 rgba(45,52,66,0.07);
  --radius: 12px;
  --radius-btn: 20px;
  --transition: 0.22s cubic-bezier(.5,0,.15,1);
}

/* TYPOGRAPHY */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&family=Roboto+Slab:wght@500;700&display=swap');
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: var(--text-main);
  background: var(--soft-bg);
  line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  color: var(--primary);
}
h1 { font-size: 2.5rem; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 14px; }
h3 { font-size: 1.35rem; margin-bottom: 10px; }
p, ul, ol { margin-bottom: 16px; font-weight: 400; }
strong { font-weight: 700; }
sub, sup { font-size: 70%; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.05rem; }
  body { font-size: 15px; }
}

/* LAYOUT BASICS */
.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background-color: var(--soft-bg2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cta-section {
  background: var(--pastel-blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
}

@media (max-width: 500px) {
  .section, .cta-section {
    padding: 26px 4px;
    margin-bottom: 34px;
  }
}

.text-section {
  background: var(--pastel-lavender);
  border-radius: var(--radius);
  padding: 20px 18px 18px 18px;
  margin-bottom: 18px;
  box-shadow: 0 1px 6px 0 rgba(100,128,163,0.06);
}

/* HERO SECTION */
.hero {
  margin-bottom: 60px;
  padding: 56px 0 42px 0;
  background: linear-gradient(135deg, var(--pastel-blue) 70%, var(--pastel-pink) 100%);
  border-radius: 0 0 30px 30px;
  box-shadow: 0 4px 38px 0 rgba(112, 156, 191, 0.08);
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.hero h1 {
  font-size: 2.7rem;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: 6px;
}
.hero .subheadline {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

@media (max-width: 800px) {
  .hero {
    padding: 35px 0 32px 0;
  }
  .hero h1 { font-size: 2rem; }
  .hero .subheadline { font-size: 1.1rem; }
}

/* FLEXBOX PATTERNS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--soft-bg2);
  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;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: var(--pastel-yellow);
  border-radius: var(--radius);
  box-shadow: 0 1px 12px rgba(200,174,98,0.06);
  padding: 22px 26px 20px 26px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .content-grid, .card-container {
    flex-direction: column;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* HEADER (Navigation) */
header {
  background: var(--secondary);
  box-shadow: 0 4px 22px 0 rgba(100,128,163,0.06);
  border-bottom: 1px solid var(--soft-bg2);
  padding: 0;
  z-index: 10;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 13px 18px;
  flex-wrap: wrap;
}
.logo img { height: 38px; width: auto; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
  padding: 7px 14px;
  border-radius: 15px;
  transition: color .17s, background .17s;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--primary-soft);
  color: #fff;
}
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 1.06rem;
  padding: 9px 26px;
  border-radius: var(--radius-btn);
  box-shadow: 0 2px 8px 0 rgba(234,108,22,0.10);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
  text-align: center;
  margin-left: 12px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #b44a00;
  box-shadow: 0 4px 18px 0 rgba(234,108,22,0.18);
  transform: translateY(-2px) scale(1.03);
}
.btn-secondary {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 23px;
  border-radius: var(--radius-btn);
  box-shadow: 0 1px 7px rgba(112,156,191,0.07);
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
  margin-top: 7px;
}
.btn-secondary:hover, .btn-secondary:focus {  background: var(--primary);  color: #fff; }
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  margin-left: 16px;
  cursor: pointer;
  border-radius: 12px;
  transition: background .17s;
  width: 38px;
  height: 38px;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--pastel-blue);
}

@media (max-width: 1020px) {
  .main-nav { gap: 12px; }
  .container { padding: 0 7px; }
}
@media (max-width: 900px) {
  .main-nav { gap: 7px; }
  .container { padding: 0 3vw; }
}
@media (max-width: 820px) {
  .main-nav { gap: 0; }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .btn-primary { display: none; }
  .mobile-menu-toggle { display: inline-block; }
}

/* MOBILE MENU STYLES */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  z-index: 1001;
  top: 0; left: 0;
  background: var(--soft-bg2);
  width: 320px;
  height: 100dvh;
  transform: translateX(-120%);
  transition: transform .33s cubic-bezier(.4,0,.16,1);
  box-shadow: 0 4px 20px rgba(52,82,124,.09);
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  font-size: 2rem;
  color: var(--primary);
  background: none;
  border: none;
  align-self: flex-end;
  margin: 16px 16px 0 0;
  cursor: pointer;
  transition: color .16s;
  border-radius: 9px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--accent);
  background: var(--pastel-yellow);
}
.mobile-nav {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: flex-start;
  padding: 0 24px 32px 24px;
  overflow-y: auto;
  flex: 1 1 auto;
}
.mobile-nav a {
  font-family: 'Roboto Slab', serif;
  font-size: 1.2rem;
  color: var(--primary);
  padding: 12px 0;
  border-radius: 15px;
  font-weight: 600;
  width: 100%;
  transition: background .17s, color .15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--primary-soft);
  color: #fff;
}
@media (max-width: 540px) {
  .mobile-menu { width: 97vw; }
}

/* --- MAIN CONTENT & CARDS --- */
.card {
  padding: 32px 26px 22px 26px;
  min-width: 210px;
  background: var(--pastel-lavender);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.card h3 { color: var(--primary); margin-bottom: 9px; }

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 22px;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--pastel-green);
  border-radius: var(--radius);
  box-shadow: 0 1px 7px rgba(81,215,183,0.07);
  min-width: 170px;
  max-width: 330px;
  padding: 22px 20px 19px 20px;
}
.feature img { height: 44px; width: 44px; margin-bottom: 7px; }
.feature h3 { font-size: 1.17rem; }
.feature p { color: var(--text-main); }

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 19px 0 28px 0;
}
.service-list li, .service {
  flex: 1 1 210px;
  min-width: 190px;
  background: var(--pastel-pink);
  border-radius: var(--radius);
  padding: 18px 18px 13px 18px;
  box-shadow: 0 1px 7px rgba(247,182,216,0.07);
}
.service h2 { font-size: 1.22rem; color: var(--primary); }

@media (max-width: 820px) {
  .feature-grid, .service-list {
    flex-direction: column;
    gap: 13px;
  }
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 24px 0;
}
.faq-item {
  background: var(--pastel-blue);
  box-shadow: 0 1px 7px rgba(112,156,191,0.06);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.faq-item h3 {
  color: var(--primary);
  margin-bottom: 6px;
  font-size: 1.06rem;
}

/* TABLES */
table {
  width: 100%;
  background: var(--pastel-yellow);
  border-radius: var(--radius);
  box-shadow: 0 1px 7px rgba(200,174,98,0.04);
  border-collapse: separate;
  margin: 22px 0 17px 0;
  overflow: hidden;
}
thead tr { background: var(--pastel-pink); }
th, td {
  padding: 9px 14px;
  color: var(--primary);
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  border-bottom: 1px solid var(--pastel-lavender);
}
tr:last-child td { border-bottom: none; }
th { font-weight: 700; }

/* TESTIMONIALS */
.testimonial-card {
  background: var(--pastel-yellow);
  color: #263650;
  border: 1.5px solid var(--pastel-blue);
  box-shadow: 0 2px 18px rgba(215,205,170,0.08);
  font-size: 1.09rem;
  margin-bottom: 20px;
}
.testimonial-card p {
  color: #263650;
  font-style: italic;
  margin-bottom: 8px;
}
.testimonial-card span {
  font-family: 'Open Sans', sans-serif;
  color: #7b8ca5;
  font-size: 0.98rem;
}

/* BUTTONS & LINKS */
a {
  transition: color .17s, box-shadow .16s;
  cursor: pointer;
}
a:hover, a:focus { color: var(--accent); text-decoration: underline; }
.btn-primary, .btn-secondary {
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.btn-primary:active, .btn-secondary:active { transform: scale(.97); }

/* FOOTER */
footer {
  margin-top: 55px;
  background: var(--pastel-lavender);
  border-top: 2px solid var(--soft-bg2);
  color: var(--primary);
  font-size: 0.98rem;
  position: relative;
  z-index: 2;
  padding-top: 24px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 15px;
}
.footer-logo img { height: 44px; }
.footer-nav, .footer-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a, .footer-meta a {
  color: var(--primary);
  font-weight: 500;
  font-size: 1.03rem;
  margin-bottom: 6px;
  transition: color .17s;
  border-radius: 10px;
  padding: 2px 4px;
}
.footer-nav a:hover, .footer-meta a:hover {
  background: var(--pastel-blue);
  color: var(--accent);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.97rem;
}
.footer-contact p { display: flex; align-items: center; gap: 6px; margin-bottom: 0; }
.footer-contact img { height: 20px; width: 20px; }
.footer-copy {
  width: 100%;
  text-align: center;
  color: #707a90;
  font-size: 0.92rem;
  margin-top: 14px;
  margin-bottom: 3px;
}
@media (max-width: 830px) {
  footer .container { flex-direction: column; gap: 14px; align-items: flex-start; }
  .footer-copy { margin-bottom: 7px; }
}

/* THANK YOU PAGE */
.thank-you-section {
  min-height: 46vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--pastel-green);
  border-radius: var(--radius);
  margin-bottom: 70px;
  padding: 30px 0;
}

/* COOKIE CONSENT BANNER */
#cookie-banner, .cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--soft-bg2);
  color: var(--primary);
  border-top: 2px solid var(--primary-soft);
  box-shadow: 0 -2px 18px rgba(112,156,191,0.10);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  justify-content: center;
  padding: 20px 10vw 17px 10vw;
  font-size: 1rem;
  transition: transform .25s cubic-bezier(.5,0,.15,1);
}
#cookie-banner.hide, .cookie-banner.hide {
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-banner__text { margin-right: 22px; }
.cookie-banner__buttons {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-banner__btn {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  padding: 8px 22px;
  box-shadow: 0 1px 7px rgba(234,108,22,0.09);
  margin-right: 0;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}
.cookie-banner__btn.settings {
  background: var(--primary-soft);
  color: var(--primary);
}
.cookie-banner__btn.reject {
  background: #aaa4be;
  color: #fff;
}
.cookie-banner__btn:hover, .cookie-banner__btn:focus, .cookie-banner__btn.settings:hover, .cookie-banner__btn.settings:focus {
  background: #b44a00;
  color: #fff;
}
.cookie-banner__btn.reject:hover, .cookie-banner__btn.reject:focus {
  background: #312d38;
  color: #fff;
}
@media (max-width: 690px) {
  #cookie-banner, .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 7vw 11px 7vw;
    font-size: 0.97rem;
    gap: 11px;
  }
}

/* COOKIE MODAL */
#cookie-modal, .cookie-modal {
  display: none;
  position: fixed;
  z-index: 2100;
  left: 0; top: 0;
  width: 100vw; height: 100dvh;
  background: rgba(50,62,80,0.19);
  justify-content: center;
  align-items: center;
}
#cookie-modal.open, .cookie-modal.open {
  display: flex;
}
.cookie-modal__window {
  background: var(--secondary);
  border-radius: var(--radius);
  box-shadow: 0 3px 28px 0 rgba(112,156,191,0.18);
  padding: 32px 24px 23px 24px;
  min-width: 320px;
  max-width: 97vw;
  animation: modalIn .31s cubic-bezier(.5,0,.2,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.88); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-modal__title {
  font-family: 'Roboto Slab', serif;
  color: var(--primary);
  font-size: 1.22rem;
  margin-bottom: 8px;
}
.cookie-modal__desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 22px;
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 23px;
}
.cookie-category {
  background: var(--soft-bg2);
  border-radius: var(--radius-btn);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 6px rgba(100,128,163,0.04);
}
.cookie-category__name {
  font-weight: 700;
  color: var(--primary);
  flex: none;
  margin-right: 7px;
}
.cookie-category__desc {
  color: var(--text-muted);
  font-size: 0.98rem;
}
.cookie-category__toggle {
  margin-left: auto;
  font-size: 1.24rem;
}
.cookie-category input[type=checkbox] {
  width: 19px;
  height: 19px;
  accent-color: var(--accent);
}
.cookie-category.essential input[type=checkbox] {
  accent-color: #aaa4be;
}
.cookie-category.essential input[type=checkbox]:disabled {
  opacity: .66;
}
.cookie-modal__footer {
  display: flex;
  gap: 11px;
  justify-content: flex-end;
}
.cookie-modal__btn {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  padding: 8px 21px;
  cursor: pointer;
  transition: background .18s;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
}
.cookie-modal__btn.cancel {
  background: var(--primary-soft);
  color: var(--primary);
}
.cookie-modal__btn:hover, .cookie-modal__btn:focus {
  background: #b44a00;
  color: #fff;
}
.cookie-modal__btn.cancel:hover, .cookie-modal__btn.cancel:focus {
  background: var(--primary);
  color: #fff;
}

@media (max-width: 500px) {
  .cookie-modal__window { padding: 14px 5vw 9px 5vw; min-width: 92vw; }
}

/* FORM ELEMENTS */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  border-radius: 7px;
  border: 1.2px solid var(--primary-soft);
  padding: 11px 12px;
  font-size: 1rem;
  margin-bottom: 9px;
  background: #fff9f7;
  width: 100%;
  transition: border .16s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  background: var(--pastel-yellow);
}
label {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

/* MISC SPACING */
.section, section { margin-bottom: 60px; }
.card, .feature, .testimonial-card { margin-bottom: 20px; }
.content-wrapper > * { margin-bottom: 0; }

/* VISUAL EFFECTS / MICRO-INTERACTIONS */
.card, .feature, .testimonial-card, .service, .faq-item {
  transition: transform .18s, box-shadow .18s;
}
.card:hover, .feature:hover, .testimonial-card:hover, .service:hover, .faq-item:hover {
  transform: translateY(-2px) scale(1.014);
  box-shadow: 0 4px 22px rgba(71,87,133,0.14);
}

/* ICONS in TEXT */
p img, .footer-contact p img, .text-section p img {
  vertical-align: middle;
  margin-right: 7px;
  display: inline-block;
  height: 1.12em;
}

/* SCROLLBAR (PASTEL STYLE) */
::-webkit-scrollbar { width: 10px; background: var(--soft-bg2); }
::-webkit-scrollbar-thumb { background: var(--primary-soft); border-radius: 6px; }

/* PASTEL-HOVERS FOR CARDS */
.card:focus-within, .card:focus, .feature:focus-within, .feature:focus, .service:focus, .faq-item:focus {
  outline: 2px solid var(--primary-soft); outline-offset: 2px;
}

/* RESIZE TABLES ON MOBILE */
@media (max-width: 720px) {
  table, thead, tbody, tr, th, td {
    display: block; width: 100%;
  }
  th, td { text-align: left; }
  th { background: none; }
}

/* GENERAL RESPONSIVE GAPS */
@media (max-width: 600px) {
  .feature-grid, .service-list, .faq-list, .card-container {
    gap: 8px;
  }
}

/* PRINT (HIDE INTERACTIVE) */
@media print {
  #cookie-banner, .cookie-banner, .mobile-menu { display: none !important; }
}
