/* -----------------------------------------------------
   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,
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-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}
body {
  background: #FAF3DD;
  color: #293949;
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #293949;
  text-decoration: none;
  transition: color 0.16s;
}
a:focus {
  outline: 2px solid #D6E6F2;
  outline-offset: 3px;
}
ul, ol {
  margin-left: 1.2em;
  padding-left: 1em;
}
ul.value-list {
  list-style-type: square;
}
button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
input, textarea, select {
  font: inherit;
  border-radius: 0;
  outline: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #293949;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; line-height: 1.15; }
h3 { font-size: 1.25rem; margin-bottom: 12px; line-height: 1.2; }
h4, h5, h6 { font-size: 1rem; margin-bottom: 8px; }
p, ul, ol, blockquote {
  margin-bottom: 16px;
}
strong { font-weight: 700; color: #1A2533; }
blockquote {
  font-family: 'Montserrat', Arial, sans-serif;
  font-style: italic;
  color: #293949;
  border-left: 4px solid #D6E6F2;
  padding-left: 18px;
  margin-bottom: 12px;
}
pre, code {
  background: #F4F6F8;
  font-family: 'Fira Mono', 'Consolas', monospace;
  font-size: 15px;
  border-radius: 4px;
  padding: 2px 6px;
}

/* -----------------------------------------------------
   GEOMETRIC & STRUCTURED BASE UTILITIES
----------------------------------------------------- */
:root {
  --clr-primary: #293949;
  --clr-secondary: #D6E6F2;
  --clr-accent: #FAF3DD;
  --clr-white: #fff;
  --clr-shadow: rgba(41,57,73,0.07);
  --radius-m: 12px;
  --radius-l: 24px;
  --shadow-geom: 0 2px 12px var(--clr-shadow);
  --transition-main: 0.23s cubic-bezier(.54,.23,.25,1.08);
  --border-width: 2px;
  --focus-ring: 0 0 0 2px #D6E6F2;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px;
}
main {
  min-height: 70vh;
  margin-top: 24px;
  margin-bottom: 60px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.features-grid, .service-highlights, .feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.features-grid {
  justify-content: flex-start;
  align-items: stretch;
}
.feature {
  background: var(--clr-secondary);
  border-radius: var(--radius-m);
  padding: 24px;
  min-width: 210px;
  max-width: 300px;
  flex: 1 1 210px;
  box-shadow: var(--shadow-geom);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  border: var(--border-width) solid #E3EFFB;
  transition: transform var(--transition-main), box-shadow var(--transition-main);
}
.feature img {
  width: 40px;
  height: 40px;
}
.feature:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 6px 28px rgba(41,57,73,0.12);
}

.service-highlights {
  gap: 24px;
}
.service-item {
  background: #fff;
  border-radius: var(--radius-m);
  border: var(--border-width) solid #F1EEDA;
  box-shadow: var(--shadow-geom);
  padding: 24px;
  flex: 1 1 210px;
  margin-bottom: 20px;
}

.tips-list, .project-list, .value-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.trick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.problem-solution-block {
  border: var(--border-width) solid #E8EFFD;
  background: #fff;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-geom);
  padding: 20px 24px;
  margin-bottom: 20px;
  flex: 1 1 320px;
  min-width: 260px;
}

/*******************
  Page Cards, Callouts, CTA
*******************/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-geom);
  margin-bottom: 20px;
  padding: 28px 24px;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/*******************
  Features & Testimonial Styles
*******************/
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--clr-accent);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-geom);
  border: var(--border-width) solid #E6DFC1;
}
.testimonial-card blockquote {
  font-size: 1.12rem;
  color: #1a2533;
  border-left: 4px solid #D6E6F2;
  margin-bottom: 0;
  background: transparent;
  padding-left: 18px;
}
.testimonial-card p {
  color: #293949;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/*******************
   CTA & BUTTONS
*******************/
.cta-button {
  background: var(--clr-primary);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius-m);
  padding: 14px 34px;
  margin-top: 12px;
  transition: background var(--transition-main), box-shadow var(--transition-main), transform var(--transition-main);
  box-shadow: var(--shadow-geom);
  border: none;
  text-transform: uppercase;
  display: inline-block;
  position: relative;
}
.cta-button:hover, .cta-button:focus {
  background: #425973;
  color: #fff;
  transform: translateY(-2px) scale(1.035);
  box-shadow: 0 8px 24px rgba(41,57,73,0.13);
}

.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-primary);
  color: #fff;
  font-size: 2.1rem;
  border-radius: 6px;
  padding: 7px 17px 7px 13px;
  border: none;
  transition: background 0.16s;
  margin-left: 18px;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #425973;
}

/*******************
   HEADER & NAVIGATION
*******************/
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 2px solid #D6E6F2;
  padding: 13px 0;
  min-height: 64px;
  position: relative;
  z-index: 40;
}
header > a img {
  height: 48px;
  width: auto;
}
header nav {
  display: flex;
  gap: 24px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--clr-primary);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
  padding: 2px 2px 2px 2px;
  transition: border-bottom 0.17s, color 0.15s;
}
header nav a:hover, header nav a:focus {
  color: #2e4c67;
  border-bottom: 2px solid #293949;
}

/*******************
   MOBILE MENU
*******************/
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(41,57,73,0.95);
  transform: translateX(-100vw);
  transition: transform var(--transition-main);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  color: #fff;
  background: transparent;
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 24px 22px 36px 0;
  border: none;
  border-radius: 6px;
  transition: background 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(214,230,242,0.13);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding-left: 44px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  padding: 10px 0;
  transition: background 0.17s, color 0.13s;
  border-radius: 6px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #98b7c9;
  background: rgba(255,255,255,0.05);
}

/*******************
   FOOTER
*******************/
footer {
  background: #fff;
  border-top: 2px solid #D6E6F2;
  padding: 42px 0 32px 0;
  font-size: 0.95rem;
  color: #293949;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
footer a img {
  max-height: 36px;
  width: auto;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  color: #293949;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  font-size: 0.95em;
}
.footer-contact img {
  height: 18px;
  width: 18px;
  margin-right: 7px;
  vertical-align: middle;
  display: inline-block;
}
.footer-contact a {
  color: #293949;
  text-decoration: underline;
  font-weight: 600;
}

/*******************
   SPECIAL SECTIONS
*******************/
.tip-categories, .difficulty-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 1.12rem;
  margin: 14px 0 16px 0;
}
.tip-categories a, .difficulty-filter a {
  color: #425973;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 8px;
  transition: background 0.12s, color 0.12s;
}
.tip-categories a:hover, .difficulty-filter a:hover {
  background: #D6E6F2;
  color: #293949;
}

.quick-win-highlights {
  background: #E8EFFD;
  border-left: 4px solid #D6E6F2;
  border-radius: var(--radius-m);
  padding: 18px 22px;
  margin: 20px 0;
}

.success-message {
  background: #D6E6F2;
  border-radius: var(--radius-m);
  padding: 28px 22px;
}

/*******************
   CONTACT & INFO BLOCKS
*******************/
.contact-details, .business-hours {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
address {
  font-style: normal;
  color: #293949;
}

/*******************
   COOKIE CONSENT BANNER & MODAL
*******************/
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 4000;
  background: #293949;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  justify-content: center;
  padding: 24px 18px 20px 18px;
  box-shadow: 0 -6px 32px 0 rgba(41,57,73,0.13);
  width: 100vw;
  transition: transform var(--transition-main), opacity 0.3s;
}
.cookie-banner.closed {
  opacity: 0;
  pointer-events: none;
  transform: translateY(60px);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.cookie-banner .cookie-actions button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  background: #fff;
  color: #293949;
  border: none;
  border-radius: 8px;
  padding: 9px 24px;
  margin: 0 2px;
  transition: background 0.16s, color 0.14s, transform 0.12s;
  box-shadow: 0 1px 5px rgba(41,57,73,0.06);
}
.cookie-banner .cookie-actions button:hover, 
.cookie-banner .cookie-actions button:focus {
  background: #D6E6F2;
  color: #1a2533;
  transform: translateY(-1px);
}
.cookie-banner .cookie-actions .settings {
  background: #D6E6F2;
  color: #293949;
}
.cookie-banner .cookie-actions .settings:hover {
  background: #fff;
  color: #425973;
}

.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 6000;
  width: 100vw;
  height: 100vh;
  background: rgba(41,57,73,0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.19s, visibility 0.19s;
}
.cookie-modal.active {
  visibility: visible;
  opacity: 1;
}
.cookie-modal-box {
  background: #fff;
  border-radius: var(--radius-l);
  box-shadow: 0 16px 48px rgba(41,57,73,0.11);
  padding: 36px 32px 28px 32px;
  min-width: 340px;
  max-width: 95vw;
  color: #1A2533;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal-box h3 {
  font-size: 1.25rem;
  color: #293949;
  margin-bottom: 8px;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-top: 4px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cookie-modal-category label {
  font-weight: 600;
  font-size: 1rem;
}
.cookie-modal-category input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #293949;
}
.cookie-modal-category .always-enabled {
  color: #bbb;
  font-size: 0.95rem;
  margin-left: 8px;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 10px;
}
.cookie-modal-actions button {
  background: #293949;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 10px 22px;
  border-radius: 7px;
  border: none;
  font-weight: 700;
  font-size: 1.05rem;
  transition: background 0.16s, color 0.14s;
}
.cookie-modal-actions button.close {
  background: #D6E6F2;
  color: #425973;
}
.cookie-modal-actions button.close:hover {
  background: #fff;
  color: #293949;
}
.cookie-modal-actions button.save {
  background: #293949;
  color: #fff;
}
.cookie-modal-actions button.save:hover {
  background: #425973;
  color: #fff;
}

/*******************
   RESPONSIVE DESIGN: MOBILE FIRST
*******************/
@media (max-width: 1000px) {
  .container {
    max-width: 92vw;
    padding: 0 4vw;
  }
}
@media (max-width: 900px) {
  .features-grid, .service-highlights, .trick-list, .card-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .feature, .service-item, .problem-solution-block {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
  }
  footer .container {
    flex-direction: column;
    gap: 26px;
    text-align: left;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.22rem; }
  .section {
    margin-bottom: 32px;
    padding: 22px 8px;
  }
  main {
    margin-top: 14px;
    margin-bottom: 32px;
  }
  .content-wrapper {
    gap: 18px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .text-image-section,
  .features-grid,
  .service-highlights,
  .content-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 12px;
  }
  .cookie-modal-box {
    min-width: 94vw;
    padding: 26px 8px 18px 8px;
  }
}
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none;
  }
  .mobile-menu {
    display: none;
  }
  header nav {
    display: flex;
  }
}

/* Ensure .text-image-section retains flex for all sizes */
.text-image-section {
  flex-direction: row;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/*******************
   ACCESSIBILITY & INTERACTIONS
*******************/
.cta-button:focus,
.mobile-menu-toggle:focus,
.mobile-menu-close:focus,
.cookie-banner .cookie-actions button:focus,
.cookie-modal-actions button:focus
{
  outline: none;
  box-shadow: var(--focus-ring);
}

/*******************
   VISUAL GEOMETRIC DECOR
*******************/
/* Geometric accents: (Angular font, strong borders, shape edges) */
h1, h2, h3, .cta-button, .feature, .service-item, .testimonial-card, .problem-solution-block, .quick-win-highlights, .cookie-modal-box {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: var(--radius-m);
}
/*******************
   SPACING – CRITICAL MINIMUMS
*******************/
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .content-grid, .features-grid, .service-highlights, .trick-list, .tip-categories, .difficulty-filter {
  gap: 24px;
}
.card, .problem-solution-block, .service-item, .testimonial-card,
.feature, .section > .container, .cta-button, .success-message, .quick-win-highlights {
  margin-bottom: 20px;
}
/*******************
   VISUAL HIERARCHY & SHADOW
*******************/
.card, .feature, .service-item, .testimonial-card, .problem-solution-block, .quick-win-highlights, .success-message, .cookie-modal-box {
  box-shadow: var(--shadow-geom);
}

/*******************
   MICRO-INTERACTIONS & ANIMATE
*******************/
.cta-button, .cookie-banner .cookie-actions button, .cookie-modal-actions button {
  transition: background 0.13s, color 0.14s, transform 0.14s, box-shadow 0.15s;
}
.card:hover, .service-item:hover, .feature:hover, .problem-solution-block:hover {
  box-shadow: 0 6px 32px rgba(41,57,73,0.12);
  transform: translateY(-2px) scale(1.012);
}
nav a {
  transition: color 0.16s, border-bottom 0.16s;
}

/*******************
   MISC FIXES & ALIGN
*******************/
.value-list {
  gap: 10px;
}

/*******************
   ENSURE NO OVERLAPS
*******************/
.section > .container, .container > .content-wrapper {
  margin-bottom: 0;
}
.card:last-child, .service-item:last-child, .testimonial-card:last-child, .problem-solution-block:last-child, .feature:last-child {
  margin-bottom: 0;
}

/*******************
   PRINT
*******************/
@media print {
  * {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  main {
    margin: 0 !important;
  }
}
