/* ========================= 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,main,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;
}
html {
  font-size: 16px;
}
body {
  line-height: 1.5;
  background: #F4F8FA;
  color: #151B26;
  min-height: 100vh;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-weight: 400;
}
img, picture {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #225A7C;
  outline-offset: 2px;
}
ul,ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  outline: none;
  border: none;
  background: none;
  box-sizing: inherit;
}

/* ========================= BRAND COLORS ========================= */ 
:root {
  --primary: #225A7C;
  --primary-dark: #163753;
  --secondary: #F4F8FA;
  --accent: #8C8257;
  --accent-light: #AFA98D;
  --vibrant1: #F24B6A;
  --vibrant2: #43D2FF;
  --vibrant3: #FFC23C;
  --vibrant4: #13BBAF;
  --white: #FFFFFF;
  --black: #151B26;
  --gray: #e1e8ec;
  --shadow: rgba(34,90,124,0.06);
  --shadow-lift: rgba(34,90,124,0.13);
}

/* =================== TYPOGRAPHY =================== */ 
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Playfair+Display:wght@700&display=swap');

body {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  background: var(--secondary);
  color: var(--black);
  letter-spacing: 0.015em;
}
h1, .hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 18px;
  letter-spacing: .01em;
}
h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--vibrant1);
  line-height: 1.2;
  letter-spacing: .005em;
}
h3 {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 1.35rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-weight: 700;
}
p, li, blockquote, ul, ol, .cta-text, .short-intro, .subheadline {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 1.125rem;
  color: var(--black);
  margin-bottom: 16px;
}
blockquote {
  font-style: italic;
  color: var(--primary-dark);
  background: var(--gray);
  border-left: 6px solid var(--vibrant2);
  padding: 18px 24px 18px 26px;
  margin: 10px 0 10px 0;
  border-radius: 8px;
}

strong, b {
  font-weight: bold;
  color: var(--primary);
}

.cta-text, .subheadline, .short-intro, .tagline {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

/* === Display contrast for testimonials === */
.testimonial-card blockquote, .testimonial-card {
  color: #151B26;
  background: #FFF;
}

/* ============== CONTAINER ============== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

/* =================== HEADER / NAV ================ */
header {
  width: 100%;
  background: var(--white);
  padding: 0;
  box-shadow: 0 6px 30px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 30px;
  padding: 16px 20px;
  background: var(--white);
}
.main-nav img {
  height: 48px;
  width: auto;
  margin-right: 20px;
}
.main-nav a {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--primary);
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--vibrant2);
  color: var(--white);
}

.main-nav .cta.primary {
  background: var(--vibrant1);
  color: var(--white);
  border-radius: 32px 12px 32px 12px;
  padding: 10px 24px;
  margin-left: 14px;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 2px 18px var(--shadow-lift);
  transition: background 0.22s, transform 0.18s;
}
.main-nav .cta.primary:hover, .main-nav .cta.primary:focus {
  background: var(--primary);
  transform: translateY(-2px) scale(1.045);
  color: var(--white);
}

/* ========= MOBILE NAVIGATION ========== */
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  color: var(--primary);
  background: #FFF;
  border-radius: 10px;
  border: 2px solid var(--primary);
  padding: 6px 16px 7px 16px;
  margin-left: auto;
  transition: background .13s, color .13s, border .13s;
  cursor: pointer;
  z-index: 1201;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--vibrant2);
  color: var(--white);
  outline: none;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,90,124,0.94);
  color: var(--white);
  z-index: 1200;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transition: transform .33s cubic-bezier(.83,.01,.3,1.01);
  transform: translateX(100%);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  animation: slideInRight .33s cubic-bezier(.83,.01,.3,1.01);
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
.mobile-menu-close {
  font-size: 2rem;
  color: var(--white);
  background: transparent;
  border: 2px solid var(--white);
  border-radius: 10px;
  padding: 7px 20px 8px 20px;
  margin: 22px 20px 10px auto;
  cursor: pointer;
  transition: background .17s, color .17s, border .13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--vibrant1);
  color: var(--white);
  border-color: var(--vibrant1);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin: 50px 22px 0 32px;
  width: min(90vw,400px);
}
.mobile-nav a {
  font-size: 1.2rem;
  color: var(--white);
  font-weight: 700;
  padding: 13px 8px 13px 0;
  border-radius: 0 18px 18px 0;
  transition: background 0.19s, color 0.19s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--vibrant2);
  color: var(--vibrant1);
}

/* Hide main nav and show menu toggle on mobile */
@media (max-width: 1100px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 14px;
  }
}
@media (min-width: 1101px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ================================= SECTIONS (MANDATORY SPACING) ============================= */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
  background: none;
}
section:last-child, .section:last-child {
  margin-bottom: 0;
}

/* Hero Section */
.hero {
  background: linear-gradient(90deg, var(--primary) 66%, var(--vibrant3) 100%);
  background: var(--primary);
  color: var(--white);
  min-height: 340px;
  width: 100%;
  border-radius: 0 0 38px 38px;
  box-shadow: 0 12px 40px -13px var(--shadow-lift);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  margin-bottom: 44px;
  padding: 52px 0 52px 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero .content-wrapper {
  color: var(--white);
  align-items: flex-start;
}
.hero h1, .hero h2 {
  color: var(--white);
  text-shadow: 0 1px 8px rgba(22, 55, 83, 0.12);
}
.hero .cta.primary {
  margin-top: 14px;
}

/* Highlights Features (for index) */
.feature-grid, .feature-list, .service-list, .post-category-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.feature-item, .service-item, .category-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #FFF;
  border-radius: 18px;
  box-shadow: 0 4px 20px var(--shadow);
  padding: 28px 20px 22px 20px;
  min-width: 220px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  position: relative;
  border: 3px solid var(--vibrant2);
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.14s;
}
.feature-item:hover, .service-item:hover, .category-item:hover {
  border-color: var(--vibrant1);
  box-shadow: 0 9px 32px var(--shadow-lift), 0 1.5px 14px var(--vibrant2);
  transform: translateY(-6px) scale(1.025);
}
.feature-item img, .service-item img, .category-item img {
  width: 48px;
  min-height: 48px;
  margin-bottom: 10px;
}
.feature-item h3, .service-item h3, .category-item h3 {
  color: var(--vibrant1);
  font-size: 1.19rem;
}

/* ======= CARDS ======= */
.card,
.success .content-wrapper,
.card-container .card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  background: #FFF;
  border-radius: 22px;
  margin-bottom: 20px;
  padding: 34px 22px;
  box-shadow: 0 1px 24px 2px var(--shadow-lift);
  border: 2px solid var(--accent-light);
  position: relative;
  min-width: 200px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* ================ CONTENT FLEX LAYOUTS ================ */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section, .text-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section, .text-section, .content-grid {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 16px;
  }
  .feature-grid, .feature-list, .service-list, .card-container, .post-category-grid {
    flex-direction: column;
    gap: 18px;
  }
}

/*********** Testimonials ***********/
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 24px 26px;
  background: var(--secondary);
  border: 2px solid var(--vibrant2);
  border-radius: 18px;
  box-shadow: 0 3px 19px var(--shadow);
  min-width: 240px;
  max-width: 370px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, border 0.16s, transform 0.13s;
}
.testimonial-card:hover {
  box-shadow: 0 7px 35px var(--vibrant2), 0 1.5px 10px var(--accent);
  border-color: var(--vibrant1);
  transform: translateY(-5px) scale(1.017);
}
.testimonial-rating {
  display: flex;
  gap: 3px;
}
.testimonial-author {
  color: var(--vibrant4);
  font-weight: bold;
  align-self: flex-end;
  margin-top: -8px;
  font-size: 0.98rem;
}

/*********** Lists, Feature List etc ***********/
ul li, ol li {
  position: relative;
  margin-bottom: 11px;
  padding-left: 28px;
  color: var(--primary-dark);
  line-height: 1.7;
  font-size: 1.07rem;
}
ul li img {
  position: absolute;
  left: 0;
  top: 1.5px;
  width: 22px;
  height: 22px;
}
ul li strong {
  color: var(--vibrant1);
  font-size: 1.04em;
}

/*********** FORM, BUTTONS, CTA ***********/
.cta, .cta.primary, .cta.secondary {
  display: inline-block;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  border-radius: 32px 12px 32px 12px;
  padding: 14px 38px;
  transition: background 0.19s, color 0.19s, transform 0.14s, box-shadow .19s;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 14px var(--vibrant3);
  text-transform: uppercase;
  margin-top: 10px;
  margin-bottom: 14px;
  background: var(--vibrant1);
  color: var(--white);
}
.cta.secondary {
  background: var(--vibrant2);
  color: var(--black);
  box-shadow: 0 2px 10px var(--primary-dark);
}
.cta.primary:hover, .cta.secondary:hover, .cta:focus {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 4px 22px var(--vibrant1), 0 0.75px 8px var(--primary-dark);
}

/* =========== Footer =========== */
footer {
  background: var(--primary);
  color: var(--secondary);
  padding: 32px 0 18px 0;
  width: 100%;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -6px 33px 0 var(--shadow-lift);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.footer-nav a {
  color: var(--vibrant3);
  font-size: 1rem;
  padding: 7px 9px;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.17s, color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.footer-contact {
  text-align: center;
  font-size: 1rem;
  color: var(--secondary);
  line-height: 1.6;
}

/* ================== Cookie Consent Banner ================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--vibrant1);
  color: var(--white);
  z-index: 20000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  box-shadow: 0 -3px 15px var(--primary-dark);
  padding: 25px 8px 25px 8px;
  transition: opacity .29s, transform .29s;
}
.cookie-banner .cookie-message {
  font-size: 1.08rem;
  margin-right: 22px;
  max-width: 350px;
  line-height: 1.6;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 13px;
  align-items: center;
}
.cookie-banner button {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-weight: 700;
  border-radius: 22px 8px 22px 8px;
  background: var(--primary);
  color: var(--white);
  padding: 11px 22px;
  margin: 0 3px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.17s;
}
.cookie-banner button.cookie-reject {
  background: var(--vibrant2);
  color: var(--primary);
}
.cookie-banner button.cookie-settings {
  background: var(--accent);
  color: var(--white);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #fff;
  color: var(--primary);
  transform: scale(1.07);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(110%);
}

/* Cookie modal popup */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(34,90,124,0.91);
  z-index: 20001;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal-content {
  background: var(--white);
  color: var(--primary-dark);
  padding: 38px 32px 32px 32px;
  border-radius: 24px;
  box-shadow: 0 10px 46px var(--shadow-lift);
  min-width: 270px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: modalPopin .35s cubic-bezier(.87,.01,.20,1.12);
}
@keyframes modalPopin {
  from { transform: scale(.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal-content h3 {
  font-size: 1.25rem;
  color: var(--primary);
}
.cookie-modal-content .cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-modal-content label {
  font-size: 1rem;
}
.cookie-modal-content input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--vibrant3);
}
.cookie-modal-close {
  position: absolute;
  right: 19px;
  top: 18px;
  background: none;
  border: none;
  color: var(--primary-dark);
  font-size: 1.45rem;
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--vibrant1);
}

/* ================= SUCCESS PAGE =============== */
.success h1 {
  color: var(--primary);
  margin-bottom: 22px;
}
.success p {
  font-size: 1.18rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
}
.success .cta.primary {
  margin-top: 14px;
}

/* ============= Utility classes ============== */
.mt-30 { margin-top: 30px !important; }
.mb-0 { margin-bottom: 0!important; }
.text-center { text-align: center !important; }
.flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.gap-24 { gap: 24px !important; }
.gap-16 { gap: 16px !important; }

/************* RESPONSIVE LAYOUTS *************/
@media (max-width: 900px) {
  .main-nav {
    gap: 15px;
    padding: 13px 8px;
    font-size: 0.95rem;
  }
  .container {
    max-width: 99vw;
    padding: 0 8px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  h1, .hero h1 {
    font-size: 2.1rem;
  }
  .hero {
    min-height: 200px;
    padding: 36px 0 36px 0;
    border-radius: 0 0 18px 18px;
    margin-bottom: 30px;
  }
  .container {
    padding: 0 5px;
  }
  .footer-nav {
    gap: 13px;
    font-size: 0.96rem;
  }
  section, .section {
    margin-bottom: 38px;
    padding: 22px 7px;
  }
  .card, .success .content-wrapper, .feature-item, .service-item, .testimonial-card {
    padding: 18px 10px;
    min-width: unset;
  }
  .feature-item, .service-item, .testimonial-card {
    width: 100%;
    align-items: flex-start;
  }
  .footer-contact {
    font-size: 0.98rem;
    line-height: 1.45;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-banner .cookie-message {
    margin-bottom: 14px;
    margin-right: 0;
  }
}
@media (max-width: 450px) {
  html {
    font-size: 13.5px;
  }
  .cta,
  .cta.primary, .cta.secondary {
    padding: 12px 12vw;
    font-size: 1.07rem;
  }
  .main-nav img {
    height: 38px;
  }
}

/* ===== Scrollbar for modern/desktop browsers ===== */
::-webkit-scrollbar {
  width: 8px;
  background: var(--secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 6px;
}

/* =============== Vibrant energy effects ============== */
@media (hover: hover) {
  .feature-item:hover:before, .service-item:hover:before {
    content: '';
    position: absolute;
    left: -14px;top: -14px;right: -14px;bottom: -14px;
    pointer-events: none;
    border-radius: 28px;
    z-index: 0;
    background: rgba(67,210,255,.05);
    mix-blend-mode: lighten;
    animation: feature-glow 1.1s linear;
  }
  @keyframes feature-glow {
    from { opacity: 0.24; }
    to   { opacity: 0.07; }
  }
}

/* === Accessibility: reduce motion preference === */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
