/* 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;
}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section {
  display: block;
}
body { line-height:1; }
ol,ul { list-style:none; }
blockquote,q { quotes:none; }
blockquote:before,blockquote:after,q:before,q:after { content:''; content:none; }
table { border-collapse:collapse; border-spacing:0; }
img { max-width: 100%; height: auto; display:block; }
button,input,select,textarea { font-family: inherit; font-size: inherit; }

/* FONT IMPORTS */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700&family=Open+Sans:wght@400;600&display=swap');

:root {
  --primary: #253B6E;
  --secondary: #A69778;
  --accent: #F7F5F1;
  --gray-900: #1B2432;
  --gray-700: #495265;
  --gray-500: #8995AD;
  --gray-300: #E4E9F1;
  --white: #fff;
  --shadow: 0 4px 24px rgba(37, 59, 110, 0.08);
  --border-radius: 14px;
  --focus: #425EA6;
}

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  background: var(--accent);
  color: var(--gray-900);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 { font-size: 2.4rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }

.subheadline {
  color: var(--gray-700);
  font-size: 1.2rem;
  margin-bottom: 18px;
}

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

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--secondary);
}

/* MAIN BUTTON/CTA */
.cta, .primary {
  display: inline-block;
  padding: 12px 28px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(37,59,110,0.10);
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--focus);
  color: var(--white);
  box-shadow: 0 4px 16px 0 rgba(37,59,110,0.17);
}
.cta.secondary {
  background: var(--secondary);
  color: var(--primary);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--primary);
  color: var(--secondary);
  box-shadow: 0 4px 16px 0 rgba(37,59,110,0.13);
}

ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 10px;
  color: var(--gray-900);
}
ul li strong {
  color: var(--primary);
}

/* HEADER */
header {
  background: var(--white);
  box-shadow: var(--shadow);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}
header img {
  height: 40px;
  width: auto;
}
nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
nav a {
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.15s, color 0.17s;
}
nav a:hover, nav a:focus {
  background: var(--accent);
  color: var(--primary);
}

/* MOBILE MENU */
.mobile-menu-toggle {
  background: transparent;
  border: none;
  font-size: 2.2rem;
  cursor: pointer;
  color: var(--primary);
  margin-left: 20px;
  display: none;
  transition: color 0.18s;
  z-index: 41;
}
.mobile-menu-toggle:focus {
  color: var(--focus);
}

.mobile-menu {
  position: fixed;
  display: flex;
  flex-direction: column;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: var(--white);
  box-shadow: 0 4px 40px rgba(37,59,110,0.12);
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.45,.46,.25,1);
  z-index: 1050;
  padding: 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  font-size: 2.2rem;
  color: var(--primary);
  align-self: flex-end;
  margin: 24px 28px 10px 0;
  cursor: pointer;
  z-index: 1060;
  transition: color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--focus);
}

.mobile-nav {
  margin: 24px auto 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: var(--primary);
  padding: 12px 0;
  border-radius: 6px;
  width: 80%;
  text-align: center;
  transition: background 0.16s, color 0.16s;
  font-weight: 600;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--secondary);
}

/* Hide nav on mobile, show burger */
@media (max-width: 1000px) {
  header nav { display: none; }
  .mobile-menu-toggle { display: inline-block; }
}
@media (min-width: 1001px) {
  .mobile-menu { display: none !important; }
}

/* MAIN LAYOUT FLEX CONTAINERS */
.card-container, .card-grid, .feature-grid, .value-list, .stories, .quotes, .anecdotes, .insight {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 32px 22px 28px 22px;
  margin-bottom: 20px;
  position: relative;
  min-width: 260px;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-item, .value-list > div, .feature-grid > div, .stories > div, .anecdotes > ul > li,
.insight > ul > li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--accent);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 14px rgba(37,59,110,0.07);
  padding: 20px 18px;
  flex: 1 1 220px;
}
.feature-grid > div img, .value-list > div img {
  height: 48px; width: 48px; margin-bottom: 6px;
}

/* FLEX & RESPONSIVE: TEXT-IMAGE SECTION */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .card-container, .feature-grid, .value-list, .stories {
    flex-direction: column;
    gap: 20px;
  }
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--accent);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(37,59,110,.09);
  margin-bottom: 24px;
}
.testimonial-card .testimonial-content {
  flex:1;
  color: var(--gray-900);
}
.testimonial-card .testimonial-author {
  min-width: 120px;
  color: var(--primary);
  font-weight: bold;
}

.quotes {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.quotes blockquote {
  background: var(--gray-300);
  padding: 18px 22px;
  border-left: 6px solid var(--secondary);
  font-style: italic;
  color: var(--gray-900);
  border-radius: 8px;
  margin-bottom: 5px;
}
.quotes p { color: var(--primary); margin-left: 12px; margin-bottom: 8px; font-weight: bold; }

.anecdotes ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.insight ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* CONTACT DETAILS LAYOUT */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 0 0;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  font-size: 1.03rem;
}
.contact-details img { width: 22px; height: 22px; }

/* FOOTER */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 0;
}
.footer-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0 16px 0;
  gap: 32px;
}
.footer-top img {
  height: 36px;
  filter: brightness(0) invert(1);
}
.footer-top nav {
  display: flex;
  flex-wrap: wrap;
  gap:20px;
}
.footer-top nav a {
  color: var(--white);
  font-size: 1rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  transition: color 0.18s, text-decoration 0.13s;
}
.footer-top nav a:hover, .footer-top nav a:focus {
  color: var(--secondary);
  text-decoration: underline;
}
.footer-bottom {
  padding: 14px 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--gray-300);
}

@media (max-width: 900px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .footer-top nav {
    gap:12px;
  }
}

/* SPACING RULES -- CRITICAL */
.section + .section { margin-top: 0; }
.card + .card { margin-left: 24px; }
.value-list > div + div, .feature-grid > div + div, .stories > div + div { margin-left: 0; /* gap covers spacing */ }
.content-wrapper > * + * { margin-top: 10px; }
main > section { margin-bottom: 40px; }

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.23rem; }
  .section { padding: 24px 8px; }
  .container { padding: 0 6px; }
  .footer-top { flex-direction: column; gap:16px; align-items: flex-start; }
  header .container { flex-direction: row; }
}

@media (max-width: 550px) {
  .card,.feature-item,.value-list > div { padding: 12px 8px 12px 8px; }
  .testimonial-card { padding: 12px; flex-direction: column; gap: 8px; }
}

/* FORM ELEMENTS & MICRO-INTERACTIONS */
input, textarea, select {
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  padding: 10px 13px;
  font-size: 1rem;
  background: var(--accent);
  width: 100%;
  margin-bottom: 14px;
  transition: border 0.14s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 2px rgba(66,94,166,0.21);
}
button:focus {
  outline: 2px solid var(--focus);
  outline-offset:2px;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: var(--primary);
  color: var(--white);
  padding: 24px 12px 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -2px 18px rgba(37,59,110,0.18);
  z-index: 9000;
  font-size:1.05rem;
  animation: cookieIn 0.5s cubic-bezier(.45,.46,.25,1) both;
}
@keyframes cookieIn {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner-content {
  max-width: 680px;
  text-align: center;
  margin-bottom: 12px;
}
.cookie-banner-actions {
  display: flex;
  gap:20px;
  margin-top: 4px;
}
.cookie-banner .cta {
  min-width: 110px;
  font-size: 0.97rem;
  border-radius: 6px;
  padding: 9px 20px;
}
.cookie-banner button.cta.secondary {
  background: var(--secondary);
  color: var(--primary);
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-backdrop {
  position: fixed; inset:0;
  background: rgba(27,36,50,0.45);
  z-index: 9999;
  display: flex;
  align-items: center; justify-content: center;
  animation: cookieBackdropIn 0.28s;
}
@keyframes cookieBackdropIn {
  0% { opacity:0; }
  100% { opacity:1; }
}
.cookie-modal {
  background: var(--white);
  color: var(--gray-900);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  max-width: 440px;
  padding: 32px 26px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: cookieModalIn 0.36s cubic-bezier(.45,.46,.25,1);
}
@keyframes cookieModalIn {
  0% { transform: translateY(40px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 12px;
}
.cookie-modal-section {
  margin-bottom: 14px;
  font-size:1.03rem;
}
.cookie-modal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-300);
}
.cookie-modal-row:last-child {
  border-bottom:none;
}
.cookie-modal-row label {
  font-weight: 600;
}
.cookie-modal-row input[type=checkbox] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 16px; right: 20px;
  background: transparent;
  border: none;
  font-size: 1.55rem;
  color: var(--primary);
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-modal .cookie-modal-close:focus,
.cookie-modal .cookie-modal-close:hover {
  color: var(--focus);
}
.cookie-modal-actions {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal .cta {
  border-radius: 5px;
  font-size:1rem;
  padding: 8px 17px;
}

/* ---- FORMATTING: ABOUT CARDS, STORIES, TESTIMONIALS ---  */
.value-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom:12px;
}
.value-list > div {
  background: var(--accent);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 10px rgba(37,59,110,0.06);
  padding: 20px 17px;
  flex: 1 1 200px;
}
.value-list h3 {
  color: var(--primary);
  margin-bottom: 10px;
  margin-top: 4px;
}
.value-list p { color: var(--gray-900); }

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
}
.feature-grid > div {
  flex: 1 1 200px;
}

.stories {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.stories > div {
  flex: 1 1 220px;
  background: var(--accent);
  border-radius: var(--border-radius);
  box-shadow: 0 1px 7px rgba(37,59,110,0.09);
  padding: 17px 12px;
}

/* MISC. UTILITY SPACING */
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 20px !important; }
.mb-3 { margin-bottom: 32px !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 20px !important; }
.mt-3 { margin-top: 32px !important; }

/* UTILITY */
[hidden], .d-none { display: none !important; }

/* COLORS for accessibility (esp. testimonials & articles) */
.testimonials, .testimonial-card, .quotes blockquote {
  background: var(--accent);
  color: var(--gray-900);
}

/* SMOOTH TRANSITIONS general */
*, *:before, *:after {
  box-sizing: border-box;
  transition-property: background, color, box-shadow, border, transform;
  transition-duration: 0.17s;
  transition-timing-function: cubic-bezier(.45,.46,.25,1);
}

/* SCROLLBAR STYLING for a modern touch */
::-webkit-scrollbar {
  width: 10px;
  background: var(--accent);
}
::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* PRINT (for better brand appearance) */
@media print {
  header,footer,.mobile-menu,.cookie-banner,.cookie-modal,.cookie-modal-backdrop { display: none !important; }
  main { margin: 0; }
}
