/* --- CSS RESET & NORMALIZATION --- */
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;
}
html { scroll-behavior: smooth; }
body {
  line-height: 1.6;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #F5F7F8;
  color: #222;
  min-height: 100vh;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  margin-left: 24px;
  padding-left: 0;
}

/* --- BRAND VARIABLES (FALLBACKS) --- */
:root {
  --color-primary: #285B8E;
  --color-secondary: #F5F7F8;
  --color-accent: #E26A3D;
  --color-dark: #181c21;
  --color-light: #fff;
  --shadow: 0 4px 24px rgba(40, 91, 142, 0.08);
  --radius: 16px;
  --radius-sm: 8px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}


/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-primary);
}
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 4px;
}
h4 {
  font-size: 1.1rem;
  font-weight: 500;
}
p, li, ul, ol {
  font-size: 1rem;
  color: #222;
}
strong {
  color: var(--color-primary);
}

@media (max-width: 768px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.25rem; }
}


/* --- LAYOUT CONTAINER --- */
.container {
  width: 100%;
  max-width: 1180px;
  padding: 0 18px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

/* --- HEADER / NAVIGATION --- */
header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(90deg, #fff, #EFF3F6 60%, #EAF1F8);
  box-shadow: var(--shadow);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
}
header img {
  height: 48px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.main-nav a {
  padding: 8px 14px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  transition: background .18s,color .18s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.main-nav .btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 10px 22px;
  margin-left: 12px;
  transition: background 0.18s, color 0.18s;
}
.main-nav .btn-primary:hover {
  background: var(--color-accent);
  color: #fff;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-primary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-accent);
  color: #fff;
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  width: 100vw;
  max-width: 340px;
  height: 100vh;
  background: linear-gradient(135deg,var(--color-primary) 60%, var(--color-accent));
  box-shadow: 0 8px 32px rgba(40,91,142,0.20);
  transform: translateX(100%);
  transition: transform 0.37s cubic-bezier(.77,.18,.47,1.12);
  padding: 32px 24px 20px 24px;
  overflow-y: auto;
  opacity: 0.97;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.1rem;
  margin-bottom: 24px;
  cursor: pointer;
  transition: color 0.17s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #ffedd5;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-body);
  font-size: 1.08rem;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-weight: 500;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(255,255,255,0.12);
  color: #FFDFD0;
}
.mobile-nav .btn-primary {
  background: #fff;
  color: var(--color-primary) !important;
  font-weight: 700;
  padding: 13px 10px;
  margin-top: 14px;
  border-radius: var(--radius);
}

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

/* --- SECTION LAYOUTS & SPACING --- */
.section, .features, .about-preview, .testimonials, .services, .pricing, .tips, .team, .cta, .legal-section, .contact-section, .map-section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

.features, .services, .pricing, .tips, .team {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero {
  background: linear-gradient(125deg,#fff 70%,#D2E3F8 100%);
  margin-bottom: 60px;
  padding: 64px 20px 48px 20px;
  border-bottom: 1.5px solid #e5e7eb;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 14px;
}

.cta {
  background: linear-gradient(100deg,var(--color-primary) 80%, var(--color-accent) 110%);
  color: #fff;
  text-align: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 20px;
}
.cta h2, .cta p {
  color: #fff !important;
}
_cta a.btn-primary {
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
}

/* --- ABOUT PREVIEW --- */
.about-preview {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
}

/* --- TESTIMONIALS --- */
.testimonials {
  background: #F4F9FF;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
}
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 26px 24px 20px 24px;
  min-width: 240px;
  max-width: 344px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 24px rgba(40, 91, 142, 0.13);
  color: #222;
  font-size: 1.13rem;
  margin-bottom: 20px;
  flex: 1 1 240px;
  transition: box-shadow 0.17s, transform 0.17s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 32px 0 rgba(226, 106, 61, 0.11);
  transform: translateY(-4px) scale(1.02);
}
.testimonial-card span {
  color: var(--color-accent);
  font-size: 0.98rem;
  font-family: var(--font-display);
  font-weight: 500;
}

/* --- FEATURE GRID --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 26px 20px 22px 20px;
  border-radius: var(--radius);
  background: #F8FAFD;
  min-width: 206px;
  max-width: 250px;
  box-shadow: 0 3px 12px rgba(40, 91, 142, 0.08);
  transition: box-shadow 0.17s, background 0.17s;
  margin-bottom: 20px;
  flex: 1 0 206px;
}
.feature-item:hover {
  background: #eaf1f7;
  box-shadow: 0 6px 28px rgba(40, 91, 142, 0.14);
}
.feature-item img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

/* --- TEAM SECTION --- */
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.team-member {
  background: #F4F9FF;
  border-radius: var(--radius);
  padding: 22px 18px 16px 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 16px rgba(40, 91, 142, 0.08);
  flex: 1 1 210px;
}
.team-member h3 { margin-bottom: 6px; }
.team-member p { font-size: 1rem; }

/* --- CARD CONTAINER PATTERN (if used in future) --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 20px;
  transition: box-shadow 0.17s, transform 0.14s;
}
.card:hover { box-shadow: 0 5px 28px rgba(40, 91, 142, 0.17); transform: translateY(-2px) scale(1.01); }

.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;
}

/* --- CONTACT & MAP SECTIONS --- */
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 26px;
}
.contact-details > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #F4F9FF;
  border-radius: var(--radius-sm);
  font-size: 1rem;
}
.map-preview {
  background: #F4F9FF;
  border-radius: var(--radius);
  padding: 20px 18px;
  font-size: 1rem;
  color: var(--color-dark);
  margin-bottom: 14px;
}

/* --- LEGAL SECTIONS --- */
.legal-section {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 20px;
}
.legal-section h1, .legal-section h2
  { color: var(--color-primary); }

/* --- FOOTER --- */
footer {
  background: #fff;
  box-shadow: 0 -1px 14px rgba(40, 91, 142, 0.07);
  margin-top: 60px;
  padding: 36px 0 6px 0;
  font-size: 0.98rem;
}
footer .container {
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 500;
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  transition: background .13s;
}
.footer-nav a:hover { background: #F0F4FA; }
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #222;
}
.footer-contact img {
  width: 20px;
  height: 20px;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin: 14px 0 4px 0;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F4F9FF;
  transition: background 0.18s;
}
.footer-social a:hover { background: var(--color-primary); }
.footer-social img {
  width: 22px; height: 22px;
}
.footer-copy {
  margin-top: 10px;
  color: #8592A2;
  font-size: 0.92rem;
}

/* --- BUTTONS --- */
.btn-primary, .btn-secondary {
  display: inline-block;
  border: none;
  border-radius: var(--radius);
  padding: 13px 28px;
  font-family: var(--font-display);
  font-size: 1.09rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.21s, color 0.21s, box-shadow 0.15s;
  text-align: center;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(40,91,142,0.09);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 5px 20px rgba(226,106,61,0.11);
}
.btn-secondary {
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: 0 2px 8px rgba(40,91,142,0.05);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #EFF3F6;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* --- LIST & SECTIONS --- */
ul, ol { margin-bottom: 18px; }
ul li, ol li { margin-bottom: 8px; }
li:last-child { margin-bottom: 0; }

/* --- MICRO-ANIMATIONS AND TRANSITIONS --- */
.section, .features, .about-preview, .testimonials, .services, .pricing, .tips, .team, .card, .feature-item, .testimonial-card, .cta {
  transition: box-shadow 0.18s, background 0.18s, transform 0.18s;
  will-change: box-shadow,background,transform;
}


/* --- COOKIE CONSENT BANNER & MODAL --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  background: linear-gradient(90deg, #fff 80%, #D2E3F8);
  color: #181c21;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 22px 24px;
  box-shadow: 0 -6px 24px rgba(40,91,142,0.12);
  z-index: 200;
  font-size: 1rem;
  animation: cookieAppear 0.7s cubic-bezier(.77,.18,.47,1.12) 0s 1;
}
@keyframes cookieAppear {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner .cookie-text {
  flex: 1 1 220px;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}
.cookie-btn {
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  transition: background .15s,color .15s;
}
.cookie-btn.accept {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn.accept:hover {
  background: var(--color-accent);
  color: #fff;
}
.cookie-btn.reject {
  background: #EDF1F6;
  color: var(--color-primary);
}
.cookie-btn.reject:hover {
  background: var(--color-accent);
  color: #fff;
}
.cookie-btn.settings {
  background: #fff;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
}
.cookie-btn.settings:hover {
  background: #F0F4FA;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(40,91,142,0.16);
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.14s;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(40,91,142,0.16);
  min-width: 320px;
  max-width: 96vw;
  padding: 30px 22px 22px 22px;
  z-index: 211;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookieModalPop 0.32s cubic-bezier(.37,.68,.59,1.12) 0s 1;
}
@keyframes cookieModalPop {
  from { opacity: 0; transform: scale(0.93);
  } to { opacity: 1; transform: scale(1); }
}
.cookie-modal h2 {
  margin-bottom: 6px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-category label {
  font-weight: 500;
  color: var(--color-primary);
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-accent);
  width: 16px; height: 16px;
  margin-right: 4px;
}
.cookie-category.essential label {
  color: var(--color-dark);
  opacity: 0.7;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
  margin-top: 14px;
}


/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
  .feature-grid,
  .team-list,
  .testimonial-list,
  .footer-contact {
    gap: 14px;
  }
  .main-nav { display: none !important; }
  header .container {
    padding-top: 12px; padding-bottom: 12px; gap: 8px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .team-list, .testimonial-list, .card-container {
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .hero, .section, .features, .about-preview, .testimonials, .services, .tips, .pricing, .team, .cta, .legal-section, .contact-section, .map-section {
    padding: 24px 8px;
    margin-bottom: 38px;
    border-radius: var(--radius-sm);
  }
  .content-wrapper {
    max-width: 99vw;
    gap: 16px;
  }
  .feature-grid, .team-list, .testimonial-list, .card-container { gap: 8px; }
  .feature-item, .team-member, .testimonial-card, .card {
    min-width: 85vw;
    max-width: 99vw;
    padding: 18px 10px;
    font-size: 1rem;
  }
  .footer-contact {
    flex-direction: column;
    gap: 4px;
  }
  .cta {
    padding: 30px 8px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
@media (max-width: 520px) {
  .hero { padding-left: 6px; padding-right: 6px; }
  .container { padding-right: 3px; padding-left: 3px; }
  .footer-social { gap: 10px; }
  .cookie-banner { flex-direction: column; gap: 10px; padding: 18px 7px; }
  .cookie-banner .cookie-text { font-size: 0.97rem; }
}

/* --- UTILITY CLASSES --- */
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }

/* --- FORM INPUTS (If any in future) --- */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1.6px solid #B7C3D7;
  outline: none;
  background: #F7FAFC;
  color: #181c21;
  margin-bottom: 16px;
  transition: border 0.15s, background 0.15s;
}
input:focus, textarea:focus, select:focus {
  border: 1.6px solid var(--color-primary);
  background: #fff;
}

/* --- MISC --- */
::-webkit-scrollbar { width: 8px; background: #F5F7F8; }
::-webkit-scrollbar-thumb { background: #CCE3F8; border-radius: 10px; }

/* --- FLEX-ONLY LAYOUT ENFORCEMENT EXAMPLES (for container classes) --- */
.features, .feature-grid, .team-list, .card-container, .testimonial-list, .content-grid, .text-image-section, .footer-social, .footer-contact, .footer-nav, .mobile-nav, .cookie-btns, .cookie-categories, .cookie-modal-actions, .contact-details {
  display: flex;
  flex-wrap: wrap;
}

.features, .feature-grid, .team-list, .testimonial-list, .content-grid, .card-container {
  gap: 24px;
}

/* --- END --- */