/* ------------------------------
   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;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
  background: #F5ECEB;
  color: #263E6A;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
ol, ul {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #F2994A;
  outline-offset: 2px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}

/* CUSTOM SCROLLBAR (optional but warm/friendly) */
body {
  scrollbar-width: thin;
  scrollbar-color: #F2994A #F5ECEB;
}
::-webkit-scrollbar {
  width: 8px;
  background: #F5ECEB;
}
::-webkit-scrollbar-thumb {
  background: #F2994A;
  border-radius: 8px;
}

/* ------------------------------
   COLOR VARIABLES & FONT STACKS
------------------------------ */
:root {
  --color-primary: #263E6A;
  --color-secondary: #F5ECEB;
  --color-accent: #F2994A;
  --color-dark: #263E6A;
  --color-light: #FFFFFF;
  --color-muted: #E7D6CF;

  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* ------------------------------
   TYPOGRAPHY
------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem; /* 40px */
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem; /* 32px */
}
h3 {
  font-size: 1.375rem; /* 22px */
}
h4 {
  font-size: 1.125rem;
}
p, li, span, cite {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-dark);
}
blockquote {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--color-dark);
  font-style: italic;
  background: var(--color-secondary);
  border-left: 4px solid var(--color-accent);
  padding: 18px 28px;
  margin-bottom: 10px;
  margin-top: 6px;
  border-radius: 16px 0 0 16px;
}
cite {
  font-style: normal;
  color: var(--color-primary);
  font-size: 1rem;
}
.tagline {
  display: block;
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--color-accent);
  letter-spacing: 0.2px;
  font-weight: 600;
}

/* Typography Scale Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.375rem; }
  h3 { font-size: 1.125rem; }
}

/* ------------------------------
   LAYOUT: CONTAINER & SECTIONS
------------------------------ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 32px;
  background: var(--color-light);
  box-shadow: 0 8px 32px rgba(38,62,106, 0.09), 0 1.5px 7px rgba(242,153,74,0.05);
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* ------------------------------
   FLEX LAYOUT PATTERNS
------------------------------ */
.card-container, .card-grid, .feature-grid, .service-overview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  justify-content: flex-start;
}
.card, .service-card, .feature-item, .testimonial-card {
  background: var(--color-secondary);
  border-radius: 24px;
  box-shadow: 0 5px 18px rgba(38,62,106,0.09);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 24px 20px 24px;
}
.card {
  flex: 1 1 265px;
  min-width: 220px;
  max-width: 350px;
}
.feature-grid > div {
  flex: 1 1 220px;
  min-width: 180px;
  background: var(--color-secondary);
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(242,153,74,0.06);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.text-section {
  background: transparent;
  border-radius: 16px;
  padding: 0;
}
.service-overview-grid > .text-section {
  flex: 1 1 265px;
  min-width: 220px;
  background: var(--color-secondary);
  padding: 22px 16px;
  margin-bottom: 20px;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(242,153,74,0.05);
}

.service-list,
ul {
  margin-left: 0;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
li {
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-dark);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ------------------------------
   HEADER & NAVIGATION
------------------------------ */
header {
  width: 100%;
  background: var(--color-light);
  box-shadow: 0 2px 24px rgba(38,62,106,0.06);
  z-index: 100;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.logo img {
  height: 48px;
  display: block;
  margin: 14px 0 12px 0;
}
@media (max-width: 425px) {
  .logo img {
    height: 40px;
    margin: 12px 0 10px 0;
  }
}
header > * {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.main-nav {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-primary);
  padding: 8px 14px;
  border-radius: 16px;
  transition: background 0.17s, color 0.17s;
  font-weight: 500;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--color-accent);
  color: var(--color-light);
}
.cta-btn {
  background: var(--color-accent);
  color: var(--color-light);
  padding: 12px 28px;
  border-radius: 30px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  box-shadow: 0 3px 12px rgba(242,153,74,0.12);
  transition: background 0.2s, box-shadow 0.2s, transform 0.13s;
  display: inline-block;
  margin-left: 14px;
  margin-top: 0;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 5px 20px rgba(38,62,106,0.10);
  transform: translateY(-2px) scale(1.04);
}

/* Hide cta-btn on very small screens for space */
@media (max-width: 425px) {
  .cta-btn {
    padding: 10px 18px;
    font-size: 1rem;
    min-width: 120px;
    margin-left: 6px;
  }
}

/* ------------------------------
   MOBILE MENU (HAMBURGER)
------------------------------ */
.mobile-menu-toggle {
  background: var(--color-accent);
  color: var(--color-light);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: 16px;
  transition: background 0.17s, transform 0.16s;
  z-index: 201;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--color-primary);
  color: var(--color-accent);
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .cta-btn {
    margin-right: 8px;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(38,62,106,0.96);
  color: var(--color-light);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.86,.01,.25,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 30px;
  padding-left: 28px;
  padding-right: 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--color-accent);
  color: var(--color-light);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.7rem;
  align-self: flex-end;
  margin-bottom: 28px;
  margin-right: 8px;
  transition: background 0.19s, color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-primary);
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-light);
  padding: 14px 0 14px 0;
  border-radius: 0 24px 24px 0;
  transition: background 0.17s, color 0.16s;
  font-weight: 500;
  width: 100%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
  padding-left: 16px;
}
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* ------------------------------
   FOOTER
------------------------------ */
footer {
  background: var(--color-primary);
  color: var(--color-light);
  padding: 40px 0 24px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: var(--color-light);
  font-family: var(--font-body);
  font-size: 1rem;
  opacity: 0.90;
  transition: color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent);
  opacity: 1;
}
.brand-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.brand-footer img {
  height: 33px;
  margin-bottom: 6px;
}
.brand-footer p {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1.02rem;
}
.contact-details {
  color: var(--color-light);
  font-size: 1rem;
  font-family: var(--font-body);
}
.contact-details a {
  color: var(--color-accent);
  transition: color 0.18s;
}
.contact-details p {
  color: #fff8f5;
}
.contact-details a:hover, .contact-details a:focus {
  color: #fff8f5;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    padding: 0;
  }
}

/* ------------------------------
   TESTIMONIALS
------------------------------ */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-secondary);
  border-radius: 24px;
  box-shadow: 0 2px 16px rgba(38,62,106,0.09);
  margin-bottom: 20px;
  flex-direction: column;
  align-items: flex-start;
  min-width: 220px;
  max-width: 650px;
}
.testimonial-card blockquote {
  background: transparent;
  border-left: 4px solid var(--color-accent);
  color: var(--color-dark);
  margin-bottom: 6px;
  padding: 0 0 0 16px;
  border-radius: 16px 0 0 16px;
}
.testimonial-card cite {
  font-size: 1rem;
  color: var(--color-primary);
  margin-top: 2px;
}

/* Force high contrast on testimonials for accessibility */
.testimonial-card, .testimonial-card blockquote {
  color: #1F2947;
  background: #F5ECEB;
}

/* ------------------------------
   MISC: CARDS, CATEGORY TAGS
------------------------------ */
.card-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}
.category-tag {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-light);
  border-radius: 18px;
  padding: 5px 14px;
  font-size: 0.92rem;
  font-family: var(--font-body);
  margin-top: 8px;
  font-weight: 500;
}
/* "feature-item" already styled above */

/* ------------------------------
   TABLES, FORMS, HR, DETAILS
------------------------------ */
table, th, td {
  border: none;
  font-family: var(--font-body);
}
td, th {
  padding: 10px 0;
}
@media (max-width: 768px) {
  table, thead, tbody, th, td, tr {
    display: block;
    width: 100%;
  }
}

hr {
  border: 0;
  border-top: 1px solid #d2c6bc;
  margin: 24px 0;
}

/* ------------------------------
   BUTTONS & INTERACTIVE
------------------------------ */
button, .btn {
  font-family: var(--font-display);
  font-size: 1.115rem;
  padding: 10px 26px;
  border-radius: 30px;
  background: var(--color-accent);
  color: var(--color-light);
  box-shadow: 0 2px 8px rgba(242,153,74,0.11);
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.18s, color 0.18s, box-shadow 0.15s, transform 0.12s;
}
button:hover, .btn:hover,
button:focus, .btn:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(38,62,106,0.15);
  transform: scale(1.03);
}

/* ------------------------------
   COOKIE BANNER & MODAL
------------------------------ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff7f3;
  color: var(--color-dark);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -4px 32px rgba(38,62,106,0.11);
  padding: 24px 22px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  z-index: 6000;
  animation: cookieEnter 0.6s ease 0s 1;
}
@keyframes cookieEnter {
  from { transform: translateY(60px); opacity:0; }
  to   { transform: translateY(0); opacity:1; }
}
.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 5px;
}
.cookie-banner button {
  min-width: 120px;
  padding: 9px 22px;
  font-size: 1rem;
  font-family: var(--font-display);
  border-radius: 18px;
  box-shadow: 0 3px 13px rgba(242,153,74,0.06);
  font-weight: 600;
}
.cookie-banner .cookie-settings-btn {
  background: var(--color-secondary);
  color: var(--color-primary);
  border: 1px solid var(--color-accent);
}
.cookie-banner .cookie-settings-btn:hover {
  background: var(--color-accent);
  color: var(--color-light);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 7000;
  inset: 0 0 0 0;
  width: 100vw;
  height: 100vh;
  background: rgba(38,62,106,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: var(--color-light);
  color: var(--color-dark);
  padding: 36px 24px 28px 24px;
  border-radius: 28px;
  box-shadow: 0 10px 48px rgba(38,62,106,0.10);
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalPopup 0.44s cubic-bezier(.52,2,.45,.86);
}
@keyframes modalPopup {
  from { transform: translateY(60px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 8px;
  font-weight: 700;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}
.cookie-category label {
  font-size: 1rem;
  color: var(--color-dark);
  font-family: var(--font-body);
  font-weight: 500;
}
.cookie-category input[type="checkbox"]:disabled {
  accent-color: var(--color-primary);
  cursor: not-allowed;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
@media (max-width: 600px) {
  .cookie-modal {
    min-width: 90vw;
    padding: 26px 9px 22px 9px;
  }
}

/* ------------------------------
   RESPONSIVE DESIGN & SPACING
------------------------------ */
@media (max-width: 900px) {
  .feature-grid, .card-container, .service-overview-grid {
    gap: 16px;
  }
  .card, .feature-grid > div, .service-overview-grid > .text-section {
    min-width: 140px;
    max-width: 100%;
  }
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .section {
    padding: 24px 10px;
    margin-bottom: 36px;
    border-radius: 20px;
  }
}
@media (max-width: 600px) {
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  .content-wrapper {
    gap: 14px;
  }
}

/* Remove downward margin for last section */
section:last-child .section,
section:last-child {
  margin-bottom: 0 !important;
}

/* ------------------------------
   MICRO-INTERACTIONS
------------------------------ */
li, .feature-item, .card, .service-card, .testimonial-card, .cta-btn {
  transition: box-shadow 0.17s, background 0.12s, color 0.11s, transform 0.12s;
}
.feature-grid > div:hover, .card:hover, .service-overview-grid > .text-section:hover {
  box-shadow: 0 10px 36px rgba(38,62,106,0.13);
  transform: translateY(-3px) scale(1.018);
}

/* Subtle hover for list icons/images inside list items */
li img {
  filter: grayscale(0.18) brightness(0.87);
  transition: filter 0.11s;
  margin-right: 6px;
  width: 24px;
  height: 24px;
}
li:hover img {
  filter: none;
}

/* ------------------------------
   MISC HELPERS
------------------------------ */
.text-section ul, ul {
  padding-left: 20px;
}
.text-section ul li {
  list-style: disc inside;
  margin-left: 0;
  margin-bottom: 7px;
}
.text-section ul li img {
  display: inline;
  vertical-align: middle;
  margin-right: 7px;
}
.list-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
strong {
  font-weight: 700;
  color: var(--color-primary);
}

/* Hide element visually */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------
   END OF CSS
------------------------------ */
