/* --- 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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F0F4FA;
  color: #232439;
  font-family: 'Merriweather', serif;
  font-size: 16px;
  min-height: 100vh;
}
img, picture {
  max-width: 100%;
  display: block;
}
a {
  color: #1A2561;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover, a:focus {
  color: #b28312;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}
button, input, textarea {
  font-family: inherit;
  font-size: 1rem;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
}
button {
  cursor: pointer;
}

/* ----- Fonts for Elegant Classic ----- */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Montserrat:wght@400;700&display=swap');

:root {
  --primary: #1A2561;
  --primary-dark: #151b41;
  --secondary: #F0F4FA;
  --secondary-dark: #dee3ee;
  --accent: #FFC134;
  --accent-dark: #b28312;
  --neutral: #F6F2EA;
  --text: #232439;
  --text-dark: #181925;
  --muted: #6c6c7d;
  --border: #E0E4EB;
  --shadow: 0 4px 20px rgba(26, 37, 97, 0.06);
  --radius: 12px;
  --transition: 0.2s cubic-bezier(.5,.25,.25,1);
}

body {
  background: var(--secondary);
  color: var(--text);
}

/* --- Typography --- */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Merriweather', serif;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}
h1 {
  font-size: 2.5rem;
  letter-spacing: -1px;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
h4, h5, h6 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
p, ul, ol {
  font-family: 'Merriweather', serif;
  color: var(--text-dark);
  font-size: 1.08rem;
  margin-bottom: 16px;
}
strong, b {
  font-weight: 700;
}

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

/* --- Flexbox Patterns (as required) --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 6px 28px rgba(26,37,97,0.15);
  transform: translateY(-3px);
}
.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: 24px;
  }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px 20px 34px;
  background: #FAFAFC;
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(26,37,97,0.03);
  margin-bottom: 20px;
  max-width: 600px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.testimonial-card:hover {
  box-shadow: 0 6px 22px rgba(26,37,97,0.09);
  border-left-color: var(--accent-dark);
}
.testimonial-card p {
  color: var(--text-dark);
  font-size: 1.13rem;
  margin-bottom: 2px;
}
.testimonial-card span {
  color: var(--muted);
  font-size: 1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ---- Navigation Styles ---- */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(26,37,97,0.04);
  position: relative;
  z-index: 10;
}
header > nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 26px;
  padding: 16px 20px;
}
header > nav a {
  font-family: 'Montserrat', serif;
  font-size: 1.12rem;
  color: var(--primary);
  letter-spacing: 0.02em;
  padding: 8px 7px;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
}
header > nav a:hover,
header > nav a:focus {
  background: var(--accent);
  color: var(--primary);
}
header img {
  height: 48px;
  margin-right: 20px;
}
.cta-btn {
  display: inline-block;
  font-family: 'Montserrat', serif;
  font-weight: 700;
  font-size: 1.06rem;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 36px;
  padding: 13px 34px;
  margin-left: 18px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(255,193,52,0.12);
  letter-spacing: 0.06em;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.cta-btn:hover,
.cta-btn:focus {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 5px 18px rgba(26,37,97,0.12);
  transform: translateY(-2px) scale(1.024);
}

/* --- Footer --- */
footer {
  background: #fff;
  box-shadow: 0 -1px 8px rgba(26,37,97,0.03);
  padding: 38px 0 16px 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-bottom: 12px;
}
footer nav a {
  color: var(--primary);
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  padding: 5px 6px;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
}
footer nav a:hover,
footer nav a:focus {
  background: var(--primary);
  color: #fff;
}
.brand-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--muted);
  font-family: 'Merriweather', serif;
}
.brand-footer img {
  height: 34px;
}
address {
  font-style: normal;
  font-size: 1rem;
  color: var(--muted);
  font-family: 'Merriweather', serif;
  margin-bottom: 0;
}

/* ---- Mobile Navigation ---- */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 19px;
  right: 22px;
  z-index: 240;
  background: var(--primary);
  color: #fff;
  font-size: 2.1rem;
  border: none;
  border-radius: 8px;
  width: 48px;
  height: 48px;
  justify-content: center;
  align-items: center;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--accent);
  color: var(--primary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-102vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(.77,0,.18,1), opacity 0.3s ease;
  box-shadow: 6px 0 48px rgba(26,37,97,0.14);
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 16px 24px 4px 0;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2.2rem;
  border-radius: 8px;
  padding: 5px 9px;
  line-height: 1;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--accent);
  color: var(--primary);
}
.mobile-nav {
  margin-top: 38px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  align-items: flex-start;
  padding-left: 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', serif;
  font-size: 1.25rem;
  padding: 13px 3px;
  color: var(--primary);
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  width: 95vw;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--primary);
}
@media (max-width: 1024px) {
  .container {
    max-width: 95vw;
  }
}
@media (max-width: 900px) {
  header > nav {
    gap: 14px;
  }
  .cta-btn {
    padding: 12px 22px;
    font-size: 1rem;
  }
}
@media (max-width: 860px) {
  header > nav {
    flex-wrap: wrap;
    gap: 10px;
  }
}
@media (max-width: 768px) {
  header > nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .container {
    padding: 0 10px;
  }
  .section {
    padding: 26px 8px;
    margin-bottom: 38px;
  }
  .content-wrapper {
    gap: 16px;
  }
  h1 {
    font-size: 2rem;
    margin-bottom: 12px;
  }
  h2 {
    font-size: 1.28rem;
    margin-bottom: 10px;
  }
  p, ul, ol, address {
    font-size: 1rem;
  }
}

/* --- Lists, Feature Lists, General Spacing --- */
ul, ol {
  margin-bottom: 20px;
  padding-left: 23px;
  font-family: 'Merriweather', serif;
  font-size: 1.08rem;
}
ul li, ol li {
  margin-bottom: 12px;
  line-height: 1.7;
  position: relative;
}
ul li::before {
  content: '•';
  color: var(--accent-dark);
  position: absolute;
  left: -18px;
  font-size: 1.08rem;
}

/* --- Card Styles --- */
.card {
  min-width: 240px;
  max-width: 350px;
  margin-right: 0;
  margin-left: 0;
}

/* --- Buttons & Forms --- */
button, .cta-btn {
  appearance: none;
  outline: none;
}
button:focus, .cta-btn:focus {
  outline: 2px dashed var(--primary);
}

/* --- Map Embeds, etc. --- */
.map-embed {
  background: var(--secondary);
  border-radius: var(--radius);
  box-shadow: 0 1px 6px rgba(26,37,97,0.04);
  padding: 18px 12px;
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 22px;
}

/* --- Cookie Consent Banner ---- */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: var(--text);
  box-shadow: 0 -2px 12px rgba(26,37,97,0.14);
  z-index: 9000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  gap: 18px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  animation: fadeInFromBottom 0.55s 0.05s both;
}
@keyframes fadeInFromBottom {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-dark);
}
.cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
.cookie-btns button {
  font-family: 'Montserrat', serif;
  padding: 9px 22px;
  font-size: 1rem;
  border-radius: 26px;
  border: 1px solid var(--border);
  background: var(--secondary);
  color: var(--primary);
  margin: 0;
  transition: background var(--transition), color var(--transition), border var(--transition);
  cursor: pointer;
}
.cookie-btns button.primary {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
  font-weight: 700;
}
.cookie-btns button.primary:hover,
.cookie-btns button.primary:focus {
  background: var(--primary);
  color: #fff;
}
.cookie-btns button.secondary {
  background: #fff;
  color: var(--primary);
}
.cookie-btns button.secondary:hover,
.cookie-btns button.secondary:focus {
  background: var(--secondary-dark);
}
.cookie-btns button.settings {
  background: #eff3fc;
  color: var(--primary);
}
.cookie-btns button.settings:hover {
  background: var(--accent);
  color: var(--primary);
}

@media (max-width: 700px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 8px;
    gap: 12px;
  }
  .cookie-btns {
    gap: 7px;
    width: 100%;
    flex-wrap: wrap;
  }
  .cookie-btns button {
    width: 100%;
    margin-bottom: 4px;
  }
}

/* --- Cookie Modal --- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(26,37,97,0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 36px rgba(26,37,97,0.14);
  padding: 36px 28px 22px 28px;
  max-width: 420px;
  width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeInSmall 0.46s 0.03s both;
}
@keyframes fadeInSmall {
  from { transform: scale(.9) translateY(40px); opacity: 0;}
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  margin-top: 0;
  font-size: 1.33rem;
}
.cookie-cat {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-modal label {
  font-family: 'Merriweather', serif;
  font-size: 1.06rem;
  color: var(--text-dark);
}
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  background: var(--secondary-dark);
  border-radius: 22px;
  top: 0; left: 0; right: 0; bottom: 0;
  transition: background 0.2s;
}
.switch input:checked + .slider {
  background: var(--accent);
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px; width: 16px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.switch input:checked + .slider:before {
  transform: translateX(16px);
}
.cookie-modal .modal-btns {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal .modal-btns button {
  padding: 8px 16px;
  border-radius: 24px;
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  border: 1px solid var(--border);
  background: var(--secondary);
  color: var(--primary);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.cookie-modal .modal-btns button.accept {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
  font-weight: 700;
}
.cookie-modal .modal-btns button.accept:hover {
  background: var(--primary);
  color: #fff;
}
.cookie-modal .modal-btns button.cancel:hover {
  background: var(--secondary-dark);
}
@media (max-width: 540px) {
  .cookie-modal {
    padding: 16px 5px;
    min-width: 0;
  }
}

/* --- Micro-interactions --- */
a, button, .cta-btn {
  transition: box-shadow var(--transition), color var(--transition), background var(--transition), transform var(--transition);
}
section, .card, .testimonial-card, .cookie-consent-banner, .cookie-modal {
  transition: box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

/* --- Accessibility: Focus --- */
a:focus, .cta-btn:focus, button:focus, input:focus {
  outline: 2px dashed var(--primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(26,37,97,0.10);
}

/* --- Spacing Consistency Ensured By Flex and Gap on Containers --- */

/* --- Utilities --- */
.mt-48 { margin-top: 48px; }
.mb-32 { margin-bottom: 32px; }
.mb-20 { margin-bottom: 20px; }
.text-center { text-align: center; }

/* ----- END OF CSS FILE ----- */
