/* ========================================================================
   CSS RESET & BASICS
========================================================================== */
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%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: #fff;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  color: #293A4A;
  line-height: 1.6;
  background: #FFF;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
*, *::before, *::after {
  box-sizing: inherit;
}
a {
  color: #293A4A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #B5BAA1;
}
ul, ol {
  margin-bottom: 16px;
  padding-left: 24px;
}
li {
  margin-bottom: 8px;
}
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #293A4A;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 16px;
}
.subheadline {
  font-size: 1.125rem;
  color: #8a6b3a;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  margin-bottom: 20px;
  line-height: 1.45;
}
p {
  margin-bottom: 16px;
}
blockquote {
  margin: 0 0 12px 0;
  padding-left: 20px;
  border-left: 4px solid #EDDAC3;
  color: #4e3a1a;
  font-style: italic;
  font-size: 1.125rem;
  background: none;
}
strong {
  font-weight: 700;
}
address {
  font-style: normal;
  color: #4e3a1a;
  font-size: 1rem;
}

/* ========================================================================
   BRAND COLOR UTILS
========================================================================== */
:root {
  --color-primary: #293A4A;
  --color-secondary: #B5BAA1;
  --color-accent: #EDDAC3;
  --color-background: #fff;
  --color-card-bg: #fff7ee;
  --color-card-shadow: #eddec7;
  --color-btn-bg: #B5BAA1;
  --color-btn-hover: #EDDAC3;
  --color-btn-active: #E9C398;
  --color-dark: #293A4A;
  --color-light: #fff;
  --color-border: #EDDAC3;
  --color-notice-bg: #F7EAD7;
  --color-notice-shadow: #E3D0B6;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --shadow-md: 0 6px 20px 0 rgba(173, 132, 72, 0.08), 0 0.5px 2.5px 0 rgba(90,54,16,0.09);
  --shadow-lg: 0 12px 32px 0 rgba(173,132,72,0.14);
}

/* ========================================================================
   MAIN LAYOUT & CONTAINERS
========================================================================== */
.container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-background);
  border-radius: 24px;
  box-shadow: 0 1px 8px 0 rgba(173, 132, 72, 0.07);
  position: relative;
}
@media (max-width: 768px) {
  .section {
    padding: 28px 10px;
    margin-bottom: 30px;
    border-radius: 16px;
  }
}

/* ========================================================================
   HEADER & MAIN NAVIGATION
========================================================================== */
header {
  background: var(--color-accent);
  box-shadow: 0 2px 12px 0 rgba(41,58,74,0.06);
  padding: 0 0 0 0;
  z-index: 20;
  position: relative;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}
.main-nav > a img {
  height: 54px;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}
.main-nav ul li {
  margin: 0;
}
.main-nav ul li a {
  color: var(--color-dark);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s;
}
.main-nav ul li a:hover, .main-nav ul li a:focus {
  background: var(--color-btn-hover);
  color: var(--color-dark);
}
.cta-btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--color-btn-bg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-dark);
  border: none;
  border-radius: 28px;
  box-shadow: 0 2px 8px 0 rgba(229, 184, 119, 0.09);
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, color 0.2s, transform 0.12s;
  margin-left: 8px;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-btn-hover);
  color: var(--color-dark);
  transform: translateY(-2px) scale(1.03);
}
.cta-btn:active {
  background: var(--color-btn-active);
}

/* ========================================================================
   MOBILE NAVIGATION
========================================================================== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 22px;
  right: 24px;
  z-index: 101;
  background: var(--color-btn-bg);
  color: var(--color-dark);
  border: none;
  font-size: 2rem;
  padding: 8px 12px;
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(173,132,72,0.10);
  cursor: pointer;
}
@media (max-width: 1020px) {
  .main-nav ul { display: none; }
  .cta-btn { display: none; }
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: var(--color-accent);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.75,.01,.11,1);
  box-shadow: 2px 0 32px 7px rgba(41,58,74,0.10);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--color-btn-bg);
  color: var(--color-dark);
  border: none;
  font-size: 2.1rem;
  position: absolute;
  top: 18px;
  right: 24px;
  z-index: 201;
  border-radius: 18px;
  padding: 2px 18px 2px 10px;
  cursor: pointer;
  box-shadow: 0 3px 10px 0 rgba(173,132,72,0.09);
  transition: background 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-btn-hover);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  margin-top: 80px;
  width: 100%;
  align-items: flex-start;
  gap: 8px;
  padding: 0 40px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-dark);
  padding: 16px 0 12px;
  border-radius: 10px;
  width: 100%;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-btn-hover);
  color: var(--color-dark);
}
@media (max-width: 500px) {
  .mobile-nav { padding: 0 24px; }
}

/* ========================================================================
   MAIN CONTENT & TYPOGRAPHY
========================================================================== */
main {
  padding: 30px 0 0 0;
}
@media (max-width: 768px) {
  main {
    padding: 12px 0 0 0;
  }
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin: 20px 0;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* Cards / Feature, Testimonial, Card Layouts */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card-bg);
  border-radius: 20px;
  box-shadow: 0 4px 16px 0 var(--color-card-shadow);
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
  padding: 24px 18px;
  flex: 1 1 320px;
  min-width: 260px;
  max-width: 99%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card:hover {
  box-shadow: 0 10px 32px 0 #e3cdac;
  transform: translateY(-2px) scale(1.01);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.feature-grid, .feature-item, .features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
  justify-content: flex-start;
}
.feature-grid > div {
  flex: 1 1 210px;
  min-width: 180px;
  max-width: 320px;
  background: var(--color-card-bg);
  border-radius: 18px;
  box-shadow: 0 2px 8px 0 rgba(173,132,72,0.07);
  padding: 24px 12px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  transition: box-shadow 0.15s, transform 0.15s;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 15px 0 #e3cdac;
  transform: scale(1.02);
}
.feature-grid img {
  height: 42px;
  margin-bottom: 8px;
}

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

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

/* Spacings between cards/sections */
.section + .section,
.section > .feature-grid + *,
.section > .card-container + * {
  margin-top: 60px;
}

/* ========================================================================
   TESTIMONIALS
========================================================================== */
.testimonial-card {
  background: #fffbe3;
  color: #293A4A;
  border-left: 6px solid var(--color-accent);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 2px 16px 0 rgba(225, 200, 150, 0.17);
  min-width: 210px;
  max-width: 700px;
  font-size: 1.07rem;
  transition: box-shadow 0.18s, transform 0.18s;
}
.testimonial-card blockquote {
  color: #53442a;
}
.testimonial-card .testimonial-author {
  font-weight: 600;
  font-family: var(--font-display);
  color: #8a6b3a;
  font-size: 1rem;
}
.testimonial-card:hover {
  box-shadow: 0 7px 30px 0 #EDDAC3;
  transform: scale(1.015);
}

/* ========================================================================
   FOOTER
========================================================================== */
footer {
  background: var(--color-accent);
  box-shadow: 0 -1px 30px 0 rgba(182, 176, 137, 0.09);
  margin-top: 60px;
  padding-top: 32px;
  padding-bottom: 28px;
}
footer .content-wrapper {
  flex-direction: row;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer-branding {
  display: flex;
  gap: 20px;
  align-items: center;
}
.footer-branding img {
  height: 56px;
  border-radius: 16px;
}
.brand-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--font-display);
}
.brand-info span {
  font-weight: 600;
  color: #8a6b3a;
  font-size: 1.04rem;
}
.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin: 10px 0;
}
.footer-links a {
  color: #7d6537;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
  transition: color 0.2s;
}
.footer-links a:hover, .footer-links a:focus {
  color: #B5BAA1;
  text-decoration: underline;
}
.footer-cta .cta-btn {
  margin: 0;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.contact-info span {
  font-size: 0.99rem;
  color: #543d23;
  display: flex;
  align-items: center;
  gap: 7px;
}
.contact-info img {
  width: 17px;
  height: 17px;
  display: inline-block;
}
@media (max-width: 1020px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

/* ========================================================================
   FORMS (SIMPLE)
========================================================================== */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--color-border);
  background: #fffdfa;
  color: #293A4A;
  box-shadow: 0 1px 4px 0 #f5ebd6;
  margin-bottom: 12px;
  outline: none;
  width: 100%;
  max-width: 520px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus, select:focus {
  border-color: #B5BAA1;
  box-shadow: 0 0 5px 1px #EDDAC3;
}
button, input[type="submit"] {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 26px;
  border-radius: 20px;
  border: none;
  background: var(--color-btn-bg);
  color: var(--color-dark);
  box-shadow: 0 2px 10px 0 #EDDAC3;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.13s;
}
button:hover, input[type="submit"]:hover, button:focus {
  background: var(--color-btn-hover);
  color: var(--color-dark);
}

/* ========================================================================
   COOKIE BANNER + MODAL
========================================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: var(--color-accent);
  color: #4e3a1a;
  border-top: 3px solid var(--color-border);
  box-shadow: 0 -2px 40px 0 var(--color-notice-shadow);
  padding: 26px 18px 24px;
  z-index: 9999;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: transform 0.3s cubic-bezier(.77,.2,.04,1), opacity 0.3s;
}
.cookie-banner.hide {
  transform: translateY(160px);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-message {
  font-size: 1rem;
  color: #4e3a1a;
  font-family: var(--font-body);
  flex: 1 1 180px;
  max-width: 420px;
}
.cookie-banner-btns {
  display: flex;
  gap: 16px;
}
.cookie-banner-btns button {
  padding: 10px 18px;
  font-size: 1rem;
  border-radius: 14px;
  background: var(--color-secondary);
  color: var(--color-dark);
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 7px 0 rgba(173,132,72,0.12);
  transition: background 0.2s, color 0.15s, transform 0.13s;
}
.cookie-banner-btns button.accept {
  background: var(--color-btn-bg);
  color: var(--color-dark);
}
.cookie-banner-btns button.accept:hover, .cookie-banner-btns button.accept:focus {
  background: var(--color-btn-hover);
}
.cookie-banner-btns button.reject {
  background: #fff;
  color: #a1791b;
}
.cookie-banner-btns button.reject:hover {
  background: #f8ecd8;
  color: #B5BAA1;
}
.cookie-banner-btns button.settings {
  background: var(--color-accent);
  color: #653c13;
  border: 1px solid var(--color-secondary);
}
.cookie-banner-btns button.settings:hover {
  background: var(--color-btn-hover);
  color: #54401b;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    padding: 19px 8px 15px;
    align-items: flex-start;
  }
  .cookie-banner-message {
    max-width: 99vw;
  }
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(41,58,74,0.18);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.2s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: var(--color-notice-bg);
  border-radius: 18px;
  min-width: 320px;
  max-width: 99vw;
  box-shadow: 0 10px 40px 0 var(--color-notice-shadow);
  padding: 36px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  z-index: 10001;
}
.cookie-modal h3 {
  font-size: 1.29rem;
  margin-bottom: 16px;
  color: #4e3a1a;
  font-family: var(--font-display);
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  font-size: 1.04rem;
}
.cookie-modal-category input[type="checkbox"] {
  width: 24px;
  height: 24px;
  accent-color: var(--color-secondary);
  border-radius: 8px;
}
.cookie-modal-category label {
  color: #653c13;
}
.cookie-category-essential {
  font-weight: 600;
  color: #b58b3d;
}
.cookie-modal-footer {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal-footer button {
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 1rem;
  font-family: var(--font-display);
  background: var(--color-secondary);
  color: var(--color-dark);
  border: none;
  font-weight: 700;
  transition: background 0.2s, color 0.13s;
}
.cookie-modal-footer button.save {
  background: var(--color-btn-bg);
}
.cookie-modal-footer button.save:hover {
  background: var(--color-btn-hover);
}
.cookie-modal-footer button.cancel {
  background: #fff;
}
.cookie-modal-footer button.cancel:hover {
  background: #f8ecd8;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #fff;
  color: #b58b3d;
  font-size: 2rem;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  padding: 0 12px;
  box-shadow: 0 2px 9px 0 #e3cdac;
  transition: background 0.2s;
}
.cookie-modal-close:hover {
  background: #FEF8F0;
}

/* ========================================================================
   MISC: UTILS, ANIMATION, ETC.
========================================================================== */
::-webkit-scrollbar {
  width: 14px;
  background: #F8F4F1;
}
::-webkit-scrollbar-thumb {
  background: #EDDAC3;
  border-radius: 7px;
}
::-webkit-scrollbar-thumb:hover {
  background: #B5BAA1;
}

.fade-in {
  animation: fadeIn 0.7s cubic-bezier(.39,.59,.35,1) 1;
}
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Micro interaction on card hover */
.card, .feature-grid > div, .testimonial-card {
  transition: box-shadow 0.2s, transform 0.15s, background 0.18s;
}

@media (max-width: 900px) {
  .container { padding: 0 8px; }
}
@media (max-width: 850px) {
  .feature-grid, .features {
    gap: 16px;
  }
  .testimonial-card {
    max-width: 99vw;
  }
}
@media (max-width: 620px) {
  .content-wrapper {
    gap: 10px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.36rem; }
  h3 { font-size: 1.13rem; }
  .feature-grid > div, .card {
    padding: 16px 8px;
    min-width: 120px;
  }
}

/* Responsive for everything! */
@media (max-width: 600px) {
  main, body {
    font-size: 98%;
  }
  .section {
    padding: 18px 3vw;
  }
  .footer-branding img {
    height: 40px;
  }
}

/* Dialog/modal overlay z management */
.modal-open {
  overflow: hidden;
}

/* ========================================================================
   CONSISTENCY HELPERS FOR FLEX LAYOUTS
========================================================================== */
/* All flex layouts included here, as per requirements */

/* .card-container, .content-grid, .feature-grid, .text-image-section, .testimonial-card, .feature-item, .footer-links already above. Repeated here for clear selectors, as instructed. */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
.section { margin-bottom: 60px; padding: 40px 20px; }

/* Enforce always flex. No grid, no columns anywhere */

/* ========================================================================
   VISUAL HIERARCHY, SPACING, & WARM DESIGN ELEMENTS
========================================================================== */
.card, .feature-grid > div, .testimonial-card, .section, .cookie-modal {
  border-radius: 18px !important;
}

/* Subtle drop shadows for 'friendly', warm look */
.card, .feature-grid > div, .testimonial-card, .cookie-modal {
  box-shadow: 0 4px 20px 0 rgba(237,218,195,0.14);
}

/* Emphasize calls to action with bigger buttons */
.cta-btn {
  margin-top: 12px;
  margin-bottom: 6px;
}
@media (max-width: 599px) {
  .cta-btn {
    padding: 12px 18px;
    font-size: 0.99rem;
    border-radius: 18px;
  }
}

/* Satisfying spacing between top-level sections */
main section:not(:last-child) {
  margin-bottom: 26px;
}

/* Visually group unordered lists for warm look */
ul {
  background: rgba(237,218,195,0.09);
  border-radius: 10px;
  padding: 14px 20px 14px 40px;
}
ul li {
  color: #4e3a1a;
  font-family: var(--font-body);
  font-size: 1rem;
}

/* ========================================================================
   FOCUS STYLES & ACCESSIBILITY
========================================================================== */
a:focus, button:focus, .cta-btn:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2px solid #B5BAA1;
  outline-offset: 2px;
}
input:focus, textarea:focus {
  outline: 2px solid #B5BAA1;
}

/*! END OF STYLE SHEET */