/* ====================================================== */
/* CSS RESET & NORMALIZATION */
/* ====================================================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
.features-grid img {
  width: 100px;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
  margin: 0;
  padding: 0;
  font-weight: normal;
}
ul, ol {
  list-style: none;
}
a {
  background-color: transparent;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img, picture {
  max-width: 100%;
  display: block;
  height: auto;
}
button, input, textarea, select {
  font: inherit;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}
button {
  cursor: pointer;
}
:root {
  /* Brand Colors */
  --clr-primary: #245F8B;
  --clr-secondary: #E6EDF2;
  --clr-accent: #FFD84B;
  --clr-primary-light: #3B7BAA;
  --clr-dark-bg: #1B2836;
  --clr-card-bg: #24384e;
  --clr-white: #ffffff;
  --clr-neutral: #B0BCD3;
  --clr-success: #1FB995;
  --clr-danger: #ff5c5c;
  /* Font Families */
  --ff-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --ff-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* ====================================================== */
/* BASE TYPOGRAPHY */
/* ====================================================== */
body {
  font-family: var(--ff-body);
  background: var(--clr-dark-bg);
  color: var(--clr-secondary);
  line-height: 1.7;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  font-weight: 700;
  color: var(--clr-white);
  letter-spacing: 0.03em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

p, ul, ol {
  font-size: 1rem;
  margin-bottom: 12px;
}

strong {
  color: var(--clr-accent);
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 20px;
}

.container {
  width: 100%;
  margin: 0 auto;
  max-width: 1240px;
  padding: 0 16px;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ====================================================== */
/* TECH FUTURISTIC STYLE: GRADIENTS, NEON ACCENTS */
/* ====================================================== */
body {
  background: linear-gradient(120deg, #223145 0%, #245F8B 100%);
}

.section {
  background: linear-gradient(98deg, #223145 65%, #245F8B 100%);
  box-shadow: 0 4px 24px rgba(36,95,139,0.07), 0 1.5px 24px rgba(0,0,0,0.06);
  border-radius: 24px;
}

/* Add subtle lines with neon accent for header/footer/cards as pseudo elements */
.section::before {
  content: '';
  display: block;
  height: 4px;
  width: 60px;
  background: linear-gradient(90deg, var(--clr-accent) 0%, #9EA5B9 100%);
  border-radius: 2px;
  margin-bottom: 16px;
}

.section:first-child::before {
  display: none;
}

/* Card container utility */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--clr-card-bg);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 1px 12px 0 rgba(30,102,154,0.11);
  color: var(--clr-white);
  transition: transform 0.22s cubic-bezier(.37,1.31,.81,.68), box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 40px 0 rgba(171,211,255,0.08), 0 2px 8px 0 var(--clr-accent);
}
/* Standardize card min sizes for consistency */
.card, .service-card, .testimonial-card {
  min-width: 260px;
  flex: 1 1 320px;
}

/* Content specific flex patterns */
.features-grid, .services-list, .tips-feed, .success-stories, .team-block {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  justify-content: flex-start;
}
.features-grid > div, .services-list > div, .tips-feed > div, .success-stories > div, .team-block > div {
  background: var(--clr-card-bg);
  border-radius: 16px;
  padding: 24px 18px;
  box-shadow: 0 1px 8px 0 rgba(36,95,139,0.08);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 240px;
  flex: 1 1 260px;
  transition: transform 0.21s, box-shadow 0.18s;
}
.features-grid > div:hover, .services-list > div:hover, .tips-feed > div:hover, .success-stories > div:hover, .team-block > div:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 4px 20px 0 rgba(36,95,139,0.17);
}

/* Testimonial cards */
.testimonials-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 24px;
  margin-bottom: 20px;
  background: var(--clr-white);
  color: var(--clr-dark-bg); /* Ensures dark text on light card */
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 rgba(36,95,139,0.10), 0 4px 12px 0 rgba(202,202,202,0.06);
  min-width: 230px;
  flex: 1 1 330px;
  border-left: 4px solid var(--clr-primary);
}
.testimonial-card .stars {
  color: var(--clr-accent);
  font-size: 1.2rem;
  font-family: var(--ff-display);
  font-weight: 700;
  letter-spacing: 2px;
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--clr-primary);
  font-weight: 500;
}

/* Success stories */
.success-stories {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.success-stories > div {
  background: var(--clr-card-bg);
  border-radius: 12px;
  padding: 24px 18px;
  box-shadow: 0 2px 16px rgba(36,95,139,0.10);
  color: var(--clr-white);
  flex: 1 1 320px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.18s;
}
.success-stories > div:hover {
  box-shadow: 0 4px 20px 0 var(--clr-accent), 0 8px 24px rgba(36,95,139,0.08);
  transform: translateY(-4px);
}

/* =============================== */
/* BUTTON STYLES & INTERACTIONS */
/* =============================== */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 32px;
  padding: 13px 34px;
  margin-top: 4px;
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 20px rgba(36,95,139,0.08);
  transition: background 0.2s, color 0.15s, box-shadow 0.21s;
  border: none;
  outline: none;
}
.btn-primary {
  background: linear-gradient(90deg, var(--clr-accent) 0%, #FFF385 100%);
  color: var(--clr-primary);
  text-shadow: 0 1px 7px #fffca594, 0 1px #fff;
  border: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, #ffe98a 0%, var(--clr-accent) 100%);
  color: #172739;
  box-shadow: 0 4px 18px 0 var(--clr-accent), 0 8px 30px 0 rgba(36,95,139,0.07);
}
.btn-secondary {
  background: transparent;
  color: var(--clr-accent);
  border: 2px solid var(--clr-accent);
  box-shadow: 0 1px 8px 0 rgba(255,216,75,0.14);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--clr-accent);
  color: var(--clr-dark-bg);
  box-shadow: 0 6px 25px 0 var(--clr-accent), 0 4px 24px rgba(36,95,139,0.06);
}
.read-more {
  color: var(--clr-accent);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.19s;
}
.read-more:hover {
  color: var(--clr-white);
}

/* Inline links in text */
.content-wrapper a:not([class^='btn']):not(.read-more) {
  color: var(--clr-accent);
  text-decoration: underline;
  transition: color 0.16s;
}
.content-wrapper a:not([class^='btn']):hover {
  color: var(--clr-white);
}

/* =============================== */
/* NAVIGATION & HEADER LAYOUT */
/* =============================== */
header {
  background: rgba(27,40,54,0.93);
  border-bottom: 2px solid var(--clr-card-bg);
  box-shadow: 0 2px 18px 0 rgba(36, 95, 139, 0.09);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  gap: 12px;
}
header img {
  height: 38px;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  color: var(--clr-secondary);
  font-family: var(--ff-display);
  font-weight: 500;
  padding: 7px 0;
  transition: color 0.17s, border-bottom 0.2s;
  border-bottom: 2px solid transparent;
  font-size: 1.05rem;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--clr-accent);
  border-bottom: 2px solid var(--clr-accent);
}

.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--clr-accent);
  background: none;
  line-height: 1;
  border: none;
  border-radius: 50%;
  padding: 8px 14px;
  margin-left: 12px;
  transition: background 0.21s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: rgba(255,216,75,0.10);
}

/* ===================================== */
/* MOBILE MENU STYLES */
/* ===================================== */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background: rgba(24,36,53,0.99);
  box-shadow: 0 0 20px rgba(36,95,139,0.21);
  z-index: 999;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.33s cubic-bezier(.40,1.4,.6,1), opacity 0.21s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  font-size: 2rem;
  background: none;
  color: var(--clr-accent);
  border: none;
  margin: 24px 32px 0 0;
  align-self: flex-end;
  padding: 6px 14px;
  border-radius: 50%;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: rgba(255,216,75,0.15);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 40px;
  align-items: flex-end;
  padding-right: 38px;
}
.mobile-nav a {
  color: var(--clr-accent);
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 10px 0;
  width: 100%;
  text-align: right;
  transition: background 0.16s, color 0.16s;
  border-radius: 6px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(255,216,75,0.10);
  color: var(--clr-white);
}

/* =============================== */
/* FOOTER */
/* =============================== */
footer {
  background: linear-gradient(92deg,#223145 65%,#245F8B 100%);
  border-top: 2px solid var(--clr-card-bg);
  box-shadow: 0 -2px 22px 0 rgba(36, 95, 139, 0.07);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  gap: 8px;
  font-size: 0.98rem;
  color: var(--clr-neutral);
  flex: 1 1 300px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-nav a {
  color: var(--clr-neutral);
  text-decoration: underline;
}
.brand-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: 320px;
}
.brand-footer img {
  height: 28px;
}
.brand-footer p {
  font-size: 0.97rem;
  color: var(--clr-neutral);
  margin-top: 4px;
}
.contact-footer {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 260px;
  font-size: 0.97rem;
  color: var(--clr-neutral);
}
.contact-footer a {
  text-decoration: underline;
  color: var(--clr-accent);
  font-weight: 500;
}

/* =============================== */
/* FORM, LISTS, MISC */
/* =============================== */
ul, ol {
  margin-bottom: 12px;
  padding-left: 20px;
}
ul li, ol li {
  margin-bottom: 8px;
}
ul li::marker, ol li::marker {
  color: var(--clr-accent);
  font-size: 1.1em;
}

ol {
  list-style: decimal inside;
}

.map-placeholder {
  background: rgba(36, 95, 139, 0.13);
  color: var(--clr-accent);
  padding: 7px 18px;
  border-radius: 10px;
  font-size: 0.99rem;
  letter-spacing: 0.01em;
  font-style: italic;
}

/* =============================== */
/* SPACING UTILITIES */
/* =============================== */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =============================== */
/* RESPONSIVE DESIGN (MOBILE FIRST) */
/* =============================== */
@media (max-width: 1024px) {
  header .container, footer .content-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .brand-footer, .contact-footer {
    max-width: none;
    width: 100%;
  }
}
@media (max-width: 900px) {
  .features-grid, .services-list, .tips-feed, .success-stories, .team-block {
    flex-direction: column;
    gap: 18px;
  }
  .success-stories, .testimonials-preview {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  body {
    font-size: 15px;
  }
  .section {
    padding: 22px 8px;
    margin-bottom: 40px;
  }
  .container {
    padding: 0 4vw;
  }
  .main-nav {
    display: none;
  }
  .btn-primary, .btn-secondary {
    padding: 12px 18px;
    font-size: 1rem;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .content-wrapper {
    gap: 18px;
  }
  .footer-nav {
    flex-wrap: wrap;
    gap: 5px;
  }
  .brand-footer, .contact-footer {
    max-width: 100%;
  }
  .text-image-section, .content-grid {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .testimonials-preview, .success-stories {
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 500px) {
  h1 {
    font-size: 1.3rem;
  }
  h2 {
    font-size: 1.07rem;
  }
  .btn-primary, .btn-secondary {
    font-size: .91rem;
  }
  .section {
    padding: 14px 2px;
  }
}

/* =============================== */
/* ANIMATIONS & INTERACTIVE STATES */
/* =============================== */
.card, .service-card, .testimonial-card, .features-grid > div, .tips-feed > div {
  transition: box-shadow 0.21s, transform 0.19s;
}
.card:focus-within, .service-card:focus-within, .testimonial-card:focus-within {
  box-shadow: 0 0 0 3px var(--clr-accent), 0 3px 26px 0 rgba(255,216,75,0.14);
}

.btn-primary:active, .btn-secondary:active {
  transform: scale(0.97);
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--clr-accent);
}

/* =============================== */
/* COOKIE CONSENT BANNER & MODAL */
/* =============================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #24384e 70%, #245F8B);
  color: var(--clr-white);
  padding: 22px 24px;
  z-index: 1200;
  box-shadow: 0 -2px 20px 0 rgba(36,95,139,0.13);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  font-size: .97rem;
  border-radius: 26px 26px 0 0;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.16s, transform 0.21s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(90%);
}
.cookie-banner p {
  flex: 1 1 200px;
  margin: 0 12px 0 0;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.cookie-btn {
  border-radius: 30px;
  font-family: var(--ff-display);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 22px;
  margin-right: 2px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.cookie-btn.accept {
  background: var(--clr-accent);
  color: var(--clr-primary);
}
.cookie-btn.accept:hover {
  background: #ffe98a;
  color: #192A3E;
}
.cookie-btn.reject {
  background: #485F75;
  color: var(--clr-accent);
}
.cookie-btn.reject:hover {
  background: #2b434e;
}
.cookie-btn.settings {
  background: transparent;
  color: var(--clr-accent);
  border: 1px solid var(--clr-accent);
}
.cookie-btn.settings:hover {
  background: var(--clr-accent);
  color: var(--clr-primary);
}

/* Cookie modal overlay */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(23,38,58,.86);
  z-index: 1300;
  align-items: center;
  justify-content: center;
  transition: opacity 0.18s;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: linear-gradient(109deg, #223145 60%, #245F8B 100%);
  border-radius: 22px;
  box-shadow: 0 0 50px #18315C69;
  padding: 36px 30px;
  max-width: 410px;
  width: 98vw;
  color: var(--clr-white);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: slideModalDown 0.35s cubic-bezier(.36,1.8,.37,1.02);
}
@keyframes slideModalDown {
  from { transform: translateY(-32px); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-category label {
  font-weight: 500;
  min-width: 130px;
}
.cookie-toggle {
  width: 38px;
  height: 22px;
  border-radius: 20px;
  background: #253A4E;
  position: relative;
  cursor: pointer;
  transition: background 0.19s;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cookie-toggle span {
  position: absolute;
  top: 3px;
  left: 3px;
  height: 16px;
  width: 16px;
  background: var(--clr-neutral);
  border-radius: 50%;
  transition: background 0.13s, transform 0.21s;
}
.cookie-toggle input:checked + span {
  background: var(--clr-accent);
  transform: translateX(16px);
}
.cookie-modal .cookie-modal-close {
  align-self: flex-end;
  font-size: 1.6rem;
  background: none;
  color: var(--clr-accent);
  border: none;
  padding: 2px 13px;
  margin-top: -24px;
  margin-right: -20px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-modal .cookie-modal-close:hover {
  background: rgba(255,216,75,0.14);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 10px;
}
@media (max-width: 620px) {
  .cookie-modal {
    padding: 20px 5vw;
    min-width: 0;
  }
}

/* =============================== */
/* MISCELLANEOUS & ACCESSIBILITY */
/* =============================== */
::-webkit-scrollbar {
  width: 8px;
  background: #1B2836;
}
::-webkit-scrollbar-thumb {
  background: #223145;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #245F8B;
}

/* Focus outlines for accessibility (except on mouse click) */
:focus-visible {
  outline: 2px dashed var(--clr-accent);
  outline-offset: 3px;
}


/* =============================== */
/* END OF STYLES */
/* =============================== */
