/* ===========================================================
   CSS RESET & NORMALIZE – Ensures cross-browser consistency
   =========================================================== */
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;
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #F3F3F3;
  color: #163855;
  font-family: 'Open Sans', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
a {
  color: #E6B800;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #163855;
  text-decoration: underline;
}
ul, ol {
  list-style-position: inside;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}

/* ============================
   FONT – playful dynamic
   ============================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;600;700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 900;
  color: #163855;
  line-height: 1.13;
}
h1 {
  font-size: 2.375rem; /* 38px */
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;   /* 32px */
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem; /* 20px */
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.125rem; /* 18px */
}
p, li, span, label, a, address {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: #163855;
}
strong {
  font-weight: 700;
}

/* Playful accent text styles */
h1, h2, h3 {
  text-shadow: 0px 3px 10px rgba(230,184,0,0.08);
}

/* =============================
   COLORS & CUSTOM PROPERTIES
   ============================= */
:root {
  --color-primary: #163855;
  --color-secondary: #E6B800;
  --color-accent: #F3F3F3;
  --color-dark: #11223A;
  --color-light: #FFFFFF;
  --color-link: #E6B800;
  --color-success: #6cd36d;
  --color-danger: #fa5a5a;
}

/* =============================
   LAYOUT CONTAINER
   ============================= */
.container {
  width: 100%;
  max-width: 1180px;
  padding: 0 20px;
  margin: 0 auto;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* =============================
   SECTION SPACING & ALIGNMENT
   ============================= */
section {
  background: var(--color-light);
  border-radius: 32px;
  box-shadow: 0 4px 32px rgba(22,56,85,0.06);
  margin-bottom: 60px;
  padding: 40px 20px;
  transition: box-shadow 0.3s;
  position: relative;
}
section:last-child {
  margin-bottom: 0;
}

/* =============================
   HEADER & MAIN NAVIGATION
   ============================= */
header {
  background: var(--color-primary);
  padding: 0;
  z-index: 100;
  position: relative;
}
header .container {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
header img {
  height: 48px;
}
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  color: var(--color-light);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 18px;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--color-light);
  color: var(--color-primary);
}
.btn-primary {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  font-size: 1rem;
  padding: 12px 32px;
  border: none;
  border-radius: 24px 8px 24px 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px 0 rgba(230,184,0,0.11);
  margin-left: 16px;
  transition: background 0.21s, box-shadow 0.21s, transform 0.2s;
  display: inline-block;
  letter-spacing: 0.04em;
}
.btn-primary:hover, .btn-primary:focus {
  background: #FFD633;
  color: var(--color-primary);
  box-shadow: 0 6px 22px 0 rgba(230,184,0,0.18);
  transform: translateY(-2px) scale(1.03) rotate(-2deg);
}
.btn-secondary {
  background: var(--color-primary);
  color: var(--color-light);
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  font-size: 1rem;
  padding: 12px 32px;
  border: none;
  border-radius: 8px 24px 8px 24px;
  cursor: pointer;
  box-shadow: 0 4px 14px 0 rgba(22,56,85,0.08);
  margin-top: 16px;
  transition: background 0.21s, box-shadow 0.21s, transform 0.2s;
  display: inline-block;
  letter-spacing: 0.03em;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #204f80;
  color: var(--color-secondary);
  box-shadow: 0 10px 32px 0 rgba(22,56,85,0.14);
  transform: translateY(-2px) scale(1.04) rotate(1deg);
}

/* =============================
   MOBILE NAVIGATION
   ============================= */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-size: 2rem;
  border: none;
  padding: 12px 16px;
  border-radius: 50%;
  margin-left: 10px;
  cursor: pointer;
  z-index: 102;
  transition: background 0.2s, transform 0.19s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #FFD633;
  transform: scale(1.14) rotate(-6deg);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: var(--color-primary);
  color: var(--color-light);
  z-index: 1110;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-110%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(.56,1.48,.33,1), opacity 0.33s;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  margin: 28px 0 0 24px;
  background: transparent;
  color: var(--color-secondary);
  font-size: 2.2rem;
  border: none;
  cursor: pointer;
  align-self: flex-start;
  transition: color 0.19s, background 0.19s, transform 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #FFD633;
  background: rgba(230,184,0,0.07);
  border-radius: 50%;
  transform: rotate(5deg) scale(1.08);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 56px 0 0 32px;
}
.mobile-nav a {
  color: var(--color-secondary);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  background: none;
  border: none;
  border-radius: 24px;
  padding: 10px 0;
  transition: color 0.2s, background 0.21s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a.active {
  color: var(--color-light);
  background: rgba(230,184,0,0.11);
  padding-left: 14px;
}

/* Hamburger only visible on mobile */
@media (max-width: 1020px) {
  .main-nav, .btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1021px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =============================
   FLEX COMPONENTS, CARDS, GRIDS
   ============================= */
.card-container, .feature-grid, .service-list, .service-grid, .benefit-highlights ul, .customer-benefits ul, .next-steps-info ul, .logo-grid, .footer-nav{
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card, .feature-grid > div, .service-list > div, .service-grid > div, .blog-teaser-cards > div, .project-listings > div {
  background: var(--color-accent);
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(230,184,0,0.14);
  padding: 28px 24px 22px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 15px;
  min-width: 230px;
  flex: 1 1 270px;
  transition: box-shadow 0.16s, transform 0.19s;
  cursor: pointer;
}
.card:hover, .feature-grid > div:hover, .service-list > div:hover, .service-grid > div:hover, .blog-teaser-cards > div:hover, .project-listings > div:hover {
  box-shadow: 0 6px 28px rgba(22,56,85,0.17);
  background: #fffbe4;
  transform: translateY(-3px) scale(1.017) rotate(-1.2deg);
}
.card img, .feature-grid img {
  width: 39px;
  height: 39px;
  margin-bottom: 10px;
}
.project-listings {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  justify-content: space-between;
}
.project-listings > div {
  min-width: 280px;
  flex: 1 1 320px;
}
.logo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 18px;
}
.logo-grid img {
  max-height: 52px;
  min-width: 80px;
  filter: drop-shadow(0 1px 6px rgba(22,56,85,0.08));
}

.blog-teaser-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}
.blog-teaser-cards > div {
  flex: 1 1 260px;
  margin-bottom: 20px;
  min-width: 210px;
}
.blog-teaser-cards a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 700;
  transition: color 0.19s;
}
.blog-teaser-cards a:hover {
  color: var(--color-secondary);
}

/********************
 * FLEX LAYOUT ROLES
 ********************/
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 260px;
}
.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;
  background: #fffbe4;
  border-radius: 20px;
  box-shadow: 0 2px 14px rgba(22,56,85,0.10);
  margin-bottom: 22px;
  font-size: 1.085rem;
  color: #11223A;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  min-width: 200px;
}
.testimonial-card p {
  color: #163855;
  margin-bottom: 8px;
}
.testimonial-card strong {
  color: var(--color-secondary);
  font-weight: 900;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.benefit-highlights ul,
.customer-benefits ul,
.next-steps-info ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 10px;
}
.benefit-highlights ul li,
.customer-benefits ul li,
.next-steps-info ul li {
  background: #F3F3F3;
  color: #163855;
  border-radius: 10px;
  padding: 8px 20px;
  font-weight: 600;
}

/********************
 * TESTIMONIALS SLIDER EMULATION
 ********************/
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 4px;
}

/********************
 * MISC CONTENT STYLES
 ********************/
.text-section {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.text-section ul, .text-section ol {
  margin-left: 26px;
  margin-bottom: 16px;
}
.text-section li {
  padding-left: 0;
  margin-bottom: 5px;
}
address {
  font-style: normal;
  background: #FAFAF5;
  border-radius: 13px;
  padding: 20px 18px 16px 18px;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}
.notice {
  background: #FFF4BB;
  color: #163855;
  border-left: 6px solid var(--color-secondary);
  border-radius: 6px;
  padding: 12px 18px;
  margin-top: 14px;
}

/********************
 * FOOTER
 ********************/
footer {
  background: var(--color-primary);
  color: var(--color-light);
  padding: 48px 0 32px 0;
  margin-top: 40px;
  border-radius: 36px 36px 0 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 38px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  margin-bottom: 10px;
}
.footer-nav nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: var(--color-secondary);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  transition: color 0.21s;
}
.footer-nav a:hover {
  color: var(--color-light);
  text-decoration: underline;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.footer-brand img {
  height: 38px;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 6px;
}
.footer-social a img {
  height: 28px; width: 28px;
  filter: drop-shadow(0 2px 4px rgba(230,184,0,0.11));
  transition: filter 0.18s, transform 0.21s;
}
.footer-social a:hover img {
  filter: drop-shadow(0 7px 11px rgba(255,214,51,0.18));
  transform: scale(1.08) rotate(-5deg);
}
.footer-contact-details {
  color: #FFC700;
  font-size: 0.99rem;
}
.footer-contact-details p {
  color: #FFD633;
}

/********************
 * NEWSLETTER, MAP, ETC
 ********************/
.newsletter-placeholder {
  background: #f6ffeb;
  color: #163855;
  border-left: 3px solid #6cd36d;
  border-radius: 6px;
  padding: 14px 22px;
  margin-top: 16px;
  font-size: 1.1rem;
}
.map-section {
  background: #e3edff;
  border-radius: 8px;
  padding: 16px;
}
.next-steps-info {
  margin-top: 12px;
}

/********************
 * COOKIE CONSENT BANNER & MODAL
 ********************/
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 30px;
  background: #fffbe4;
  color: #163855;
  border-radius: 20px;
  box-shadow: 0 6px 30px rgba(230,184,0,0.24);
  padding: 26px 22px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 2200;
  align-items: flex-start;
  animation: banner-fadein 0.6s cubic-bezier(.47,1.64,.41,.8) both;
}
@keyframes banner-fadein {
  from { transform: translateY(200px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 8px;
}
.cookie-banner button {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  border: none;
  outline: none;
  border-radius: 13px;
  padding: 8px 16px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s, transform 0.16s;
}
.cookie-banner .accept {
  background: var(--color-success);
  color: #163855;
}
.cookie-banner .accept:hover {
  background: #9cec87;
  transform: translateY(-1px) scale(1.08);
}
.cookie-banner .reject {
  background: var(--color-danger);
  color: #fff;
}
.cookie-banner .reject:hover {
  background: #ff736b;
  transform: scale(1.07) rotate(-1deg);
}
.cookie-banner .settings {
  background: var(--color-secondary);
  color: #163855;
}
.cookie-banner .settings:hover {
  background: #fff3b0;
  transform: scale(1.04);
}

/* Cookie MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(22,56,85,0.43);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.32s;
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  min-width: 310px;
  max-width: 97vw;
  background: #fffbe4;
  color: #163855;
  border-radius: 19px;
  box-shadow: 0 13px 55px rgba(22,56,85,0.23);
  padding: 38px 26px 30px 26px;
  position: relative;
  animation: cookie-slidein 0.43s cubic-bezier(.56,1.48,.33,1) both;
}
@keyframes cookie-slidein {
  from { transform: translateY(-90px) scale(.85); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 15px;
}
.cookie-modal .modal-close {
  position: absolute;
  right: 13px;
  top: 15px;
  background: none;
  border: none;
  color: #E6B800;
  font-size: 1.6rem;
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-modal .modal-close:hover {
  color: #163855;
}
.cookie-categories {
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-categories label {
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cookie-categories input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 20px; height: 20px; margin-right: 7px;
}
.cookie-categories .essential {
  color: var(--color-dark);
  opacity: .85;
}
.cookie-modal .modal-actions {
  margin-top: 21px;
  display: flex;
  gap: 15px;
}
.cookie-modal .modal-actions button {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  padding: 8px 18px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-modal .accept {
  background: var(--color-success);
}
.cookie-modal .reject {
  background: var(--color-danger);
  color: #fff;
}
.cookie-modal .settings {
  background: var(--color-secondary);
  color: #163855;
}

/********************
 * ANIMATION & FUN EFFECTS
 ********************/
section:hover {
  box-shadow: 0 9px 34px 0 rgba(22,56,85,0.16);
}
.card:before, .feature-grid > div:before, .service-grid > div:before {
  content: '';
  display: block;
  width: 44px;
  height: 44px;
  background: var(--color-secondary);
  opacity: 0.15;
  border-radius: 50%;
  position: absolute;
  top: -20px;
  right: -18px;
  z-index: 0;
  pointer-events: none;
  animation: playful-pulse 2.4s infinite alternate ease-in-out;
}
@keyframes playful-pulse {
  from { transform: scale(1) rotate(0deg); }
  to { transform: scale(1.18) rotate(7deg); }
}
.card:hover:before,
.feature-grid > div:hover:before,
.service-grid > div:hover:before {
  opacity: 0.25;
  animation-delay: .2s;
}

/********************
 * RESPONSIVE DESIGN
 ********************/
@media (max-width: 1020px) {
  .feature-grid, .service-list, .service-grid, .project-listings, .card-container, .content-grid, .testimonial-slider, .blog-teaser-cards {
    flex-direction: column;
    gap: 24px;
  }
  section, .section {
    padding: 28px 8px;
    border-radius: 18px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.25rem;
  }
  .container {
    padding: 0 7px;
  }
  .feature-grid, .service-list, .service-grid, .project-listings, .card-container, .content-grid, .testimonial-slider, .blog-teaser-cards, .logo-grid {
    flex-direction: column;
    gap: 19px;
  }
  section, .section {
    padding: 17px 2px;
    border-radius: 10px;
    margin-bottom: 35px;
  }
  .btn-primary, .btn-secondary {
    min-width: 100%;
    text-align: center;
    margin-left: 0;
    padding: 12px 0;
    font-size: 1.09rem;
  }
  .main-nav, .btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 22px;
    top: 16px;
  }
  header .container {
    padding: 0 10px;
  }
  .logo-grid img {
    min-width: 50px;
    max-height: 36px;
  }
  .footer-nav {
    gap: 19px;
    flex-direction: column;
  }
}
@media (max-width: 440px) {
  .footer-brand img {
    height: 24px;
  }
  .mobile-menu {
    padding: 0;
  }
  .cookie-banner {
    left: 3px; right: 3px;
    padding: 16px 3vw 10px 3vw;
  }
  .cookie-modal {
    min-width: 0; padding: 23px 6vw 16px 6vw;
  }
}

/**************************************
 * PLAYFUL TYPOGRAPHY
 **************************************/
h1, h2 { letter-spacing: 0.01em; }
section h2 {
  position: relative;
  z-index: 1;
  padding-bottom: 3px;
}
section h2:after {
  content: '';
  display: inline-block;
  width: 50px;
  height: 7px;
  background: var(--color-secondary);
  border-radius: 6px;
  margin-left: 10px;
  vertical-align: middle;
  opacity: 0.33;
}

/**************************************
 * MISC
 **************************************/
::-webkit-input-placeholder { color: #aaa; opacity: 1; }
:-ms-input-placeholder { color: #aaa; opacity: 1; }
::placeholder { color: #aaa; opacity: 1; }

/* Hide some scrollbars for overlays */
.mobile-menu, .cookie-modal-overlay {
  overscroll-behavior: contain;
}

/* Remove focus outlines for mouse users but keep for keyboard users */
body :focus:not(:focus-visible) {
  outline: none;
}

/* Prevent content overlap */
body {
  padding-bottom: 120px; /* for fixed cookie banner on mobile */
}

/**************************************
 * END
 **************************************/
