/* === 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, 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; }
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height: 1.5;
  background: #f6f5f2;
  color: #1e2836;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
}
a {
  color: #21436E;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #B99D53;
  text-decoration: underline;
}
ul, ol {
  padding-left: 1.3em;
  margin-bottom: 16px;
}
strong { font-weight: 600; }

/* === BRAND & COLOR VARIABLES (fallback for custom props) === */
:root {
  --color-primary: #21436E;
  --color-secondary: #FDEDBC;
  --color-accent: #B02A21;
  --color-gold: #B99D53;
  --color-bg: #FFFFFF;
  --color-bg-dark: #172034;
  --color-bg-soft: #f6f5f2;
  --color-text: #1e2836;
  --color-grey: #7A869A;
  --color-border: #e2dac9;
  --shadow-main: 0 4px 24px rgba(33,67,110,0.08);
  --shadow-card: 0 2px 8px rgba(33,67,110,.07);
  --radius-main: 18px;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #14223B;
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.1;
}
h1 { font-size: 2.25rem; margin-bottom: 18px; }
h2 { font-size: 1.5rem; margin-bottom: 14px; }
h3 { font-size: 1.15rem; margin-bottom: 10px; font-weight: 600; }
h4, h5, h6 { font-size: 1rem; }
.subheadline {
  font-size: 1.15rem;
  color: #7A869A;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 16px;
}
p, li {
  font-size: 1rem;
  color: #22292f;
  font-weight: 400;
}
.text-section h1, .text-section h2, .text-section h3, .text-section h4 {
  color: var(--color-primary);
}

/* === LAYOUT STRUCTURE === */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
main {
  margin-bottom: 60px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  background: #fff;
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-card);
  padding: 32px 24px;
  margin-bottom: 32px;
}

/* === FLEXBOX LAYOUTS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
  transition: box-shadow 0.2s, transform 0.2s;
  min-width: 260px;
  flex: 1 1 290px;
  border: 1px solid var(--color-border);
}
.card:hover, .card:focus-within {
  box-shadow: 0 10px 32px rgba(33,67,110,0.13);
  transform: translateY(-2px);
}
.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;
  background: var(--color-secondary);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(33,67,110,0.03);
  margin-bottom: 20px;
  border-left: 4px solid var(--color-gold);
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 20px rgba(33,67,110,0.10);
}
.testimonial-card p {
  color: #222;
  font-size: 1.1rem;
  font-style: italic;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
}
.testimonial-card span {
  color: #7A869A;
  font-size: 0.98rem;
  font-style: normal;
  font-family: 'Roboto', Arial, sans-serif;
  margin-left: 10px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 14px;
  padding: 22px 18px 16px 18px;
  box-shadow: var(--shadow-card);
  min-width: 220px;
}

/* === HEADER & NAVIGATION === */
header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 0;
  position: relative;
  z-index: 40;
  box-shadow: 0 1px 12px rgba(33,67,110,.06);
}
header nav {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 78px;
  padding: 0 20px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  font-weight: 500;
  font-size: 1rem;
  padding: 9px 13px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
header nav a:hover, header nav a:focus {
  background: var(--color-secondary);
  color: var(--color-gold);
}
header nav a.cta-primary {
  background: var(--color-gold);
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(185,157,83,0.15);
  transition: background 0.2s, color 0.2s, box-shadow 0.15s, transform 0.13s;
  border: none;
  padding: 10px 22px;
}
header nav a.cta-primary:hover, header nav a.cta-primary:focus {
  background: #A88A4A;
  color: #fff;
  box-shadow: 0 4px 16px rgba(185,157,83,0.25);
  transform: translateY(-2px) scale(1.025);
}
header nav img {
  height: 38px;
  margin-right: 26px;
}
header .mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-primary);
  padding: 4px 8px;
  cursor: pointer;
  position: absolute;
  top: 16px;
  right: 22px;
  z-index: 49;
  border-radius: 8px;
  transition: background 0.2s;
}
header .mobile-menu-toggle:active,
header .mobile-menu-toggle:focus {
  background: var(--color-secondary);
}

/* === MOBILE MENU === */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 8px 40px rgba(33,67,110,0.09);
  z-index: 1000;
  transition: transform .38s cubic-bezier(.77,0,.18,1);
  transform: translateX(100vw);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 22px;
  padding-left: 18px;
  padding-right: 18px;
}
.mobile-menu.open {
  transform: none;
  box-shadow: 0 0 0 9999px rgba(32,31,33,0.41);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 18px;
  margin-right: 4px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.16s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.mobile-nav a {
  color: var(--color-primary);
  padding: 16px 0 6px 0;
  font-size: 1.2rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
  transition: color 0.16s, background 0.18s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  color: var(--color-gold);
  background: var(--color-secondary);
}

/* === HERO, FEATURE, TESTIMONIAL, CTA === */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 18px;
}
.feature-grid > div {
  background: #fff;
  border-radius: 18px;
  padding: 32px 26px 22px 26px;
  flex: 1 1 240px;
  min-width: 220px;
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.19s, transform 0.20s;
}
.feature-grid > div img {
  width: 36px; height: 36px; margin-bottom: 12px;
}
.feature-grid > div h3 {
  color: var(--color-gold);
  font-weight: 700;
}
.feature-grid > div:hover {
  box-shadow: 0 7px 30px rgba(33,67,110,0.14);
  transform: translateY(-3px) scale(1.022);
}

.cta-primary {
  display: inline-block;
  background: var(--color-gold);
  color: #fff !important;
  border-radius: 42px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  padding: 13px 38px;
  margin-top: 12px;
  box-shadow: 0 2px 9px rgba(185,157,83,0.09);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.12s, transform 0.12s;
  outline: none;
}
.cta-primary:hover, .cta-primary:focus {
  background: #B89A55;
  color: #fff;
  transform: translateY(-1px) scale(1.025);
  box-shadow: 0 5px 20px rgba(185,157,83,0.16);
}

/* === TEAM MEMBERS === */
.team-member {
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
  margin-bottom: 20px;
  border-left: 4px solid var(--color-gold);
}
.team-member h3 {
  font-size: 1.225rem;
  color: #21436E;
  font-weight: 600;
  margin-bottom: 2px;
}
.team-member ul {
  margin: 0;
}

/* === BLOG LISTING === */
.blog-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 20px;
}
.blog-list li {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 22px 18px 16px 18px;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.16s, transform 0.16s;
}
.blog-list li:hover {
  box-shadow: 0 4px 16px rgba(33,67,110,0.10);
  transform: translateY(-2px) scale(1.01);
}
.blog-list a {
  color: var(--color-accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}

/* === FOOTER === */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 44px 0 22px 0;
  font-size: 1rem;
  box-shadow: 0 -2px 20px rgba(33,67,110,0.08);
}
footer .container {
  padding-left: 20px;
  padding-right: 20px;
}
footer .content-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}
footer a {
  color: #fff;
  opacity: 0.93;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-right: 18px;
  margin-bottom: 8px;
  font-size: 1rem;
  transition: color 0.18s, opacity 0.2s;
}
footer a:hover, footer a:focus {
  color: var(--color-gold);
  opacity: 1;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
footer .contact-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #faebc5;
  font-size: 0.97rem;
}
footer .contact-info img {
  width: 16px; height: 16px; margin-right: 6px; vertical-align: middle;
}
footer img[alt*="logo"] {
  margin-bottom: 16px;
  width: 45px;
  height: 45px;
}
footer .social-media-links {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 8px;
}
footer .social-media-links a {
  display: flex;
  align-items: center;
  background: #fffdf4;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  justify-content: center;
  transition: background 0.14s;
}
footer .social-media-links a:hover {
  background: var(--color-gold);
}
footer .social-media-links img {
  width: 22px;
  height: 22px;
}

/* === CONTACT DETAILS SECTION === */
.contact-details, .map-location {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 1.1rem;
}
.map-location em {
  color: var(--color-grey);
  font-size: 0.99rem;
}

/* === RESPONSIVENESS === */
@media (max-width: 1140px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 900px) {
  .footer .content-wrapper {
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
  }
  .feature-grid, .content-grid {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.16rem; }
  .container {
    padding-left: 13px;
    padding-right: 13px;
  }
  .content-wrapper {
    flex-direction: column;
    gap: 15px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 22px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  header nav {
    display: none;
  }
  header .mobile-menu-toggle {
    display: block;
  }
  .testimonial-card, .team-member {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    padding: 15px 10px;
  }
  .footer .content-wrapper {
    flex-direction: column;
    gap: 21px;
    align-items: flex-start;
  }
}
@media (max-width: 530px) {
  h1, h2, h3 { font-size: 1rem; }
  .feature-grid > div, .card, .team-member, .testimonial-card {
    padding: 14px 8px;
  }
  .cta-primary {
    font-size: 1rem;
    padding: 10px 16px;
  }
  .blog-list li {
    padding: 10px 7px;
  }
  footer {
    font-size: 0.98rem;
    padding: 26px 0 10px 0;
  }
}

/* === ANIMATIONS & MICRO-INTERACTIONS === */
.cta-primary,
.card, .feature-grid > div, .testimonial-card, .team-member, .blog-list li {
  transition: box-shadow 0.18s, transform 0.12s, background 0.12s, color 0.12s;
}

/* === COOKIE CONSENT BANNER === */
.cookie-consent-banner {
  position: fixed;
  left: 0; right:0; bottom: 0;
  width: 100vw;
  background: #fffdf7;
  color: #222;
  box-shadow: 0 -2px 18px rgba(33,67,110,0.11);
  border-top: 2.5px solid var(--color-gold);
  z-index: 2000;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  padding: 18px 24px;
  font-size: 1rem;
  animation: cookie-banner-slide 0.63s cubic-bezier(.4,.7,0.3,1.6);
}
@keyframes cookie-banner-slide {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-consent-banner p {
  flex: 1 1 auto;
  margin-bottom: 0;
  color: #2e2e2e;
  font-size: 1rem;
}
.cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 13px;
}
.cookie-btn {
  border: none;
  border-radius: 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 22px;
  cursor: pointer;
  transition: background 0.13s, color 0.13s, box-shadow 0.13s;
}
.cookie-btn.accept {
  background: var(--color-gold);
  color: #fff!important;
  box-shadow: 0 1px 5px rgba(185,157,83,0.10);
}
.cookie-btn.reject {
  background: #fff;
  color: var(--color-accent);
  border: 1.3px solid var(--color-accent);
}
.cookie-btn.settings {
  background: #fff;
  color: var(--color-gold);
  border: 1.3px solid var(--color-gold);
}
.cookie-btn:hover, .cookie-btn:focus {
  filter: brightness(0.95);
  box-shadow: 0 2px 12px rgba(185,157,83,0.10);
}

/* Cookie Modal Popup */
.cookie-modal-overlay {
  position: fixed;
  left:0; top:0; width: 100vw; height: 100vh;
  background: rgba(32,31,33,0.31);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.32s;
}
.cookie-modal {
  background: #fffdf5;
  border-radius: 18px;
  box-shadow: 0 6px 40px rgba(33,67,110,0.13);
  max-width: 400px;
  width: 98vw;
  padding: 34px 18px 23px 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cookie-modal-pop 0.34s cubic-bezier(.49,1.64,.29,.92);
  position: relative;
}
@keyframes cookie-modal-pop {
  from { transform: scale(0.92); opacity:0; }
  to { transform: scale(1); opacity:1; }
}
.cookie-modal h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
}
.cookie-category-label {
  flex: 1;
}
.cookie-toggle {
  appearance: none;
  width: 42px;
  height: 24px;
  background: #ddd;
  border-radius: 16px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.17s;
}
.cookie-toggle:checked {
  background: var(--color-gold);
}
.cookie-toggle:before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 2px;
  top: 2px;
  box-shadow: 0 0.5px 1.5px rgba(60,60,60,0.13);
  transition: left 0.18s;
}
.cookie-toggle:checked:before {
  left: 20px;
}
.cookie-modal .cookie-btns {
  margin-top: 14px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  border: none;
  background: none;
  font-size: 1.5rem;
  color: var(--color-accent);
  cursor: pointer;
  border-radius: 7px;
  transition: background 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #fff2e6;
}

/* === UTILITIES === */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mb-0 { margin-bottom: 0 !important; }
.pt-2 { padding-top: 20px !important; }
.pb-2 { padding-bottom: 20px !important; }
.text-center { text-align: center !important; }
.text-gold { color: var(--color-gold) !important; }
.text-primary { color: var(--color-primary) !important; }
.text-accent { color: var(--color-accent) !important; }
.fs-14 { font-size: 0.88rem !important; }
.fs-18 { font-size: 1.1rem !important; }

/* Specific fixes for section spacing for cards/testimonials */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
section:last-child { margin-bottom: 0 !important; }

/* === SPECIALS: ACCESSIBILITY & READABILITY === */
.testimonial-card, .testimonial-card p, .testimonial-card span {
  color: #191919 !important;
}

/* === BUTTON RESET === */
button, .button {
  font-family: inherit;
  outline: none;
}
button:focus-visible {
  outline: 2.5px solid var(--color-gold);
  outline-offset: 2px;
}

/* === END === */
