/* 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F2EFEA;
  color: #11324F;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: #204163;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:active, a:focus {
  color: #F26649;
  outline: none;
}
ul, ol {
  list-style-position: inside;
  margin-left: 1em;
  margin-bottom: 1em;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
*, *::before, *::after {
  box-sizing: inherit;
}

/* BRAND COLORS (vibrant energetic palette extension) */
:root {
  --primary: #204163;
  --primary-light: #2b5fa1;
  --secondary: #41745B;
  --accent: #F2EFEA;
  --vibrant-pink: #F26649;
  --vibrant-cyan: #22D4DB;
  --midnight-blue: #11324F;
  --electric-yellow: #FFE600;
  --electric-lime: #2AFF8A;
  --card-bg: #fff;
  --shadow: 0 4px 24px 0 rgba(26, 41, 60, 0.12);
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 7px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 0.7em;
}
h1 { font-size: 2.5rem; line-height: 1.15; }
h2 { font-size: 2rem; line-height: 1.2; }
h3 { font-size: 1.25rem; line-height: 1.3; }
h4 { font-size: 1.12rem; }
h5, h6 { font-size: 1rem; }
p, li, th, td, span, label, input, ul, ol {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  color: var(--midnight-blue);
}
p, ul, ol { margin-bottom: 0.8em; }
strong { font-weight: 700; }

/* CONTAINER & GENERAL LAYOUT */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* HEADER + NAVIGATION */
header {
  background: var(--card-bg);
  box-shadow: var(--shadow);
  z-index: 99;
  position: sticky;
  top: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
}
.logo img {
  height: 48px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  color: var(--primary);
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--vibrant-pink);
  color: #fff;
}
.cta.primary {
  display: inline-block;
  background: linear-gradient(90deg, var(--vibrant-cyan) 0%, var(--vibrant-pink) 80%);
  color: #fff !important;
  font-weight: bold;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 30px;
  cursor: pointer;
  letter-spacing: 1px;
  box-shadow: 0 2px 14px 0 rgba(34,212,219,0.14);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.cta.primary:hover,
.cta.primary:focus {
  background: linear-gradient(90deg, var(--electric-yellow) 30%, var(--vibrant-pink) 80%);
  color: var(--primary);
  box-shadow: 0 6px 26px 0 rgba(242,102,73,0.18);
  transform: translateY(-2px) scale(1.04);
  text-decoration: none;
}

/* MOBILE MENU BUTTON */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 22px;
  right: 28px;
  z-index: 1050;
  width: 44px;
  height: 44px;
  background: var(--electric-yellow);
  color: var(--primary);
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--vibrant-pink);
  color: #fff;
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.77,.24,.11,.84);
  box-shadow: 0 6px 28px #11324f12;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  font-size: 2rem;
  margin: 24px 28px 10px 0;
  color: var(--primary);
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--vibrant-pink);
}
.mobile-menu .mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: flex-start;
  padding: 0 32px;
  gap: 22px;
}
.mobile-menu .mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.22rem;
  font-weight: bold;
  padding: 14px 0;
  color: var(--primary);
  width: 100%;
  border-bottom: 1px solid #efecf6;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu .mobile-nav a:hover {
  background: var(--vibrant-cyan);
  color: #fff;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(95deg, var(--accent) 70%, var(--vibrant-cyan) 97%);
  border-bottom: 4px solid var(--electric-yellow);
  margin-bottom: 0;
  padding: 64px 0 56px 0;
}
.hero .container {
  align-items: flex-start;
}
.hero .content-wrapper {
  align-items: flex-start;
}
.hero h1 {
  color: var(--midnight-blue);
  font-size: 2.5rem;
  margin-bottom: 0.4em;
  font-weight: 900;
  letter-spacing: 0.03em;
}
.hero p {
  font-size: 1.15rem;
  max-width: 580px;
  margin-bottom: 24px;
  color: var(--primary-light);
}
.hero .cta.primary {
  margin-top: 18px;
}

/* FLEXBOX STRUCTURES (MANDATORY) */
.features {
  background: var(--card-bg);
}
.features .container { align-items: flex-start; }
.features .content-wrapper { gap: 0; }
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 25px;
}
.feature-grid li {
  flex: 1 1 250px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 26px 24px 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-width: 250px;
  max-width: 345px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.22s, transform 0.18s;
  border: 2px solid transparent;
}
.feature-grid li:hover {
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 8px 28px 0 rgba(66,116,91, 0.13);
  border-color: var(--vibrant-cyan);
}
.feature-grid img {
  height: 50px;
  width: 50px;
  margin-bottom: 6px;
}
.feature-grid h3 {
  font-size: 1.18rem;
  color: var(--vibrant-pink);
  font-weight: bold;
}
.feature-grid p {
  font-size: 1rem;
  color: var(--primary);
  opacity: 0.94;
}

/* SERVICES */
.services .container { align-items: flex-start; }
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
}
.services-list li {
  min-width: 240px;
  flex: 1 1 290px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 26px 20px 18px 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.17s;
  position: relative;
  border: 2px solid transparent;
}
.services-list li:hover {
  box-shadow: 0 12px 38px 0 rgba(34,212,219,0.13);
  border-color: var(--electric-lime);
  transform: scale(1.032);
}
.services-list img {
  height: 48px;
  width: 48px;
}
.services-list h2, .services-list h3 {
  font-size: 1.2rem;
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
.services-list p {
  font-size: 1rem;
  opacity: 0.97;
  color: var(--midnight-blue);
}
.services-list span {
  margin-top: 10px;
  color: var(--primary);
  font-weight: bold;
  background: var(--electric-yellow);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
}

/* TESTIMONIALS */
.testimonials {
  background: var(--accent);
  padding: 48px 0;
}
.testimonials .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  margin-top: 28px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 32px 24px 20px 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 32px 0 rgba(66,121,181,0.13);
  margin-bottom: 20px;
  min-width: 270px;
  max-width: 410px;
  border-left: 6px solid var(--vibrant-pink);
  transition: box-shadow 0.18s, border 0.2s;
}
.testimonial-card p {
  font-size: 1.08rem;
  color: #20395b;
}
.testimonial-card .client-name {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--secondary);
  margin-top: 4px;
}
.testimonial-card:hover {
  box-shadow: 0 10px 30px 0 rgba(242,102,73,0.17);
  border-left-color: var(--electric-lime);
}

/* ABOUT, LEGAL, GUIDE, CONTACT, etc */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 1.1rem;
  color: var(--primary);
}
.text-section ul {
  margin-bottom: 18px;
}
.text-section h2 {
  margin-top: 38px;
  margin-bottom: 14px;
  font-size: 1.27rem;
  color: var(--secondary);
  font-weight: 700;
}

/* PRICING TABLE */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
  margin-top: 8px;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.pricing-table th, .pricing-table td {
  padding: 18px 16px;
  text-align: left;
  font-size: 1rem;
  border-bottom: 1px solid #e5e8f0;
}
.pricing-table th {
  background: var(--primary);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.11rem;
  letter-spacing: 0.09em;
}
.pricing-table tr:last-child td {
  border-bottom: none;
}

/* CTA SECTION */
.cta {
  background: linear-gradient(90deg, var(--electric-yellow) 10%, var(--vibrant-cyan) 70%);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 22px 0 rgba(34,212,219,0.14);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.cta .container,
.cta .content-wrapper {
  align-items: center;
  justify-content: center;
}
.cta h2 {
  color: var(--primary);
  margin-bottom: 18px;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px #ffe60044;
}

/* FAQ & GUIDE */
.question {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: 22px 22px 16px 22px;
  transition: box-shadow 0.15s, border 0.08s;
  border-left: 5px solid var(--vibrant-cyan);
}
.question:hover {
  box-shadow: 0 10px 18px 0 rgba(242,102,73,0.08);
  border-left-color: var(--vibrant-pink);
}
.question h3 { font-size: 1.09rem; color: var(--primary); margin-bottom: 10px; }

/* CASE STUDIES */
.case-studies .content-wrapper {
  flex-wrap: wrap;
  gap: 32px;
}
.next-steps ul {
  margin-top: 12px;
  margin-bottom: 20px;
}

/* CONTACT PAGE: map placeholder */
.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 0 4px 0;
}
.map-placeholder img {
  width: 100%;
  max-width: 370px;
  border-radius: var(--radius-md);
  border: 2.5px solid var(--electric-lime);
  background: #fff;
  box-shadow: 0 2px 10px #20416314;
}
.map-placeholder p {
  font-size: 0.94rem;
  color: var(--secondary);
}

/* FOOTER */
footer {
  background: var(--primary);
  color: #fff;
  padding: 38px 0 22px 0;
}
footer .container {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
}
.footer-info {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-info img {
  height: 37px;
  width: auto;
}
.footer-info p {
  color: #fff;
  font-size: 0.98rem;
}
.footer-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.footer-nav a:hover {
  color: var(--primary);
  background: var(--vibrant-cyan);
}

/* BUTTON STYLE RESET (FOR COOKIE, HERO, CTA) */
button, .cta.primary, .cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.17s, color 0.13s, box-shadow 0.16s, transform 0.1s;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 -4px 24px rgba(26,41,60,0.13);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 32px 18px 32px;
  z-index: 2500;
  font-size: 1rem;
  border-radius: 18px 18px 0 0;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s, transform 0.35s;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(110%);
  pointer-events: none;
}
.cookie-banner .cookie-btn {
  margin-left: 10px;
  background: var(--secondary);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0;
  box-shadow: 0 2px 8px #2041630f;
}
.cookie-banner .cookie-btn.accept {
  background: var(--vibrant-pink);
}
.cookie-banner .cookie-btn.reject {
  background: var(--primary-light);
}
.cookie-banner .cookie-btn.settings {
  background: var(--electric-yellow);
  color: var(--primary);
}
.cookie-banner .cookie-btn:hover {
  opacity: 0.92;
  transform: scale(1.035);
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,65,99,0.46);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.28s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal .cookie-modal-content {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 5px 42px rgba(34,212,219,0.15);
  padding: 32px 30px 18px 30px;
  width: 96vw;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal .cookie-modal-content h3 {
  font-weight: 900;
  color: var(--primary);
  font-size: 1.16rem;
  margin-bottom: 7px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.cookie-modal .category {
  display: flex;
  align-items: center;
  gap: 11px;
}
.cookie-modal .category label {
  font-size: 1rem;
  color: var(--primary);
}
.cookie-modal .category input[type=checkbox] {
  accent-color: var(--primary-light);
  width: 20px; height: 20px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  min-width: 92px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 15px; right: 15px;
  background: transparent;
  font-size: 1.5rem;
  color: var(--primary);
  border: none;
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-modal .close-modal:hover {
  color: var(--vibrant-pink);
}

/* MISC CARD CONTAINERS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 24px 16px;
  min-width: 220px;
  transition: box-shadow 0.13s;
}
.card:hover {
  box-shadow: 0 9px 24px rgba(242,102,73,0.15);
}
.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;
}

/* Media queries for responsive adaptation (mobile-first) */
@media (max-width: 1024px) {
  header .container, footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 20px 14px;
  }
  .footer-info { margin-top: 14px; flex-direction: column; gap: 6px; }
}

@media (max-width: 900px) {
  .feature-grid, .services-list, .content-grid, .testimonials .content-wrapper {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .feature-grid li, .services-list li, .testimonial-card {
    max-width: none;
    min-width: 190px;
    width: 100%;
  }
  .case-studies .content-wrapper { flex-direction: column; }
  .hero .container { padding: 0 5vw; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-toggle {
    display: block;
  }
  .cta.primary { padding: 12px 18px; font-size: 1rem; }
  header .container { padding: 13px 12px; }
  .section, .cta {
    padding: 30px 10px;
    margin-bottom: 36px;
  }
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.22rem; }
  .hero { padding: 38px 0 36px 0; }
  .testimonials { padding: 29px 0; }
  .testimonials .content-wrapper {
    gap: 14px;
    margin-top: 12px;
  }
  .feature-grid, .services-list { gap: 12px; }
  .feature-grid li, .services-list li, .testimonial-card {
    padding: 17px 13px 14px 13px;
    min-width: 0; max-width: none;
  }
  .footer-info img { height: 24px; }
  .footer-info p { font-size: 0.91rem; }
  .text-section h2 { margin-top: 24px; }
}
@media (max-width: 560px) {
  .footer-nav {
    flex-direction: column;
    gap: 6px;
  }
  .hero h1 {
    font-size: 1.25rem;
    margin-bottom: 10px;
  }
  .hero p { font-size: 0.89rem; }
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 7px 7px 7px;
    font-size: 0.95rem;
    gap: 13px;
  }
  .cookie-banner .cookie-btn {
    margin-left: 0;
    margin-right: 7px;
  }
  .cookie-modal .cookie-modal-content {
    padding: 18px 7px 16px 7px;
    width: 98vw;
    max-width: 340px;
  }
}

/* SUBTLE ANIMATIONS/MICRO-INTERACTIONS */
.cta.primary, .main-nav a, .footer-nav a, .card, .card:hover, .feature-grid li, .services-list li, .testimonial-card, .cookie-btn {
  transition: background 0.17s, color 0.12s, box-shadow 0.18s, border 0.2s, transform 0.15s;
}
.cta.primary:active, .cookie-btn:active {
  transform: scale(0.98);
  box-shadow: 0 1px 7px 0 #2041632b;
}
input, textarea, select {
  border: 2px solid #e5e8f0;
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  font-size: 1rem;
  font-family: 'Lato', Arial, sans-serif;
  margin-bottom: 12px;
  background: #fff;
  box-shadow: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--vibrant-cyan);
  outline: none;
}

/* ACCESSIBILITY AND ENHANCED VISIBILITY */
:focus-visible {
  outline: 2px solid var(--electric-yellow);
  outline-offset: 1px;
}

/* PREVENT ABSOLUTE POSITION ON CONTENT CARDS (decoration allowed only) */
/* OK */

/* Z-INDEX MANAGEMENT (mobile menu, cookie, modal) */
.mobile-menu, .cookie-banner, .cookie-modal { z-index: 2000; }

/* NO OVERLAPS: Adequate spacing everywhere with "gap" and margin-bottom */
