/* === CSS RESET & NORMALIZE === */
html { box-sizing: border-box; }
*,*::before,*::after { box-sizing: inherit; margin: 0; padding: 0; }
body, input, button, textarea, select { font-family: 'Roboto', Arial, sans-serif; font-size: 16px; color: #172843; background: #F7F3EB;}
img { max-width: 100%; display: block; }
a { color: #2e578c; text-decoration: none; transition: color 0.2s; }
button { font-family: inherit; background: none; border: none; cursor: pointer; transition: background 0.3s, color 0.3s; }
:focus { outline: 2px solid #99B6B0; outline-offset: 2px; }

/* === BRAND VARIABLES === */
:root {
  --primary: #172843;
  --secondary: #99B6B0;
  --accent: #F7F3EB;
  --brand-gradient-fallback: #F7F3EB;
  --spacing-xs: 8px;
  --spacing-s: 16px;
  --spacing-m: 24px;
  --spacing-l: 32px;
  --spacing-xl: 48px;
  --shadow-1: 0 2px 12px rgba(23, 40, 67, 0.12);
  --radius-m: 16px;
  --radius-l: 32px;
  --font-display: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  --font-body: 'Roboto', 'Arial', sans-serif;
  --creative1: #F27127;
  --creative2: #23A6D5;
  --creative3: #FFCD38;
  --creative4: #99B6B0;
  --creative5: #606ebb;
}

/* === OVERALL LAYOUT === */
body { min-height: 100vh; line-height: 1.7; background: var(--accent); letter-spacing: .01em; }
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--spacing-m);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-l);
}
.content-wrapper { width: 100%; display: flex; flex-direction: column; gap: var(--spacing-m); }

.main-nav, .footer-nav { display: flex; align-items: center; flex-wrap: wrap; gap: var(--spacing-s); }

header { background: linear-gradient(to bottom left, var(--creative3), var(--accent) 85%, var(--creative4) 100%); border-bottom: 2px solid var(--secondary); box-shadow: var(--shadow-1); }
header .main-nav > a img { height: 44px; margin-right: var(--spacing-s); }

.main-nav {
  justify-content: flex-start;
  padding: var(--spacing-s) 0;
}
.main-nav > a, .footer-nav > a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: .02em;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background .2s, color .2s;
  position: relative;
}
.main-nav > a:not(:first-child):hover, .footer-nav > a:hover {
  background: var(--creative1);
  color: #fff;
}
.main-nav .cta-primary {
  background: linear-gradient(90deg, var(--creative2) 60%, var(--creative5) 100%);
  color: #fff;
  font-size: 1.05rem;
  font-family: var(--font-display);
  border-radius: var(--radius-m);
  padding: 10px 22px;
  margin-left: var(--spacing-m);
  box-shadow: 0 2px 8px rgba(35,166,213,0.17);
  border: 0;
  transition: box-shadow .2s, transform .12s;
}
.main-nav .cta-primary:hover, .cta-primary:hover {
  background: linear-gradient(91deg,var(--creative1) 60%,var(--creative3) 100%);
  color: var(--primary);
  transform: translateY(-3px) scale(1.07) rotate(-2deg);
  box-shadow: 0 6px 16px rgba(242,113,39,0.15);
}

/* === HERO SECTION === */
.hero { background: linear-gradient(120deg,var(--creative5) 0 22%, var(--accent) 50%, var(--creative3) 100%); box-shadow: var(--shadow-1); border-bottom-left-radius: var(--radius-l); border-bottom-right-radius: var(--radius-l); margin-bottom: var(--spacing-xl); padding-bottom: var(--spacing-l); }
.hero .container { min-height: 320px; }
.hero h1 {
  font-size: 2.2rem;
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: var(--spacing-m);
  text-shadow: 2px 4px 0 var(--creative2), 1px 3px 12px #fff3;
}
.hero p {
  font-size: 1.15rem;
  color: var(--primary);
  font-family: var(--font-body);
  margin-bottom: var(--spacing-m);
  opacity: 0.93;
}
.hero .cta-primary {
  margin-top: var(--spacing-s);
}

/* === SECTION SPACING (KEY RULE) === */
section { margin-bottom: 60px; padding: 40px 20px; background: transparent; display: flex; flex-direction: column; gap: 32px; }

/* === CARDS & FLEX CONTAINERS (KEY RULE) === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  min-width: 260px;
  background: #fff;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
  padding: var(--spacing-m);
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(35,166,213,0.11);
  transform: translateY(-7px) scale(1.025) rotate(-1deg);
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: var(--spacing-s);
  background: #fff;
  box-shadow: 0 2px 14px rgba(23,40,67,0.07);
  border-radius: var(--radius-m);
  border-left: 8px solid var(--creative1);
  transition: box-shadow 0.15s, border-color 0.16s;
  min-width: 220px;
  max-width: 700px;
}
.testimonial-card:hover {
  border-color: var(--creative2);
  box-shadow: 0 8px 32px rgba(35,166,213,0.08);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
  padding: var(--spacing-m);
  min-width: 200px;
}

/* === CREATIVE/ARTISTIC ELEMENTS === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: var(--spacing-s);
}
h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.01em;
  position: relative;
  padding-left: 20px;
}
h2::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 38px;
  border-radius: 12px;
  background: var(--creative2);
  margin-right: 10px;
  vertical-align: bottom;
  position: absolute;
  left: 0; top: 6px;
}
h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--creative5);
}
h1, h2, h3 { text-shadow: 0 2px 12px rgba(150,150,150,.06); }
p, ul, ol, li, address { font-family: var(--font-body); font-size: 1rem; letter-spacing: .01em; }
strong { color: var(--creative1); font-weight: bold; }

ul, ol { margin-left: var(--spacing-m); margin-bottom: var(--spacing-s); }
ul { list-style: disc; }
ol { list-style: decimal; }
li { margin-bottom: 8px; }

.content-wrapper ul li {
  padding-left: 0.7em;
  position: relative;
}
.content-wrapper ul li::before {
  content: '●';
  color: var(--creative3);
  font-size: 1.1em;
  position: absolute;
  left: -1.2em;
  top: 1px;
}

.usp-list {
  margin-top: var(--spacing-s);
  background: var(--creative2);
  color: #fff;
  padding: var(--spacing-s) var(--spacing-m);
  border-radius: var(--radius-m);
  font-size: 1rem;
}
.usp-list strong {
  color: #fff;
  display: block;
  margin-bottom: 9px;
}

.text-section { display: flex; flex-direction: column; gap: var(--spacing-s); font-size: 1.08em; }

.benefits-summary ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-s);
}

/* === FEATURES/ICONS === */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}
.feature-grid > div {
  flex: 1 1 220px;
  background: #fff;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
  padding: var(--spacing-m);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-s);
  border-bottom: 4px solid var(--creative3);
  transition: border-color 0.2s, box-shadow 0.18s;
}
.feature-grid > div:hover { border-color: var(--creative2); box-shadow: 0 6px 24px rgba(23,40,67,.10); }
.feature-grid img { width: 38px; height: 38px; margin-bottom: 8px; }

/* === BUTTONS & LINKS === */
.cta-primary {
  background: linear-gradient(90deg, var(--creative2) 70%, var(--creative1) 100%);
  color: #fff;
  font-family: var(--font-display);
  padding: 12px 28px;
  border: none;
  font-size: 1.1rem;
  border-radius: var(--radius-m);
  font-weight: 700;
  letter-spacing: .015em;
  box-shadow: var(--shadow-1);
  transition: background 0.2s, transform 0.14s, box-shadow 0.18s;
  margin-top: var(--spacing-s);
  text-shadow: 0 2px 12px rgba(75,95,155,0.07);
  cursor: pointer;
}
.cta-primary:hover { background: linear-gradient(90deg, var(--creative1) 78%, var(--creative3) 100%); color: var(--primary); transform: translateY(-3px) scale(1.053) rotate(-2deg); box-shadow: 0 8px 28px rgba(243,205,56,0.13); }

/* ==== TESTIMONIALS ==== */
.testimonial-card p {
  font-style: italic;
  font-family: var(--font-display);
  color: #172843;
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.testimonial-card span {
  color: #666;
  font-weight: 500;
}

/* ==== FOOTER ==== */
footer {
  background: linear-gradient(90deg, var(--creative2) 20%, var(--accent) 90%);
  border-top: 3px solid var(--secondary);
  padding: var(--spacing-xl) var(--spacing-m) var(--spacing-l);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-l);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-s);
  margin-bottom: var(--spacing-s);
}
.footer-nav a { color: var(--primary); background: #fff0; padding: 4px 10px; border-radius: 5px; font-size: 1rem; }
.footer-nav a:hover { background: var(--creative2); color: #fff; }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1rem;
  color: var(--primary);
  line-height: 1.5;
  max-width: 600px;
}
.footer-contact img { width: 36px; height: auto; margin-bottom: 7px; }
.footer-contact address { font-style: normal; color: var(--primary); }
.footer-contact div { display: flex; align-items: center; gap: 8px; }
.footer-contact div img { width: 16px; height: 16px; }

/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border-radius: 100px;
  width: 42px;
  height: 42px;
  font-size: 2rem;
  margin-left: auto;
  margin-right: var(--spacing-s);
  border: none;
  cursor: pointer;
  z-index: 1001;
  transition: background .17s, box-shadow .13s;
  box-shadow: 0 1px 8px rgba(23,40,67,0.10);
}
.mobile-menu-toggle:hover { background: var(--creative2); }

.mobile-menu {
  position: fixed;
  top: 0; right: 0; left: 0; bottom: 0;
  background: linear-gradient(120deg, var(--accent) 65%, var(--creative2));
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(105vw);
  transition: transform 0.32s cubic-bezier(.65,.05,.32,1);
  box-shadow: 0 0 28px rgba(0,0,0,0.11);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--creative1);
  color: #fff;
  border-radius: 100px;
  font-size: 2.2rem;
  width: 48px;
  height: 48px;
  border: none;
  z-index: 1020;
  transition: background .14s;
}
.mobile-menu-close:hover { background: var(--creative2); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-m);
  margin: 90px 0 0 0;
  align-items: center;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  background: #fff;
  border-radius: var(--radius-m);
  padding: 16px 38px;
  width: 90%;
  text-align: center;
  margin: 0 auto;
  box-shadow: var(--shadow-1);
  transition: background .19s, color .18s, box-shadow .18s;
}
.mobile-nav a:hover { background: var(--creative1); color: #fff; box-shadow: 0 3px 14px rgba(245, 113, 39, .13); }

@media (min-width: 1024px) {
  .mobile-menu,
  .mobile-menu-toggle { display: none !important; }
  .main-nav { display: flex !important; }
}
@media (max-width: 1023px) {
  .main-nav { display: none !important; }
  .mobile-menu-toggle { display: flex !important; }
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-consent-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 20px;
  padding: 30px 20px 24px 20px;
  background: #fff;
  border-radius: var(--radius-m);
  box-shadow: 0 12px 32px rgba(23,40,67,.10);
  z-index: 1200;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-m);
  min-width: 280px;
  max-width: 480px;
  margin: 0 auto;
  font-size: 1rem;
  animation: slideInBanner .7s cubic-bezier(.68,-.55,.27,1.55);
  border-left: 7px solid var(--creative2);
}
@keyframes slideInBanner { 0% { opacity: 0; transform: translateY(64px);} 100% { opacity: 1; transform: translateY(0);}}
.cookie-consent-banner p {
  flex: 1 1 200px;
  color: var(--primary);
  font-family: var(--font-body);
}
.cookie-consent-btn {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius-m);
  padding: 10px 21px;
  border: none;
  margin-right: 7px;
  margin-bottom: 6px;
  transition: background .2s, color .18s, transform .13s;
  cursor: pointer;
}
.cookie-consent-btn.accept {
  background: var(--creative2);
  color: #fff;
}
.cookie-consent-btn.accept:hover {
  background: var(--creative1);
  color: #fff;
  transform: translateY(-2px) scale(1.07);
}
.cookie-consent-btn.reject {
  background: #eee;
  color: var(--creative1);
}
.cookie-consent-btn.reject:hover {
  color: #fff;
  background: var(--creative1);
}
.cookie-consent-btn.settings {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--creative2);
}
.cookie-consent-btn.settings:hover {
  background: var(--creative2);
  color: #fff;
}

/* ==== COOKIE SETTINGS MODAL ==== */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(30, 49, 77, 0.68);
  z-index: 1500;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.34s ease;
}
@keyframes fadeInModal { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal.open { display: flex; }
.cookie-modal-content {
  background: #fff;
  border-radius: var(--radius-l);
  padding: 38px 28px;
  box-shadow: 0 16px 40px rgba(35, 166, 213, 0.13);
  min-width: 320px; max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-m);
  position: relative;
}
.cookie-modal-content h2 {
  margin: 0 0 var(--spacing-s) 0;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.3rem;
}
.cookie-category { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #eee; }
.cookie-category label { font-family: var(--font-body); font-size: 1rem; }
.cookie-category input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--creative2); }
.cookie-modal-close {
  position: absolute;
  top: 22px; right: 22px;
  background: var(--creative1);
  color: #fff;
  border-radius: 100px;
  border: none;
  font-size: 1.6rem;
  width: 36px; height: 36px;
  z-index: 1202;
}
.cookie-modal-actions {
  display: flex; flex-wrap: wrap; gap: 13px;
  margin-top: var(--spacing-m);
  justify-content: flex-end;
}

/* ==== SPACING MINIMUMS ==== */
section, .card, .feature-grid > div, .testimonial-card, .card-container > *, .content-grid > *, .footer-nav > *, .footer-contact > * {
  margin-bottom: 20px;
}
section:last-child, .card:last-child, .feature-grid > div:last-child, .testimonial-card:last-child, .card-container > *:last-child, .content-grid > *:last-child {
  margin-bottom: 0;
}

/* ==== RESPONSIVE DESIGN (Mobile first) ==== */
@media (max-width: 768px) {
  .container { padding: 0 7px; }
  .hero { border-radius: 0 0 22px 22px; margin-bottom: var(--spacing-m); padding-bottom: 10px; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.15rem; }
  .section { padding: 27px 7px 27px 7px; margin-bottom: 32px; }
  .content-grid, .feature-grid { flex-direction: column; gap: 20px; }
  .text-image-section { flex-direction: column !important; gap: 20px; }
  .testimonial-card { flex-direction: column; align-items: flex-start; padding: 15px; }
  .card, .feature-grid > div { min-width: unset; }
  .footer-contact { max-width: unset; }
}

/* ==== VISUAL EFFECTS & MICRO-INTERACTIONS ==== */
.card, .feature-grid > div, .testimonial-card, .cta-primary, .cookie-consent-btn, .mobile-menu-toggle, .mobile-menu-close {
  transition: box-shadow 0.16s, transform 0.14s, background 0.17s, color 0.13s, border-color .13s;
}
.card:hover, .feature-grid > div:hover, .testimonial-card:hover {
  box-shadow: 0 8px 40px rgba(35,166,213,0.15), 0 1px 4px rgba(60,90,156,0.03);
  transform: translateY(-4px) scale(1.02);
}
.cta-primary:active, .cookie-consent-btn:active {
  transform: scale(0.97);
  box-shadow: none;
}

/* ==== MISC ==== */
::-webkit-scrollbar { width: 8px; background: var(--accent); }
::-webkit-scrollbar-thumb { background: var(--creative4); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--creative2); }

/* Override iOS font scaling */
html { -webkit-text-size-adjust: 100%; }

/* Accessibility highlight for interactive items */
a:focus, button:focus, .cta-primary:focus, .cookie-consent-btn:focus, .mobile-menu-toggle:focus { box-shadow: 0 1px 12px var(--creative2), 0 0 0 3px #fff; }

/* Ensure images never overflow */
img { display: block; max-width: 100%; height: auto; }

/* Misc page/section-specific tweaks */
.benefits-summary { margin-top: var(--spacing-s); background: #ffffff; border-radius: var(--radius-m); box-shadow: 0 1px 8px rgba(35,166,213,.06); padding: var(--spacing-s) var(--spacing-m);}
.benefits-summary h3 { color: var(--creative1); margin-bottom: 6px; }

/* Hide cookie banner/modal by default (override in JS) */
.cookie-consent-banner, .cookie-modal { display: none; }

/* End of CSS */