/* ============================================================
   CSS RESET & BASE
   ============================================================ */
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F6F6F9;
  color: #21304C;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul, ol {list-style: none;}
a {text-decoration: none; color: inherit;}
img {max-width: 100%; display: block; border: 0;}
button, input, select, textarea {
  font-family: inherit; font-size: 1em; color: inherit;
  background: none; border: none; outline: 0;
}
button {cursor: pointer;}

/* ============================================================
   BRAND COLORS & FONTS
   ============================================================ */
:root {
  --color-primary: #21304C;
  --color-secondary: #1BC47D;
  --color-accent: #F6F6F9;
  --color-electric-blue: #3262FE;
  --color-hot-pink: #FA198B;
  --color-warning: #FFCA2F;
  --color-neutral: #F6F6F9;
  --color-dark: #171F2C;
  --color-shadow: rgba(33,48,76,0.08);
  --font-display: 'Oswald', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: #21304C;
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1.2;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 8px;
}
p, ul, ol {
  font-family: var(--font-body);
  color: #21304C;
  font-size: 1rem;
  margin-bottom: 8px;
}
strong, b {font-weight: 700;}

/* Typography utility classes */
.lead {
  font-size: 1.2rem;
  font-weight: 400;
}

/* ============================================================
   CONTAINER & LAYOUT BASE
   ============================================================ */
.container {
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
  max-width: 1180px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ====================
   FLEXBOX LAYOUTS
   ==================== */
.feature-grid, .tips-grid, .team-list, .service-grid, .features-usp, .features, .card-container, .card-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.features-usp { gap: 32px; }
.team-list, .service-grid, .tips-grid { gap: 24px; }
.features {gap: 24px;}
.card-container, .card-grid {gap: 24px;}
.content-grid{ gap: 20px; justify-content: space-between; display: flex; flex-wrap: wrap;}
.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: #fff;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px var(--color-shadow), 0 1px 2px var(--color-shadow);
  border-left: 6px solid var(--color-secondary);
  flex-direction: column;
  min-width: 240px;
  max-width: 450px;
}
.card { margin-bottom: 20px; position: relative; }

.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* ====================
   HEADER & NAV
   ==================== */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px var(--color-shadow);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 0 0;
  position: relative;
  min-height: 74px;
  z-index: 101;
}
.logo img {
  height: 48px;
  width: auto;
  margin-left: 24px;
  margin-top: 8px;
  margin-bottom: 8px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-left: auto;
  margin-right: 32px;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: #21304C;
  padding: 9px 16px;
  border-radius: 30px;
  transition: background 0.2s, color 0.2s;
  position: relative;
  letter-spacing: 0.02em;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}
.main-nav .cta {
  background: var(--color-electric-blue);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 12px var(--color-shadow);
  border-radius: 30px;
  letter-spacing: 0.04em;
  transition: box-shadow 0.16s, transform 0.16s;
}
.main-nav .cta:hover, .main-nav .cta:focus {
  background: var(--color-hot-pink);
  color: #fff;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px var(--color-shadow), 0 2px 8px var(--color-hot-pink);
}

/* ========== MOBILE BURGER MENU ========= */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  color: var(--color-electric-blue);
  padding: 12px 16px;
  border-radius: 50%;
  margin-right: 20px;
  margin-left: auto;
  border: 0;
  transition: background 0.2s, color 0.2s;
  z-index: 1201;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-secondary);
  color: #fff;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  max-width: 100vw;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.61,.64,.17,1.01);
  box-shadow: -8px 0 24px var(--color-shadow);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 24px;
  opacity: 1;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--color-hot-pink);
  font-size: 2.1rem;
  border: 0;
  align-self: flex-end;
  margin: 0 24px 8px 0;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding: 16px 32px;
  margin-top: 14px;
}
.mobile-nav a {
  padding: 12px 0;
  font-family: var(--font-display);
  font-size: 1.17rem;
  color: var(--color-dark);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  font-weight: 600;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}
.mobile-nav .cta {
  background: var(--color-electric-blue);
  color: #fff !important;
  font-weight: 700;
  margin-top: 10px;
  border-radius: 30px;
}

/* Hide main nav, show burger on mobile */
@media (max-width: 1023px) {
  .main-nav {display: none;}
  .mobile-menu-toggle {display: block;}
}
@media (min-width: 1024px) {
  .mobile-menu {display: none !important;}
}

/* ============================================================
   HERO SECTIONS
   ============================================================ */
.hero {
  width: 100%;
  background: linear-gradient(100deg, #1BC47D 0%, #3262FE 70%, #FA198B 110%);
  color: #fff;
  padding: 64px 0 56px;
  box-shadow: 0 4px 24px var(--color-shadow), 0 1px 3px var(--color-secondary);
}
.hero h1 {
  color: #fff;
  text-shadow: 0 3px 16px rgba(50, 98, 254, 0.10);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.hero p {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 28px;
}
.hero .cta {
  font-size: 1.15rem;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 16px 40px;
}

/* ============================================================
   BUTTONS & C.T.A.s
   ============================================================ */
.cta {
  display: inline-block;
  background: var(--color-electric-blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.05em;
  font-size: 1.1rem;
  border-radius: 30px;
  padding: 14px 36px;
  box-shadow: 0 4px 16px var(--color-shadow);
  transition: background 0.18s, color 0.12s, transform 0.18s, box-shadow 0.18s;
  margin-top: 8px;
  border: none;
}
.cta:hover, .cta:focus {
  background: var(--color-hot-pink);
  color: #fff;
  transform: translateY(-3px) scale(1.04) rotate(-1deg);
  box-shadow: 0 8px 30px var(--color-hot-pink), 0 3px 10px var(--color-shadow);
}

/* ============================================================
   CARDS, FEATURES, LISTS, TESTIMONIALS
   ============================================================ */
.feature, .tip-topic, .service-item, .team-member, .article-preview {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 24px 20px;
  min-width: 220px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  position: relative;
  border-top: 3.5px solid var(--color-electric-blue);
  transition: transform 0.16s, box-shadow 0.18s, border-color 0.18s;
}
.feature:hover, .tip-topic:hover, .service-item:hover, .team-member:hover, .article-preview:hover {
  box-shadow: 0 8px 32px var(--color-shadow), 0 2px 8px var(--color-hot-pink);
  transform: translateY(-4px) scale(1.03);
  border-top-color: var(--color-secondary);
}
.feature img, .tip-topic img, .usp-item img {
  width: 54px;
  height: 54px;
  margin-bottom: 10px;
}
.ups-item img {width: 42px; height: 42px;}

.usp-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  background: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--color-shadow);
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 20px;
  min-width: 210px;
}

.article-preview h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-electric-blue);
  margin-bottom: 7px;
}

.pricing-table table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px var(--color-shadow);
  margin-top: 12px;
  margin-bottom: 16px;
}
.pricing-table th, .pricing-table td {
  padding: 16px 10px;
  text-align: left;
  font-size: 1rem;
  border-bottom: 1px solid #ECEFF4;
}
.pricing-table th {
  background: var(--color-secondary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.11rem;
}
.pricing-table tr:last-child td {
  border-bottom: none;
}

.price {
  font-family: var(--font-display);
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 1.2rem;
}

.price-note p {
  background: var(--color-warning);
  color: #21304C;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 0.98rem;
  font-weight: 500;
  margin-top: 12px;
  box-shadow: 0 1px 4px rgba(255,202,47,0.12);
}

/* ============================================================
   LEGAL/TEXT-SECTIONS (articles, policy, etc.)
   ============================================================ */
.legal, .text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1.5px 8px var(--color-shadow);
  padding: 36px 24px;
  margin-bottom: 32px;
}
.legal h1, .legal h2 {
  color: var(--color-electric-blue);
}
.text-section ul {
  list-style-type: disc;
  margin-left: 26px;
  color: #21304C;
  font-size: 1rem;
  margin-bottom: 12px;
}
.text-section li {
  margin-bottom: 8px;
}
.text-section p, .text-section a {
  font-size: 1rem;
}
.text-section a {
  color: var(--color-hot-pink);
  text-decoration: underline;
  transition: color 0.18s;
}
.text-section a:hover, .text-section a:focus {
  color: var(--color-electric-blue);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #21304C;
  color: #fff;
  padding: 40px 0 24px 0;
}
.footer-content {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer-content img {
  width: 56px;
  height: auto;
  margin-right: 14px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-secondary);
}
.footer-contact span {
  display: block;
  font-size: 0.97rem;
  margin-bottom: 4px;
  color: #d1eaea;
}

/* ============================================================
   RESPONSIVE DESIGN (Flexbox Media Queries)
   ============================================================ */
@media (max-width: 992px) {
  .container {
    padding-left: 13px;
    padding-right: 13px;
    max-width: 100%;
  }
  .footer-content {
    gap: 14px;
    flex-direction: column;
    align-items: flex-start;
  }
  .main-nav a, .footer-nav a { font-size: 1rem; }
}
@media (max-width: 850px) {
  .feature-grid, .tips-grid, .team-list, .service-grid, .article-previews, .features-usp {
    flex-direction: column;
    gap: 20px;
  }
  .footer-content {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .content-wrapper, .container {
    padding-left: 7px;
    padding-right: 7px;
  }
  .hero {
    padding: 40px 0 32px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .main-nav { display: none; }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .feature, .tip-topic, .service-item, .team-member, .article-preview, .testimonial-card {
    min-width: 85vw;
    max-width: 98vw;
    padding: 18px 7px;
  }
  .team-list, .feature-grid, .service-grid, .tips-grid {
    gap: 18px;
  }
}
@media (max-width: 570px) {
  .footer-content img {margin-bottom: 18px;}
  .hero h1, h2 {font-size: 1.13rem;}
}

/* Ensure spacing between all blocks */
section {
  margin-bottom: 48px;
}

/* Spacing utility classes */
.mt-2 {margin-top: 16px !important;}
.mb-2 {margin-bottom: 16px !important;}
.mb-3 {margin-bottom: 24px !important;}
.mb-4 {margin-bottom: 32px !important;}

/* ============================================================
   MICRO-INTERACTIONS & TRANSITIONS
   ============================================================ */
.cta, .main-nav a, .mobile-menu-toggle, .feature, .tip-topic, .service-item, .team-member, .testimonial-card, .article-preview, .usp-item, .footer-nav a, .mobile-nav a {
  transition: background 0.18s, color 0.16s, transform 0.15s, box-shadow 0.17s, border-color 0.18s;
}

/* Active link highlight (optional) */
.main-nav a.active, .footer-nav a.active, .mobile-nav a.active {
  color: var(--color-electric-blue) !important;
  font-weight: 700;
  background: rgba(27,196,125,0.16);
  border-radius: 16px;
}

/* ============================================================
   SPECIAL: MAP PLACEHOLDER
   ============================================================ */
.map-placeholder {
  width: 100%;
  min-height: 180px;
  background: #F6F6F9 url('../assets/icons/location.svg') center center no-repeat;
  background-size: auto 56px;
  border-radius: 14px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px var(--color-shadow);
}

/* ============================================================
   COOKIE CONSENT BANNER / MODAL
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  color: #21304C;
  box-shadow: 0 -4px 24px var(--color-shadow);
  border-top: 3px solid var(--color-secondary);
  z-index: 2500;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  padding: 22px 28px;
  flex-wrap: wrap;
  width: 100vw;
  max-width: 100vw;
  opacity: 1;
  animation: banner-fade-in 0.5s;
}
@keyframes banner-fade-in {
  from {opacity: 0; transform: translateY(100px);}
  to {opacity: 1; transform: translateY(0);}
}
.cookie-banner p {
  font-size: 1rem;
  margin-right: 20px;
  margin-bottom: 0;
  flex: 1 1 260px;
}
.cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.cookie-btn {
  padding: 11px 31px;
  border-radius: 26px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  background: var(--color-electric-blue);
  color: #fff;
  border: none;
  margin: 0;
  transition: background 0.16s, color 0.13s, box-shadow 0.15s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-hot-pink);
  color: #fff;
}
.cookie-btn.reject {
  background: #FA198B;
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: #3262FE;
}
.cookie-btn.settings {
  background: #FFCA2F;
  color: #21304C;
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2600;
  inset: 0;
  background: rgba(33, 48, 76, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: banner-fade-in 0.36s;
}
.cookie-modal {
  background: #fff;
  box-shadow: 0 8px 54px var(--color-shadow);
  border-radius: 18px;
  padding: 42px 28px 28px 28px;
  max-width: 410px;
  width: 96vw;
  position: relative;
}
.cookie-modal h3 {
  font-family: var(--font-display);
  color: var(--color-electric-blue);
  margin-bottom: 18px;
  font-size: 1.3rem;
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 17px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--color-hot-pink);
  cursor: pointer;
}
.cookie-preferences {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-electric-blue);
  width: 22px;
  height: 22px;
}
.cookie-category .essential {
  color: var(--color-secondary);
  font-weight: 700;
  margin-left: 7px;
}
@media (max-width: 700px) {
  .cookie-banner { flex-direction: column; gap: 14px; padding: 14px 7px; }
  .cookie-modal { padding: 34px 6vw 24px 6vw; }
}

/* Hide cookie modal/banner when needed*/
.cookie-banner[hidden], .cookie-modal-overlay[hidden] {
  display: none !important;
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus,
button:focus,
a:focus {
  outline: 2px solid var(--color-electric-blue);
  outline-offset: 2px;
}
::-webkit-input-placeholder { color: #B3BEC9; opacity:1; font-size:0.96rem; }
::-moz-placeholder { color: #B3BEC9; opacity:1; font-size:0.96rem; }
:-ms-input-placeholder { color: #B3BEC9; opacity:1; font-size:0.96rem; }
::placeholder { color: #B3BEC9; opacity:1; font-size:0.96rem; }

/* ============================================================
   MISC UTILITY
   ============================================================ */
.nowrap {white-space: nowrap;}
.center {text-align: center;}
.mt-auto {margin-top: auto;}

/* ============================================================
   PRINT OVERRIDE
   ============================================================ */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  body { background: #fff; color: #000; }
}
