/* ========================== */
/*        CSS RESET           */
/* ========================== */
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 {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  background: #F9F6F0;
  color: #17415B;
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
}
a {
  color: #17415B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #E2C275;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
ul, ol {
  list-style: inside disc;
  margin-left: 1.5em;
}
section, article, footer, header, nav, main {
  display: block;
}
button {
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  background: transparent;
}

/* ============================ */
/*         BRAND FONTS          */
/* ============================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

h1, h2, h3, h4, .cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 16px;
  color: #17415B;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #17415B;
  line-height: 1.2;
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #17415B;
}
h4 {
  font-size: 1.125rem;
  font-weight: 700;
}
p, ul li, ol li {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #17415B;
  margin-bottom: 8px;
  line-height: 1.6;
}
strong {
  font-weight: 700;
}

/* ============================ */
/*        LAYOUT CLASSES        */
/* ============================ */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FFF;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(23,65,91,0.10);
  margin-bottom: 20px;
  position: relative;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .card:focus {
  box-shadow: 0 6px 36px 0 rgba(23,65,91,0.15);
  transform: translateY(-4px) scale(1.02);
}
.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;
  background: #FFF;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(23,65,91,0.09);
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  max-width: 580px;
  border-left: 6px solid #E2C275;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 8px 36px 0 rgba(23,65,91,0.16);
  border-color: #17415B;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ============================ */
/*         SPACING RULES        */
/* ============================ */
.section:not(:last-child) {
  margin-bottom: 60px;
}
.section, .container, .content-wrapper {
  box-sizing: border-box;
}

.features, .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #FFF;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(23,65,91,0.07);
  flex: 1 1 210px;
  min-width: 220px;
  max-width: 310px;
  padding: 24px 18px 22px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  border-bottom: 3px solid #E2C275;
  transition: box-shadow 0.2s, border-bottom 0.2s;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 30px 0 rgba(23,65,91,0.13);
  border-bottom: 3px solid #17415B;
}
.feature-grid img {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
}

/* ============================ */
/*         HEADER/NAV           */
/* ============================ */
header {
  width: 100%;
  background: linear-gradient(90deg, #F9F6F0 0%, #E2C275 100%);
  box-shadow: 0 2px 20px 0 rgba(23,65,91,0.07);
  display: flex;
  align-items: center;
  padding: 0 0;
  min-height: 70px;
  position: relative;
  z-index: 1020;
}
header > a img {
  height: 52px;
  max-width: 170px;
  margin: 0 16px;
  display: block;
}
.main-nav {
  flex: 1;
  display: flex;
  gap: 32px;
  justify-content: flex-start;
  align-items: center;
  margin-left: 20px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #17415B;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s;
}
.main-nav a:after {
  content: '';
  display: block;
  margin: 4px auto 0 auto;
  width: 0%;
  height: 3px;
  background: #E2C275;
  border-radius: 2px;
  transition: width 0.27s;
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 80%;
}
.cta-btn {
  background: linear-gradient(90deg, #E2C275 0%, #17415B 100%);
  color: #17415B;
  border-radius: 28px;
  padding: 12px 32px;
  font-size: 1.12rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin-left: 24px;
  border: none;
  outline: none;
  cursor: pointer;
  box-shadow: 0 2px 11px 0 rgba(23,65,91,0.09);
  transition: background 0.18s, color 0.18s, box-shadow 0.2s, transform 0.2s;
  text-align: center;
  text-shadow: none;
}
.cta-btn:hover, .cta-btn:focus {
  color: #FFF;
  background: linear-gradient(90deg, #17415B 0%, #E2C275 99%);
  box-shadow: 0 8px 32px 0 rgba(23,65,91,0.17);
  transform: scale(1.03);
}
.mobile-menu-toggle {
  display: none;
  background: #17415B;
  color: #fff;
  font-size: 2.1rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  border: none;
  margin-right: 16px;
  position: relative;
  z-index: 1051;
  transition: background 0.2s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #E2C275;
  color: #17415B;
}

/* ============================ */
/*           HERO               */
/* ============================ */
.hero {
  background: linear-gradient(120deg, #E2C275 0%, #F9F6F0 100%);
  min-height: 290px;
  padding: 70px 0 60px 0;
  display: flex;
  align-items: center;
  margin-bottom: 36px;
  position: relative;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero h1 {
  color: #17415B;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px #FFF2;
}
.hero p {
  color: #17415B;
  font-size: 1.15rem;
  margin-bottom: 24px;
}
.hero .cta-btn {
  margin-top: 10px;
}

/* ============================ */
/*           ABOUT              */
/* ============================ */
.about ul, .services ul, .features ul {
  margin: 0 0 0 1.5em;
  padding: 0;
}
.about li, .services li, .features li {
  margin-bottom: 10px;
}

/* ============================ */
/*       TESTIMONIALS           */
/* ============================ */
.testimonials {
  background: #F9F6F0;
  padding: 60px 0 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}
.testimonials h2 { margin-bottom: 32px; }
.testimonial-card p {
  font-size: 1.125rem;
  color: #17415B;
  margin-bottom: 8px;
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #17415B;
  opacity: 0.88;
  font-size: 1rem;
}

/* ============================ */
/*         SERVICES/FEATURES    */
/* ============================ */
.services {
  background: #FFF;
  padding: 48px 0 44px 0;
  border-top: 1px solid #ECE4D1;
  border-bottom: 1px solid #ECE4D1;
}
.services h2 { margin-bottom: 16px; }

/* ===================== */
/*        CONTACT        */
/* ===================== */
.contact h3 {
  margin-top: 20px;
}
.text-section {
  margin-bottom: 24px;
  color: #17415B;
  font-size: 1rem;
}
.text-section div {
  margin-bottom: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
}
.text-section img {
  width: 28px;
  height: 28px;
}

/* ===================== */
/*        FOOTER         */
/* ===================== */
footer {
  background: linear-gradient(90deg, #17415B 0%, #E2C275 100%);
  color: #FFF;
  padding: 48px 0 25px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 48px;
}
.footer-nav {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #FFF;
  font-size: 1.05rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  opacity: 0.97;
  transition: color 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #E2C275;
}
.footer-info {
  text-align: center;
  color: #FFF;
  font-size: 1rem;
  margin-top: 8px;
  line-height: 1.7;
}
.footer-info a {
  color: #E2C275;
}

/* ================================ */
/*        MOBILE NAVIGATION         */
/* ================================ */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #17415B;
  z-index: 2010;
  transform: translateX(-100vw);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.32s cubic-bezier(.77,0,.175,1), opacity 0.22s;
  box-shadow: 3px 0 28px 0 rgba(23,65,91,0.19);
}
.mobile-menu.open {
  opacity: 1;
  transform: translateX(0vw);
  visibility: visible;
}
.mobile-menu-close {
  color: #FFF;
  background: none;
  font-size: 2.2rem;
  border: none;
  align-self: flex-end;
  margin: 18px 24px 0 0;
  width: 48px;
  height: 48px;
  z-index: 9999;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #E2C275;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 38px 38px;
  gap: 24px;
}
.mobile-nav a {
  color: #FFF;
  font-size: 1.28rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 14px 0;
  width: 100%;
  transition: color 0.22s;
  letter-spacing: 0.01em;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #E2C275;
}

/* ================================ */
/*        COOKIE CONSENT BANNER     */
/* ================================ */
.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 14px;
  width: calc(100% - 24px);
  background: #FFF;
  color: #17415B;
  border-radius: 20px;
  box-shadow: 0 4px 32px 0 rgba(23,65,91,0.14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px 24px 32px;
  z-index: 4500;
  font-family: 'Roboto', Arial, sans-serif;
  gap: 22px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(32px);
  transition: opacity 0.33s, transform 0.33s;
}
.cookie-banner.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cookie-banner .cookie-msg {
  flex: 1 1 240px;
  font-size: 1rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 1rem;
  margin-left: 0;
  border: none;
  background-color: #E2C275;
  color: #17415B;
  font-weight: 700;
  transition: background 0.15s, color 0.15s, box-shadow 0.22s;
  box-shadow: 0 2px 8px rgba(23,65,91,0.07);
  cursor: pointer;
}
.cookie-btn.settings {
  background-color: #FFF;
  border: 1.5px solid #17415B;
  color: #17415B;
}
.cookie-btn.reject {
  background-color: #17415B;
  color: #FFF;
}
.cookie-btn:hover, .cookie-btn:focus {
  background-color: #17415B;
  color: #FFF;
  box-shadow: 0 6px 20px 0 rgba(23,65,91,0.13);
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background-color: #F9F6F0;
  color: #17415B;
  border-color: #E2C275;
}

/* ================================ */
/*        COOKIE MODAL/POPUP        */
/* ================================ */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(23,65,91,0.52);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.29s;
}
.cookie-modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}
.cookie-modal {
  background: #FFF;
  border-radius: 22px;
  padding: 30px 32px 24px 32px;
  min-width: 320px;
  max-width: 420px;
  box-shadow: 0 12px 52px 0 rgba(23,65,91,0.19);
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 1;
  transition: transform 0.28s;
  transform: translateY(18px);
  color: #17415B;
}
.cookie-modal h2 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 1.05rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: #E2C275;
  width: 20px;
  height: 20px;
}
.cookie-category .always {
  font-size: 0.97rem;
  color: #607a91;
  margin-left: 8px;
  font-style: italic;
}
.cookie-modal-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal-close {
  background: none;
  color: #17415B;
  font-size: 1.7rem;
  border: none;
  position: absolute;
  top: 15px;
  right: 22px;
  cursor: pointer;
  z-index: 9999;
  transition: color 0.19s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: #E2C275;
}

/* ===================== */
/*      RESPONSIVE       */
/* ===================== */
@media (max-width: 1024px) {
  .feature-grid {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 99vw;
    padding-left: 10px;
    padding-right: 10px;
  }
  .main-nav {
    gap: 18px;
  }
  .footer-nav {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  header {
    flex-wrap: wrap;
    align-items: center;
    padding: 6px 0 6px 0;
  }
  .main-nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    margin-left: auto;
  }
  .hero {
    min-height: 170px;
    padding: 40px 0 38px 0;
  }
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div {
    min-width: 0;
    max-width: 98vw;
  }
  .content-wrapper {
    gap: 13px;
  }
  .testimonial-card {
    max-width: 99vw;
  }
  .footer-nav {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
  .footer-info {
    font-size: 0.95rem;
  }
}
@media (max-width: 580px) {
  html {
    font-size: 14px;
  }
  .section {
    padding: 22px 5px;
  }
  .feature-grid > div {
    padding: 15px 8px 12px 8px;
  }
  .cookie-banner {
    flex-direction: column;
    padding: 20px 12px 20px 12px;
    font-size: 0.97rem;
    align-items: stretch;
  }
  .cookie-banner .cookie-actions {
    justify-content: flex-start;
    gap: 10px;
  }
  .cookie-modal {
    min-width: 92vw;
    max-width: 98vw;
    padding: 18px 7px 16px 7px;
  }
}
/* ==================== */
/*   ADDITIONAL UTILS   */
/* ==================== */
::-webkit-scrollbar {
  width: 9px; background: #F9F6F0;
}
::-webkit-scrollbar-thumb {
  background: #E2C275;
  border-radius: 20px;
}
::-webkit-scrollbar-track {
  background: #F9F6F0;
}

input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ECE4D1;
  margin-bottom: 12px;
  width: 100%;
  color: #17415B;
  box-sizing: border-box;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid #E2C275;
  border-color: #E2C275;
  background: #fffbe9;
}

/* ===== Focus/active utilities for accessibility ===== */
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus {
  outline: 3px solid #E2C275;
}

/* ================ */
/* ANIMATIONS      */
/* ================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in-up {
  animation: fadeInUp 0.7s cubic-bezier(.23,1.02,.36,1) 1;
}

/* Optional: helper class for visually-hidden elements */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ===== END OF CSS ===== */
