/* 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;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  color: #26404d;
  background: #FCFBFF;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased; 
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border-radius: 8px;
}
[tabindex='-1']:focus {
  outline: none;
}

/* ROOT COLOR PALETTE - SOFT PASTEL --------------------------------- */
:root {
  --brand-primary: #173B4C;
  --brand-secondary: #EABB21;
  --brand-accent: #F4F7FA;
  --pastel-blue: #cbe2f2;
  --pastel-purple: #ecd6f6;
  --pastel-yellow: #fff6d1;
  --pastel-green: #d7ede5;
  --pastel-pink: #ffe7f1;
  --header-bg: #f4f7fa;
  --white: #ffffff;
  --dark: #203548;
  --shadow: 0 2px 12px 0 rgba(120,130,160,0.10);
  --border-radius: 18px;
  --transition: all 0.22s cubic-bezier(.4,0,.2,1);
}

/* TYPOGRAPHY ------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--brand-primary);
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
p, li, .faq-list p, .feature-item p, .testimonial-card p, blockquote {
  font-family: 'Roboto', Arial, sans-serif;
  color: #324045;
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 16px;
}
blockquote {
  font-style: italic;
  color: #5D6A7B;
  background: var(--pastel-blue);
  padding: 24px 32px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin: 0 0 24px 0;
}
ul li, ol li {
  margin-bottom: 8px;
}
strong {
  color: var(--brand-primary);
}
a:hover, a:focus {
  color: var(--brand-secondary);
  text-decoration: underline;
}

/* LAYOUT & SPACING ------------------------------------------------ */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.card-container,
.card-grid,
.feature-grid,
.advantages-grid,
.faq-list,
.team-bio-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  min-width: 250px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 4px 24px 0 rgba(120,130,160,0.20);
}
.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;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 28px;
  border-radius: var(--border-radius);
  background: var(--pastel-purple);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  max-width: 450px;
  transition: box-shadow var(--transition), background 0.2s;
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--brand-primary);
  font-weight: 500;
}
.testimonial-card .stars {
  color: #ffdc5a;
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.testimonials-preview .testimonial-card {
  background: var(--pastel-yellow);
}
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--pastel-green);
  border-radius: var(--border-radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
}
.team-bio {
  background: var(--pastel-pink);
  border-radius: var(--border-radius);
  padding: 22px 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.advantages-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.advantages-grid > div {
  background: var(--pastel-yellow);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 22px 18px;
  flex: 1 1 240px;
  min-width: 220px;
}

/* HERO & SECTION BACKGROUNDS --------------------------------------- */
.hero {
  background: linear-gradient(120deg, var(--pastel-purple) 0%, var(--pastel-blue) 100%);
  padding: 64px 0 48px 0;
  margin-bottom: 56px;
}
.hero h1, .hero p {
  color: var(--brand-primary);
}
.about-preview,
.services-preview {
  background: var(--pastel-pink);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}
.features {
  background: var(--brand-accent);
  border-radius: var(--border-radius);
  padding: 40px 0;
  margin: 40px 0;
}
.quote {
  background: var(--pastel-blue);
}
.contact-cta {
  background: var(--pastel-green);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 36px 0;
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* MAIN NAVIGATION ------------------------------------------------ */
header {
  background: var(--header-bg);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 30;
  box-shadow: 0 1px 8px 0 rgba(190,200,220,0.03);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 0;
  justify-content: flex-start;
}
.main-nav a {
  font-size: 1rem;
  color: var(--brand-primary);
  padding: 6px 16px;
  border-radius: 6px;
  transition: background 0.15s, color 0.17s;
  font-family: 'Oswald', 'Roboto', Arial, sans-serif;
}
.main-nav a.cta {
  background: var(--brand-secondary);
  color: #fff;
  font-weight: bold;
  border-radius: 24px;
  padding: 7px 26px;
  margin-left: 12px;
  box-shadow: 0 1px 8px 0 rgba(234,187,33,0.1);
  transition: background 0.15s, color 0.15s, box-shadow 0.2s;
}
.main-nav a.cta:hover,
.main-nav a.cta:focus {
  background: #FFD866;
  color: #173B4C;
  box-shadow: 0 4px 20px 0 rgba(234,187,33,0.22);
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--pastel-blue);
  color: #1a5777;
}
.main-nav img {
  height: 44px;
  width: auto;
  margin-right: 18px;
  display: block;
}

/* MOBILE MENU ---------------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 28px;
  top: 18px;
  font-size: 2.1rem;
  background: none;
  border: none;
  color: var(--brand-primary);
  cursor: pointer;
  z-index: 51;
  padding: 6px 10px;
  margin: 0;
  transition: background 0.12s;
  border-radius: 8px;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--pastel-purple);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 82vw;
  max-width: 380px;
  background: var(--white);
  box-shadow: 0 2px 32px 0 rgba(120,130,160,0.19);
  z-index: 999;
  padding: 40px 28px 28px 22px;
  transform: translateX(-110%);
  opacity: 0;
  transition: transform 0.41s cubic-bezier(.4,0,.2,1), opacity 0.31s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  font-size: 1.8rem;
  background: none;
  border: none;
  color: var(--brand-primary);
  align-self: flex-end;
  margin-bottom: 24px;
  cursor: pointer;
  transition: color 0.2s;
  padding: 8px 10px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--brand-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.13rem;
  color: var(--brand-primary);
  padding: 10px 0;
  transition: color 0.18s;
  border-radius: 6px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--brand-secondary);
  background: var(--pastel-yellow);
}
.mobile-nav a:last-child {
  margin-bottom: 8px;
}

/* MOBILE MENU OVERLAY */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(30, 45, 50, 0.3);
  z-index: 998;
}
.mobile-menu.open ~ .mobile-menu-overlay {
  display: block;
}

@media (max-width: 1060px) {
  .main-nav {
    font-size: 0.94rem;
    gap: 12px;
  }
}

@media (max-width: 900px) {
  .main-nav {
    font-size: 0.89rem;
    gap: 9px;
    flex-wrap: wrap;
  }
  .main-nav img {
    height: 36px;
    margin-right: 10px;
  }
  .container { padding: 0 16px; }
}

@media (max-width: 820px) {
  header {
    padding-bottom: 8px;
  }
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
}

@media (max-width: 460px) {
  .mobile-menu {
    width: 99vw;
    max-width: 100vw;
    padding-left: 12px;
    padding-right: 12px;
  }
  .main-nav img {
    height: 32px;
  }
}

/* FOOTER --------------------------------------------------------- */
footer {
  background: var(--header-bg);
  padding: 36px 0 22px 0;
  font-size: 0.95rem;
  color: #5D6A7B;
  box-shadow: 0 -2px 12px 0 rgba(120,130,160,0.08);
  width: 100%;
  margin-top: 48px;
}
.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  align-items: center;
}
.footer-nav a {
  color: #7C8A98;
  font-size: 1rem;
  transition: color 0.22s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--brand-secondary);
  text-decoration: underline;
}
footer p {
  margin: 0;
  font-size: 0.93rem;
  color: #999fa8;
}

/* BUTTONS & CTA -------------------------------------------------- */
button, .cta {
  background: var(--brand-secondary);
  color: #fff;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.13rem;
  font-weight: 600;
  border: none;
  border-radius: 24px;
  padding: 11px 28px;
  cursor: pointer;
  box-shadow: 0 1px 8px 0 rgba(234,187,33,0.10);
  margin: 6px 0;
  transition: var(--transition);
  display: inline-block;
  text-align: center;
}
.cta:hover, .cta:focus,
button:hover, button:focus {
  background: #ffd966;
  color: var(--brand-primary);
  box-shadow: 0 4px 16px 0 rgba(234,187,33,0.19);
  text-decoration: none;
}

/* FORM ELEMENTS -------------------------------------------------- */
input, textarea, select {
  border: 1px solid #dae1ea;
  padding: 10px 12px;
  font-size: 1.09rem;
  border-radius: 10px;
  background: var(--white);
  box-shadow: none;
  transition: border 0.18s;
  margin-bottom: 16px;
  width: 100%;
  max-width: 480px;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--brand-secondary);
  background: #fffbe1;
}
label {
  margin-bottom: 6px;
  display: block;
  color: #33516f;
}

/* SPECIAL ELEMENTS ----------------------------------------------- */
ul, ol {
  padding-left: 18px;
}
.about-preview ul, .about ul, .features ul, .advantages-grid ul, .legal ul {
  padding-left: 18px;
}

/* Quote in features/about */
.quotes blockquote {
  background: var(--pastel-green);
  color: #395370;
  border-left: 3px solid var(--brand-secondary);
}

/* FAQ section -----------------------------------------------------*/
.faq {
  background: var(--pastel-blue);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 36px 0;
  margin-bottom: 46px;
}
.faq-list,
.faq-list > div {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-list h3 {
  margin-bottom: 0;
}

/* CONTACT DETAILS -------------------------------------------------*/
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.map-embed {
  background: #f8f5fa;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 0.98rem;
}

/* CONFIRMATION PAGE ---------------------------------------------- */
.confirmation {
  background: var(--pastel-green);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 48px 0;
  margin-bottom: 48px;
  text-align: center;
}
.confirmation h1, .confirmation p {
  color: var(--brand-primary);
}

/* LEGAL PAGES --------------------------------------------------- */
.legal {
  background: var(--pastel-blue);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 44px 0;
  margin-bottom: 40px;
}
.legal .content-wrapper {
  font-size: 1rem;
  gap: 16px;
}
.legal a {
  color: var(--brand-primary);
  text-decoration: underline;
  transition: color 0.14s;
}
.legal a:hover, .legal a:focus {
  color: var(--brand-secondary);
}

/* COOKIE CONSENT BANNER ------------------------------------------ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--white);
  box-shadow: 0 -2px 20px 0 rgba(120,130,160,0.13);
  z-index: 19999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 18px;
  gap: 20px;
  font-size: 1rem;
  border-radius: 18px 18px 0 0;
  animation: bannerFadeIn 0.55s; 
}
@keyframes bannerFadeIn {
  from { opacity:0; transform: translateY(40px);} 
  to { opacity:1; transform: translateY(0); }
}
.cookie-banner p {
  margin: 0;
  color: var(--brand-primary);
  max-width: 360px;
  font-size: 1rem;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 13px;
}
.cookie-banner button {
  min-width: 112px;
  padding: 8px 20px;
  font-size: 1rem;
  border-radius: 20px;
  background: var(--pastel-blue);
  color: var(--brand-primary);
  border: 1px solid var(--brand-secondary);
  transition: background 0.23s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 10px 0 rgba(200,220,250,0.10);
}
.cookie-banner button.accept {
  background: var(--brand-secondary);
  color: #fff;
  border: none;
}
.cookie-banner button.accept:hover, .cookie-banner button.accept:focus {
  background: #ffd966;
  color: var(--brand-primary);
}
.cookie-banner button.settings {
  background: var(--pastel-blue);
  color: var(--brand-primary);
}
.cookie-banner button.settings:hover,
.cookie-banner button.settings:focus {
  background: var(--pastel-yellow);
  color: var(--brand-secondary);
  border: 1px solid var(--brand-secondary);
}
.cookie-banner button.reject {
  background: #ece2eb;
  color: #a671b5;
  border: 1px solid #cab7dc;
}
.cookie-banner button.reject:hover,
.cookie-banner button.reject:focus {
  background: #ffe7f1;
  color: #d03c88;
}

/* COOKIE MODAL --------------------------------------------------- */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; height: 100vh; width: 100vw;
  background: rgba(36,20,64,0.18);
  z-index: 20999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 8px 40px 0 rgba(20,30,60,0.12);
  max-width: 90vw;
  width: 400px;
  padding: 38px 30px 26px 30px;
  font-size: 1.08rem;
  color: var(--brand-primary);
  z-index: 21000;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: modalFadeIn 0.33s;
}
@keyframes modalFadeIn { from { opacity:0; transform: scale(0.9);} to { opacity:1; transform:scale(1); } }
.cookie-modal h2 { font-size: 1.37rem;margin-bottom:8px;}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0 9px 0;
  border-bottom: 1px solid #e4e7ea;
}
.cookie-modal .cookie-category:last-child {
  border-bottom: none;
}
.cookie-modal label {
  margin-bottom: 0;
  font-weight: 500;
  color: var(--brand-primary);
}
.cookie-modal .toggle {
  display: inline-block;
  width: 44px;
  height: 26px;
  border-radius: 13px;
  background: #dcd6ee;
  position: relative;
  transition: background 0.17s;
  vertical-align: middle;
}
.cookie-modal .toggle input {
  opacity: 0;
  width: 44px; height: 26px;
  position: absolute; left: 0; top: 0;
  margin: 0;
  z-index: 1;
}
.cookie-modal .toggle span {
  position: absolute;
  left: 3px; top: 3px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.19s;
  box-shadow: 0 1px 6px #d9d5ee;
}
.cookie-modal .toggle input:checked ~ span {
  left: 21px;
  background: var(--brand-secondary);
}
.cookie-modal .toggle input:checked ~ .label {
  font-weight: bold;
  color: var(--brand-secondary);
}
.cookie-modal .category-desc {
  color: #7882a6;
  font-size: 0.97rem;
  margin-left: 8px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 16px;
}
.cookie-modal .cookie-modal-close {
  background: none;
  border: none;
  color: var(--brand-primary);
  font-size: 1.7rem;
  position: absolute;
  top: 10px; right: 24px;
  cursor: pointer;
  transition: color 0.15s;
  z-index: 100;
}
.cookie-modal .cookie-modal-close:hover {
  color: var(--brand-secondary);
}

/* RESPONSIVE DESIGN ---------------------------------------------- */
@media (max-width: 900px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 42px 0 28px 0; }
  .section { padding: 32px 10px; margin-bottom: 36px; }
  .card, .feature-item, .advantages-grid > div, .testimonial-card, .team-bio { padding: 16px 10px; }
  .testimonials { gap: 12px; }
}
@media (max-width: 768px) {
  .content-grid, .card-container, .feature-grid, .advantages-grid, .testimonials, .faq-list {
    flex-direction: column;
    gap: 18px;
  }
  .section { margin-bottom: 36px; }
  .about-preview, .services-preview, .features, .contact-cta, .legal, .faq { padding: 24px 0; }
  .card, .testimonial-card, .feature-item, .team-bio, .advantages-grid > div { min-width: 0; }
  .testimonials, .content-wrapper {
    align-items: stretch;
  }
}
@media (max-width: 560px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.1rem; }
  .container { padding: 0 7px; }
  .section { padding: 22px 3px; margin-bottom: 24px; }
  .hero { padding: 22px 0 12px 0; }
  .footer-nav { gap: 11px; }
}

.text-image-section { flex-direction: row; align-items: center; }
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: stretch; gap: 18px; }
}

/* MICRO-INTERACTIONS & EFFECTS ----------------------------------- */
.card, .testimonial-card, .feature-item, .about-preview, .services-preview, .contact-cta, .quotes blockquote, .advantages-grid > div {
  transition: box-shadow 0.17s, background 0.18s;
}
.card:hover, .feature-item:hover, .testimonial-card:hover, .advantages-grid > div:hover {
  box-shadow: 0 4px 28px 0 rgba(120,130,160,0.18);
  background: #fafafd;
}
.cta:active, .cta:focus {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 1px;
}

/* Color contrast for testimonials & reviews (CRITICAL) ------------ */
.testimonial-card, .testimonials-preview .testimonial-card {
  background: var(--pastel-purple);
  color: #1D2737;
}
.testimonial-card p, .testimonials-preview .testimonial-card p {
  color: #1D2737 !important;
  font-size: 1.05rem;
}
.testimonial-card span, .testimonials-preview .testimonial-card span {
  color: var(--brand-primary);
}

/* Util Classes --------------------------------------------------- */
.hide-on-mobile { display: block; }
@media (max-width: 820px) {
  .hide-on-mobile { display: none; }
}

/* Utility for no absolute overlaps */
.card, .card-container > *, .feature-item, .testimonial-card, .advantages-grid > div {
  position: relative;
  z-index: 1;
}
