/* --------------------- CSS RESET & BASIC 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, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
body {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  background: #FFFFFF;
  color: #1B2838;
  line-height: 1.6;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #24527A;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #A77823;
  outline-offset: 2px;
}
a:hover {
  color: #A77823;
}

ul, ol {
  margin: 0 0 16px 22px;
  padding: 0;
}
li {
  margin-bottom: 8px;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  transition: background 0.18s, color 0.18s;
}
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* ----------------- BRAND VARIABLES (COLORS, FONTS) ----------------- */
:root {
  --fc-primary: #24527A;
  --fc-primary-dark: #1B2838;
  --fc-secondary: #E0E6ED;
  --fc-bg: #FFFFFF;
  --fc-accent: #A77823;
  --fc-accent-alt: #C79F59;
  --fc-card-bg: #FAFBFC;
  --fc-shadow: 0 4px 16px rgba(36,82,122,.08), 0 1.5px 4px rgba(36,82,122,0.10);
}

/* ----------------- TYPOGRAPHY SCALE & GEOMETRIC FONTS ----------------- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Lato:400,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial', sans-serif;
  color: var(--fc-primary);
  font-weight: 700;
  letter-spacing: 0.4px;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 2px;
}
h2 {
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}
h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}
h4, h5, h6 {
  margin-bottom: 8px;
}
p, ul, ol {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1.08rem;
  color: #1B2838;
  margin-bottom: 18px;
  font-weight: 400;
  letter-spacing: 0.04em;
}
strong {
  font-weight: 700;
  color: var(--fc-accent);
}
em {
  font-style: italic;
}

/* ----------------- LAYOUT: CONTAINER & FLEXBOX STRUCTURE ----------------- */
.container {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-section {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ------ Section Spacing (MANDATORY PATTERNS) ------ */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--fc-bg);
  border-radius: 32px 16px 32px 16px;
  box-shadow: 0px 4px 24px rgba(36,82,122,0.07);
  position: relative;
}
section:last-of-type {
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  section {
    border-radius: 20px;
    padding: 28px 10px;
  }
}

/* ------ FLEX LAYOUTS (Enforced structure) ------ */
.card-container, .feature-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card-container {
  gap: 24px;
}
.content-grid {
  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;
    gap: 18px;
    align-items: flex-start;
  }
  .card-container, .feature-grid, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--fc-card-bg);
  border-radius: 16px 32px 16px 32px;
  box-shadow: var(--fc-shadow);
  padding: 24px;
  min-width: 230px;
}

/* ------ Card and Card Containers ------ */
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--fc-card-bg);
  box-shadow: var(--fc-shadow);
  border-radius: 20px 8px 20px 8px;
  padding: 28px 24px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.22s, transform 0.18s;
}
.card:hover {
  box-shadow: 0px 6px 32px rgba(36,82,122,0.13);
  transform: translateY(-4px) scale(1.03);
}

/* ------ Feature Grid ------ */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.feature-grid > div {
  background: var(--fc-card-bg);
  border-radius: 20px 32px 20px 32px;
  box-shadow: var(--fc-shadow);
  text-align: left;
  padding: 28px 22px;
  min-width: 230px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  position: relative;
  border-left: 4px solid var(--fc-accent);
  transition: box-shadow 0.22s, border-color 0.20s;
}
.feature-grid > div img {
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
}
.feature-grid > div:hover {
  box-shadow: 0px 10px 32px rgba(36,82,122,0.13);
  border-left: 4px solid var(--fc-primary);
}

/* ------ Cards inside lists (testimonials etc.) ------ */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #FAFBFC;
  border-radius: 24px 10px 24px 10px;
  box-shadow: var(--fc-shadow);
  border-left: 4px solid var(--fc-accent);
  color: #1B2838;
  position: relative;
  transition: box-shadow 0.21s, border-color 0.20s;
  min-width: 210px;
}
.testimonial-card:hover {
  box-shadow: 0px 6px 30px rgba(36,82,122,.13);
  border-left-color: var(--fc-primary);
}
.testimonial-card p {
  font-size: 1.08rem;
  font-family: 'Lato', sans-serif;
  color: #1B2838;
}
.testimonial-details {
  color: var(--fc-primary);
  font-size: 0.97rem;
  font-style: italic;
  align-self: flex-end;
}

/* Avoid stacking overlap by spacing */
.testimonial-card + .testimonial-card {
  margin-top: 24px;
}

/* --------------------- HEADER/NAVIGATION --------------------- */
header {
  background: #fff;
  box-shadow: 0 1.5px 12px rgba(36,82,122,0.06);
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 84px;
  padding: 0 20px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', sans-serif;
  color: var(--fc-primary);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.25px;
  text-transform: uppercase;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background 0.16s, color 0.18s;
}
header nav a:hover, header nav a.active {
  color: var(--fc-accent);
  background: #F3F5F8;
}
.cta-btn {
  display: inline-block;
  background: var(--fc-accent);
  color: #fff;
  padding: 12px 32px;
  border-radius: 26px 10px 26px 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.08rem;
  letter-spacing: 0.8px;
  box-shadow: 0 2px 18px rgba(167,120,35,0.10);
  border: none;
  transition: background 0.21s, color 0.16s, box-shadow 0.21s, transform 0.16s;
  margin-left: 18px;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--fc-primary);
  color: #fff;
  box-shadow: 0 4px 26px rgba(36,82,122,0.14);
  transform: translateY(-2px) scale(1.03);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  font-size: 2.3rem;
  color: var(--fc-primary);
  background: none;
  border: none;
  margin-left: 18px;
  line-height: 1;
  transition: color 0.18s;
  border-radius: 8px;
  padding: 4px 16px 4px 12px;
  box-shadow: none;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--fc-accent);
  outline-offset: 2px;
  background: #FDF7EF;
}

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

/* --------------------- MOBILE NAVIGATION --------------------- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  background: var(--fc-primary);
  position: fixed;
  top: 0;
  right: -100vw;
  width: 100vw;
  height: 100vh;
  z-index: 3000;
  padding-top: 20px;
  padding-right: 0;
  transition: transform 0.32s cubic-bezier(.82,.06,.5,1.12), right 0.32s;
  box-shadow: 0 0 60px rgba(36,82,122,0.18);
  will-change: transform;
  transform: translateX(100vw);
  overflow-y: auto;
}
.mobile-menu.open {
  right: 0;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.6rem;
  margin: 12px 32px 4px 0;
  padding: 4px 12px;
  align-self: flex-end;
  transition: color 0.2s, background 0.13s;
  border-radius: 8px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #fff2e2;
  color: var(--fc-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  padding: 32px 40px 24px 44px;
  align-items: flex-start;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 8px;
  border-radius: 6px;
  margin-bottom: 3px;
  transition: background 0.12s, color 0.18s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #fff2e2;
  color: var(--fc-accent);
}
@media (min-width: 992px) {
  .mobile-menu { display: none !important; }
}
@media (max-width: 600px) {
  .mobile-nav {
    padding: 32px 12vw;
  }
}

/* Navigation z-index prevents overlay issues */
header, .mobile-menu { z-index: 3000; position: relative; }

/* --------------------- FOOTER --------------------- */
footer {
  background: var(--fc-secondary);
  border-radius: 44px 0 0 0;
  margin-top: 60px;
  box-shadow: 0px -2px 24px rgba(36,82,122,0.07);
  position: relative;
  font-size: 0.98rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 36px 20px 22px 20px;
}
.footer-logo {
  flex: 0 0 auto;
}
.footer-logo img {
  height: 48px;
  width: auto;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.footer-nav a {
  color: var(--fc-primary);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  margin-right: 8px;
  margin-bottom: 3px;
  transition: color 0.18s;
  letter-spacing: 0.2px;
}
.footer-nav a:hover {
  color: var(--fc-accent);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #1B2838;
  flex: 1 0 250px;
}
.footer-contact img {
  width: 17px;
  vertical-align: middle;
  margin-right: 6px;
}
.footer-copy {
  width: 100%;
  text-align: right;
  color: #6a7a90;
  font-size: 0.93rem;
  margin-top: 30px;
}
@media (max-width: 991px) {
  footer .container {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    padding: 34px 2vw 18px 2vw;
  }
  .footer-copy {
    text-align: left;
    margin-top: 18px;
  }
}

/* --------------------- FORMS & MAPS --------------------- */
.contact-details {
  background: var(--fc-card-bg);
  border-radius: 13px 24px 13px 24px;
  box-shadow: var(--fc-shadow);
  padding: 32px 24px 18px 24px;
  margin-bottom: 20px;
  flex: 1 1 320px;
}
.contact-details p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.map-embed {
  flex: 1 1 240px;
  min-width: 180px;
  margin-left: 30px;
  background: #F8F8F9;
  border-radius: 18px 18px 3px 18px;
  box-shadow: var(--fc-shadow);
  padding: 25px 18px;
}
@media (max-width: 768px) {
  .contact-details, .map-embed {
    margin-left: 0;
    margin-bottom: 16px;
    padding: 18px 8px 10px 8px;
  }
  .map-embed {
    border-radius: 12px;
  }
}

/* ------------------- CTA BUTTONS & INTERACTION ------------------- */
button, .cta-btn {
  cursor: pointer;
}
.cta-btn:active {
  background: var(--fc-accent-alt);
  color: #fff;
}

/* ------------------- VISUAL HIERARCHY, BORDERS, SPACING ------------------- */
.content-wrapper {
  gap: 24px;
}
.card + .card,
.testimonial-card + .testimonial-card,
.feature-grid > div + div {
  margin-top: 20px;
}
ul, ol {
  margin-bottom: 22px;
}

/* --- Structured/unmistakable geometric touches --- */
section {
  border: 2.5px solid var(--fc-secondary);
  border-radius: 32px 16px 32px 16px;
  box-shadow: var(--fc-shadow);
}
.feature-grid > div, .testimonial-card, .card {
  border-radius: 24px 8px 24px 8px;
}

/* ----- SHADOWS & MICRO-ANIMATIONS ----- */
.card, .testimonial-card, .feature-grid > div {
  box-shadow: var(--fc-shadow);
  transition: box-shadow 0.22s, transform 0.18s;
}
.card:hover, .feature-grid > div:hover {
  box-shadow: 0px 8px 34px rgba(36,82,122,0.17);
  transform: scale(1.028) translateY(-3px) rotate(-1deg);
}

/* ---- HOME HERO & TEXT ---- */
.text-section h1,
.text-section h2 {
  line-height: 1.13;
  margin-bottom: 18px;
}
.text-section {
  padding: 8px 0 16px 0;
  text-align: center;
}
.text-section p {
  margin-bottom: 12px;
  font-size: 1.09rem;
}
@media (max-width: 700px) {
  .text-section {
    padding: 4px 0 1px 0;
  }
}

/* ----------- COOKIE CONSENT BANNER & MODAL ------------ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--fc-bg);
  color: #1B2838;
  box-shadow: 0px -2px 40px rgba(36,82,122,0.10);
  padding: 20px 18px 20px 18px;
  z-index: 4500;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-size: 1.095rem;
  border-radius: 22px 22px 0 0;
  animation: cookieBannerSlide 0.5s cubic-bezier(.63,.38,.56,1.23);
}
@keyframes cookieBannerSlide {
  from { transform: translateY(100%); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-banner p {
  margin: 0;
  flex: 1 1 220px;
}
.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.cookie-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.2px;
  border: none;
  padding: 11px 23px;
  border-radius: 11px 22px 11px 22px;
  background: var(--fc-accent);
  color: #fff;
  font-weight: 600;
  margin-right: 2px;
  transition: background 0.19s, color 0.15s, box-shadow 0.21s;
  box-shadow: 0 1.5px 4px rgba(167,120,35,0.14);
}
.cookie-btn.secondary {
  background: var(--fc-bg);
  color: var(--fc-primary);
  border: 1.5px solid var(--fc-accent);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--fc-primary);
  color: #fff;
  outline: none;
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: #F7F9FA;
  color: var(--fc-accent);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 5000;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(36, 82, 122, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s;
}
@keyframes fadeIn {
  from { opacity:0; }
  to { opacity:1; }
}
.cookie-modal {
  background: #fff;
  color: var(--fc-primary);
  border-radius: 19px 34px 13px 30px;
  box-shadow: 0 8px 34px rgba(36,82,122,0.23);
  padding: 32px 34px 18px 34px;
  min-width: 290px;
  max-width: 96vw;
  min-height: 210px;
  font-family: 'Lato', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.3rem;
  color: var(--fc-primary);
  margin-bottom: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  font-size: 1.02rem;
  gap: 8px;
  font-weight: 500;
  margin-bottom: 10px;
}
.cookie-modal .cookie-switch {
  width: 38px; height: 22px;
  display: inline-block;
  position: relative;
}
.cookie-modal .cookie-switch input {
  opacity: 0; width: 0; height: 0;
}
.cookie-modal .slider {
  position: absolute; cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #e3e7ed;
  border-radius: 13px;
  transition: background 0.18s;
}
.cookie-modal .slider:before {
  position: absolute; content: "";
  height: 18px; width: 18px; left: 1.5px; bottom: 2px;
  background: var(--fc-accent);
  border-radius: 50%;
  transition: transform 0.2s;
}
.cookie-modal .cookie-switch input:checked + .slider {
  background: var(--fc-primary);
}
.cookie-modal .cookie-switch input:checked + .slider:before {
  transform: translateX(16px);
}
.cookie-modal .cookie-btn {
  width: max-content;
  margin-top: 9px;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  top: 13px;
  right: 19px;
  font-size: 1.7rem;
  color: var(--fc-primary);
  border: none;
  background: none;
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-modal .close-cookie-modal:hover {
  color: var(--fc-accent);
}

@media (max-width: 600px) {
  .cookie-modal {
    padding: 18px 10px 18px 10px;
    min-width: 0;
  }
}

/* ------------------- RESPONSIVE MEDIA QUERIES ------------------- */
@media (max-width: 1000px) {
  .container {
    max-width: 98vw;
  }
  .feature-grid > div {
    min-width: 43vw;
    flex: 1 1 300px;
  }
}
@media (max-width: 700px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.23rem; }
  h3 { font-size: 1rem; }
  .footer-logo img { height: 36px; }
  .card, .feature-grid > div { padding: 18px 10px; min-width: 0; }
  .testimonial-card { padding: 13px 7px; }
}
@media (max-width:520px) {
  .footer-contact, .footer-nav {
    font-size: 0.91rem;
    gap: 8px;
  }
}

/* ------------------- UTILITY CLASSES & OVERRIDES ------------------- */
hr {
  border: none;
  border-top: 2px solid var(--fc-secondary);
  margin: 34px 0;
}
::-webkit-scrollbar {
  width: 11px;
  background: #F8F9FB;
}
::-webkit-scrollbar-thumb {
  background: var(--fc-secondary);
  border-radius: 9px;
}

/* Remove inner border and focus outline for input/textarea on some browsers */
input, textarea {
  border-radius: 6px;
  border: 1.5px solid var(--fc-secondary);
  padding: 7px 14px;
  font-size: 1em;
}
input:focus, textarea:focus {
  border-color: var(--fc-accent);
}

/* ------------- ACCORDIONS, FAQ, LISTS GEOMETRIC BULLETS ------------- */
ul {
  list-style: none;
  padding-left: 0;
}
ul li:before {
  content: "◼";
  color: var(--fc-accent);
  font-size: 0.75em;
  margin-right: 6px;
  vertical-align: middle;
  font-weight: bold;
}
ol {
  list-style: decimal inside;
  padding-left: 0;
  margin-left: 0;
}

/* ------------- HIGHLIGHTS & MICRO-INTERACTIONS ------------- */
.feature-grid > div, .card {
  cursor: pointer;
}
.feature-grid > div:active {
  background: #F2F5F7;
}
.testimonial-card:active {
  background: #F5F9FB;
}

/* ------------- SELECTION HIGHLIGHT ------------- */
::selection {
  background: var(--fc-accent);
  color: #fff;
}

/* ------------- MISC ------------- */
[hidden] { display:none !important; }

/* ----------- END OF STYLE.CSS ----------- */
