/* ===========================================================
  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,
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background-color: #F4F4F4;
  color: #1C2242;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
  font-size: 16px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}
a {
  color: #283C6A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F7B500;
  outline: none;
}
ul, ol {
  margin-left: 24px;
}
ul li, ol li {
  margin-bottom: 8px;
}

/* ===========================================================
  BRAND COLORS & FONTS (Warm Friendly)
=========================================================== */
:root {
  --bs-primary: #283C6A;
  --bs-secondary: #F4F4F4;
  --bs-accent: #F7B500;
  --bs-orange-light: #FFE9B0;
  --bs-peach-bg: #FFF9F3;
  --bs-grey: #E7E9F1;
  --bs-dark: #1C2242;
  --bs-shadow: rgba(40,60,106,0.08);
  --bs-font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --bs-font-body: 'Open Sans', Arial, sans-serif;
  --bs-radius-lg: 18px;
  --bs-radius-md: 12px;
  --bs-radius-sm: 8px;
}

/* ===========================================================
  BASE TYPOGRAPHY
=========================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--bs-font-display);
  color: var(--bs-primary);
  font-weight: 700;
  line-height: 1.15;
}
h1 {
  font-size: 2.7rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p, li, span, table, label {
  font-family: var(--bs-font-body);
  color: var(--bs-dark);
}
p {
  font-size: 1.125rem;
  margin-bottom: 16px;
}
strong {
  font-weight: 700;
}

/* ===========================================================
  CONTAINERS & SECTIONS
=========================================================== */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--bs-peach-bg);
  border-radius: var(--bs-radius-lg);
  box-shadow: 0 4px 32px var(--bs-shadow);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ===========================================================
  FLEXBOX LAYOUT PATTERNS
=========================================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--bs-radius-md);
  box-shadow: 0 2px 16px var(--bs-shadow);
  padding: 32px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover, .card:focus {
  box-shadow: 0 4px 28px rgba(40,60,106,0.18);
  transform: translateY(-5px) scale(1.018);
}
.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;
    align-items: flex-start;
    gap: 22px;
  }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fffdf8;
  padding: 20px 28px;
  border-radius: var(--bs-radius-md);
  margin-bottom: 24px;
  box-shadow: 0 2px 18px var(--bs-shadow);
  border: 1px solid var(--bs-orange-light);
  color: var(--bs-dark);
  transition: box-shadow 0.16s, border-color 0.2s;
}
.testimonial-card:hover {
  border-color: var(--bs-accent);
  box-shadow: 0 4px 30px rgba(247,181,0,0.11);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===========================================================
  NAVIGATION (DESKTOP & MOBILE)
=========================================================== */
header {
  background: #fff;
  border-bottom: 1px solid var(--bs-grey);
  box-shadow: 0 2px 10px var(--bs-shadow);
  position: relative;
  z-index: 100;
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 12px 0;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  font-size: 1.1rem;
  font-family: var(--bs-font-display);
  padding: 7px 14px;
  border-radius: var(--bs-radius-sm);
  transition: background 0.16s, color 0.16s;
}
.main-nav a:hover:not(.cta-btn), .main-nav a:focus:not(.cta-btn) {
  background: var(--bs-orange-light);
  color: var(--bs-primary);
}
.cta-btn, .cta-btn-accent {
  padding: 9px 22px;
  border: none;
  border-radius: var(--bs-radius-md);
  font-family: var(--bs-font-display);
  font-size: 1.06rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  background: var(--bs-accent);
  color: #fff;
  box-shadow: 0 2px 10px var(--bs-shadow);
}
.cta-btn:hover, .cta-btn:focus {
  background: #ffd44d;
  color: var(--bs-primary);
  outline: none;
  box-shadow: 0 4px 26px rgba(247,181,0,0.13);
  transform: scale(1.03);
}
.cta-btn-accent {
  background: var(--bs-primary);
  color: #fff;
}
.cta-btn-accent:hover, .cta-btn-accent:focus {
  background: var(--bs-accent);
  color: var(--bs-primary);
}
.mobile-menu-toggle {
  background: var(--bs-orange-light);
  border: none;
  color: var(--bs-primary);
  font-size: 2rem;
  border-radius: var(--bs-radius-md);
  padding: 7px 13px 7px 12px;
  margin-left: 12px;
  cursor: pointer;
  display: none;
  transition: background 0.15s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--bs-accent);
  color: #fff;
}
/* Hide mobile menu and toggle on desktop */
@media (max-width: 991px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: #fff;
  box-shadow: 0 8px 40px rgba(40,60,106,0.10);
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.6,.12,.34,.96);
  z-index: 1200;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 26px 0 0;
  background: var(--bs-orange-light);
  border: none;
  color: var(--bs-primary);
  font-size: 2.1rem;
  border-radius: var(--bs-radius-md);
  padding: 4px 14px 4px 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--bs-accent);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 0 30px 40px 40px;
  font-size: 1.3rem;
  font-family: var(--bs-font-display);
}
.mobile-nav a {
  color: var(--bs-primary);
  padding: 9px 0;
  border-radius: var(--bs-radius-sm);
  font-weight: 500;
  transition: background 0.13s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--bs-orange-light);
  color: var(--bs-accent);
}
@media (min-width: 992px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ===========================================================
  FOOTER
=========================================================== */
footer {
  background: #fff;
  border-top: 1px solid var(--bs-grey);
  box-shadow: 0 -1px 8px var(--bs-shadow);
  padding: 34px 0 26px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.footer-nav a {
  font-size: 1.01rem;
  color: var(--bs-primary);
  font-family: var(--bs-font-display);
  opacity: 0.86;
  transition: color 0.16s, opacity 0.18s;
  padding: 4px 8px;
  border-radius: var(--bs-radius-sm);
}
.footer-nav a:hover, .footer-nav a:focus {
  opacity: 1;
  color: var(--bs-accent);
  background: var(--bs-orange-light);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1rem;
  font-family: var(--bs-font-body);
  color: var(--bs-dark);
}
.footer-contact img {
  width: 1.15em;
  vertical-align: middle;
  margin-right: 4px;
}
@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
  }
  .footer-nav {
    gap: 12px;
    justify-content: flex-start;
    margin-bottom: 9px;
  }
}

/* ===========================================================
  BUTTONS & INTERACTIVES
=========================================================== */
button, .cta-btn, .cta-btn-accent {
  outline: none;
  border: none;
  font: inherit;
  cursor: pointer;
}
button:focus-visible, .cta-btn:focus-visible {
  outline: 2px dashed var(--bs-accent);
  outline-offset: 2px;
}

/* ===========================================================
  UNIQUE CONTENT COMPONENTS
=========================================================== */
.service-cards, .blog-featured-posts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.service-cards > div, .blog-featured-posts > div {
  flex: 1 1 min(220px, 100%);
  min-width: 230px;
  background: #fff;
  border-radius: var(--bs-radius-md);
  box-shadow: 0 2px 16px var(--bs-shadow);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 0;
  transition: box-shadow 0.18s, transform 0.13s;
}
.service-cards > div:hover, .blog-featured-posts > div:hover {
  box-shadow: 0 6px 35px rgba(247,181,0,0.05);
  transform: scale(1.02);
}
@media (max-width: 991px) {
  .service-cards, .blog-featured-posts {
    gap: 16px;
  }
  .service-cards > div, .blog-featured-posts > div {
    min-width: 160px;
  }
}
@media (max-width: 600px) {
  .service-cards, .blog-featured-posts {
    flex-direction: column;
    gap: 14px;
  }
  .service-cards > div, .blog-featured-posts > div {
    min-width: unset;
    width: 100%;
  }
}
.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 16px;
}
.category-tags span {
  font-size: 0.98rem;
  background: var(--bs-orange-light);
  padding: 8px 16px;
  border-radius: var(--bs-radius-md);
  color: var(--bs-primary);
  font-family: var(--bs-font-body);
  font-weight: 600;
  transition: background 0.15s;
  margin-bottom: 4px;
}
.category-tags span:hover {
  background: var(--bs-accent);
  color: #fff;
}
.trust-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-size: 1.08rem;
  font-family: var(--bs-font-display);
}
.trust-badges img {
  width: 32px;
  height: 32px;
  margin-right: 3px;
}
.timeline {
  margin-top: 13px;
  color: var(--bs-accent);
  font-size: 1.08rem;
  font-family: var(--bs-font-display);
  font-weight: 500;
}
.client-logos {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin: 24px 0 0 0;
  align-items: center;
}
.client-logos span {
  background: var(--bs-grey);
  border-radius: var(--bs-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  box-shadow: 0 3px 15px var(--bs-shadow);
}
.client-logos img { width: 36px; height: 36px; }
.success-metrics {
  background: var(--bs-orange-light);
  border-radius: var(--bs-radius-sm);
  padding: 10px 18px;
  margin-top: 8px;
  font-size: 1.03rem;
}
.contact-information ul, .address-details {
  list-style: none;
  padding-left: 0;
  margin-bottom: 10px;
}
.contact-information li, .address-details p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
  font-size: 1.1rem;
}
.address-details p strong {
  min-width: 85px;
  display: inline-block;
  font-weight: 600;
}
.map-embed {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  background: var(--bs-grey);
  border-radius: var(--bs-radius-md);
  padding: 16px 18px;
}
.map-embed span img { width: 42px; height: 42px; }

/* ===========================================================
  TABLES
=========================================================== */
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 22px;
  background: #fff;
  border-radius: var(--bs-radius-md);
  overflow: hidden;
  box-shadow: 0 1px 6px var(--bs-shadow);
  font-size: 1.05rem;
}
thead tr {
  background: var(--bs-primary);
  color: #fff;
}
th, td {
  padding: 14px 13px;
  text-align: left;
  border-bottom: 1px solid var(--bs-grey);
  min-width: 90px;
}
th {
  font-family: var(--bs-font-display);
  font-weight: 700;
  font-size: 1.07rem;
}
tbody tr:last-child td {
  border-bottom: none;
}
tbody tr:hover {
  background: var(--bs-orange-light);
}

/* ===========================================================
  COOKIES BANNER & MODAL
=========================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 1700;
  background: #fffbe9;
  box-shadow: 0 -2px 16px rgba(40,60,106,0.14);
  padding: 22px 8vw 16px 8vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-radius: var(--bs-radius-lg) var(--bs-radius-lg) 0 0;
  font-family: var(--bs-font-body);
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    padding: 20px 14px 14px 14px;
    align-items: flex-start;
  }
}
.cookie-banner p {
  font-size: 1rem;
  color: var(--bs-primary);
  margin-bottom: 0;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-banner button {
  min-width: 120px;
  font-size: 1.04rem;
  border-radius: var(--bs-radius-sm);
  padding: 9px 18px;
  border: none;
  font-family: var(--bs-font-display);
  font-weight: 600;
  background: var(--bs-accent);
  color: #fff;
  transition: background 0.16s, color 0.14s, box-shadow 0.2s;
  box-shadow: 0 1px 8px var(--bs-shadow);
}
.cookie-banner button.reject {
  background: var(--bs-primary);
  color: #fff;
}
.cookie-banner button.settings {
  background: var(--bs-secondary);
  color: var(--bs-primary);
  border: 1.5px solid var(--bs-accent);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #ffd44d;
  color: var(--bs-primary);
}
.cookie-banner button.settings:hover, .cookie-banner button.settings:focus {
  background: var(--bs-orange-light);
}

/* COOKIES MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 1800;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(40,60,106,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.25s;
}
@keyframes modalFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: var(--bs-radius-lg);
  box-shadow: 0 6px 32px rgba(40,60,106,0.18);
  padding: 38px 32px 26px 32px;
  min-width: 325px;
  max-width: 96vw;
  max-height: 85vh;
  overflow-y: auto;
  font-family: var(--bs-font-body);
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: modalPopIn 0.26s cubic-bezier(.5,1.7,.65,1.03);
  position: relative;
}
@keyframes modalPopIn {
  0% { transform: scale(0.92); opacity: 0.1; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--bs-primary);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category label {
  font-weight: 600;
  min-width: 135px;
  color: var(--bs-dark);
}
.cookie-modal .toggle-switch {
  width: 46px;
  height: 22px;
  background: var(--bs-grey);
  border-radius: 15px;
  position: relative;
  cursor: pointer;
  transition: background 0.23s;
  display: inline-flex;
  align-items: center;
}
.cookie-modal .toggle-switch input {
  display: none;
}
.cookie-modal .toggle-switch .slider {
  position: absolute;
  left: 2px; top: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 6px var(--bs-shadow);
  transition: left 0.23s, background 0.2s;
}
.cookie-modal .toggle-switch input:checked + .slider {
  left: 26px;
  background: var(--bs-accent);
}
.cookie-modal .toggle-switch:active {
  background: var(--bs-accent);
}
.cookie-modal .cookie-category.essential .toggle-switch {
  pointer-events: none;
  opacity: 0.68;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.cookie-modal .cookie-actions button {
  min-width: 110px;
  border-radius: var(--bs-radius-sm);
  padding: 9px 15px;
  font-size: 1rem;
}
.cookie-modal .close-modal-btn {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--bs-orange-light);
  color: var(--bs-primary);
  border-radius: var(--bs-radius-md);
  border: none;
  font-size: 1.5rem;
  padding: 6px 11px;
  cursor: pointer;
  transition: background 0.14s;
}
.cookie-modal .close-modal-btn:hover, .cookie-modal .close-modal-btn:focus {
  background: var(--bs-accent);
  color: #fff;
}

/* ===========================================================
  UTILITIES & GENERAL
=========================================================== */
.bg-accent { background: var(--bs-accent) !important; }
.bg-primary { background: var(--bs-primary) !important; color: #fff !important; }
.bg-secondary { background: var(--bs-secondary) !important; }
.text-accent { color: var(--bs-accent)!important; }
.text-primary { color: var(--bs-primary)!important; }
.rounded-lg { border-radius: var(--bs-radius-lg) !important; }
.shadow-sm { box-shadow: 0 1px 8px var(--bs-shadow) !important; }

/* ===========================================================
  RESPONSIVE ADJUSTMENTS
=========================================================== */
@media (max-width: 991px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 30px 7px;
  }
  .content-wrapper {
    gap: 12px;
  }
}
@media (max-width: 600px) {
  h1      { font-size: 1.45rem; }
  h2      { font-size: 1.20rem; }
  h3      { font-size: 1.07rem; }
  .section { padding: 22px 3px; }
  .card { padding: 18px 8px; }
}

/* ===========================================================
  PRINT OPTIMIZATION (Hide sticky, nav, buttons)
=========================================================== */
@media print {
  .cookie-banner,
  .cookie-modal-overlay,
  .main-nav,
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
  header, footer { box-shadow: none !important; }
  body { background: #fff !important; }
}
