/* ===== CSS RESET & NORMALIZATION ===== */
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; 
  vertical-align: baseline;
  font: inherit;
  font-size: 100%;
  box-sizing: border-box;
}
html { box-sizing: border-box; scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: inherit; }
body {
  background: #E0E1DD;
  color: #1B263B;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #1B263B; text-decoration: none; transition: color 0.2s; }
a:focus { outline: 2px solid #778DA9; outline-offset: 2px; }

/* ===== ROOT VARIABLES FOR BRAND ===== */
:root {
  --primary: #1B263B;
  --secondary: #E0E1DD;
  --accent: #778DA9;
  --green: #00B894;
  --red: #E17055;
  --shadow: 0 4px 24px 0 rgba(27, 38, 59, 0.08);
  --radius: 18px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--primary);
  margin-bottom: 12px;
}
h1 {
  font-size: 2.8rem;
  line-height: 1.13;
  margin-bottom: 24px;
  text-shadow: 1px 4px 0 #778DA9, 2px 2px 24px rgba(119,141,169, 0.11);
}
h2 {
  font-size: 2.1rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--primary);
}
h3 {
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.1rem; margin-bottom: 10px;
}
p, ul, ol, li {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 12px;
}
ul {
  list-style: disc inside;
  margin-bottom: 18px;
  padding-left: 0;
}
.text-section ul, .content-wrapper ul { margin-left: 18px; }
li { margin-bottom: 10px; }
strong { font-weight: bold; color: var(--accent); }

/* ===== CONTAINER/LAYOUT ===== */
.container {
  width: 100vw;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.66);
  border-radius: var(--radius);
  padding: 32px 18px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
  gap: 14px;
}
.text-section {
  background: none;
  box-shadow: none;
  padding: 0;
}

/* ====== FLEXBOX SPACING MANDATORY PATTERNS ====== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  min-width: 260px;
  max-width: 390px;
  flex: 1 1 260px;
}
.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;
  margin-bottom: 20px;
  background: #FFF;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px 0 rgba(27,38,59, .14);
  border-left: 6px solid var(--accent);
  transition: transform 0.22s, box-shadow 0.22s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 40px 0 rgba(27,38,59, .19);
  transform: translateY(-3px) scale(1.03);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 220px;
  max-width: 350px;
  background: #FFF;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px 20px 24px;
  margin-bottom: 20px;
  flex: 1 1 220px;
  border: 2.5px dashed var(--accent);
  cursor: pointer;
  transition: box-shadow .2s, border-color .2s, transform .17s;
}
.feature-item:hover, .feature-item:focus-within {
  border-color: var(--primary);
  box-shadow: 0 8px 32px 0 rgba(119,141,169,0.18);
  transform: translateY(-2px) scale(1.02);
}
.feature-item img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  padding: 8px;
  margin-bottom: 8px;
  box-shadow: 0 3px 14px 0 rgba(119,141,169,0.13);
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 10px;
}

/* ===== HERO ===== */
section > .container > .content-wrapper:first-child h1,
section > .container > .content-wrapper:first-child p, 
section > .container > .content-wrapper:first-child a {
  z-index: 1;
}

/* ===== BUTTONS & CTA STYLES ===== */
.cta-primary,
button,
input[type="submit"] {
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 99px;
  padding: 12px 34px;
  font-size: 1.18rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 12px 0 rgba(119,141,169,0.15);
  transition: background 0.16s, box-shadow 0.21s, transform 0.11s;
  margin-top: 18px;
  margin-bottom: 10px;
  display: inline-block;
  text-align: center;
}
.cta-primary:hover,
button:hover,
input[type="submit"]:hover,
.cta-primary:focus {
  background: var(--primary);
  color: var(--secondary);
  box-shadow: 0 4px 30px 0 rgba(27,38,59,0.12);
  transform: translateY(-1px) scale(1.025);
}
.cta-primary:focus {
  outline: 2.5px solid var(--green);
}
.feature-item a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  font-family: var(--font-body);
  transition: color .15s;
  margin-top: 8px;
}
.feature-item a:hover, .feature-item a:focus {
  color: var(--primary);
}

/* ===== HEADER & NAVIGATION ===== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary);
  box-shadow: 0 3px 36px rgba(27,38,59,0.06);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 101;
  min-height: 60px;
}
header > img {
  height: 52px;
  width: auto;
  margin-left: 24px;
}
nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 18px;
}
nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.11rem;
  color: var(--secondary);
  padding: 7px 15px;
  border-radius: 20px;
  transition: background 0.16s, color 0.13s;
}
nav a:hover, nav a.active {
  background: var(--accent);
  color: #fff;
}

/* ===== FOOTER ===== */
footer {
  width: 100vw;
  background: #fff;
  color: var(--primary);
  border-top: 4px solid var(--accent);
  box-shadow: 0 -4px 22px 0 rgba(27,38,59,0.05);
  padding: 32px 0 10px 0;
  margin-top: 64px;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  box-shadow: none;
  background: none;
  gap: 36px;
  margin-bottom: 0;
  padding: 0;
}
footer img {
  width: 56px;
  margin-right: 22px;
  margin-bottom: 0;
}
footer nav {
  flex-direction: column;
  gap: 12px;
  margin: 0 18px 0 0;
}
footer nav a {
  color: var(--primary);
  font-size: 0.99rem;
  background: none;
  padding: 3px 0;
}
footer nav a:hover {
  color: var(--accent);
  background: none;
}
footer > .container > .content-wrapper > div p {
  margin-bottom: 8px;
  font-size: 1rem;
}
footer a { color: var(--accent); }
footer a:hover { color: var(--primary); }

/* ===== RESPONSIVENESS (MOBILE FIRST) ===== */
@media (max-width: 1024px) {
  .feature-grid, .card-container, .content-grid, .text-image-section, footer .content-wrapper {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .card-container, .content-grid, .text-image-section, footer .content-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
  .container { padding: 0 7px; }
  .content-wrapper { padding: 24px 7px; }
  footer .content-wrapper {gap: 22px;}
}
@media (max-width: 768px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    padding: 6px 0 6px 0;
    min-height: 56px;
  }
  header > img { margin-left: 8px; height: 46px; }
  nav { display: none; }
  .mobile-menu-toggle {
    display: block;
    margin-right: 20px;
    font-size: 2rem;
    background: var(--accent);
    color: var(--secondary);
    border: none;
    border-radius: 50%;
    width: 46px; height: 46px;
    cursor: pointer;
    z-index: 110;
    box-shadow: 0 2px 12px 0 rgba(119,141,169,0.18);
    transition: background .13s, color .13s;
  }
  .mobile-menu-toggle:focus { outline: 3px solid var(--green); }
  .mobile-menu {
    position: fixed;
    top: 0; right: 0; left: 0; bottom: 0;
    background: rgba(27,38,59, 0.99);
    z-index: 1200;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(.67,0,.33,1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    padding: 20px 0 0 0;
    width: 100vw;
    height: 100vh;
  }
  .mobile-menu.open { transform: translateX(0); }
  .mobile-menu-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 2.4rem;
    align-self: flex-end;
    margin: 12px 28px 10px 0;
    cursor: pointer;
    z-index: 1210;
    transition: color 0.16s;
  }
  .mobile-menu-close:focus { outline: 2.5px solid var(--red); }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 18px;
    width: 100%;
    gap: 12px;
    padding-left: 38px;
  }
  .mobile-nav a {
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 12px;
    padding: 7px 18px;
    border-radius: 24px;
    width: 90vw;
    transition: background 0.16s, color 0.13s;
    display: block;
  }
  .mobile-nav a:hover, .mobile-nav a:focus {
    background: var(--accent);
    color: #fff;
  }
  .mobile-menu {
    box-shadow: none;
  }
  nav {
    display: none !important;
  }
  .section, .content-wrapper, .feature-item, .testimonial-card, .card, .feature-grid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    min-width: 0;
    max-width: 100vw;
  }
  .text-image-section { flex-direction: column; gap: 14px; align-items: flex-start; }
}
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.09rem; }
  .content-wrapper, .feature-item, .testimonial-card {
    padding: 14px 4px !important;
    gap: 7px;
  }
  .feature-item img { width: 38px; height: 38px; }
  footer { padding: 24px 0 0 0; }
  footer .content-wrapper { flex-direction: column; align-items: flex-start; gap: 10px; }
  footer img { margin-bottom: 12px; margin-right: 0; }
}

/* ===== INTERACTIVE & MICROINTERACTIONS ===== */
.feature-item:active, .testimonial-card:active {
  transform: scale(0.97);
}
/* Icon inline alignment for lists/contact */
li img {
  vertical-align: middle;
  height: 23px;
  width: 23px;
  margin-right: 6px;
  display: inline-block;
}

/* Testimonial Stars */
.testimonial-card span {
  color: #E17055;
  font-size: 1.22rem;
  letter-spacing: 1.2px;
}
.testimonial-card strong { color: var(--primary); }

/* Links Underline for content links */
.content-wrapper a:not(.cta-primary) {
  text-decoration: underline;
  color: var(--accent);
  transition: color .15s;
}
.content-wrapper a:not(.cta-primary):hover { color: var(--primary); }

/* ===== COOKIE CONSENT BANNER & MODAL ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 2000;
  background: #1B263B;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 18px;
  box-shadow: 0 -2px 16px 0 rgba(27,38,59,.18);
  font-size: 1rem;
  gap: 18px;
  animation: fadeInDown .65s;
}
@keyframes fadeInDown {
  from { transform: translateY(80px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-banner button {
  padding: 7px 20px;
  margin-top: 0;
  margin-bottom: 0;
  color: #fff;
  background: var(--accent);
  font-size: 1rem;
}
.cookie-banner .cookie-btn-accept {
  background: var(--green);
}
.cookie-banner .cookie-btn-reject {
  background: var(--red);
}
.cookie-banner .cookie-btn-settings {
  background: var(--accent);
}
.cookie-banner button:focus {
  outline: 2.5px solid #fff;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 10px;
    font-size: 0.99rem;
  }
  .cookie-banner .cookie-actions { gap: 9px; }
}

/* === Cookie Modal === */
.cookie-modal-bg {
  position: fixed;
  z-index: 2200;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(27,38,59,0.66);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .24s;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  padding: 36px 28px 20px 28px;
  border-radius: 32px;
  box-shadow: 0 4px 48px 0 rgba(27,38,59,0.23);
  font-size: 1.03rem;
  max-width: 400px;
  width: 94vw;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 19px;
}
.cookie-modal h2 { color: var(--primary); margin-bottom: 12px; font-size: 1.22rem; }
.cookie-modal .cookie-category {
  margin-bottom: 14px;
  font-weight: 500;
  color: var(--accent);
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  gap: 7px;
}
.cookie-modal label {
  font-size: 1.01rem;
  color: var(--primary);
  cursor: pointer;
}
.cookie-modal .cookie-switch {
  position: relative;
  display: inline-block;
  width: 41px;
  height: 23px;
  margin-left: 7px;
  margin-right: 4px;
}
.cookie-modal .cookie-switch input {display:none;}
.cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--secondary);
  border-radius: 18px;
  transition: background .16s;
}
.cookie-modal .cookie-switch input:checked + .slider {
  background: var(--accent);
}
.cookie-modal .slider:before {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--primary);
  transition: .13s;
}
.cookie-modal .cookie-switch input:checked + .slider:before {
  transform: translateX(16px);
  background: var(--green);
}
.cookie-modal .cookie-actions {
  margin-top: 7px;
  gap: 12px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
}
.cookie-modal .cookie-action-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 7px 20px;
  border-radius: 24px;
  font-size: 1rem;
  font-family: var(--font-display);
  cursor: pointer;
  transition: background .15s;
}
.cookie-modal .cookie-action-btn.save { background: var(--green); }
.cookie-modal .cookie-action-btn.reject { background: var(--red); }
.cookie-modal .cookie-action-btn.close { background: var(--accent); }
.cookie-modal .cookie-action-btn:hover {
  opacity: .88;
  background: var(--primary);
}
.cookie-modal .cookie-action-btn:focus { outline: 2px solid var(--green); }
.cookie-modal .close-modal {
  position: absolute;
  top: 11px; right: 14px;
  background: none;
  border: none;
  font-size: 1.34rem;
  color: var(--accent);
  cursor: pointer;
  transition: color .15s;
  z-index: 3;
}
.cookie-modal .close-modal:hover { color: var(--primary); }

/* ====== ARTISTIC ELEMENTS & VISUALS ====== */
.section {
  position: relative;
}
.section:before {
  content: '';
  display: block;
  position: absolute;
  left: -50px; top: 10px;
  width: 96px; height: 96px;
  background: rgba(119,141,169,0.11);
  border-radius: 50%;
  z-index: 0;
}
.section:nth-child(even):before {
  left: auto;
  right: -36px; top: 36px;
  background: rgba(27,38,59,0.09);
}
@media (max-width: 600px) {
  .section:before { left: -36px; width: 64px; height: 64px; }
  .section:nth-child(even):before { right: -16px; top: 16px; width: 44px; height: 44px; }
}

.feature-item {
  background: linear-gradient(110deg, #E0E1DD 60%, rgba(119,141,169,0.05) 100%);
  position: relative;
  z-index: 1;
}
.feature-item:after {
  content: '';
  position: absolute;
  right: 14px; bottom: 14px;
  width: 27px; height: 27px;
  background: rgba(119,141,169,0.13);
  border-radius: 50%;
  z-index: 0;
}

/* Artistic font accent for cta and cards */
.cta-primary, .feature-item h3, .feature-item a {
  font-family: var(--font-display);
  letter-spacing: 0.035em;
}

/* Artistic underlines for main section titles */
h2 {
  position: relative;
  padding-bottom: 4px;
  z-index: 2;
}
h2:after {
  content: '';
  display: block;
  width: 44px;
  height: 5px;
  border-radius: 10px;
  background: var(--accent);
  margin-top: 5px;
  margin-left: 0;
}

/* Artistic microanimation on cta-primary click */
.cta-primary:active {
  transform: scale(0.95);
  background: #53697d;
}

/* ===== GENERAL ELEMENTS ===== */
::-webkit-scrollbar { width: 10px; background: var(--secondary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 6px; }
::-webkit-selection { background: var(--accent); color: #fff; }
::selection { background: var(--accent); color: #fff; }

/* ===== MISC/HELPER CLASSES ===== */
.sr-only { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* ===== FIX: REMAINING SPACING & FLEX GAPS ENFORCEMENT ===== */
.section, .feature-item, .testimonial-card, .card, .feature-grid, .card-container, .content-grid { margin-bottom: 20px; }
.content-wrapper { gap: 18px; }
.feature-grid, .card-container, .content-grid, .text-image-section { gap: 20px; }

/* ===== END ===== */
