/* ========================================================================
   CSS Reset & Normalize for consistency and a solid baseline
=========================================================================== */
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, body {
  height: 100%;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1.56;
  background-color: #FBF8F3;
  color: #19446A;
}

ol, ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color .18s;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================================================================
   Web Fonts (Google Fonts CDN assumed)
=========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Playfair+Display:wght@400;700&display=swap');

:root {
  --brand-primary: #19446A;
  --brand-secondary: #F6D27D;
  --brand-accent: #FFFFFF;
  --brand-dark: #18324B;
  --brand-muted: #D7E5F1;
  --brand-soft-bg: #FBF8F3;
  --text-dark: #16181c;
  --text-mid: #42506c;
  --text-light: #7991ad;
  --border-light: #e6e2d9;
  --shadow-light: 0 5px 32px rgba(25,68,106,0.08);
  --shadow-mid: 0 2px 12px rgba(25,68,106,0.10);
  --radius: 14px;
  --radius-sm: 8px;
  --transition: 0.18s cubic-bezier(.7,.1,.5,1);
}

/* ========================================================================
   Typography
=========================================================================== */
body {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 16px;
  color: var(--text-dark);
  background: var(--brand-soft-bg);
  letter-spacing: 0.01em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--brand-primary);
  font-weight: 700;
  line-height: 1.16;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.125rem;
}
p, ul, ol {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--text-mid);
}
strong {
  font-weight: 700;
  color: var(--brand-primary);
}
blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-style: italic;
  color: var(--brand-primary);
  background: var(--brand-secondary);
  padding: 18px 24px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  box-shadow: var(--shadow-light);
  border-left: 4px solid var(--brand-primary);
}

/* =======================================================================
   Layout Containers
======================================================================== */
.container {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 0;
}

.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--brand-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
}

/* Keep section background only if needed on specific sections */
section.hero {
  background: var(--brand-soft-bg);
  box-shadow: none;
  border-radius: 0;
  margin-bottom: 42px;
  padding-top: 40px;
  padding-bottom: 40px;
}

/* Card Containers, Grids and Flex Patterns */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--brand-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-mid);
  margin-bottom: 20px;
  position: relative;
  padding: 26px 22px;
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 340px;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.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;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-light);
  background: var(--brand-soft-bg);
  color: var(--brand-dark);
  margin-bottom: 20px;
  flex: 1 1 300px;
  font-size: 1.05rem;
  min-width: 240px;
  max-width: 420px;
}
.testimonial-card blockquote {
  margin: 0;
  background: none;
  padding: 0;
  border-left: none;
  box-shadow: none;
}
.testimonial-card span {
  font-family: 'Montserrat', serif;
  font-style: normal;
  font-size: 0.97rem;
  color: var(--brand-primary);
  margin-left: 18px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Section spacing rules to ensure no overlap */
section + section,
.section + .section {
  margin-top: 0;
  margin-bottom: 60px;
}

/* ========================================================================
   Navigation Bar
=========================================================================== */
header {
  background: var(--brand-accent);
  box-shadow: 0 2px 12px rgba(25,68,106,0.06);
  position: relative;
  z-index: 102;
  padding: 0;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  justify-content: flex-start;
  padding: 14px 0 14px 0;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  color: var(--brand-primary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.main-nav a.cta-primary {
  background: var(--brand-primary);
  color: var(--brand-accent);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  padding: 8px 22px;
  font-size: 1.08rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(25,68,106,0.08);
  margin-left: 18px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.main-nav a.cta-primary:hover,
.main-nav a.cta-primary:focus {
  background: var(--brand-secondary);
  color: var(--brand-primary);
  box-shadow: 0 7px 20px rgba(25,68,106,0.11);
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
.main-nav img {
  height: 38px;
  margin-right: 20px;
  vertical-align: middle;
}

/* Burger menu button */
.mobile-menu-toggle {
  background: var(--brand-primary);
  color: var(--brand-secondary);
  font-size: 2rem;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  border: none;
  cursor: pointer;
  margin-left: auto;
  display: none;
  z-index: 106;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(25,68,106,0.97);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform .32s cubic-bezier(.7,.1,.5,1);
  box-shadow: 0 2px 32px rgba(25,68,106,0.24);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--brand-secondary);
  font-size: 2.4rem;
  align-self: flex-end;
  margin: 22px 30px 10px 0;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
  z-index: 1210;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: var(--brand-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100vw;
  padding: 0 34px;
  margin-top: 16px;
}
.mobile-nav a {
  color: var(--brand-secondary);
  font-family: 'Playfair Display', serif;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 9px 0;
  border-bottom: 1px solid rgba(246,210,125,0.16);
  width: 100%;
  transition: color var(--transition), background var(--transition);
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--brand-accent);
  background: rgba(246,210,125,0.13);
  border-radius: var(--radius-sm);
}

@media (max-width: 992px) {
  .main-nav {
    gap: 11px;
    padding-left: 4px;
  }
  .main-nav a.cta-primary {
    margin-left: 5px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 16px;
    right: 16px;
  }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* ========================================================================
   Section/Sitewide Spacing & Flex Rules
=========================================================================== */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
  position: relative;
}
.card-container, .content-grid, .text-image-section {
  gap: 20px;
}
@media (max-width: 768px) {
  .content-wrapper, .card-container, .content-grid, .text-image-section {
    flex-direction: column !important;
    gap: 18px;
  }
}

/* ========================================================================
   Call-To-Action Buttons
=========================================================================== */
.cta-primary, .cta-secondary {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: 1.08rem;
  font-weight: 700;
  padding: 11px 32px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  text-align: center;
  outline: none;
  cursor: pointer;
  margin-top: 8px;
  min-width: 160px;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 12px rgba(25,68,106,0.07);
  border: none;
}
.cta-primary {
  background: var(--brand-primary);
  color: var(--brand-accent);
  border: 2px solid var(--brand-primary);
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--brand-secondary);
  color: var(--brand-primary);
  border-color: var(--brand-secondary);
  box-shadow: 0 10px 24px rgba(25,68,106,0.10);
}
.cta-secondary {
  background: var(--brand-secondary);
  color: var(--brand-primary);
  border: 2px solid var(--brand-secondary);
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--brand-primary);
  color: var(--brand-accent);
  border-color: var(--brand-primary);
}

/* ========================================================================
   Lists, Links and Utilities
=========================================================================== */
ul, ol {
  padding-left: 1.35em;
  margin-bottom: 12px;
}
ul li, ol li {
  margin-bottom: 8px;
  color: var(--text-dark);
  position: relative;
  font-size: 1rem;
  line-height: 1.65;
}
ul li img {
  vertical-align: middle;
  height: 20px;
  margin-right: 7px;
}
ul li::marker {
  color: var(--brand-secondary);
}

/* ========================================================================
   Forms and Inputs (Contact forms/minimal)
=========================================================================== */
input[type="text"],
input[type="email"],
textarea {
  font-size: 1rem;
  font-family: 'Montserrat', serif;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: #fffefb;
  color: var(--text-dark);
  margin-bottom: 12px;
  transition: border var(--transition);
  width: 100%;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--brand-primary);
}
label {
  font-family: 'Montserrat', serif;
  font-size: 1.04rem;
  color: var(--brand-primary);
  font-weight: 600;
}

/* ========================================================================
   Footer
=========================================================================== */
footer {
  background: var(--brand-primary);
  color: var(--brand-secondary);
  padding: 38px 0 18px 0;
  margin-top: 40px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 22px;
  justify-content: center;
}
.footer-nav a {
  color: var(--brand-secondary);
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  transition: color var(--transition), background var(--transition);
  padding: 6px 0;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--brand-accent);
  text-decoration: underline;
}
.brand-credits {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  font-size: .95rem;
  color: var(--brand-secondary);
}
.brand-credits img {
  height: 32px;
  margin-right: 8px;
}

@media (max-width: 768px) {
  .footer-nav, .brand-credits {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* ========================================================================
   Cookie Consent Banner (Fixed at bottom)
=========================================================================== */
.cookie-consent {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1100;
  background: var(--brand-primary);
  color: var(--brand-accent);
  padding: 25px 18px 22px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -1px 26px rgba(25,68,106,0.06);
  gap: 30px;
  flex-wrap: wrap;
  font-family: 'Montserrat', serif;
  font-size: 1.07rem;
  letter-spacing: 0.01em;
  animation: fadeInBottom .5s;
}
@keyframes fadeInBottom {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-consent .cookie-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-consent button {
  font-size: 1rem;
  padding: 7px 22px;
  border-radius: var(--radius-sm);
  margin: 0 2px;
  font-family: 'Montserrat', serif;
  background: var(--brand-secondary);
  color: var(--brand-primary);
  border: 1px solid var(--brand-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.cookie-consent button:hover, .cookie-consent button:focus {
  background: var(--brand-accent);
  color: var(--brand-primary);
  outline: 2px solid var(--brand-secondary);
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  z-index: 1600;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(25,68,106,0.42);
  animation: fadeIn .28s;
}
@keyframes fadeIn {
  to { opacity: 1; }
  from { opacity: 0; }
}
.cookie-modal .cookie-modal-content {
  background: var(--brand-accent);
  padding: 38px 22px 32px 22px;
  border-radius: var(--radius);
  box-shadow: 0 2px 44px rgba(25,68,106,0.21);
  max-width: 95vw;
  min-width: 320px;
  color: var(--text-dark);
  font-size: 1.08rem;
}
.cookie-modal h2 {
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--brand-primary);
}
.cookie-modal label {
  font-size: 1.04rem;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: flex-end;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--brand-primary);
}

/* Cookie switch alternative for toggles if JS needed */
.cookie-modal .cookie-switch {
  position: relative;
  width: 40px; height: 22px;
  display: inline-block;
  margin-left: 10px; margin-right: 7px;
}
.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: #e6e2d9;
  transition: .28s;
  border-radius: 20px;
}
.cookie-modal .slider:before {
  content: '';
  position: absolute;
  height: 16px; width: 16px;
  left: 3px; bottom: 3px;
  background: var(--brand-secondary);
  transition: .28s;
  border-radius: 50%;
}
.cookie-modal .cookie-switch input:checked + .slider {
  background: var(--brand-secondary);
}
.cookie-modal .cookie-switch input:checked + .slider:before {
  transform: translateX(16px);
  background: var(--brand-primary);
}

@media (max-width: 600px) {
  .cookie-modal .cookie-modal-content {
    padding: 16px 5px 12px 5px;
    min-width: 94vw;
  }
  .cookie-consent {
    padding: 17px 3px 16px 6px;
    font-size: .99rem;
    gap: 12px;
  }
}

/* ========================================================================
   Animations & Micro Interactions
=========================================================================== */
button, .cta-primary, .cta-secondary, a {
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), border var(--transition);
}
.card, .testimonial-card {
  transition: box-shadow 0.19s cubic-bezier(.7,.1,.5,1), transform 0.14s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 4px 26px rgba(25,68,106,0.18);
  transform: translateY(-3px) scale(1.015);
}

/* ========================================================================
   Misc Utilities & Responsive Tweaks
=========================================================================== */
@media (max-width: 600px) {
  .section, section {
    padding: 26px 2px;
    margin-bottom: 32px;
  }
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.19rem; }
  h3 { font-size: 1rem; }
  .card { min-width: 170px; padding: 13px 7px; }
  .testimonial-card { min-width: 160px; padding: 13px 7px; }
}

/* Hide modal/banners by default when not active - to be toggled by JS */
.cookie-consent { display: none; }
.cookie-consent.active { display: flex; }
.cookie-modal { display: none; }
.cookie-modal.active { display: flex; }

/* ========================================================================
   Accessibility Focus Styles
=========================================================================== */
a:focus, button:focus, .cta-primary:focus, .cta-secondary:focus, input:focus, .mobile-menu-close:focus {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 2px;
}

/* ========================================================================
   End of CSS
=========================================================================== */
