/* ====================
   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;
  font-size: 16px;
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #253035;
  background: #fff;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #145A7C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #2E4327;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  outline: none;
  border: none;
}

/* === BRAND COLOR VARIABLES with fallbacks === */
:root {
  --primary: #145A7C;
  --primary-alt: #11496A;
  --secondary: #2E4327;
  --secondary-alt: #395737;
  --accent: #E3F5FB;
  --background: #fff;
  --surface: #F8FAFB;
  --text: #253035;
  --text-light: #567775;
  --shadow: 0 2px 16px rgba(36,64,91,0.07), 0 1.5px 6px rgba(20,90,124,0.03);
  --radius: 12px;
}

/* ==========================
     TYPOGRAPHY & HEADINGS
   ========================== */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 18px;
  line-height: 1.16;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 16px;
}
h4, h5, h6 {
  font-size: 1.125rem;
}

p, li, .subheadline, .text-section, .text-section p {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 16px;
}
.subheadline {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 28px;
  font-weight: 400;
}
strong {
  color: var(--secondary);
  font-weight: 700;
}
em {
  color: var(--secondary);
  font-style: italic;
}

/* Visual spacing */
.container {
  width: 100%;
  max-width: 1160px;
  padding: 0 20px;
  margin: 0 auto;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  margin-bottom: 32px;
}


/* ===============
   HEADER & NAV
   =============== */
header {
  background: var(--background);
  border-bottom: 1px solid #f0f4f7;
  width: 100%;
  z-index: 1100;
  position: sticky;
  top: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 18px;
}
.logo-link img {
  height: 42px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  font-size: 1rem;
  color: var(--text-light);
  padding: 8px 12px;
  border-radius: 7px;
  transition: color 0.14s, background 0.2s;
  font-weight: 500;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--primary);
  background: var(--accent);
}
.cta-btn {
  background: var(--primary);
  color: #fff;
  font-family: 'Roboto Slab', serif;
  border-radius: 8px;
  padding: 10px 26px;
  font-size: 1.08rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: background 0.18s, box-shadow 0.22s, transform 0.16s;
  letter-spacing: 0.04em;
  border: 0;
  display: inline-block;
  cursor: pointer;
}
.cta-btn:hover,
.cta-btn:focus {
  background: var(--secondary);
  transform: translateY(-2px) scale(1.035);
  box-shadow: 0 5px 24px rgba(44,91,124,0.07), 0 3px 12px rgba(20,90,124,0.08);
  color: #fff;
  outline: none;
}

/* ===============
   MOBILE NAVIGATION
   =============== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  right: 22px;
  top: 20px;
  z-index: 1500;
  background: var(--accent);
  color: var(--primary);
  font-size: 2rem;
  border-radius: 50%;
  border: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(36,64,91,0.05);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--primary);
  color: #fff;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.5, 0, 0.1, 1);
  box-shadow: 0 0 24px 0 rgba(33,64,100,0.09);
  padding-top: 36px;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  color: var(--primary);
  border: none;
  font-size: 2rem;
  margin-left: 20px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: color 0.15s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: var(--secondary);
  outline: none;
}
.mobile-nav {
  width: 100%;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  color: var(--text);
  font-size: 1.18rem;
  padding: 13px 24px;
  border-radius: 6px;
  width: 100%;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--accent);
  color: var(--primary);
}

/* ===============
   LAYOUT SECTIONS
   =============== */
main {
  min-height: 62vh;
}
.section,
.hero, .features, .services, .about, .team, .contact, .faq, .testimonials, .legal, .confirmation {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--background);
  border-radius: var(--radius);
}
.hero {
  background: var(--accent);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
}

.features, .services, .testimonials, .about, .team, .contact, .faq, .legal, .confirmation {
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  box-shadow: 0 2px 18px rgba(47,87,118,0.10), 0 1px 7px rgba(20,90,124,0.06);
  padding: 20px 28px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  border-left: 5px solid var(--primary);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px 18px 40px;
  position: relative;
}
.feature-item img {
  position: absolute;
  left: 12px;
  top: 18px;
  width: 28px;
  height: 28px;
}

.text-section ul {
  margin-bottom: 18px;
}
.text-section li {
  margin-bottom: 10px;
  line-height: 1.65;
  color: var(--text-light);
}

.features ul,
.services ul,
.faq ul,
.team ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 0;
}
.features ul li,
.services ul li,
.faq ul li,
.team ul li {
  padding-left: 0;
  font-size: 1.1rem;
  background: none;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.features ul li img,
.services ul li img {
  width: 30px;
  height: 30px;
  margin-right: 8px;
  filter: saturate(0.7);
}
.services ul li {
  background: #F7FBFD;
  border-radius: 10px;
  padding: 16px 12px;
  box-shadow: 0 1px 7px rgba(47,87,118,0.05);
  gap: 14px;
  align-items: center;
}
.services ul li strong,
.features ul li strong {
  color: var(--primary);
  font-family: 'Roboto Slab', serif;
  margin-right: 8px;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* FAQ Styling */
.faq ul li {
  background: #FFF;
  border-radius: 9px;
  box-shadow: 0 1px 6px rgba(20,90,124,0.04);
  padding: 14px 20px;
  margin-bottom: 20px;
}
.faq ul li strong {
  font-family: 'Roboto Slab', serif;
  color: var(--secondary);
}
.faq ul li p {
  margin: 0 0 0 8px;
  color: var(--text-light);
}

/* ===========================
   TESTIMONIALS & RATING AREA
   =========================== */
.testimonial-card {
  background: #fff;
  color: #262b34;
  border-radius: var(--radius);
  font-size: 1.08rem;
}
.testimonial-card p {
  color: var(--text);
  font-style: italic;
  font-size: 1.08rem;
}
.testimonial-user {
  font-weight: 700;
  color: var(--secondary);
  font-family: 'Roboto Slab', serif;
  font-size: 1rem;
}
.testimonial-rating {
  color: #ECB700;
  letter-spacing: 1px;
  font-size: 1.20rem;
  font-family: inherit;
}

/* =========================
   FOOTER
   ========================= */
footer {
  background: #F6FCFA;
  border-top: 1px solid #e7f0ee;
  padding: 40px 0 0 0;
  width: 100%;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: center;
  padding: 0 20px 30px 20px;
}
.footer-logo img {
  width: 44px;
  height: 44px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
}
.footer-nav a {
  color: var(--text-light);
  font-size: 1rem;
  transition: color 0.14s;
  padding: 4px 6px;
  border-radius: 4px;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--primary);
  background: var(--accent);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  font-size: .97rem;
  color: var(--text-light);
}
.footer-contact img {
  width: 19px;
  height: 19px;
  margin-right: 9px;
  vertical-align: middle;
}
.footer-contact a {
  color: var(--primary);
  text-decoration: underline dotted;
  transition: color 0.13s;
}
.footer-contact a:hover,
.footer-contact a:focus {
  color: var(--secondary);
}

/* LEGAL SECTIONS */
.legal, .confirmation {
  background: #F8FCFC;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 20px;
}
.legal .text-section ul, .confirmation .text-section ul {
  margin: 15px 0 0 0;
  padding: 0 0 0 16px;
  list-style: disc;
}
.legal .text-section li, .confirmation .text-section li {
  color: var(--text-light);
  margin-bottom: 10px;
  font-size: 1.04rem;
}

/* =====================
 MOBILE & RESPONSIVENESS
 ===================== */
@media (max-width: 1180px) {
  .container {
    max-width: 1002px;
  }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.7rem; }
}
@media (max-width: 900px) {
  .container {
    max-width: 730px;
  }
}
@media (max-width: 768px) {
  header .container,
  footer .container {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
    height: auto;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .cta-btn {
    margin-left: 0;
    margin-top: 10px;
  }
  .section, .hero, .features, .services, .about, .team, .contact, .faq, .testimonials {
    padding: 26px 8px;
    margin-bottom: 36px;
  }
  .testimonial-card {
    padding: 16px 13px;
  }
  .footer-contact {
    align-items: flex-start;
  }
  .content-grid, .card-container, .features ul, .services ul {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .card {
    min-width: 0;
    padding: 14px;
  }
  .feature-item {
    padding: 16px 9px 16px 36px;
  }
}
@media (max-width: 540px) {
  .hero, .section, .about, .legal, .confirmation {
    padding: 12px 2vw 20px 2vw;
    margin-bottom: 24px;
  }
  h1 { font-size: 1.5rem;}
  h2 { font-size: 1.20rem; margin-bottom: 12px;}
}

/* =================
   COOKIE BANNER
   ================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 3000;
  background: #fff;
  color: var(--text);
  box-shadow: 0 -3px 20px rgba(10,30,40,0.09);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  padding: 18px 24px;
  font-size: 1rem;
  border-top: 1px solid #E3F5FB;
  animation: cookieAppear 0.7s cubic-bezier(0.36,0.6,0.2,1);
}
@keyframes cookieAppear {
  0% { transform: translateY(40px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-banner__text {
  flex: 1 1 200px;
  margin-right: 24px;
}
.cookie-banner__actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 8px 22px;
  border-radius: 7px;
  font-size: 1rem;
  font-family: 'Roboto Slab', serif;
  border: none;
  cursor: pointer;
  transition: background 0.17s, color 0.13s, box-shadow 0.14s;
  box-shadow: 0 1px 6px rgba(20,90,124,0.04);
}
.cookie-btn.accept {
  background: var(--primary);
  color: #fff;
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: var(--secondary);
}
.cookie-btn.reject {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: var(--accent);
  color: var(--secondary);
  border: 1px solid var(--secondary);
}
.cookie-btn.settings {
  color: var(--primary);
  background: transparent;
  border: 1px dashed var(--primary);
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: var(--accent);
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    font-size: 0.98rem;
    padding: 14px 8px;
  }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.26);
  z-index: 4000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.25s;
}
.cookie-modal {
  background: #fff;
  min-width: 310px;
  width: 96vw;
  max-width: 420px;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -6px 38px rgba(25,44,65,0.19);
  padding: 26px 20px 22px 20px;
  border-bottom: 7px solid var(--primary);
  transform: translateY(0);
  animation: cookieModalIn .5s;
}
@keyframes cookieModalIn {
  0% { transform: translateY(120px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 6px;
}
.cookie-modal-categories {
  margin: 18px 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  background: var(--surface);
  border-radius: 9px;
  padding: 13px 14px;
}
.cookie-category input[type=checkbox] {
  width: 18px; height: 18px;
  accent-color: var(--primary);
  margin-right: 2px;
}
.cookie-category .category-name {
  font-family: 'Roboto Slab', serif;
  font-weight: 600;
  color: var(--secondary);
  margin-right: 4px;
}
.cookie-category.essential input {
  accent-color: var(--secondary);
}
.cookie-category.essential input {
  pointer-events: none;
  opacity: 0.5;
}
.cookie-modal__actions {
  display: flex;
  gap: 13px;
  align-items: center;
  justify-content: flex-end;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 1.4rem;
  position: absolute;
  top: 18px;
  right: 22px;
  cursor: pointer;
  border-radius: 50%;
  padding: 2px 7px;
  transition: background 0.12s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: #eaefff;
}
@media(max-width: 480px) {
  .cookie-modal { max-width: 98vw; min-width: 0; }
}

/* ==============
   ANIMATIONS
   ============== */
.cta-btn, .cookie-btn {
  transition: background 0.18s, color 0.19s, box-shadow 0.22s, transform 0.18s;
}
.card, .testimonial-card, .feature-item {
  transition: box-shadow 0.22s, transform 0.19s;
}
.card:hover, .testimonial-card:hover, .feature-item:hover {
  box-shadow: 0 9px 28px rgba(36,64,91,0.14);
  transform: translateY(-2px) scale(1.025);
}
.services ul li:hover, .features ul li:hover {
  background: #f0faff;
}

/* ==========
   UTILITIES
   ========== */
.gap-32 { gap: 32px !important;}
.gap-16 { gap: 16px !important;}
.mt-32 { margin-top: 32px !important;}
.mt-16 { margin-top: 16px !important;}

/* ==== Hide scroll for overlays (when open) ==== */
body.menu-open,
body.modal-open {
  overflow: hidden !important;
}

/* =============
   ACCESSIBILITY
   ============= */
:focus-visible {
  outline: 2.5px solid var(--secondary);
  outline-offset: 2.5px;
  transition: outline 0.15s;
}

/* =============
   PRINT STYLES
   ============= */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal-overlay, footer { display: none !important; }
  main, .container, .content-wrapper, .about, .team, .section {
    background: #fff !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}

/* == END == */
