/* --- 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,
b, u, i, center,
dl, dt, dd, menu, 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, 
main, 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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F2F5FA;
  color: #123E72;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  border: none;
  background: none;
}

/* --- CSS VARIABLES (with fallbacks) --- */
:root {
  --color-primary: #123E72;
  --color-secondary: #6FC6CB;
  --color-accent: #F2F2F2;
  --color-white: #fff;
  --color-dark: #123E72;
  --color-grey: #e0e6ef;
  --color-divider: #d0d8e8;
  --shadow-card: 0 4px 16px rgba(18, 62, 114, 0.08);
  --shadow-hover: 0 6px 24px rgba(18, 62, 114, 0.14);
  --radius-base: 14px;
  --radius-btn: 24px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* --- TYPOGRAPHY --- */
h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--color-primary);
}
h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
}
p, li, td, th, a, label, input, textarea {
  font-family: var(--font-body);
}
p, ul, ol, li {
  font-size: 1rem;
  margin-bottom: 14px;
  color: var(--color-dark);
}
strong {
  font-weight: 700;
}

/* --- CONTAINER & LAYOUT --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
}

.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Spacing Util Classes (for manual fine-tuning if needed) */
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }

/* --- HEADER & NAV --- */
header {
  width: 100%;
  background: linear-gradient(90deg, #123E72 60%, #6FC6CB 100%);
  box-shadow: 0 4px 18px rgba(18,62,114,0.065);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-base);
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cta-btn.primary {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-card);
  margin-left: 26px;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  border: none;
  cursor: pointer;
  display: inline-block;
}
.cta-btn.primary:hover, .cta-btn.primary:focus {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-hover);
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  border: none;
  color: var(--color-primary);
  font-size: 2rem;
  border-radius: 99px;
  padding: 4px 10px;
  margin-left: 16px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  z-index: 1800;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--color-primary);
  color: var(--color-white);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--color-white);
  box-shadow: 0 4px 32px rgba(18,62,114,0.17);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 85vw;
  max-width: 350px;
  transform: translateX(-110%);
  transition: transform 0.35s cubic-bezier(0.4,0.5,0.22,1);
  z-index: 2000;
  padding: 34px 28px 24px 28px;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  font-size: 2rem;
  color: var(--color-primary);
  align-self: flex-end;
  margin-bottom: 16px;
  padding: 2px 8px;
  border-radius: 999px;
  transition: background 0.2s, color 0.16s;
  cursor: pointer;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-secondary);
  color: var(--color-white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  margin-top: 12px;
}
.mobile-nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  padding: 10px 0;
  border-radius: var(--radius-base);
  transition: background 0.21s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-white);
}

/* --- HERO + GRADIENT SECTIONS --- */
.hero {
  background: linear-gradient(98deg, #6FC6CB 1%, #123E72 95%);
  color: var(--color-white);
  min-height: 340px;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  border-radius: var(--radius-base);
}
.hero .container {
  align-items: flex-start;
}
.hero .content-wrapper {
  gap: 16px;
  align-items: flex-start;
  margin-top: 40px;
}
.hero h1 {
  color: var(--color-white);
}

/* --- CARD & FLEX PATTERNS ---*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--color-white);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-card);
  position: relative;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .card:focus {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.01);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.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 LIST & ITEMS --- */
.features .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  margin-top: 16px;
}
.feature {
  background: var(--color-accent);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-card);
  padding: 26px 20px 22px 20px;
  flex: 1 1 220px;
  min-width: 210px;
  max-width: 270px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.18s, transform 0.16s;
}
.feature:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.02);
}
.feature img {
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
}
.feature h3 {
  margin-bottom: 4px;
}

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

/* --- TESTIMONIALS --- */
.testimonials {
  background: #f4fafb;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-card);
}
.testimonial-card {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 20px;
  padding: 20px;
  background: var(--color-white);
  border-radius: var(--radius-base);
  box-shadow: 0 1.5px 5px rgba(18,62,114,0.06);
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.16s;
}
.testimonial-card:last-child { margin-bottom: 0; }
.testimonial-card p {
  color: var(--color-primary);
  font-size: 1.08rem;
}
.testimonial-card strong { color: var(--color-secondary); }
.rating-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.1rem;
  margin-top: 10px;
  color: var(--color-primary);
  font-weight: 600;
}
.rating-summary img {
  width: 26px;
  height: 26px;
}

/* --- CALLOUTS & CTA LINK --- */
.call-to-action {
  background: linear-gradient(98deg, #6FC6CB 4%, #123E72 94%);
  color: var(--color-white);
  border-radius: var(--radius-base);
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.call-to-action h2, .call-to-action p {
  color: var(--color-white);
}
.cta-link {
  color: var(--color-primary);
  font-weight: 600;
  font-family: var(--font-display);
  border-bottom: 2px solid var(--color-secondary);
  transition: color 0.14s, border 0.14s;
  cursor: pointer;
  display: inline-block;
}
.cta-link:hover, .cta-link:focus {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-primary);
}

/* --- FOOTER --- */
footer {
  background: #122b46;
  color: #e6eaef;
  padding: 36px 0 24px 0;
  border-radius: var(--radius-base) var(--radius-base) 0 0;
  margin-top: 100px;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px 40px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--color-secondary);
  margin-bottom: 20px;
}
.footer-brand img {
  width: 48px;
  height: 48px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #e6eaef;
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 6px 0;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-secondary);
}
.footer-contact p {
  color: #e6eaef;
  font-size: 0.98rem;
}

/* --- PRICING TABLE --- */
.pricing-table {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 24px;
}
.pricing-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
  min-width: 400px;
}
.pricing-table th,
.pricing-table td {
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 14px 12px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1.04rem;
  border-radius: 8px;
}
.pricing-table th {
  background: var(--color-secondary);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 700;
}

/* --- FAQ / LEGAL / FORM SECTIONS --- */
.faq-list,
.mini-faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: var(--color-accent);
  border-radius: var(--radius-base);
  padding: 18px 20px;
  box-shadow: 0 1.5px 5px rgba(18,62,114,0.06);
  margin-bottom: 12px;
  transition: box-shadow 0.14s, transform 0.12s;
}
.faq-item:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}
.faq-item h2, .faq-item strong {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 5px;
  font-family: var(--font-display);
  font-weight: 600;
}
.faq-search {
  display: flex;
  flex-direction: row;
  width: 100%;
  gap: 12px;
}
.faq-search input {
  width: 100%;
  border-radius: var(--radius-btn);
  border: 2px solid var(--color-secondary);
  padding: 12px 16px;
  font-size: 1.08rem;
  background: var(--color-accent);
  color: var(--color-primary);
  transition: border 0.18s, box-shadow 0.14s;
}
.faq-search input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px #d3f6f8;
}
.legal-section {
  background: var(--color-accent);
  border-radius: var(--radius-base);
  padding: 24px 20px;
  font-size: 1rem;
  color: var(--color-dark);
  margin-bottom: 0;
  box-shadow: var(--shadow-card);
  word-break: break-word;
}

/* --- CONTACT & MAP EMBED --- */
.contact-details p {
  font-size: 1.08rem;
  color: var(--color-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.contact-details img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}
.map-embed {
  background: var(--color-accent);
  padding: 18px 15px;
  border-radius: var(--radius-base);
  font-size: 1rem;
  color: var(--color-primary);
  margin-top: 24px;
  font-weight: 600;
}

/* --- THANK YOU PAGE --- */
.thank-you {
  background: linear-gradient(100deg, #6FC6CB 10%, #123E72 88%);
  color: var(--color-white);
  border-radius: var(--radius-base);
  min-height: 350px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
}
.thank-you .container {
  align-items: center;
}
.thankyou-text {
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: var(--radius-base);
  padding: 28px 22px;
  margin-top: 18px;
  box-shadow: 0 2.5px 12px rgba(18,62,114,0.05);
}
.thankyou-text ul {
  margin-bottom: 18px;
  padding-left: 18px;
  color: var(--color-primary);
}

/* --- SPECIFIC FLEX LAYOUTS PER INSTRUCTIONS --- */
.section,
.features,
.card-container,
.card,
.content-grid,
.text-image-section,
.testimonial-card,
.feature-item,
footer .container {
  /* already implemented via above selectors */
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #123E72;
  color: #fff;
  font-family: var(--font-body);
  box-shadow: 0 -2px 24px rgba(18,62,114,0.11);
  z-index: 3500;
  padding: 30px 18px 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: cookie-slidein 0.6s cubic-bezier(.44,0,.38,1.22);
}
@keyframes cookie-slidein {
  0% { transform: translateY(120%); }
  100% { transform: translateY(0); }
}
.cookie-banner p {
  color: #fff;
  margin-bottom: 0;
  font-size: 1.08rem;
}
.cookie-btn-row {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 4px;
}
.cookie-btn {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-btn);
  padding: 10px 18px;
  cursor: pointer;
  border: none;
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 1.5px 6px rgba(18,62,114,0.07);
  transition: background 0.16s, color 0.16s, box-shadow 0.19s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-hover);
}
.cookie-btn.reject {
  background: #c4dae6;
  color: var(--color-primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--color-secondary);
  color: var(--color-white);
}
.cookie-btn.settings {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(18,62,114,0.28);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-modalfade 0.4s cubic-bezier(0.4,0.6,0.22,1);
}
@keyframes cookie-modalfade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: var(--color-primary);
  border-radius: var(--radius-base);
  box-shadow: 0 8px 44px rgba(18,62,114,0.16);
  width: 95vw;
  max-width: 410px;
  padding: 32px 23px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cookie-slideinmodal 0.42s cubic-bezier(.5,0,.38,1.04);
}
@keyframes cookie-slideinmodal {
  0% { transform: scale(.92) translateY(30px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.26rem;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 4px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}
.cookie-category label {
  font-size: 1.08rem;
  font-family: var(--font-body);
  color: var(--color-primary);
}
.cookie-category input[type="checkbox"] {
  width: 23px;
  height: 23px;
  accent-color: var(--color-secondary);
}
.cookie-modal-btn-bar {
  display: flex;
  flex-direction: row;
  gap: 23px;
  margin-top: 16px;
  justify-content: flex-end;
}
.cookie-modal-close {
  background: none;
  color: var(--color-primary);
  font-size: 2rem;
  border: none;
  border-radius: 99px;
  position: absolute;
  top: 14px;
  right: 18px;
  cursor: pointer;
  transition: background 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--color-secondary);
  color: var(--color-white);
}

/* --- RESPONSIVE QUERIES --- */
@media (max-width: 1024px) {
  .container {
    max-width: 980px;
    padding: 0 16px;
  }
  .footer-brand img { width: 38px; height: 38px; }
}
@media (max-width: 820px) {
  .features .feature-grid {
    gap: 18px 14px;
  }
}

@media (max-width: 900px) {
  header .container {
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 12px 14px;
  }
  .footer-brand,
  footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 14px;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.08rem; }
  h2 { font-size: 1.48rem; }
  .section, section {
    padding: 24px 9px;
    margin-bottom: 38px;
  }
  .container {
    padding: 0 8px;
    max-width: 100vw;
  }
  .main-nav {
    display: none !important;
  }
  .cta-btn.primary {
    margin-left: 0;
    font-size: 1rem;
    padding: 10px 18px;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero,
  .thank-you {
    border-radius: 0;
    padding: 10px 0;
    min-height: 190px;
  }
  .hero .content-wrapper, .thank-you .content-wrapper {
    margin-top: 6px;
    gap: 8px;
  }
  .features .feature-grid, .testimonials .content-wrapper {
    gap: 14px 4px;
    flex-wrap: wrap;
  }
  .feature {
    flex-basis: 94vw;
    min-width: unset;
    max-width: unset;
    padding: 18px 10px;
  }
  .card-container, .content-grid, .testimonial-card {
    gap: 10px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 8px;
  }
  .footer-brand img { width: 32px; height: 32px; }
  .footer-brand { font-size: 0.98rem; }
  footer { padding: 22px 0 12px 0; margin-top: 42px; }
}
@media (max-width: 600px) {
  .thankyou-text, .map-embed {
    padding: 18px 7px;
  }
}
@media (max-width: 550px) {
  .testimonial-card, .feature, .card {
    padding: 13px 5px;
    font-size: 0.97rem;
  }
  .footer-brand,
  .footer-contact,
  .footer-nav {
    font-size: 0.96rem;
  }
  .thank-you, .hero {
    min-height: 80px;
  }
}

/* --- UTILITY, ANIMATION, INTERACTIVE EFFECTS --- */
:focus {
  outline: 2px dashed var(--color-secondary);
  outline-offset: 2px;
}
.btn--animated {
  transition: background 0.18s, color 0.18s, transform 0.13s, box-shadow 0.17s;
}
.btn--animated:active {
  transform: scale(0.97);
}

/* --- OVERRIDES (keep interactive) --- */
a, .cta-link {
  cursor: pointer;
  transition: color 0.16s, border 0.16s;
}
a:active {
  color: var(--color-secondary);
}

/* --- HIDE SCROLL BAR FOR MOBILE NAV --- */
.mobile-menu::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

/* --- MAKE SURE OVERLAPPING NEVER OCCURS --- */
.card, .feature, .testimonial-card, .faq-item, .section, section {
  margin-bottom: 20px;
}
.card-container, .feature-grid, .content-grid, .mini-faq-list, .faq-list {
  gap: 20px;
}

/* END OF CSS */
