/* ========================
   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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { font-size: 16px; }
body {
  min-height: 100vh;
  background: linear-gradient(135deg, #F3F6FB 0%, #e8effa 100%);
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #263263;
  line-height: 1.6;
  font-size: 16px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  margin: 0 0 16px 22px;
}
li {
  margin-bottom: 8px;
}
a {
  color: #4B93C3;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus { color: #263263; }
strong { font-weight: 600; color: #263263; }
hr {
  border: none; border-top: 1px solid #c9dbef; margin: 32px 0;
}

/* ========================
   FONTS
   ======================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Roboto:wght@400;500&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #263263;
  font-weight: 700;
}
h1 { font-size: 2.50rem; margin-bottom: 20px; }
h2 { font-size: 2.00rem; margin-bottom: 20px; }
h3 { font-size: 1.31rem; margin-bottom: 12px; font-weight: 600; }
h4 { font-size: 1.12rem; }
h5, h6 { font-size: 1rem; }
p { margin-bottom: 16px; }

/* ========================
   LAYOUT STRUCTURE
   ======================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(38,50,99,0.04);
}
@media (max-width: 1024px) {
  .section {
    padding: 32px 0 32px 0;
  }
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

/* ========================
   HEADER & NAVIGATION
   ======================== */
header {
  background: linear-gradient(90deg, #263263 0%, #4B93C3 100%);
  color: #fff;
  box-shadow: 0 2px 12px 0 rgba(38,50,99,0.05);
  position: relative;
  z-index: 10;
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
.logo-link img { height: 42px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  padding: 8px 0 8px 0;
  opacity: 0.96;
  transition: opacity 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus { opacity: 1; color: #F3F6FB; }
.main-nav .cta {
  background: #F3F6FB;
  color: #263263;
  padding: 10px 28px;
  border-radius: 99px;
  font-weight: 600;
  box-shadow: 0 2px 8px 0 rgba(38,50,99,0.09);
  margin-left: 10px;
  transition: background 0.22s, color 0.22s, box-shadow 0.22s;
}
.main-nav .cta:hover, .main-nav .cta:focus {
  background: #4B93C3;
  color: #fff;
  box-shadow: 0 6px 24px 0 rgba(38,50,99,0.10);
}

.mobile-menu-toggle {
  display: none;
  background: #F3F6FB;
  color: #263263;
  padding: 8px 18px;
  font-size: 2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-left: 18px;
  transition: background 0.16s;
  z-index: 101;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover { background: #e1eafa; }

/* MOBILE NAVIGATION */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #263263;
  color: #fff;
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  padding-top: 44px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.1rem;
  padding: 10px 20px 10px 16px;
  align-self: flex-end;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 30px;
  padding: 0 26px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  color: #fff;
  padding: 16px 2px;
  border-radius: 7px;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #4B93C3;
  color: #F3F6FB;
}

@media (max-width: 1024px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
}

/* ========================
   HERO SECTION
   ======================== */
.hero {
  background: linear-gradient(120deg, #4B93C3 0%, #F3F6FB 95%);
  border-radius: 0 0 36px 36px;
  padding-top: 60px;
  padding-bottom: 60px;
  margin-bottom: 60px;
}
.hero .container {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 750px;
  gap: 20px;
}
.hero h1 {
  color: #263263;
  font-size: 2.6rem;
  margin-bottom: 10px;
}
.hero p {
  color: #263263;
  font-size: 1.30rem;
  margin-bottom: 25px;
}
.hero .cta {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  padding: 14px 38px;
  border-radius: 99px;
  background: #263263;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 24px 0 rgba(38,50,99,0.10);
  margin-top: 10px;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
  border: none;
}
.hero .cta:hover, .hero .cta:focus {
  background: #4B93C3;
  color: #fff;
}

/* ========================
   FEATURE GRIDS
   ======================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 14px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F3F6FB;
  border-radius: 18px;
  padding: 28px 22px;
  flex: 1 1 268px;
  min-width: 230px;
  max-width: 360px;
  box-shadow: 0 2px 16px 0 rgba(75,147,195,0.06);
  transition: box-shadow 0.18s, transform 0.18s;
}
.feature-item img {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
}
.feature-item h3 {
  font-size: 1.1rem;
  color: #263263;
  margin-bottom: 7px;
}
.feature-item p {
  font-size: 1rem;
  margin-bottom: 2px;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 8px 32px 0 rgba(75,147,195,0.13);
  transform: translateY(-2px) scale(1.025);
}

@media (max-width: 900px) {
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-item { max-width: unset; width: 100%; }
}

/* ========================
   SERVICES SECTION
   ======================== */
.services {
  background: #f7faff;
  border-radius: 16px;
  margin-bottom: 60px;
  padding: 36px 20px;
  box-shadow: 0 2px 10px 0 rgba(38,50,99,0.04);
}
.services ul {
  margin-bottom: 24px;
  margin-left: 26px;
}

/* ========================
   TESTIMONIALS CARDS
   ======================== */
.testimonials {
  background: #F3F6FB;
  border-radius: 16px;
  margin-bottom: 60px;
  padding: 36px 20px;
}
.testimonials .content-wrapper {
  gap: 22px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border-radius: 14px;
  padding: 20px 28px 18px 26px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px 0 rgba(75,147,195,0.09);
  border: 1px solid #e8effa;
  transition: box-shadow 0.15s;
}
.testimonial-card p {
  font-size: 1.05rem; color: #263263;
}
.testimonial-card span {
  font-size: 1rem;
  color: #263263;
}
.testimonial-card strong {
  color: #263263;
  font-weight: 700;
}
.testimonial-card .case-study-snippet {
  background: #F3F6FB;
  color: #263263;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.97rem;
  margin-top: 3px;
  margin-bottom: 4px;
}
.testimonial-card:hover {
  box-shadow: 0 10px 32px 0 rgba(75,147,195,0.21);
}

/* ========================
   CONTACT SECTIONS & INFO
   ======================== */
.contact-info-summary, .contact-info-detailed {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}
.contact-info-summary img, .contact-info-detailed img {
  vertical-align: middle;
  width: 19px;
  margin-right: 9px;
}
.office-hours, .map {
  background: #F3F6FB;
  border-radius: 10px;
  padding: 18px 20px 12px 20px;
  margin-bottom: 16px;
  margin-top: 6px;
  color: #263263;
  font-size: 1.01rem;
  box-shadow: 0 2px 10px 0 rgba(75,147,195,0.06);
}
.office-hours img {
  width: 18px;
  margin-right: 6px;
}

/* ========================
   BLOG POST LIST
   ======================== */
.blog-post-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.blog-post-list article {
  background: #fff;
  border-radius: 12px;
  padding: 22px 20px 16px 20px;
  box-shadow: 0 2px 10px 0 rgba(75,147,195,0.05);
  margin-bottom: 12px;
  transition: box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.blog-post-list article:hover {
  box-shadow: 0 8px 24px 0 rgba(38,50,99,0.11);
}
.blog-tag {
  display: inline-block;
  background: #4B93C3;
  color: #fff;
  border-radius: 5px;
  font-size: 0.91em;
  padding: 2.5px 8px;
  margin-left: 6px;
}
.blog-author {
  font-size: 0.97rem;
  color: #4B93C3;
  margin-top: 2px;
}

/* ========================
   FOOTER
   ======================== */
footer {
  background: linear-gradient(90deg, #4B93C3 0%, #263263 100%);
  color: #fff;
  padding: 10px 0 0 0;
  font-size: 1rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.footer-nav a {
  color: #fff;
  opacity: 0.93;
  transition: color 0.16s, opacity 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #F3F6FB;
  opacity: 1;
}
.footer-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
  color: #e1eafa;
  font-size: 0.98rem;
  text-align: center;
}
.footer-copyright {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.93rem;
  color: #d1d9e9;
  margin-bottom: 10px;
  text-align: center;
}

/* ========================
   BUTTONS & CTAs
   ======================== */
.cta {
  display: inline-block;
  background: #4B93C3;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 99px;
  padding: 12px 36px;
  font-size: 1rem;
  box-shadow: 0 2px 12px 0 rgba(75,147,195,0.13);
  transition: background 0.15s, color 0.15s, transform 0.13s, box-shadow 0.13s;
  cursor: pointer;
}
.cta:hover, .cta:focus {
  background-color: #263263;
  color: #fff;
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 8px 26px 0 rgba(38,50,99,0.11);
}

/* ========================
   FLEX LAYOUT UTILITIES (MANDATORY)
   ======================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(38,50,99,0.07);
  transition: box-shadow 0.14s;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
}
.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;
}

/* ========================
   RESPONSIVE DESIGN
   ======================== */
@media (max-width: 900px) {
  .container { padding-left: 12px; padding-right: 12px; }
  .hero, .section { padding: 30px 6px; }
  .footer-contact, .footer-copyright { font-size: 0.97rem; }
}
@media (max-width: 768px) {
  .container { max-width: 100%; }
  .hero { padding-top: 28px; padding-bottom: 32px; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1.07rem; }
  .feature-grid, .content-grid, .card-container {
    flex-direction: column;
    gap: 14px;
  }
  .feature-item, .card { max-width: 100%; min-width: unset; }
  .testimonials, .services, .section { padding: 24px 4px; }
  .card-content { padding: 15px; }
  .footer-nav, .footer-contact, .footer-copyright {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 18px; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.53rem; }
  h2 { font-size: 1.21rem; }
  .cta { font-size: 0.98rem; padding: 11px 22px; }
}

/* ========================
   COOKIE CONSENT BANNER & MODAL
   ======================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #263263;
  color: #fff;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -8px 44px rgba(75,147,195,0.12);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 18px 16px 18px;
  gap: 18px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(100%);
  font-size: 1rem;
}
.cookie-banner.visible {
  transform: translateY(0);
}
.cookie-banner p {
  margin-bottom: 0;
  color: #fff;
}
.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.cookie-btn, .cookie-btn-primary {
  border: none;
  border-radius: 99px;
  padding: 10px 32px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.19s, color 0.19s;
  outline: none;
}
.cookie-btn-primary {
  background: #4B93C3;
  color: #fff;
}
.cookie-btn-primary:hover, .cookie-btn-primary:focus {
  background: #263263;
  color: #fff;
}
.cookie-btn {
  background: #F3F6FB;
  color: #263263;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #4B93C3;
  color: #fff;
}
.cookie-settings-modal {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(38,50,99,0.19);
  z-index: 11000;
  justify-content: center;
  align-items: center;
}
.cookie-settings-modal.open {
  display: flex;
  animation: fadeIn 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-settings-content {
  background: #fff;
  border-radius: 16px;
  padding: 28px 30px 18px 30px;
  width: 98%;
  max-width: 420px;
  color: #263263;
  display: flex;
  flex-direction: column;
  gap: 23px;
  box-shadow: 0 10px 38px 0 rgba(75,147,195,0.22);
}
.cookie-settings-content h2 {
  font-size: 1.26rem;
  margin-bottom: 6px;
  font-weight: 700;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0 8px 0;
  border-bottom: 1px solid #e6e8ef;
  font-size: 1.05rem;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-toggle {
  width: 38px;
  height: 22px;
  background: #e8effa;
  border-radius: 11px;
  position: relative;
  transition: background 0.16s;
  cursor: pointer;
}
.cookie-toggle input[type="checkbox"] {
  display: none;
}
.cookie-toggle-slider {
  position: absolute;
  left: 3px; top: 3px;
  width: 16px;
  height: 16px;
  background: #4B93C3;
  border-radius: 50%;
  transition: left 0.20s, background 0.20s;
}
.cookie-toggle input[type="checkbox"]:checked + .cookie-toggle-slider {
  left: 19px;
  background: #263263;
}
.cookie-settings-footer {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 6px;
}
.cookie-modal-close {
  position: absolute;
  top: 17px;
  right: 24px;
  background: none;
  border: none;
  color: #263263;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0;
}

@media (max-width: 460px) {
  .cookie-banner {
    font-size: 0.98rem;
    padding: 18px 6px 12px 6px;
    gap: 11px;
  }
  .cookie-settings-content {
    padding: 14px 6px 12px 8px;
    min-width: unset;
  }
}

/* ========================
   MISCELLANEOUS
   ======================== */
::-webkit-scrollbar { width: 10px; background: #F3F6FB; }
::-webkit-scrollbar-thumb { background: #4B93C3; border-radius: 6px; }
::selection { background: #4B93C3; color: #fff; }

/* Icon utility for lists */
.features ul li img,
.features li img {
  width: 21px;
  vertical-align: middle;
  margin-right: 7.5px;
}

/* Hide visually for accessibility */
.visually-hidden { position: absolute!important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); border: 0; padding: 0; margin: 0; }

/* Ensure no overlap between all cards and sections */
.section, .services, .features, .testimonials, .contact {
  margin-bottom: 60px !important;
}
.card, .feature-item, .testimonial-card {
  margin-bottom: 20px !important;
}

/* Ensure all interactive* selectors have transition for gradient_modern feel */
.main-nav a, .cta, .mobile-nav a, .cookie-btn, .cookie-btn-primary {
  transition: background 0.19s, color 0.19s, box-shadow 0.14s, opacity 0.14s, transform 0.13s;
}

/* Focus outline for accessibility */
:focus {
  outline: 2px solid #4B93C3;
  outline-offset: 2px;
}

/* =========== End of CSS =========== */
