/* 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,
main, 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; }
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height: 1.5;
  background-color: #FFF7F0;
  color: #1c2732;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
}
ul, ol {
  margin-left: 1.5em;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 16px;
}
a { color: #104F84; text-decoration: none; transition: color .2s; }
a:hover, a:focus { color: #C17817; }

/* BRAND COLORS & FONTS */
:root {
  --primary: #104F84;
  --primary-dark: #0B355A;
  --secondary: #EAEFF4;
  --accent: #F5A623;
  --accent-dark: #C17817;
  --bg: #FFF7F0;
  --white: #fff;
  --grey: #f5f5f7;
  --shadow: 0 4px 32px rgba(16, 79, 132, 0.05), 0 1.5px 7px rgba(220, 160, 80, 0.10);
  --shadow-card: 0 2px 16px rgba(16, 79, 132, 0.06), 0 1.5px 4px rgba(245, 166, 35, 0.06);
  --radius-xl: 32px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  background-color: var(--bg);
  color: #23272A;
  font-size: 16px;
  letter-spacing: .01em;
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .01em;
  margin-bottom: 18px;
  border: none;
}
h1 { font-size: 2.2rem; margin-bottom: 24px; }
h2 { font-size: 1.6rem; margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1rem; margin-bottom: 8px; }
p, li {
  color: #373A40;
  font-size: 1rem;
  margin-bottom: 12px;
}
strong {
  color: var(--accent-dark);
  font-weight: 600;
}

/* CONTAINER & LAYOUT */
.container {
  width: 100%;
  max-width: 1070px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 30px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s; 
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 30px rgba(245,166,35,.20), 0 2px 10px rgba(16, 79, 132, 0.11);
  transform: translateY(-2px) scale(1.01);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.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;
}

/* BUTTONS */
.cta-btn, button, .button {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 14px 32px;
  border-radius: var(--radius-lg);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13rem;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 1.5px 8px rgba(245, 166, 35, .18);
  transition: background 0.16s, box-shadow 0.16s, transform 0.15s;
  outline: none;
  margin-bottom: 6px;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus,
button:hover, button:focus,
.button:hover, .button:focus {
  background: var(--accent-dark);
  box-shadow: 0 3px 14px rgba(193, 120, 23, .21);
  color: #fff;
  transform: translateY(-2px) scale(1.01);
}
/* Button modifiers for cookie banner */
.cookie-accept {
  background: var(--primary);
}
.cookie-accept:hover, .cookie-accept:focus {
  background: var(--accent-dark);
}
.cookie-reject {
  background: #B0B8C4;
  color: #fff;
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #84909A;
}
.cookie-settings {
  background: var(--accent);
  color: #fff;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: var(--accent-dark);
}

/* NAVBAR & HEADER */
header {
  background: var(--secondary);
  padding: 0;
  box-shadow: 0 1.5px 18px rgba(16,79,132,.04);
  position: sticky; 
  top: 0; 
  z-index: 101;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 18px;
}
header img {
  height: 43px;
  border-radius: 0;
  margin-right: 24px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
header nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 6px 10px 7px 10px;
  border-radius: var(--radius-md);
  transition: background 0.18s, color 0.17s;
}
header nav a:hover, header nav a.active, header nav a:focus {
  background: var(--accent);
  color: var(--white);
}

/* Hide nav/cta on mobile, show burger */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  width: 48px;
  height: 48px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  margin-left: 14px;
  margin-right: 0;
  z-index: 103;
  cursor: pointer;
  transition: background 0.19s, box-shadow 0.2s;
  box-shadow: var(--shadow-card);
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--primary);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: var(--white);
  z-index: 150;
  transform: translateX(100%);
  transition: transform .33s cubic-bezier(.84,.06,.27,1);
  box-shadow: 0 0 120px 0 rgba(16, 79, 132, 0.13);
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 20px; right: 20px;
  background: transparent;
  color: var(--primary);
  font-size: 2rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  z-index: 151;
  padding: 8px 12px;
  transition: background 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 68px;
  padding: 18px 32px;
  gap: 16px;
}
.mobile-nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 600;
  padding: 15px 6px 15px 8px;
  border-radius: var(--radius-sm);
  background: transparent;
  transition: background 0.13s, color 0.10s;
  margin-bottom: 6px;
}
.mobile-nav a:hover, .mobile-nav a:focus, .mobile-nav a.active {
  background: var(--accent);
  color: var(--white);
}

/* MAIN CONTENT & FLEX SECTIONS */
main {
  display: flex;
  flex-direction: column;
  gap: 0px;
  min-height: 68vh;
  margin-top: 0;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  section { padding: 18px 3vw; }
}

.content-grid, .card-container, .content-wrapper {
  gap: 24px;
}
@media (max-width: 900px) {
  .content-grid, .card-container,
  .content-wrapper, .section { gap: 14px; }
}

.text-image-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width:768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--grey);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 12px;
  box-shadow: none;
}

/* TESTIMONIALS */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: var(--secondary);
  color: #1b2e3e;
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: 0 1.5px 7px rgba(16,79,132,0.07);
  margin-bottom: 22px;
  border-left: 6px solid var(--accent);
  max-width: 630px;
  transition: box-shadow .15s;
}
.testimonial-card p {
  font-size: 1.11rem;
  color: #222d3b;
  font-style: italic;
  margin-bottom: 4px;
}
.testimonial-card span {
  font-size: .98rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.01em;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 5px 26px rgba(245,166,35,.13);
  border-left-color: var(--accent-dark);
}

/* PRICE STYLING */
.price {
  display: inline-block;
  margin-left: 8px;
  font-size: 1rem;
  color: var(--accent-dark);
  font-weight: 700;
  background: #FFF6EC;
  border-radius: var(--radius-sm);
  padding: 2px 10px;
}

/* FOOTER */
footer {
  background: #1b3050;
  color: #fff;
  padding: 38px 0 8px 0;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  gap: 38px;
}
footer img {
  height: 43px;
  background: none;
  border-radius: 0;
  margin-right: 22px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}
footer nav a {
  color: var(--accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.12s, color 0.12s;
}
footer nav a:hover { background: var(--primary); color: #fff; }
.footer-contact {
  font-size: .99rem;
  color: #f6ecd7;
  line-height: 1.65;
  margin-top: 7px;
}
.footer-contact a { color: var(--accent); text-decoration: underline; }

/* SECTIONS & PAGE STRUCTURE */
h1, h2, h3, h4, h5, h6 {
  border: none;
}
section ul, section ol {
  padding-left: 24px;
  margin-bottom: 12px;
}
section ul li, section ol li {
  margin-bottom: 8px;
  color: #304052;
}

/* FORMS AND CONTACT */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 14px;
  border: 1.5px solid #EAEFF4;
  border-radius: var(--radius-md);
  line-height: 1.3;
  margin-bottom: 14px;
  outline: none;
  transition: border 0.14s;
  background: #fff;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--accent);
}
label { font-weight: 600; margin-bottom: 7px; display: block; color: #233547; }

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 18px;
  background: #FFF6EC;
  color: #3D321B;
  border-radius: var(--radius-lg);
  box-shadow: 0 3px 31px rgba(245, 166, 35, .13);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  z-index: 4001;
  font-size: 1rem;
  transition: transform .26s cubic-bezier(.73,0,.42,1);
  max-width: 520px;
  margin: 0 auto;
  pointer-events: auto;
}
.cookie-banner.hide {
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  margin-left: 10px;
}
.cookie-banner button {
  min-width: 36px;
  min-height: 36px;
  padding: 10px 20px;
  font-size: 1rem;
  margin-bottom: 0;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 4200;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(16,79,132,.20);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .22s;
}
.cookie-modal {
  background: var(--white);
  color: #212B36;
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 44px 0 rgba(16, 79, 132, .13);
  padding: 38px 32px 28px 32px;
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.cookie-modal h2 {
  margin-bottom: 8px;
  font-size: 1.3rem;
  color: var(--primary);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #e6e9ed;
}
.cookie-modal .cookie-category:last-child { border-bottom: none; }
.cookie-modal .cookie-toggle {
  margin-left: auto;
}
.cookie-modal .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal .cookie-state {
  font-weight: 600;
  color: var(--accent-dark);
}
.cookie-modal .close-btn {
  position: absolute;
  right: 19px; top: 19px;
  background: none;
  font-size: 1.3rem;
  color: var(--primary);
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-md);
}
.cookie-modal .close-btn:hover,
.cookie-modal .close-btn:focus {
  background: var(--secondary);
}

/* TOGGLE SWITCH (used in cookie modal) */
.cookie-toggle-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}
.cookie-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: #ddd;
  border-radius: var(--radius-lg);
  transition: background .19s;
}
.cookie-toggle-slider:before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 16px;
  height: 16px;
  background: var(--white);
  border-radius: 50%;
  transition: .17s;
  box-shadow: 0 1.5px 4px rgba(16,79,132,0.08);
}
.cookie-toggle-switch input:checked + .cookie-toggle-slider {
  background: var(--accent);
}
.cookie-toggle-switch input:checked + .cookie-toggle-slider:before {
  transform: translateX(20px);
  background: var(--accent-dark);
}
.cookie-toggle-slider.disabled {
  background: #bfc5cc;
  cursor: not-allowed;
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
  .container { max-width: 100vw; }
  .content-wrapper, .section {
    padding-left: 12px; padding-right: 12px;
  }
  header .container, footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  footer nav { gap: 10px; }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
  }
  header nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .mobile-menu {
    display: flex;
  }
  .footer-contact {
    margin-top: 18px;
  }
  .testimonial-card {
    max-width: 100vw;
    margin-right: 0;
  }
  .content-wrapper {
    padding: 18px 7px;
    border-radius: var(--radius-lg);
  }
}
@media (max-width:540px) {
  .cookie-banner {
    flex-direction: column;
    gap: 8px;
    padding: 16px 10px;
    left: 3vw; right: 3vw;
    max-width: 96vw;
  }
  .section, .content-wrapper, .feature-item { border-radius: var(--radius-md); }
}
@media (max-width:420px) {
  h1 { font-size: 1.38rem; }
  h2 { font-size: 1.12rem; }
  .cta-btn, button { padding: 10px 14px; font-size: .98rem; }
  .testimonial-card {
    padding: 14px 10px;
    border-radius: var(--radius-sm);
  }
}

/* MICRO-INTERACTIONS & TRANSITIONS */
a, nav a, .cta-btn, button, .card, .mobile-menu, .mobile-menu-toggle, .testimonial-card {
  transition: background .18s, color .14s, box-shadow .18s, transform .13s;
}

/* UTILITY CLASSES */
.d-flex { display: flex !important; }
.flex-row { flex-direction: row !important; }
.flex-col { flex-direction: column !important; }
.center { align-items: center; justify-content: center; }
.gap-20 { gap: 20px !important; }

/* HIDE/SHOW utility */
.d-none { display: none !important; }
.d-block { display: block !important; }

/* Z-INDEX FOR LAYERING */
header, .mobile-menu, .cookie-banner, .cookie-modal-overlay { z-index: 500; }

/* END OF CSS */
