/* ===== 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, 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;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #F5F7FA;
  color: #1B394C;
  font-family: 'Roboto', 'Georgia', serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
b, strong {
  font-weight: 600;
}
a {
  color: #1B394C;
  text-decoration: none;
  transition: color 0.18s;
}
a:focus, a:hover {
  color: #D4B870;
  outline: none;
}
ul, ol {
  list-style: inside disc;
  margin-bottom: 16px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 700;
  color: #1B394C;
  letter-spacing: 0.01em;
  line-height: 1.18;
}
p {
  margin-bottom: 16px;
  font-size: 1rem;
}

/* ===== BRAND COLORS & FONTS (fallbacks included) ===== */
:root {
  --primary: #1B394C;
  --secondary: #D4B870;
  --accent: #F5F7FA;
  --text-main: #1B394C;
  --text-light: #fff;
  --card-bg: #fff;
  --border-color: #ECEAE3;
  --shadow: 0 4px 16px rgba(27,57,76, .06), 0 1.5px 4px rgba(160,139,88,.10);
  --radius: 12px;
  --transition: 0.25s cubic-bezier(.43,.34,.13,1);
}

/* ===== TYPOGRAPHY ===== */
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.5rem; margin-bottom: 18px; }
h4 { font-size: 1.15rem; }
h5, h6 { font-size: 1rem; }
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.15rem; }
}
p, li {
  font-size: 1rem;
  color: var(--text-main);
  font-family: 'Roboto', Georgia, serif;
  letter-spacing: 0.01em;
}

em {
  font-style: italic;
  color: #2d4961;
}

/* ===== CONTAINER, SECTION, WRAPPER ===== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  background: transparent;
  padding: 0;
  position: relative;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (max-width: 768px) {
  .section {
    padding: 24px 8px;
    margin-bottom: 35px;
  }
  .container { padding: 0 8px; }
}

/* ===== HEADER ===== */
header {
  background: var(--accent);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 1001;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav a {
  font-family: 'Montserrat', serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--primary);
  letter-spacing: 0.02em;
  border-radius: 6px;
  padding: 5px 10px;
  transition: background var(--transition), color var(--transition);
}
header nav a.cta {
  background: var(--primary);
  color: #fff !important;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 21px;
  margin-left: 10px;
  box-shadow: 0 2px 9px rgba(27,57,76,0.08);
  border: none;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
}
header nav a.cta:hover, header nav a.cta:focus {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 6px 24px rgba(27,57,76,0.22);
}
header nav a:hover, header nav a:focus:not(.cta) {
  background: var(--secondary);
  color: var(--primary);
}
header img {
  height: 46px;
  width: auto;
  margin-right: 20px;
  vertical-align: middle;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  margin-left: 24px;
  transition: color var(--transition);
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: var(--secondary);
}

@media (max-width: 1000px) {
  header nav {
    gap: 16px;
  }
  header img {
    height: 38px;
  }
}

@media (max-width: 850px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  z-index: 2200;
  top: 0; left: 0; bottom: 0; right: 0;
  width: 100vw; height: 100vh;
  background: rgba(27,57,76,0.92);
  transform: translateX(-110%);
  transition: transform 0.4s cubic-bezier(.45, .03, .25, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  border: none;
  font-size: 2.2rem;
  margin: 30px 0 0 32px;
  align-self: flex-start;
  cursor: pointer;
  z-index: 2220;
  transition: color var(--transition);
}
.mobile-menu-close:hover {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 60px 0 0 36px;
  width: 72vw;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: .03em;
  padding: 10px 0;
  border-radius: 7px;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a.cta {
  background: var(--secondary);
  color: var(--primary);
  font-weight: 700;
  text-align: center;
  padding: 12px 0;
  border-radius: 25px;
  margin-top: 18px;
  box-shadow: 0 3px 14px rgba(212,184,112,0.18);
}
.mobile-nav a.cta:hover,
.mobile-nav a.cta:focus {
  background: #fff;
  color: var(--primary);
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: rgba(255,255,255,0.17);
  color: var(--secondary);
}
@media (max-width: 700px) {
  .mobile-nav {
    width: 97vw;
    margin-left: 10vw;
  }
}

/* ===== MAIN CONTENT, FLEX LAYOUTS ===== */
main {
  min-height: 70vh;
  width: 100%;
  background: none;
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  padding: 26px 30px 22px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 275px;
  max-width: 380px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .card:focus-within {
  box-shadow: 0 7px 32px rgba(27,57,76,0.15);
  transform: translateY(-2px) scale(1.015);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 23px;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  background: #fff;
  color: #1B394C;
  margin-bottom: 20px;
  border-radius: var(--radius);
  padding: 20px 30px;
  box-shadow: 0 3px 18px rgba(27,57,76,0.10);
  border-left: 5px solid var(--secondary);
  min-width: 260px;
  max-width: 550px;
  font-family: 'Roboto', Georgia, serif;
}
.testimonial-card span {
  color: #71542a;
  font-weight: 500;
  font-style: italic;
  font-size: 1rem;
}
@media (max-width: 768px) {
  .testimonial-card {
    padding: 16px 14px;
    min-width: 0;
    max-width: none;
  }
}

/* ===== BUTTONS / CTAS ===== */
.cta {
  background: var(--secondary);
  color: var(--primary) !important;
  font-family: 'Montserrat', serif;
  font-weight: 700;
  padding: 12px 26px;
  border: none;
  border-radius: 26px;
  box-shadow: 0 3px 14px rgba(212,184,112,0.13);
  font-size: 1.07rem;
  letter-spacing: .03em;
  text-align: center;
  margin-top: 10px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
  display: inline-block;
}
.cta:hover,.cta:focus {
  background: var(--primary);
  color: #fff !important;
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 8px 22px rgba(27,57,76,0.15);
}

button {
  font-family: inherit;
  font-size: 1rem;
  padding: 8px 18px;
  border-radius: 24px;
  border: none;
  background: var(--secondary);
  color: var(--primary);
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}
button:focus, button:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== CARDS / LISTS ===== */
.card-container {
  margin-bottom: 20px;
}
.card {
  margin-bottom: 20px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--primary);
  color: #fff;
  padding: 40px 0 24px 0;
  font-size: 1rem;
  border-top: 2px solid var(--secondary);
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand { flex: 2 1 180px; display: flex; align-items: center; }
.footer-brand img {
  width: 54px; height: auto; filter: brightness(96%) contrast(106%);
}
.footer-info { flex: 3 1 260px; margin: 0 20px; }
.footer-info p { color: #FAF7F1; line-height: 1.7; font-size: 1rem; }
.footer-info img { height: 20px; width: 20px; margin-right: 8px; vertical-align: text-bottom; }
.footer-links {
  flex: 2 1 200px;
  text-align: right;
}
.footer-links nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.footer-links nav a {
  color: #F5F7FA;
  font-family: 'Montserrat', serif;
  font-weight: 500;
  transition: color var(--transition);
  font-size: 1rem;
  border-radius: 6px;
  padding: 2px 8px;
}
.footer-links nav a.cta {
  background: var(--secondary);
  color: var(--primary) !important;
  box-shadow: 0 1px 7px rgba(212,184,112,0.15);
  font-size: 1rem;
}
.footer-links nav a.cta:hover, .footer-links nav a.cta:focus {
  color: #fff !important;
  background: var(--primary);
}
.footer-links nav a:hover, .footer-links nav a:focus {
  color: var(--secondary);
  background: rgba(255,255,255,.09);
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .footer-brand { margin-bottom: 10px; }
  .footer-links { text-align: left; }
}
@media (max-width: 540px) {
  footer .container {
    padding: 0 8px;
  }
  .footer-brand img { width: 40px; }
}

/* ===== SPECIAL SECTIONS ===== */
.method-highlight, .case-study {
  background: #FAF7F1;
  border-left: 5px solid var(--secondary);
  padding: 18px 22px;
  border-radius: var(--radius);
  margin: 19px 0 19px 0;
  font-size: 1.06rem;
  box-shadow: 0 1px 4px rgba(212,184,112,0.10);
}
@media (max-width: 640px) {
  .method-highlight, .case-study {
    padding: 14px 10px;
  }
}
.map-placeholder {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  background: #F8F6EE;
  border-radius: 10px;
  padding: 10px 17px;
  font-size: 1.06rem;
  color: #1B394C;
}

.success-message {
  background: #e9ecf1;
  border-radius: 15px;
  padding: 22px 30px;
  color: #223344;
  box-shadow: 0 1px 9px rgba(85,80,57,.09);
}
@media (max-width: 600px) {
  .success-message {padding: 14px 8px;}
}

/* ===== COOKIES BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #fff;
  border-top: 2.5px solid var(--secondary);
  box-shadow: 0 -6px 24px rgba(27,57,76,0.08), 0 1.5px 4px rgba(160,139,88,.08);
  z-index: 3010;
  padding: 28px 15px 19px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  transition: transform 0.3s var(--transition);
  font-family: 'Roboto', serif;
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner .cookie-text {
  max-width: 530px;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 16px;
}
.cookie-banner button {
  border-radius: 26px;
  border: none;
  background: var(--secondary);
  color: var(--primary);
  padding: 9px 24px;
  font-weight: 600;
  font-size: 1rem;
  transition: background var(--transition), color var(--transition);
  box-shadow: 0 2px 8px rgba(212,184,112,0.07);
}
.cookie-banner button:focus, .cookie-banner button:hover {
  background: var(--primary);
  color: #fff;
}
.cookie-banner .cookie-settings-btn {
  background: #F5F7FA;
  color: var(--primary);
  border: 1.5px solid var(--secondary);
  font-weight: 400;
}
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  background: var(--secondary);
  color: var(--primary);
}
@media (max-width: 760px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 10px 12px 10px;
  }
  .cookie-banner .cookie-buttons {
    gap: 10px;
  }
}

/* ===== COOKIE MODAL ===== */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 3050;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(27,57,76,0.34);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1; pointer-events: all;
  transition: opacity 0.28s;
}
.cookie-modal-backdrop.hide {
  opacity: 0; pointer-events: none;
}
.cookie-modal {
  box-shadow: 0 12px 32px rgba(27,57,76,0.23);
  border-radius: 17px;
  background: #fff;
  max-width: 380px;
  width: 96vw;
  padding: 32px 26px 23px 26px;
  color: #1B394C;
  font-size: 1.08rem;
  font-family: 'Roboto', serif;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal h2 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 7px;
}
.cookie-modal .modal-close-btn {
  position: absolute;
  top: 14px; right: 19px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--primary);
  cursor: pointer;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #efe4cb;
}
.cookie-modal .cookie-category:last-child {
  border-bottom: none;
}
.cookie-modal .category-label {
  font-weight: 500;
  font-family: 'Montserrat', serif; font-size: 1.02rem;
}
.cookie-modal .toggle-switch {
  width: 46px; height: 25px;
  border-radius: 15px;
  background: #f0eee7;
  position: relative;
  display: inline-block;
}
.cookie-modal .toggle-switch input {
  display: none;
}
.cookie-modal .slider {
  position: absolute; cursor: pointer;
  top: 2.3px; left: 2.3px;
  height: 20px; width: 20px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 1px 3px rgba(32,32,32,0.08);
  transition: left .22s, background .22s;
}
.cookie-modal .toggle-switch input:checked + .slider {
  left: 23px; background: var(--primary);
}
.cookie-modal .toggle-switch.disabled,
.cookie-modal .toggle-switch input:disabled + .slider {
  background: #E9E7DA;
  opacity: .58;
  pointer-events: none;
}
.cookie-modal .cookie-modal-btns {
  margin-top: 18px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.cookie-modal .cookie-modal-btns button {
  padding: 10px 22px;
  font-size: 1rem;
  margin: 0;
}
@media (max-width: 450px) {
  .cookie-modal { padding: 18px 7px; min-width: 0; }
  .cookie-modal h2 { font-size: 1.1rem; }
  .cookie-modal .cookie-category { flex-direction: column; align-items: flex-start; gap: 7px;}
}

/* ===== UTILITIES ===== */
.hide { display: none !important; }
.show { display: flex !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
 .container { max-width: 96vw; }
}
@media (max-width: 700px) {
  body {font-size: 15px;}
}

/* ===== ACCESSIBILITY ===== */
a:focus-visible, button:focus-visible {
  outline: 2.5px dotted var(--secondary);
  outline-offset: 3px;
}

/* ===== HIGH CONTRAST TEXT FOR TESTIMONIALS && CARDS ===== */
.testimonial-card, .card {
  color: #1B394C;
  background: #fff;
}

/* ===== SPACING & FLEX RULES FROM SPEC ===== */
.card-container, .content-grid { gap: 20px; }
.section { margin-bottom: 60px; padding: 40px 20px; }
.card { margin-bottom: 20px; position: relative; }
.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; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* ===== END ===== */
