/* ===================================================
  CSS RESET & NORMALIZE (for max compatibility)
==================================================== */
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-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
/* Set base line-height and body background */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: #F0F4F8;
}
body {
  background: #F0F4F8;
  line-height: 1.5;
  color: #22425B;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #EE8126;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.68,-0.55,.27,1.55);
  font-family: 'Montserrat', Arial, sans-serif;
}
a:hover, a:focus {
  color: #BF5E00;
}
ul, ol {
  list-style: none;
  padding-left: 0;
  margin: 0 0 16px 0;
}
button {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  outline: none;
}

/* ===================================================
  BRAND COLORS, FONTS, AND VARIABLES
==================================================== */
:root {
  --color-primary: #22425B;
  --color-secondary: #F0F4F8;
  --color-accent: #EE8126;
  --color-accent-dark: #BF5E00;
  --color-bg: #F0F4F8;
  --color-white: #FFFFFF;
  --color-grey: #E4EAF2;
  --color-shadow: rgba(34,66,91,0.07);
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-card: 0 4px 24px var(--color-shadow);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --font-playful: 'Montserrat', Arial, sans-serif;
  --transition: 0.28s cubic-bezier(.65,-0.3,.27,1.35);
}

/* ---------------------------------------------------
  BODY BASE TYPOGRAPHY & HEADERS
--------------------------------------------------- */
h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--color-primary);
  margin-bottom: 20px;
  line-height: 1.15;
  text-shadow: 2px 2px 0 var(--color-accent), 0 2px 8px rgba(34,66,91,0.08);
  animation: popIn 1s cubic-bezier(.55,1.5,.41,.99);
}
@keyframes popIn {
  0% { opacity: 0; transform: scale(0.85); }
  75% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}
h2 {
  font-family: var(--font-playful);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 16px;
  line-height: 1.1;
  letter-spacing: -1px;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 14px 0 8px 0;
}
h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 500;
}
p, li, span {
  font-family: var(--font-body);
  color: #22425B;
  font-size: 1rem;
  line-height: 1.6;
}
strong {
  font-weight: 700;
  color: var(--color-accent-dark);
}
em {
  font-style: italic;
  color: var(--color-accent);
}

/* ===================================================
  HEADER
==================================================== */
header {
  width: 100%;
  background: var(--color-white);
  box-shadow: 0 4px 10px var(--color-shadow);
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 24px;
}
header img {
  width: 152px;
  height: auto;
  margin-right: 18px;
  flex-shrink: 0;
  user-select: none;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
header nav a {
  font-family: var(--font-playful);
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1rem;
  background: none;
  padding: 7px 16px;
  border-radius: var(--radius);
  transition: background 0.18s, color 0.18s, transform 0.18s;
  position: relative;
}
header nav a:after {
  content: '';
  display: block;
  background: var(--color-accent);
  height: 2px;
  width: 0;
  border-radius: 2px;
  position: absolute;
  left: 18%;
  bottom: 5px;
  transition: width 0.3s var(--transition);
}
header nav a:hover, header nav a:focus {
  background: var(--color-secondary);
  color: var(--color-accent-dark);
  transform: scale(1.07);
}
header nav a:hover:after, header nav a:focus:after {
  width: 64%;
}
.cta-button {
  background: var(--color-accent);
  border-radius: var(--radius-lg);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  padding: 13px 32px;
  margin-left: 22px;
  margin-right: 16px;
  border: none;
  box-shadow: 0 2px 16px var(--color-shadow);
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  outline: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-accent-dark);
  color: var(--color-white);
  transform: scale(1.04) rotate(-1deg);
  box-shadow: 0 6px 24px var(--color-shadow);
}
.header .container,
footer .container {
  width: 100%;
  max-width: 1200px;
}

/* MOBILE MENU BUTTON */
.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  color: var(--color-accent);
  background: transparent;
  border: none;
  padding: 5px 16px;
  border-radius: 50%;
  transition: background 0.2s;
  z-index: 210;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-secondary);
}

/* ===================================================
  MOBILE MENU OVERLAY
==================================================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-white);
  box-shadow: -2px 0 24px var(--color-shadow);
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(.54,.08,.42,1.06);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: var(--color-accent-dark);
  background: transparent;
  border: none;
  margin-left: 28px;
  margin-bottom: 10px;
  border-radius: 50%;
  transition: background 0.2s;
  z-index: 360;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 36px 30px 20px;
  width: 100vw;
}
.mobile-nav a {
  font-family: var(--font-playful);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--color-secondary);
  margin-bottom: 4px;
  transition: background 0.18s, color 0.18s, transform 0.15s;
}
.mobile-nav a:active, .mobile-nav a:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: scale(1.06);
}

/* HIDE DESKTOP NAV ON MOBILE, SHOW BURGER */
@media (max-width: 950px) {
  header nav {
    display: none;
  }
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .header .container {
    gap: 16px;
  }
}

/* ===================================================
  LAYOUT CONTAINERS & SECTIONS
==================================================== */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: 0 2px 16px var(--color-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  width: 100%;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: var(--color-secondary);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: 0 1px 8px var(--color-shadow);
  position: relative;
  transition: box-shadow 0.21s, transform 0.26s;
  padding: 24px 20px;
  min-width: 220px;
  max-width: 350px;
  flex: 1 1 300px;
}
.card:hover {
  box-shadow: 0 6px 16px var(--color-shadow);
  transform: translateY(-4px) scale(1.025);
  z-index: 3;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: stretch;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.text-section {
  background: #FFF9F4;
  border-radius: var(--radius);
  box-shadow: 0 1px 6px var(--color-shadow);
  padding: 18px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* Feature Items (for service/diy overview) */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-secondary);
  padding: 20px 20px 20px 24px;
  border-radius: var(--radius);
  box-shadow: 0 1px 8px var(--color-shadow);
  margin-bottom: 20px;
}

/* ===================================================
  TESTIMONIALS
==================================================== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #FFF1E5;
  color: #1A2433;
  border-radius: var(--radius-lg);
  box-shadow: 0 3px 16px var(--color-shadow);
  padding: 20px 32px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, transform 0.22s;
  position: relative;
}
.testimonial-card strong { color: var(--color-primary); }
.testimonial-card:hover {
  box-shadow: 0 8px 24px var(--color-shadow);
  transform: translateY(-2px) scale(1.02);
}
.testimonial-card p {
  font-size: 1.08rem;
  line-height: 1.52;
}
.testimonial-card p:last-child {
  font-size: 1.25rem;
  letter-spacing: 2px;
  color: var(--color-accent-dark);
}

/* ===================================================
  FOOTER
==================================================== */
footer {
  width: 100%;
  background: var(--color-primary);
  padding: 36px 0 24px 0;
  color: var(--color-white);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  box-shadow: 0 -2px 10px var(--color-shadow);
  margin-top: 39px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 8px;
}
footer nav a {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
}
footer nav a:hover,
footer nav a:focus {
  color: var(--color-white);
  text-decoration: underline;
}
footer p {
  color: var(--color-secondary);
  font-size: 0.98rem;
}

/* ===================================================
  LISTS & LINKS
==================================================== */
ul, ol {
  margin: 0 0 18px 0;
}
ul li, ol li {
  margin-bottom: 14px;
  padding-left: 0.5em;
  display: flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.58;
}
ul li img {
  width: 26px;
  height: 26px;
  margin-right: 11px;
  vertical-align: middle;
}

/* ===================================================
  BUTTONS AND INTERACTIONS
==================================================== */
button, .cta-button {
  transition: background 0.18s, color 0.18s, box-shadow 0.19s, transform 0.15s;
}
button:active,
.cta-button:active {
  transform: scale(0.98);
}

/* Animated playful bouncing for CTA/BUTTONS */
.cta-button {
  animation: playfulBounce 2.5s infinite cubic-bezier(0.86, 0, 0.07, 1) alternate;
}
@keyframes playfulBounce {
    0%, 96% { transform: translateY(0) scale(1); }
    10% { transform: translateY(-2px) scale(1.02); }
    25% { transform: translateY(-8px) scale(1.08); }
    34% { transform: translateY(-2px) scale(1.018); }
    36%, 100% { transform: translateY(0) scale(1); }
}

/* ===================================================
  COOKIE CONSENT BANNER & MODAL
==================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--color-primary);
  color: var(--color-white);
  z-index: 500;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 18px 16px 18px 24px;
  gap: 20px;
  font-size: 1.04rem;
  box-shadow: 0 -2px 18px var(--color-shadow);
  animation: bannerIn 0.51s cubic-bezier(0.65,.05,.27,1.03);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}
@keyframes bannerIn {
  from { transform: translateY(110%) scale(0.97); }
  to   { transform: translateY(0) scale(1); }
}
.cookie-banner .cookie-btn {
  background: var(--color-accent);
  color: var(--color-white);
  padding: 11px 22px;
  font-family: var(--font-playful);
  font-weight: 700;
  border-radius: var(--radius);
  border: none;
  margin-left: 10px;
  transition: background 0.16s, color 0.16s;
  margin-bottom: 0;
  margin-top: 0;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: var(--color-accent-dark);
}
.cookie-banner .cookie-settings-btn {
  background: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  margin-left: 10px;
  transition: background 0.16s, color 0.15s;
}
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  background: var(--color-accent);
  color: var(--color-white);
}

/* COOKIE MODAL */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 7000;
  background: rgba(34, 66, 91, 0.3);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: opacity 0.32s;
  opacity: 1;
}
.cookie-modal {
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 8px 40px var(--color-shadow);
  padding: 32px 24px 24px;
  max-width: 420px;
  width: 92vw;
  margin-bottom: 48px;
  animation: modalIn 0.49s cubic-bezier(.74,-0.11,.49,1.28);
  position: relative;
}
@keyframes modalIn {
  from { transform: translateY(160px) scale(0.89); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  color: var(--color-accent);
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 1.5rem;
  color: var(--color-accent-dark);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 50%;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--color-secondary);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0 10px 0;
}
.cookie-modal .cookie-category .toggle {
  width: 44px;
  height: 24px;
  display: inline-block;
  background: var(--color-grey);
  border-radius: 12px;
  position: relative;
  transition: background 0.2s;
}
.cookie-modal .cookie-category .toggle.enabled {
  background: var(--color-accent);
}
.cookie-modal .cookie-category .toggle-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 1px 5px var(--color-shadow);
  position: absolute;
  top: 1px;
  left: 1px;
  transition: left 0.22s cubic-bezier(.55,.01,.43,1.56);
}
.cookie-modal .cookie-category .toggle.enabled .toggle-btn {
  left: 21px;
}
.cookie-modal .category-name {
  font-weight: 600;
  color: var(--color-accent-dark);
  font-family: var(--font-playful);
}
.cookie-modal .cookie-save-btn {
  width: 100%;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 13px 0;
  margin-top: 24px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  border: none;
  transition: background 0.15s;
}
.cookie-modal .cookie-save-btn:hover,
.cookie-modal .cookie-save-btn:focus {
  background: var(--color-accent-dark);
}

/* ===================================================
  RESPONSIVE DESIGN (Mobile-first)
==================================================== */
@media (max-width: 950px) {
  .container {
    max-width: 96vw;
    padding: 0 8px;
  }
  .section {
    padding: 28px 6px;
    margin-bottom: 48px;
  }
  .testimonial-card {
    padding: 16px 6vw;
  }
  .content-wrapper {
    gap: 18px;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.18rem; }
  .card-container, .content-grid { gap: 14px; }
  .card {
    padding: 15px 8px;
    min-width: unset;
    max-width: 98vw;
    margin-bottom: 14px;
  }
  .feature-item {
    padding: 12px 8px 12px 12px;
  }
  .section {
    padding: 15px 4px;
    margin-bottom: 26px;
    border-radius: var(--radius);
  }
  .testimonial-card {
    padding: 14px 6px;
    border-radius: var(--radius);
  }
  .text-section {
    padding: 10px 8px;
    border-radius: 12px;
  }
  .card-container, .content-grid, .footer .container {
    flex-direction: column;
  }
  .text-image-section { flex-direction: column; gap: 18px; }
}

@media (max-width: 520px) {
  header .container, footer .container {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    padding: 12px 6px;
  }
  header img { max-width: 88vw; width: 122px; margin-right: 0; }
}

/* ===================================================
  OTHER PLAYFUL ANIMATIONS AND MICROS
==================================================== */
li strong {
  color: var(--color-accent-dark);
  font-weight: 700;
}
li em {
  font-style: italic;
  color: var(--color-accent);
}
section {
  animation: slideInSection 0.8s cubic-bezier(.73,1.62,.19,.99);
}
@keyframes slideInSection {
  0% { opacity: 0; transform: translateY(34px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Micro-interaction for icon wiggle */
ul li img, .feature-item img {
  transition: transform 0.22s cubic-bezier(.5,1.5,.67,.97);
}
ul li img:hover, .feature-item img:hover {
  transform: rotate(-10deg) scale(1.18);
}

/* Accent border ring for active cards (future expandability) */
.card.active, .feature-item.active {
  box-shadow: 0 4px 24px var(--color-accent), 0 1px 8px var(--color-shadow);
  border: 2px solid var(--color-accent-dark);
}

/* Prevent content overlap */
.card, .feature-item, .testimonial-card, .text-section {
  margin-bottom: 20px;
}

/* ===================================================
  PRINT FIXES
==================================================== */
@media print {
  nav, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-backdrop { display: none !important; }
  header, footer { box-shadow: none; border-radius: 0; }
  .section, .card, .feature-item, .testimonial-card, .text-section { box-shadow: none; background: #fff; }
  body { background: #fff; color: #000; }
}
