/* RESET & BASE TYPOGRAPHY --------------------------------------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
  height: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  background: #F2EFEA;
  color: #223248;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" on, "lnum" on;
}
img {
  max-width: 100%;
  height: auto;
  border: none;
  display: block;
}
ul, ol {
  padding-left: 1.25em;
  margin-bottom: 1.5em;
}
a {
  color: #223248;
  text-decoration: none;
  transition: color .2s cubic-bezier(.45,1.85,.41,.93);
}
a:hover, a:focus {
  color: #8BAA4B;
  outline: none;
}
::-webkit-input-placeholder { color: #7c8593; opacity:1; }
::-moz-placeholder { color: #7c8593; opacity:1; }
:-ms-input-placeholder { color: #7c8593; opacity:1; }
::placeholder { color: #7c8593; opacity:1; }

/* GEOMETRIC STRUCTURED BRANDING ----------------------------------------------- */
:root {
  --clr-primary: #223248;
  --clr-secondary: #8BAA4B;
  --clr-accent: #F2EFEA;
  --clr-dark: #191B1F;
  --font-display: 'Merriweather', serif;
  --font-body: 'Lato', Arial, sans-serif;
  --radius-base: 16px;
  --radius-card: 24px;
  --shadow-card: 0 4px 28px rgba(34,50,72,0.10), 0 1.5px 4px rgba(34,50,72,0.05);
  --gap-unit: 24px;
}

/* SPACING LAYOUT - COMMON ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 28px 28px 24px 28px;
  min-width: 260px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 8px 36px rgba(34,50,72,0.12), 0 3px 7px rgba(34,50,72,0.07);
}

.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 {
  background: #fff;
  border-radius: var(--radius-base);
  box-shadow: 0 3px 10px rgba(34,50,72,0.07);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  min-width: 250px;
  color: #223248;
  position: relative;
}
.testimonial-card blockquote {
  margin: 0 0 10px 0;
  font-size: 1.125rem;
  font-family: var(--font-display);
  font-style: italic;
  border-left: 3.5px solid var(--clr-secondary);
  padding-left: 18px;
  line-height: 1.5;
}
.testimonial-card strong {
  font-weight: 700;
  color: var(--clr-primary);
}
.testimonial-card span {
  color: var(--clr-secondary);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* CUSTOM COMPONENTS ---------------------------------------------------------- */
.hero {
  background: linear-gradient(120deg, var(--clr-accent) 60%, #fff 120%);
  border-bottom: 4px solid var(--clr-secondary);
  min-height: 320px;
  padding-top: 48px;
  padding-bottom: 48px;
  display: flex;
  align-items: center;
  margin-bottom: 0;
}
.hero .content-wrapper {
  gap: 24px;
  align-items: flex-start;
}
h1, .hero h1 {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--clr-primary);
  margin-bottom: 0.3em;
}
h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--clr-primary);
  letter-spacing: -0.5px;
  margin-bottom: 0.6em;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.4em;
  letter-spacing: -0.2px;
}
.subheadline {
  font-size: 1.18rem;
  color: #35465e;
  font-family: var(--font-body);
  margin-bottom: 1.25em;
  margin-top: -0.7em;
}
blockquote {
  margin: 20px 0 16px 0;
  padding-left: 18px;
  border-left: 3.5px solid var(--clr-secondary);
  color: #223248;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.5;
}
strong {
  font-weight: 700;
  color: var(--clr-primary);
}

/* BUTTONS & LINKS ------------------------------------------------------------ */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 46px;
  padding: 0 32px;
  border: 0;
  border-radius: var(--radius-base);
  cursor: pointer;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.18;
  outline: none;
  box-shadow: 0 2px 15px rgba(34,50,72,0.07);
  transition: background .17s cubic-bezier(.44,.99,.36,.97), color .13s;
}
.btn-primary {
  background: var(--clr-primary);
  color: #fff;
  border: 2.5px solid var(--clr-primary);
}
.btn-primary:hover, .btn-primary:focus {
  background: #fff;
  color: var(--clr-primary);
  border-color: var(--clr-secondary);
  outline: 2px solid var(--clr-secondary);
}
.btn-secondary {
  background: #fff;
  color: var(--clr-primary);
  border: 2.5px solid var(--clr-secondary);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--clr-secondary);
  color: #fff;
  outline: 2px solid var(--clr-primary);
}

/* NAVIGATION LAYOUT ---------------------------------------------------------- */
.header-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 20px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-primary);
  padding: 7px 0;
  text-transform: uppercase;
  opacity: 0.93;
  position: relative;
  transition: color 0.14s, opacity 0.13s, border .11s;
  border-bottom: 2.5px solid transparent;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--clr-secondary);
  opacity: 1;
  border-bottom: 2.5px solid var(--clr-secondary);
}

/* MOBILE MENU --------------------------------------------------------------- */
.mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--clr-primary);
  font-size: 2rem;
  padding: 6px 12px;
  border-radius: 9px;
  cursor: pointer;
  display: none;
  position: relative;
  z-index: 99;
}
@media (max-width: 1050px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
  background: #fff;
  box-shadow: 8px 0 32px rgba(34,50,72,0.20);
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.90,.02,.6,.94);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 32px 24px 24px 32px;
  gap: 18px;
  overflow-y: auto;
  opacity: 1;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--clr-primary);
  font-size: 2.2rem;
  align-self: flex-end;
  margin-bottom: 14px;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 19px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.14rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--clr-primary);
  padding: 14px 0;
  text-transform: uppercase;
  border-bottom: 2px solid #f3f4f8;
  transition: color 0.17s, border 0.12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--clr-secondary);
  border-bottom: 2px solid var(--clr-secondary);
}
.mobile-menu {
  display: flex;
}

/* HERO ALTERNATE LAYOUT FOR PAGES -------------------------------------------- */
.hero .subheadline {
  color: #35465e;
  font-size: 1.20rem;
}

/* FEATURES GRID -------------------------------------------------------------- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 8px;
  margin-bottom: 18px;
  list-style: none;
}
.feature-grid li {
  flex: 1 1 210px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  padding: 24px 18px 18px 22px;
  min-width: 185px;
  font-size: 1rem;
  color: #223248;
  transition: box-shadow 0.17s;
}
.feature-grid li:hover {
  box-shadow: 0 8px 32px rgba(34,50,72,0.11);
}
.feature-grid span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--clr-secondary);
}
.feature-grid strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}
.feature-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
}

/* CALL-TO-ACTION/CONTACT SHORT BLOCK ----------------------------------------- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  font-size: 1.1rem;
}
.text-section a {
  margin-top: 8px;
}
.text-section img {
  width: 22px;
  height: 22px;
  margin-right: 10px;
  vertical-align: middle;
}
.text-section div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #393b3f;
}

/* TEAM GRID ------------------------------------------------------------------ */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.team-member {
  flex: 1 1 220px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px 18px 20px 20px;
  min-width: 180px;
  transition: box-shadow 0.2s;
}
.team-member:hover {
  box-shadow: 0 8px 28px rgba(34,50,72,0.13);
}
.team-bio {
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: flex-start;
}
.team-bio h3 {
  margin-bottom: 0.3em;
}
.team-bio strong {
  color: var(--clr-secondary);
}

/* FAQ/AVIS/NEWS/ADVICE BLOCKS ------------------------------------------------ */
.faq-list, .news-list, .advice-blocks, .market-insight-blocks {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}
.faq-item {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(34,50,72,0.08);
  padding: 20px;
  color: #223248;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.news-list article, .advice-blocks > h3, .advice-blocks > p {
  margin-bottom: 10px;
}
.market-insight-blocks {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 22px;
}
.market-insight-blocks > div {
  flex: 1 1 260px;
  background: #fff;
  border-radius: var(--radius-base);
  box-shadow: 0 2px 9px rgba(34,50,72,.06);
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7.5px;
}
.market-insight-blocks img {
  width: 36px;
  height: 36px;
  margin-bottom: 5px;
}

.callout-box {
  background: #8BAA4B;
  color: #fff;
  border-radius: var(--radius-base);
  padding: 18px 14px;
  margin: 12px 0 0 0;
  font-size: 1.11rem;
  box-shadow: 0 1.5px 5.5px rgba(34,50,72,0.09);
  font-weight: 500;
}
.callout-box a {
  color: #fff;
  text-decoration: underline;
  font-weight: bold;
}

/* TRENDS & DECORATIVE ICONS ------------------------------------------------- */
.trend-icons {
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin-top: 14px;
}
.trend-icons img {
  width: 43px;
  height: 43px;
  filter: grayscale(.10);
  opacity: .84;
}

/* MAP/CONTACT SNIPPETS ------------------------------------------------------ */
.map-snippet, .contact-info, .contact-details {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 18px;
  font-size: 1.08rem;
}
.map-snippet img {
  width: 26px;
  height: 26px;
  margin-bottom: 6px;
}

/* FOOTER --------------------------------------------------------------------- */
footer {
  background: var(--clr-primary);
  color: #fff;
  padding: 40px 0 20px 0;
  margin-top: 68px;
  border-radius: 18px 18px 0 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: center;
  text-align: center;
}
.footer-nav {
  margin-top: 6px;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.04rem;
  opacity: 0.82;
  transition: color 0.14s, opacity 0.13s, border .11s;
  border-bottom: 2px solid transparent;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--clr-secondary);
  opacity: 1;
  border-bottom: 2px solid var(--clr-secondary);
}
.footer-contact {
  font-size: 1.03rem;
  color: #cddae9;
  margin-top: 8px;
}
.footer-contact a {
  color: var(--clr-secondary);
  font-weight: 600;
  text-decoration: underline;
}
.footer-copy {
  color: #bbc6dc;
  font-size: 0.93rem;
  margin-top: 18px;
}
footer img {
  width: 60px;
  margin-bottom: 7px;
}

/* COOKIES CONSENT BANNER & MODAL --------------------------------------------- */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  color: #223248;
  border-top: 3px solid var(--clr-secondary);
  box-shadow: 0 -2px 18px rgba(34,50,72,0.09);
  z-index: 3000;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  justify-content: center;
  padding: 24px 20px 20px 20px;
  font-size: 1.08rem;
  animation: banner-slide-in 0.36s cubic-bezier(.78,.3,.47,1.09);
}
@keyframes banner-slide-in {
  from { transform: translateY(90px); opacity:0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-consent-buttons {
  display: flex;
  gap: 16px;
  margin-left: 19px;
}
.cookie-btn {
  background: var(--clr-secondary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 9px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.17s, color 0.12s;
  outline: none;
  min-width: 110px;
}
.cookie-btn.secondary {
  background: #fff;
  color: var(--clr-primary);
  border: 1.6px solid var(--clr-secondary);
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: var(--clr-secondary);
  color: #fff;
}
.cookie-btn.primary:hover, .cookie-btn.primary:focus {
  background: #223248;
  color: #fff;
}
.cookie-btn.settings {
  background: none;
  color: var(--clr-primary);
  border: none;
  text-decoration: underline;
  min-width: 0;
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  color: var(--clr-secondary);
}
/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%) scale(1);
  z-index: 4000;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 3px 32px rgba(34,50,72,0.13);
  padding: 36px 28px 24px 28px;
  min-width: 300px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 95vw;
  animation: modal-open 0.32s cubic-bezier(.31,1.24,.42,.94);
}
@keyframes modal-open {
  0% { transform: translate(-50%, -30%) scale(0.8); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 12px 0;
}
.cookie-category input[type="checkbox"] {
  width: 22px;
  height: 22px;
}
.cookie-modal-close {
  position: absolute;
  right: 22px;
  top: 22px;
  background: none;
  border: none;
  color: var(--clr-primary);
  font-size: 2 rem;
  cursor: pointer;
  z-index: 4100;
}
.cookie-modal .cookie-btn {
  margin-top: 22px;
}
.cookie-modal .cookie-btn.settings {
  margin-left: 0;
}
.overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  z-index: 3900;
  background: rgba(34,50,72,0.24);
  opacity: 1;
}

/* MICRO-INTERACTIONS -------------------------------------------------------- */
.card, .feature-grid li, .team-member, .testimonial-card, .faq-item, .market-insight-blocks > div {
  transition: box-shadow 0.18s, transform 0.14s;
}
.card:hover, .feature-grid li:hover, .team-member:hover, .faq-item:hover, .testimonial-card:hover, .market-insight-blocks > div:hover {
  box-shadow: 0 10px 36px rgba(34,50,72,.13);
  transform: translateY(-2px) scale(1.013);
}

/* VISUAL SHAPES (ATOMS) ----------------------------------------------------- */
.section, .hero, .card, .team-member, .market-insight-blocks>div, .feature-grid li, .callout-box, .testimonial-card {
  border-radius: var(--radius-base);
}

/* INPUT STYLES -------------------------------------------------------------- */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid #bbc6dc;
  border-radius: 10px;
  padding: 11px 15px;
  background: #fff;
  transition: border-color 0.13s;
  outline: none;
  margin-bottom: 16px;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--clr-secondary);
}

/* GEOMETRIC SHAPES DECOR (use for icons, etc.) ------------------------------ */
svg, img[src$=".svg"] {
  shape-rendering: geometricPrecision;
}

/* VISUAL HIERARCHY & SPACING ------------------------------------------------ */
main ul, main ol {
  margin-bottom: 18px;
}
main ul li, main ol li {
  margin-bottom: 9px;
  font-size: 1.04rem;
  color: #223248;
}
main ul li strong, main ol li strong {
  color: var(--clr-secondary);
}

/* RESPONSIVE DESIGN --------------------------------------------------------- */
@media (max-width: 1100px) {
  .container {
    max-width: 970px;
  }
  .feature-grid {
    gap: 18px;
    flex-wrap: wrap;
  }
  .team-grid, .card-container, .market-insight-blocks {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .hero h1, h1 {
    font-size: 2.1rem;
  }
  h2 {
    font-size: 1.40rem;
  }
  .footer-nav {
    gap: 12px;
    flex-wrap: wrap;
  }
  .container {
    max-width: 680px;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 26px 8px;
  }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .feature-grid,
  .team-grid,
  .market-insight-blocks,
  .card-container {
    flex-direction: column;
    gap: 15px;
  }
  .content-grid {
    gap: 12px;
  }
  .hero {
    min-height: 220px;
    padding-top: 22px;
    padding-bottom: 22px;
    border-radius: 0 0 34px 34px;
  }
  .hero .content-wrapper {
    gap: 14px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 6px;
    padding: 16px 10px;
  }
  .text-image-section { flex-direction: column; gap: 16px; }
  .footer-nav { gap: 10px; flex-wrap: wrap; }
  footer .container { gap: 14px; }
}
@media (max-width: 530px) {
  .hero h1, h1 {
    font-size: 1.42rem;
  }
  .footer-nav {
    flex-direction: column;
    gap: 4px;
  }
  .cookie-consent-banner {
    flex-direction: column;
    gap: 6px;
    font-size: 0.98rem;
    padding: 16px 6px 16px 6px;
  }
}

/* Print styles -------------------------------------------------------------- */
@media print {
  body, .container, main, section, .section {
    background: #fff !important;
    color: #222 !important;
  }
  header, footer, .mobile-menu, .cookie-consent-banner,.cookie-modal,.overlay {
    display: none !important;
  }
}
