/* RESET & BASE ---------------------------- */
html { box-sizing: border-box; font-size: 16px; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
body {
  background: #F9FAFB;
  color: #263353;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: #214065; text-decoration: none; transition: color .2s; }
a:hover, a:focus { color: #F6A623; outline: none; }
:focus-visible { outline: 2px solid #F6A623; outline-offset: 2px; }
ul, ol { padding-left: 1.25em; margin-bottom: 1em; }
li { margin-bottom: 0.5em; }

/* FONT FAMILIES */
h1, h2, h3, h4 { font-family: 'Montserrat', Arial, sans-serif; font-weight: 700; }

/* TYPOGRAPHY --------------------- */
h1 { font-size: 2.3rem; margin-bottom: 20px; letter-spacing: -1px; color: #214065; }
h2 { font-size: 1.6rem; margin-bottom: 18px; color: #3B5579; }
h3 { font-size: 1.2rem; margin-bottom: 12px; color: #4C658C; }
h4 { font-size: 1rem; margin-bottom: 8px; color: #5B789D; }
p { margin-bottom: 16px; font-size: 1.05rem; color: #37425A; }
strong { color: #214065; font-weight: 700; }
blockquote {
  font-style: italic;
  color: #23345D;
  background: #F7F8FB;
  border-left: 5px solid #A6B0E2;
  padding: 16px 24px 16px 18px;
  margin: 0 0 10px 0;
}
dt { font-weight: bold; margin-top: 8px; }
dd { margin-left: 0; margin-bottom: 8px; }

input[type="search"],
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #E4EAF7;
  background: #FAFAFA;
  margin-bottom: 16px;
  transition: border .2s, box-shadow .2s;
}
input[type="search"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
  border-color: #F6A623;
  box-shadow: 0 1px 6px 0 rgba(246,166,35,0.08);
}

/* CONTAINER & WRAPPERS -------------- */
.container {
  width: 92%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 8px;
}
.content-wrapper {
  width: 100%;
  background: #FFF;
  border-radius: 26px;
  box-shadow: 0 5px 18px 0 rgba(73, 93, 144, .09);
  padding: 36px 22px;
  margin-bottom: 60px;
}

/* SECTION SPACING (MANDATORY) */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: linear-gradient(135deg, #F3F4F6 90%, #E6ECEE 100%);
  border-radius: 30px;
}
@media (max-width: 980px) {
  .content-wrapper, section { padding-left: 10px; padding-right: 10px; }
}
/* Remove double border radius on .content-wrapper in section */
section .content-wrapper { box-shadow: none; background: none; border-radius: 0; padding: 0; margin-bottom: 0; }

/* CARDS & FLEX LAYOUTS -------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: #FFF;
  border-radius: 18px;
  box-shadow: 0 3px 14px rgba(33,64,101,.07);
  padding: 28px 20px;
  margin-bottom: 20px; /* mandatory */
  position: relative;
  flex: 1 1 270px;
  min-width: 220px;
  max-width: 360px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 8px 24px rgba(246,166,35,0.13), 0 2px 6px rgba(33,64,101,0.10); transform: translateY(-3px) scale(1.01); }

.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-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
  margin-bottom: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #F3F4F6;
  border: 1px solid #E5E6F2;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(33,64,101,0.05);
  padding: 20px;
  flex: 1 1 260px;
  min-width: 220px;
  margin-bottom: 20px;
  color: #214065;
  transition: box-shadow .18s;
}
.testimonial-card blockquote {
  color: #23437A;
  background: none;
  border-left-color: #F6A623;
  padding-left: 10px;
}
.testimonial-card:hover { box-shadow: 0 6px 20px rgba(246,166,35,0.11); }

/* CARD LISTS (BLOG/CASE STUDIES) --------------- */
.blog-list, .case-study-list, .service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.blog-list article, .case-study-summary, .service-cards > div {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(33,64,101,0.06);
  padding: 22px 18px;
  flex: 1 1 260px;
  min-width: 210px;
  margin-bottom: 20px;
  transition: box-shadow .16s, transform .16s;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-list article:hover,
.case-study-summary:hover,
.service-cards > div:hover {
  box-shadow: 0 8px 20px rgba(246,166,35,.09),0 3px 10px rgba(67,107,174,.03);
  transform: translateY(-2px) scale(1.01);
}

/* FEATURES (icons + text, .feature-item) */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #FAF8FD;
  border-radius: 15px;
  padding: 18px 16px;
  margin-bottom: 20px;
  min-width: 160px;
  box-shadow: 0 1px 4px rgba(67, 107, 174, 0.06);
}
.feature-item img { width: 32px; height: 32px; margin-bottom: 8px; }

/* BUTTONS ---------------------- */
.cta-btn, button, .cookie-consent-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
  color: #214065;
  background: linear-gradient(90deg,#FFEDDD 0%, #FFE7D0 100%);
  border: 2px solid #F6A623;
  border-radius: 50px;
  padding: 14px 36px;
  margin-top: 10px;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(246,166,35,0.11);
  transition: background .2s, color .2s, box-shadow .2s, transform .12s;
  display: inline-block;
  text-align: center;
  text-shadow: 0 1px 1px #fff3;
}
.cta-btn:hover, .cta-btn:focus,
button:hover, button:focus,
.cookie-consent-btn:hover, .cookie-consent-btn:focus {
  background: #F6A623;
  color: #fff;
  box-shadow: 0 8px 20px #F6A62334, 0 2px 6px #21406518;
  transform: translateY(-1px) scale(1.02);
}

/* MAIN NAVIGATION ------------------------- */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0 18px 0;
}
.main-nav > a img { height: 44px; width: auto; }
.main-nav ul {
  display: flex;
  gap: 14px;
  list-style: none;
}
.main-nav ul li a {
  display: block;
  font-size: 1.02rem;
  padding: 7px 17px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  border-radius: 16px;
  transition: background 0.2s, color .15s;
  color: #3B5579;
}
.main-nav ul li a:hover, .main-nav ul li a:focus, .main-nav ul li.active a {
  background: #FEF5DF;
  color: #214065;
}

.main-nav .cta-btn { margin-top: 0; margin-left: 12px; }

header {
  background: linear-gradient(90deg, #fff 80%, #F3F4F6 100%);
  border-bottom: 1.5px solid #E3E5EE;
  position: sticky; top: 0; z-index: 40;
}

/* MOBILE MENU BURGER */
.mobile-menu-toggle {
  display: none;
  background: #F6A623;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  cursor: pointer;
  margin-left: 12px;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 80;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #214065; color: #fff; outline: 2px solid #F6A623;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(33,64,101,0.78);
  z-index: 100;
  transform: translateX(-100%);
  transition: transform .33s cubic-bezier(.77,.1,.78,1.02);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  background: #fff;
  color: #214065;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
  align-self: flex-end;
  margin: 22px 24px 8px 0;
  cursor: pointer;
  box-shadow: 0 2px 8px #23437A18;
  transition: background .2s;
  z-index: 110;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { background: #F6A623; color: #fff; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0 0 40px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.15rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 12px 0;
  transition: color 0.15s;
  border-radius: 8px;
  min-width: 180px;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  color: #F6A623; background: #fff3;
}

@media (max-width: 920px) {
  .main-nav ul { display: none; }
  .main-nav .cta-btn { display: none; }
  .mobile-menu-toggle { display: flex; }
}
@media (min-width: 921px) {
  .mobile-menu { display: none !important; }
}

/* Responsive burger alignment for header */
@media (max-width: 600px) {
  .main-nav > a img { height: 34px; }
  .mobile-menu-toggle, .mobile-menu-close { width: 36px; height: 36px; font-size: 1.5rem; }
  .mobile-nav { margin-left: 18px; }
}

/* FOOTER -------------------------- */
footer {
  background: linear-gradient(90deg,#F3F4F6 30%, #fff 100%);
  border-top: 1.5px solid #E3E5EE;
  padding: 48px 0 0 0;
  font-size: 1rem;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 14px;
}
.footer-top a img { height: 36px; }
.footer-top nav { flex: 1 1 200px; text-align: right; color: #5979A7; font-size: .93rem; }
.footer-top nav a { color: #7F92B5; margin: 0 7px; }
.footer-top nav a:hover, .footer-top nav a:focus { color: #214065; text-decoration: underline; }
.footer-contact { margin-bottom: 20px; }
.footer-contact ul { list-style: none; padding-left: 0; }
.footer-contact li { margin-bottom: 8px; display: flex; align-items: center; gap: 10px; color: #444A5E; font-size: .98rem; }
.footer-contact a { color: #214065; text-decoration: underline; }
.footer-contact a:hover { color: #F6A623; }
.footer-social {
  display: flex; gap: 13px; align-items: center; margin-bottom: 15px;
}
.footer-social a img { width: 24px; height: 24px; }
.footer-bottom {
  text-align: center; color: #A9BACD;
  padding: 22px 0 17px 0;
  font-size: .93rem;
}

@media (max-width: 900px) {
  .footer-top { flex-direction: column; align-items: flex-start; text-align: left; gap: 12px; }
  .footer-top nav { text-align: left; }
}

/* RESPONSIVE FLEX LAYOUTS & SECTIONS -------------------------- */
@media (max-width: 900px) {
  .card-container, .testimonial-list, .blog-list, .case-study-list, .service-cards, .content-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px; align-items: center;
  }
}
@media (max-width: 600px) {
  .container { max-width: 99vw; padding-left: 0; padding-right: 0; }
  .content-wrapper { border-radius: 14px; padding: 18px 7px; }
  section { border-radius: 17px; padding: 24px 4px; margin-bottom: 38px; }
}

/* FORMATTED TABLES for SERVICES --------------------------------- */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0;
  background: #FEFCFF;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 7px #D4DBFB22;
}
th, td {
  padding: 15px 13px;
  border-bottom: 1px solid #F3F4F6;
  text-align: left;
  font-size: 1rem;
}
th { background: #F8F5FE; color: #214065; font-family: 'Montserrat', sans-serif; font-size: 1.08rem; font-weight: 600; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #FEF9F1; }

/* MAP IMAGE ---------------------------- */
.map img { width: 100%; max-width: 50px; border-radius: 12px; box-shadow: 0 1px 6px #21406514; }

/* TABLET-TINY LAYOUT TWEAKS ------------ */
@media (max-width:500px) {
  th, td { font-size: .93rem; padding: 8px 5px; }
}

/* Cookie Consent Banner ---------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fffaf3;
  border-top: 1.5px solid #FFDBA1;
  box-shadow: 0 -2px 24px rgba(246,166,35,0.07);
  padding: 26px 8px 17px 8px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  transition: transform .34s cubic-bezier(.72,.13,.86,.82), opacity .28s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner p { color: #214065; margin-bottom: 0; text-align: center; font-size: 1.03rem; }
.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 0;
}
.cookie-consent-btn {
  padding: 10px 28px;
  font-size: 1rem;
  border-radius: 22px;
  background: #FEF5DF;
  border: 2px solid #F6A623;
  color: #214065;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background .16s, color .16s;
}
.cookie-consent-btn.accept {
  background: #F6A623;
  color: #fff;
  border-color: #F6A623;
}
.cookie-consent-btn.accept:hover, .cookie-consent-btn.accept:focus { background: #214065; color: #fff; }
.cookie-consent-btn.reject {
  background: #fafbfc;
  color: #A47B1B;
  border: 2px solid #E7D0A8;
}
.cookie-consent-btn.reject:hover, .cookie-consent-btn.reject:focus { background: #FFF2E0; color: #214065; }
.cookie-consent-btn.settings {
  background: #fff;
  border: 2px dashed #F6A623;
  color: #214065;
}
.cookie-consent-btn.settings:hover, .cookie-consent-btn.settings:focus { background: #FAF6E1; box-shadow: 0 1px 10px #e9c17038; }

/* Cookie Modal Popup ------------ */
.cookie-modal-overlay {
  position: fixed;
  z-index: 400;
  top: 0; left: 0; right:0; bottom: 0;
  background: rgba(33,64,101,0.21);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity .36s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fffaf5;
  border-radius: 22px;
  box-shadow: 0 4px 38px #F6A62332, 0 1.5px 8px #2140651b;
  padding: 32px 28px 27px 28px;
  max-width: 405px;
  width: 90vw;
  position: relative;
  display: flex;
  flex-direction: column;
  z-index: 410;
}
.cookie-modal h2 {
  color: #214065;
  font-size: 1.25rem;
  margin-bottom: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  background: #fff;
  padding: 12px 14px;
  border-radius: 16px;
  box-shadow: 0 1px 5px #fad58013;
}
.cookie-category label {
  font-family: 'Montserrat',Arial,sans-serif; font-weight: 500; color: #2D3F60; }

.cookie-category input[type=checkbox] {
  width: 22px; height: 22px; accent-color: #F6A623;
}
.cookie-category input[type=checkbox][disabled], .cookie-category input[type=checkbox][readonly] {
  accent-color: #D5DDE3; cursor: not-allowed; }

.cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 20px;
}
.cookie-modal-actions .cookie-consent-btn { padding: 8px 21px; font-size: .98rem; }
.cookie-modal-close {
  position: absolute;
  top: 8px; right: 12px;
  background: none;
  border: none;
  color: #A79A89;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color .14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { color: #F6A623; }

@media (max-width: 460px) {
  .cookie-modal { padding: 19px 4px 13px 10px; font-size: .96rem; }
}

/* PASTEL PALETTE (For soft pastel look) */
:root {
  --pastel-blue: #DEE8F6;
  --pastel-lavender: #E5E7F1;
  --pastel-mint: #D7F5EF;
  --pastel-peach: #FFF5ED;
  --pastel-sun: #FFFBE7;
  --brand-primary: #214065;
  --brand-secondary: #F6A623;
  --brand-accent: #F3F4F6;
}
.section {
  background: linear-gradient(135deg, var(--pastel-peach) 74%, var(--pastel-lavender) 100%);
  margin-bottom: 60px; padding: 40px 20px;
  border-radius: 30px;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(38px); }
  to { opacity: 1; transform: none; }
}
.section, .card, .testimonial-card, .case-study-summary, .blog-list article, .service-cards > div {
  animation: fadeInUp .66s cubic-bezier(.31,0,.43,1.2) both;
}

/* MICRO-INTERACTIONS for cards & testimonial hover */
.card:active, .testimonial-card:active, .service-cards > div:active, .case-study-summary:active {
  transform: scale(.99);
  box-shadow: 0 4px 10px #efd3b59f;
}

/* Pastel checkboxes for forms and modals */
input[type="checkbox"] {
  accent-color: #F6A623;
  border-radius: 5px;
  width: 18px;height: 18px;
}

/* SOFT PLACEHOLDER COLOR  */
::placeholder { color: #b5bfcf; opacity:1; font-size: 1rem; }

/* Pastel icons */
ul li img, .footer-contact li img {
  width: 22px; height: 22px; margin-right: 7px;
  background: #F7F3ED;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(246,166,35,0.05);
}

/* Blog search input */
input[type=search] {
  border: 2px solid #EEF4FC;
  background: #F9F9FD;
  border-radius: 14px;
  box-shadow: 0 1px 8px #e6eaff23;
  min-width: 180px; width: 98%; max-width: 395px;
}

/* CODE & PRE--for help pages (if needed) */
code, pre {
  background: #f7f5fa;
  border-radius: 6px;
  padding: 2px 7px;
  color: #214065;
  font-family: monospace; font-size: .98em;
}

/* Pastel visual micro elements */
hr {
  border: 0; height: 2px;
  background: linear-gradient(90deg,#F6A62322 25%, #E7E3FF55 100%);
  margin: 28px 0;
  border-radius: 3px;
}

/* Custom transitions & hover states */
.transition { transition: all .22s cubic-bezier(.5,.6,.52,1.01); }

/* Print safe */
@media print {
  header,.mobile-menu,.cookie-banner,footer,.cta-btn{display:none!important;}
  section { padding: 5px!important; margin-bottom: 0; }
}
