/* ==================== 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;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  background: #F2F2F2;
  color: #222;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
a {
  color: #17507A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #E07D12;
  text-decoration: underline;
  outline: none;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  outline: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #17507A;
  font-weight: 800;
  letter-spacing: -1px;
}

/* ==================== COLOR PALETTE ==================== */
:root {
  --color-primary: #17507A;
  --color-secondary: #F2F2F2;
  --color-accent: #E07D12;
  --color-accent-alt: #B35700;
  --color-white: #fff;
  --color-black: #222;
  --color-grey: #EAEAEA;
  --color-shadow: rgba(23, 80, 122, 0.06);
}

/* ==================== TYPOGRAPHY ==================== */
body {
  font-size: 16px;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--color-black);
}
h1 {
  font-size: 2.4rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 12px;
}
p, ul li, ol li {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 12px;
  font-family: 'Roboto', Arial, sans-serif;
}
section ul {
  padding-left: 20px;
  list-style: disc inside;
}
strong {
  font-weight: 600;
  color: var(--color-accent-alt);
}

/* Artistic Headings */
h1, h2, h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  text-shadow: 1px 2px 0 var(--color-grey);
  color: var(--color-primary);
}

/* Artistic style: playful fonts for some headings */
h1, h2 {
  letter-spacing: -0.02em;
  text-transform: none;
}

/* ==================== LAYOUT & SECTIONS ==================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}
main {
  padding-bottom: 60px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 12px;
}
.text-section {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 380px;
  margin-bottom: 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.card {
  background: var(--color-white);
  border-radius: 18px;
  box-shadow: 0 3px 12px var(--color-shadow);
  padding: 24px 20px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.18s;
  min-width: 260px;
  flex: 1 1 260px;
  z-index: 1;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(224, 125, 18, 0.13);
  transform: translateY(-4px) scale(1.024);
  cursor: pointer;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.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;
  background: var(--color-secondary);
  color: #222;
  border-radius: 18px;
  box-shadow: 0 3px 12px var(--color-shadow);
  margin-bottom: 20px;
  border-left: 8px solid var(--color-accent);
  min-width: 260px;
  width: 100%;
  max-width: 440px;
  transition: filter 0.2s, box-shadow 0.2s;
}
.testimonial-card:hover {
  filter: brightness(1.05);
  box-shadow: 0 9px 28px rgba(23,80,122,0.13);
  border-left: 8px solid var(--color-primary);
}
.testimonial-card p {
  font-size: 1.12rem;
  line-height: 1.7;
  color: #111;
  font-family: 'Montserrat', Arial, sans-serif;
}
.testimonial-card span {
  font-size: 0.98rem;
  font-style: italic;
  color: var(--color-accent-alt);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* ==================== NAVIGATION ==================== */
header {
  background-color: var(--color-white);
  box-shadow: 0 0 12px var(--color-shadow);
  position: relative;
  z-index: 30;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: flex-start;
  padding: 18px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  flex-wrap: wrap;
}
.main-nav a {
  padding: 7px 16px;
  border-radius: 10px;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.05rem;
  position: relative;
  transition: background 0.18s, color 0.18s;
}
.main-nav a.cta-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 2px 12px var(--color-shadow);
  border-radius: 11px;
  font-size: 1.11rem;
  letter-spacing: 0.01em;
  border: 2px solid var(--color-accent-alt);
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s, color 0.18s;
}
.main-nav a.cta-primary:hover,
.main-nav a.cta-primary:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 3px 15px rgba(224,125,18,0.15);
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--color-accent);
  color: var(--color-white);
}
.main-nav img {
  height: 40px;
  margin-right: 12px;
  vertical-align: middle;
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 19px;
  right: 18px;
  z-index: 102;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: 7px;
  padding: 8px 14px;
  font-size: 1.6rem;
  box-shadow: 0 2px 8px var(--color-shadow);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-primary);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  max-width: 340px;
  height: 100vh;
  background: var(--color-white);
  box-shadow: -2px 0 24px var(--color-shadow);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.66,0.12,0.4,0.98);
  padding: 0 0 20px 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 18px 18px 0 0;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 7px;
  font-size: 2rem;
  padding: 4px 15px 8px 15px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: background 0.15s;
}
.mobile-menu-close:focus {
  outline: 2px solid var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 32px;
  margin-top: 12px;
}
.mobile-nav a {
  font-size: 1.15rem;
  padding: 11px 0;
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  border-bottom: 1px dashed var(--color-grey);
  width: 100%;
  transition: background 0.18s, color 0.18s;
  border-radius: 7px;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a.cta-primary {
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 700;
  margin: 7px 0;
  border-radius: 12px;
  text-align: center;
  border: 2px solid var(--color-accent-alt);
}
.mobile-nav a.cta-primary:hover {
  background: var(--color-primary);
  color: var(--color-accent);
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-primary);
  color: var(--color-white);
}

/********* Overlay for background when mobile menu is open *********/
body.mobile-menu-active::after {
  content: '';
  display: block;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 100;
  background: rgba(23, 80, 122, 0.38);
  transition: opacity 0.3s;
  pointer-events: auto;
}

/* Hide main nav on mobile */
@media (max-width: 960px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 961px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ============== HERO ================= */
section:first-of-type {
  background: linear-gradient(92deg, #E07D12 0%, #17507A 100%);
  color: var(--color-white);
  border-radius: 0 0 32px 32px;
  box-shadow: 0 5px 18px var(--color-shadow);
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}
section:first-of-type h1, section:first-of-type h2, section:first-of-type p {
  color: var(--color-white) !important;
  text-shadow: 1px 2px 1px rgba(0,0,0, 0.13);
}
section:first-of-type .cta-primary {
  background: var(--color-white);
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  box-shadow: 0 2px 8px rgba(23,80,122,0.07);
}
section:first-of-type .cta-primary:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ==================== BUTTONS & CTAs ==================== */
.cta-primary {
  background: var(--color-accent);
  color: var(--color-white);
  padding: 13px 34px;
  border-radius: 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.11rem;
  font-weight: 700;
  border: 2px solid var(--color-accent-alt);
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 2px 12px var(--color-shadow);
  transition: background 0.22s, color 0.17s, box-shadow 0.19s, border 0.18s;
  margin: 10px 0;
  display: inline-block;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  box-shadow: 0 7px 21px rgba(23,80,122,0.12);
  text-decoration: none;
}

/* ==================== FOOTER ==================== */
footer {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 38px 38px 0 0;
  box-shadow: 0 -3px 18px rgba(23,80,122,0.03);
  padding: 30px 0 18px;
  margin-top: 60px;
}
footer .container { max-width: 1000px; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 19px;
  align-items: center;
  margin-bottom: 10px;
}
.footer-nav a {
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: underline;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.01rem;
  transition: color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-white);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}
.footer-brand img {
  width: 30px;
  height: 30px;
}
.footer-brand span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13rem;
  font-weight: 700;
}
.footer-meta {
  font-size: 0.98rem;
  opacity: 0.84;
  color: var(--color-secondary);
  margin-top: 7px;
}

/* ==================== COOKIE CONSENT BANNER ==================== */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 -4px 25px rgba(23,80,122,0.15);
  z-index: 550;
  padding: 28px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-family: 'Roboto', Arial, sans-serif;
  animation: cookie-in 0.55s .09s cubic-bezier(0.75,0,0.304,1) both;
}
@keyframes cookie-in {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: var(--color-white);
  font-size: 1.08rem;
  margin-bottom: 0;
  text-align: center;
}
.cookie-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 10px 26px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 12px;
  font-size: 1rem;
  border: 2px solid var(--color-accent-alt);
  cursor: pointer;
  background: var(--color-white);
  color: var(--color-accent-alt);
  box-shadow: 0 1px 10px rgba(23,80,122,0.13);
  transition: background 0.18s, color 0.17s, border 0.16s;
}
.cookie-btn.accept {
  background: var(--color-primary);
  color: var(--color-white);
  border: 2px solid var(--color-primary);
}
.cookie-btn.reject {
  background: var(--color-white);
  color: var(--color-accent-alt);
  border: 2px solid var(--color-accent-alt);
}
.cookie-btn.settings {
  background: var(--color-accent);
  color: var(--color-white);
  border: 2px solid var(--color-white);
}
.cookie-btn:hover, .cookie-btn:focus {
  opacity: 0.88;
  box-shadow: 0 3px 17px rgba(224,125,18,0.12);
}

/* Cookie Modal */
.cookie-modal {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 600;
  background: rgba(23,80,122,0.32);
}
.cookie-modal.open {
  display: flex;
  animation: cookie-modal-in 0.29s cubic-bezier(0.67,.07,.31,1.03) both;
}
@keyframes cookie-modal-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-modal-content {
  background: var(--color-white);
  color: var(--color-black);
  border-radius: 19px;
  padding: 40px 38px 27px 38px;
  box-shadow: 0 8px 44px rgba(23,80,122,0.12);
  min-width: 285px;
  max-width: 95vw;
  font-size: 1.08rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-modal-content h3 {
  color: var(--color-accent-alt);
  margin-top: 0;
  margin-bottom: 9px;
}
.cookie-toggle-group {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 15px;
}
.cookie-toggle-label {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1.02rem;
  color: var(--color-primary);
}
/* Artistic toggle switches */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
}
.switch input { display: none; }
.slider {
  position: absolute;
  cursor: pointer;
  background-color: #eee;
  border-radius: 16px;
  top: 0; left: 0; right: 0; bottom: 0;
  transition: background 0.17s;
}
.switch input:checked + .slider {
  background: var(--color-accent);
}
.slider:before {
  position: absolute;
  content: '';
  height: 20px; width: 20px;
  left: 4px; top: 4px;
  background: var(--color-primary);
  border-radius: 50%;
  transition: transform 0.16s;
}
.switch input:checked + .slider:before {
  transform: translateX(20px);
  background: var(--color-accent-alt);
}
/* Cookie Modal Actions */
.cookie-modal-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal .cookie-btn {
  min-width: 108px;
}

/* ==================== SECTION & LIST STYLES ==================== */
section {
  background: var(--color-white);
  border-radius: 19px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 2px 9px var(--color-shadow);
  position: relative;
}
section h2 {
  margin-bottom: 14px;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  font-size: 2rem;
  font-weight: 800;
}
section ul {
  list-style: disc inside;
  color: var(--color-primary);
  margin-bottom: 8px;
  margin-left: 13px;
}
section ul li {
  margin-bottom: 9px;
  color: #222;
  font-size: 1.06rem;
}
section ul li strong {
  color: var(--color-accent);
}
section .text-section ul {
  color: var(--color-primary);
}

/* Artistic Section Borders and Doodles (decorative) */
section:after {
  content: '';
  display: block;
  position: absolute;
  width: 25px; height: 25px;
  background: var(--color-accent);
  border-radius: 50%;
  left: 7px; bottom: 7px;
  z-index: 0;
  opacity: 0.09;
}
section:first-of-type:after {
  display: none;
}

/* ==================== FORMS (if used) ==================== */
input, textarea, select {
  background: #fff;
  border: 1.3px solid var(--color-grey);
  border-radius: 10px;
  padding: 11px 18px;
  font-size: 1.05rem;
  color: #1a1a1a;
  margin-bottom: 12px;
  width: 100%;
  box-shadow: 0 2px 6px rgba(23,80,122,0.045);
  transition: border 0.18s;
}
input:focus, textarea:focus, select:focus {
  border: 1.6px solid var(--color-accent);
}

/* ==================== ARTISTIC MICRO-INTERACTIONS ==================== */
.card, .testimonial-card, .cta-primary, .cookie-btn, .footer-nav a {
  transition: box-shadow 0.18s, background 0.15s, color 0.18s, transform 0.15s;
}
a:active, button:active {
  transform: scale(0.97);
}

/* ==================== SPACING & FLEX LAYOUTS ==================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

/* ==================== RESPONSIVE ADJUSTMENTS ==================== */
@media (max-width: 1024px) {
  .container {
    max-width: 98vw;
    padding: 0 8px;
  }
}
@media (max-width: 820px) {
  section {
    padding: 30px 9px;
    border-radius: 13px;
  }
  .card, .testimonial-card {
    border-radius: 12px;
    padding: 14px 11px;
  }
}
@media (max-width: 768px) {
  .content-wrapper, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  section {
    padding: 22px 2vw;
    border-radius: 7px;
  }
  .main-nav a {
    font-size: 1rem;
    padding: 7px 8px;
  }
}
@media (max-width: 540px) {
  h1 {
    font-size: 1.24rem;
    margin-bottom: 10px;
  }
  h2 {
    font-size: 1.11rem;
    margin-bottom: 7px;
  }
  .container {
    padding: 0 2vw;
  }
  .footer-brand {
    flex-direction: column;
    gap: 9px;
    font-size: .98rem;
  }
}
@media (max-width: 430px) {
  .cookie-modal-content {
    padding: 28px 7vw 14px 7vw;
    min-width: 0;
    font-size: 0.98rem;
  }
  .cta-primary, .cookie-btn {
    font-size: 0.96rem;
    padding: 10px 17px;
    border-radius: 9px;
  }
  .testimonial-card, .card {
    min-width: 0;
    padding: 10px 7px;
    font-size: 0.95rem;
  }
}

/* ==================== CUSTOM ARTISTIC ELEMENTS ==================== */
section h2:before {
  content: '★';
  color: var(--color-accent);
  margin-right: 9px;
  font-size: 1.08em;
  vertical-align: middle;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
}
section .text-section h3:before {
  content: '●';
  color: var(--color-primary);
  margin-right: 6px;
  font-size: 0.97em;
}

/* Artistic dots and border accents */
.card:before, .testimonial-card:before {
  content: '';
  display: block;
  position: absolute;
  top: -11px; right: -11px;
  width: 23px; height: 23px;
  background: var(--color-accent);
  border-radius: 50%;
  opacity: 0.10;
  z-index: 0;
}

.testimonial-card:before {
  background: var(--color-primary);
  opacity: 0.16;
}

/* ==================== UTILITIES ==================== */
.float-right { float: right; }
.clearfix::after { content: ""; display: block; clear: both; }

/* ==================== PRINT SUPPORT ==================== */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  section, main, .container { box-shadow: none !important; padding: 0 !important; }
}

/* ==================== END OF CSS ==================== */
