/* ================================================================
   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;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}
body {
  background: #F2F6F8;
  color: #214356;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
article,aside,footer,header,nav,section,main {
  display: block;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border-style: none;
}
a {
  color: #214356;
  text-decoration: none;
  transition: color 0.15s;
}
a:hover,a:focus {
  color: #4581a0;
  outline: none;
}
ul,ol {
  margin-left: 1.1em;
  margin-bottom: 1.2em;
}
li {
  margin-bottom: 6px;
}
strong, b {
  font-weight: 700;
}
h1,h2,h3,h4,h5,h6 {
  color: #214356;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; margin-bottom: 28px; }
h2 { font-size: 1.7rem; margin-bottom: 24px; }
h3 { font-size: 1.2rem; margin-bottom: 16px; }
h4 { font-size: 1rem; margin-bottom: 10px; }

/* ACCESSIBILITY - Focus outline */
:focus-visible {
  outline: 2px solid #8AB7C7;
  outline-offset: 2px;
}

/* =========== BRAND COLORS (FOR EASY REFERENCE) ============= */
:root {
  --primary: #214356;
  --secondary: #8AB7C7;
  --accent: #F2F6F8;
  --white: #fff;
  --text-main: #214356;
  --text-light: #476276;
  --shadow: 0 2px 12px rgba(33,67,86,0.07);
  --radius-md: 10px;
  --radius-lg: 18px;
  --transition: 0.25s cubic-bezier(.5,1.7,.6,.8);
}

/* =================== STRUCTURE & LAYOUT ==================== */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}

main {
  flex: 1 0 auto;
  background: var(--accent);
}
section {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
}

@media (max-width: 1024px) {
  .container { max-width: 97vw; }
  .content-wrapper { max-width: 100%; }
}
@media (max-width: 600px) {
  section {
    padding: 24px 8px;
    margin-bottom: 36px;
  }
}

/* =================== HEADER & NAVIGATION =================== */
header {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(33,67,86, .06);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
header a {
  color: var(--white);
  font-weight: 500;
  letter-spacing: 0.01em;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}
header nav a {
  font-size: 16px;
  transition: color .15s;
}
header nav a:hover {
  color: var(--secondary);
}
header img {
  height: 54px;
  width: auto;
}
.cta-primary {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 28px;
  border-radius: 28px;
  /* Inline shadow for button */
  box-shadow: 0 2px 8px rgba(136,166,181, .08);
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background .19s, color .19s, transform .16s;
  margin-left: 16px;
}
.cta-primary:hover,
.cta-primary:focus {
  background: #6098b3;
  color: var(--white);
  transform: translateY(-2px) scale(1.04);
}
.cta-secondary {
  display: inline-block;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--secondary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 28px;
  border-radius: 28px;
  margin-top: 14px;
  transition: background .19s, color .19s, border-color .19s;
}
.cta-secondary:hover,
.cta-secondary:focus {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}

/* =================== MOBILE NAVIGATION =================== */
.mobile-menu-toggle {
  display: none;
}
@media (max-width: 900px) {
  header nav, .cta-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 1200;
    font-size: 2.1rem;
    padding: 8px 16px;
    background: var(--secondary);
    color: var(--primary);
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(136,183,199,.08);
    cursor: pointer;
    transition: background .16s, color .16s;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: #5fa6bd;
    color: var(--white);
  }
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--primary);
  z-index: 2000;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s cubic-bezier(.6,.18,.35,1.17), opacity .25s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: transparent;
  color: var(--white);
  font-size: 2.2rem;
  border: none;
  align-self: flex-end;
  margin: 28px 32px 12px 0;
  cursor: pointer;
  transition: color .15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 22px 36px 28px 38px;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 20px;
  color: var(--white);
  padding: 12px 0;
  border-radius: 7px;
  transition: background .16s, color .16s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

@media (min-width: 901px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ============= FOOTER ============= */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 0;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding: 36px 20px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer nav a {
  color: var(--secondary);
  font-size: 16px;
  font-weight: 500;
}
footer nav a:hover,
footer nav a:focus {
  color: var(--white);
  text-decoration: underline;
}
footer img {
  height: 44px;
  width: auto;
  margin-bottom: 8px;
}
footer address {
  font-style: normal;
  font-size: 15px;
  color: #cfe4ec;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
footer address a {
  color: var(--white);
  border-bottom: 1px dotted var(--secondary);
  transition: color .14s, border-color .14s;
}
footer address a:hover,
footer address a:focus {
  color: var(--secondary);
  border-color: var(--white);
}
footer address img {
  height: 19px;
  width: auto;
  margin-right: 5px;
  vertical-align: middle;
}
@media (max-width: 880px) {
  footer .container {
    flex-direction: column;
    gap: 25px;
    align-items: flex-start;
    padding: 34px 12px 22px 12px;
  }
}

/*================== BUTTONS ==================*/
button,
a.cta-primary,
a.cta-secondary {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  outline: none;
  border: none;
  cursor: pointer;
}
button:disabled {
  opacity: .58;
  cursor: not-allowed;
}

/* ==================== FLEXBOX PATTERNS =============== */
.feature-grid,
.service-list,
.recent-posts-list,
.tip-cards,
.callout-boxes,
.infoboxes,.testimonial-list,.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.feature-grid > div,
.service-list > div,
.recent-posts-list > div,
.tip-cards > div,
.callout-boxes > div,
.infoboxes > div {
  background: var(--accent);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 6px rgba(33,67,86,.07);
  padding: 26px 22px;
  flex: 1 1 240px;
  min-width: 220px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid img,
.service-list img,
.recent-posts-list img,
.tip-cards img,
.callout-boxes img {
  height: 42px;
  width: 42px;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .feature-grid, .service-list, .recent-posts-list, .tip-cards, .callout-boxes, .infoboxes, .testimonial-list, .testimonial-slider {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div, .service-list > div, .recent-posts-list > div, .tip-cards > div, .callout-boxes > div, .infoboxes > div {
    min-width: 0;
    min-height: 0;
    padding: 16px 12px;
  }
}

/* ========== CARD LAYOUTS ========== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 28px 22px;
  position: relative;
  margin-bottom: 20px;
}

.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: 16px;
  }
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}

.testimonial-card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(33,67,86, .10);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 24px 26px 18px 26px;
  min-width: 240px;
  margin-bottom: 20px;
  border-left: 5px solid var(--secondary);
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.star-rating {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-top: 6px;
}
.star-rating img {
  height: 20px;
  width: 20px;
}
@media (max-width: 768px) {
  .testimonial-card {
    align-items: flex-start;
    padding: 18px 10px 14px 16px;
    min-width: 0;
  }
}

.success-stories {
  margin-top: 36px;
  background: var(--accent);
  padding: 24px 20px;
  border-radius: 8px;
  box-shadow: 0 1px 7px rgba(33,67,86, .09);
  color: var(--primary);
}

.quick-links {
  margin: 10px 0 0 0;
  font-size: 15px;
  color: var(--text-main);
}
.quick-links a {
  text-decoration: underline;
  color: var(--secondary);
  font-weight: 500;
}
.quick-links a:hover {
  color: #34759f;
}

@media (max-width: 768px) {
  .quick-links { font-size: 15px; }
}

.infoboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 16px 0;
}
.infoboxes > div {
  background: #e5ecf0;
  border-radius: 8px;
  padding: 14px 18px;
  color: #1d313e;
  font-size: 15px;
  font-weight: 500;
  flex: 1 1 220px;
  min-width: 160px;
}

/* =========== FORMS (Contact, Newsletter) =========== */
input[type="text"], input[type="email"], textarea {
  padding: 12px 14px;
  border: 1px solid #cfe4ec;
  border-radius: var(--radius-md);
  font-family: inherit;
  color: var(--text-main);
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 20px;
  background: var(--white);
  outline: none;
  transition: border-color .15s;
}
input[type="text"]:focus,input[type="email"]:focus,textarea:focus {
  border-color: var(--secondary);
}
label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--primary);
}

/* =================== SPECIAL BOXES =================== */
.callout-boxes {
  margin-top: 32px;
  gap: 24px;
}
.callout-boxes > div {
  background: #e5edf2;
  border-left: 4px solid var(--secondary);
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(136,183,199,.07);
  border-radius: 7px;
}
.downloadable-checklist {
  margin: 30px 0 10px;
  padding: 15px 18px;
  background: #e9f2f8;
  border-radius: 7px;
  font-weight: 600;
  color: var(--primary);
}

.text-section {
  margin-bottom: 20px;
}
.contact-details {
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--primary);
}
.map-location {
  margin-top: 18px;
  background: #e5edf2;
  border-radius: 6px;
  padding: 13px 20px;
  color: #376c87;
  font-size: 15px;
}

/* ========== FAQ & Process Timeline ========== */
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.faq-list > div {
  background: #ecf3fa;
  border-left: 4px solid var(--secondary);
  border-radius: 8px;
  padding: 17px 18px 14px 20px;
  flex: 1 1 240px;
  min-width: 180px;
  margin-bottom: 10px;
}
@media (max-width: 700px) {
  .faq-list { flex-direction: column; gap: 14px; }
  .faq-list > div { min-width:0; }
}
.process-timeline {
  margin: 30px 0 0 0;
  padding: 18px 19px;
  background: #e9f2f8;
  border-radius: var(--radius-md);
  color: #30495a;
}
.process-timeline ul {
  margin: 0 0 0 1em;
}

/* ========== TYPOGRAPHY ========== */
p, ul, ol, li, label {
  color: var(--text-light);
  font-size: 16px;
}
.section ul, .section ol {
  margin-bottom: 10px;
}
.section li {
  margin-bottom: 7px;
}
.section h2 {
  margin-top: 8px;
  margin-bottom: 22px;
}
.section h3 {
  margin-bottom: 10px;
}
.section h4 {
  margin-bottom: 9px;
}

/* ========== TESTIMONIAL: CONTRAST ========== */
.testimonial-card {
  background: var(--white);
  color: #18313f;
}
.testimonial-card p {
  color: #25455c;
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-style: italic;
}
.testimonial-card strong {
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
  margin-top: 6px;
}

/* ========== SPACING/ALIGNMENT (MANDATORY) ========== */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }

/* ================ ANIMATION & TRANSITIONS ================= */
.cta-primary,.cta-secondary, button, .mobile-menu, .mobile-menu-toggle, .testimonial-card, .card {
  transition: all var(--transition);
}

/* ================ COOKIE CONSENT BANNER ================ */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #25455c;
  color: #fff;
  z-index: 4000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 20px 24px;
  box-shadow: 0 -2px 16px rgba(33,67,86,0.12);
  font-size: 16px;
  border-radius: 18px 18px 0 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity .22s, transform .29s;
}
.cookie-banner.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 17px;
}
.cookie-banner button,
.cookie-banner .cookie-settings-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border-radius: 20px;
  padding: 10px 24px;
  font-size: 15px;
  border: none;
  cursor: pointer;
  margin: 0 0.1em;
  box-shadow: 0 1px 3px rgba(33,67,86,0.04);
}
.cookie-banner .accept {
  background: var(--secondary);
  color: var(--primary);
  border: none;
}
.cookie-banner .accept:hover,
.cookie-banner .accept:focus {
  background: #5fa6bd;
  color: #fff;
}
.cookie-banner .reject {
  background: transparent;
  color: var(--white);
  border: 1.5px solid #7da3b8;
}
.cookie-banner .reject:hover,
.cookie-banner .reject:focus {
  background: #294b64;
}
.cookie-banner .cookie-settings-btn {
  background: transparent;
  color: var(--secondary);
  border: none;
  text-decoration: underline;
}
.cookie-banner .cookie-settings-btn:hover {
  color: #56b8e7;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 10px;
    font-size: 15px;
    border-radius: 10px 10px 0 0;
  }
  .cookie-banner .cookie-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
}

/* === Cookie Modal === */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; width:100vw; height:100vh;
  background: rgba(33,67,86,0.4);
  z-index: 4010;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  color: #25455c;
  padding: 38px 30px 28px 30px;
  border-radius: 17px;
  max-width: 370px;
  width: 98vw;
  box-shadow: 0 5px 25px rgba(33,67,86,0.15);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transform: translateY(-60px) scale(0.98);
  transition: transform .31s cubic-bezier(.4,1.7,.7,.7);
}
.cookie-modal-overlay.active .cookie-modal {
  transform: translateY(0) scale(1);
}
.cookie-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}
.cookie-modal ul {
  padding-left: 1.2em;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  margin-bottom: 8px;
}
.cookie-modal-close {
  position: absolute;
  right: 15px;
  top: 15px;
  background: transparent;
  border: none;
  font-size: 1.6em;
  color: #7da3b8;
  cursor: pointer;
}
.cookie-modal-close:hover {
  color: var(--primary);
}
.cookie-modal .cookie-switch {
  width: 38px;
  height: 22px;
  background: #e6f0f6;
  border-radius: 12px;
  position: relative;
  margin-left: 8px;
  transition: background .18s;
}
.cookie-modal .cookie-switch input[type="checkbox"] {
  display: none;
}
.cookie-modal .cookie-switch .slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: var(--secondary);
  border-radius: 50%;
  transition: left .19s, background .19s;
}
.cookie-modal .cookie-switch input[type="checkbox"]:checked + .slider {
  left: 19px;
  background: #2b5b78;
}
.cookie-modal .always-on {
  color: #5da4c5;
  font-weight: 600;
  margin-left: 11px;
  font-size: 0.97em;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
.cookie-modal .cookie-modal-actions button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 8px 24px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
.cookie-modal .cookie-modal-actions .accept {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-modal .cookie-modal-actions .reject {
  background: transparent;
  border: 1.5px solid #7da3b8;
  color: var(--primary);
}

@media (max-width: 480px) {
  .cookie-modal { padding: 23px 8px 16px 10px; }
}

/* ===================== UTILS ================== */
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.mt-40 { margin-top: 40px; }
.text-center { text-align:center; }
.rounded { border-radius: 50%; }

/* ===================== ANIMATIONS ================== */
@keyframes fadeInUp {
  from { opacity:0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.testimonial-card {
  animation: fadeInUp 0.55s cubic-bezier(.45,1.3,.52,1.06) both;
}
.card, .feature-grid > div, .service-list > div {
  animation: fadeInUp 0.4s cubic-bezier(.45,1.3,.52,1.06) both;
}

/* ==================== END ==================== */
