/* ========================================================
   CSS RESET & NORMALIZATION
======================================================== */
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 {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #2F3951;
  min-height: 100vh;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  background-color: transparent;
  color: #2F3951;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #A65846;
  outline-offset: 2px;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
button {
  font-family: inherit;
  font-size: 1rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
h1, h2, h3, h4, h5, h6 {
  color: #2F3951;
  font-family: 'PT Serif', 'Times New Roman', Times, serif;
  font-weight: 700;
}
h1 { font-size: 2.5rem; line-height: 1.1; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4 { font-size: 1.125rem; margin-bottom: 10px; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }
}

p, li {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 12px;
  color: #323e57;
}
strong {
  font-weight: 700;
}
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.text-section {
  margin-bottom: 32px;
}

/* ========================================================
   BRAND COLORS & TYPOGRAPHY
======================================================== */
:root {
  --color-primary: #2F3951;
  --color-secondary: #E7DED7;
  --color-accent: #A65846;
  --color-accent-alt: #8B3322;
  --color-body: #2F3951;
  --color-bg: #fff;
  --color-muted: #f7f7f8;
  --color-border: #d3dae6;
  --color-shadow: rgba(47, 57, 81, 0.07);
}

/* ========================================================
   HEADER & NAVIGATION
======================================================== */
header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 24px;
}
header img {
  height: 44px;
  margin-right: 20px;
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
nav a {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #2F3951;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  position: relative;
  font-weight: 500;
}
nav a:hover, nav a.active {
  background-color: var(--color-secondary);
  color: var(--color-accent);
}
.cta-button {
  background-color: var(--color-accent);
  color: #fff;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 30px;
  border: none;
  border-radius: 100px;
  margin-left: 24px;
  box-shadow: 0 2px 12px var(--color-shadow);
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
  display: inline-block;
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-accent-alt);
  color: #fff;
  box-shadow: 0 6px 24px rgba(166, 88, 70, 0.12);
}

/***** MOBILE MENU *****/
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--color-primary);
  margin-left: 16px;
  padding: 8px;
  background: none;
  border: none;
  z-index: 250;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-secondary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 9999;
  transition: transform 0.35s cubic-bezier(.55,.06,.49,.94);
  transform: translateX(100%);
  box-shadow: -4px 0 24px rgba(47,57,81,0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 40px 24px 24px 32px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 2.3rem;
  color: var(--color-accent-alt);
  background: none;
  border: none;
  z-index: 10001;
  cursor: pointer;
  line-height: 1;
  border-radius: 8px;
  transition: background 0.2s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: var(--color-secondary);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 44px;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: var(--color-primary);
  font-weight: 600;
  padding: 12px 8px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-accent-alt);
}

/***** RESPONSIVE NAVIGATION *****/
@media (max-width: 992px) {
  header .container nav { display: none; }
  .cta-button { margin-left: 0; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 993px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* ========================================================
   HERO, SECTIONS & SPACING UTILITIES
======================================================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px var(--color-shadow);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
}

/***** FLEXBOX PATTERNS *****/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-muted);
  border-radius: 16px;
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 24px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.2s, transform 0.17s;
}
.card:hover {
  box-shadow: 0 6px 28px rgba(47,57,81,0.10);
  transform: translateY(-5px);
}
.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: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 14px var(--color-shadow);
  margin-bottom: 20px;
  font-size: 1.125rem;
  color: #2F3951;
  border-left: 6px solid var(--color-accent);
  flex-direction: column;
  transition: box-shadow 0.18s;
}
.testimonial-card span {
  color: var(--color-primary);
  font-size: 0.99rem;
  font-weight: 500;
  letter-spacing: .03em;
  margin-top: 4px;
  opacity: 0.88;
}
.testimonial-card:hover {
  box-shadow: 0 8px 36px rgba(166, 88, 70, 0.15);
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-secondary);
  border-radius: 14px;
  box-shadow: 0 2px 8px var(--color-shadow);
  padding: 20px 18px 18px 20px;
  min-width: 210px;
  max-width: 340px;
  flex: 1 1 220px;
  transition: box-shadow 0.18s;
}
.feature-item img {
  width: 38px;
  height: 38px;
  margin-bottom: 7px;
}
.feature-item:hover {
  box-shadow: 0 8px 24px rgba(47,57,81,0.13);
}

/***** UTILITIES *****/
.hero-subline {
  font-size: 1.3rem;
  color: var(--color-primary);
  opacity: 0.88;
  font-family: 'PT Serif', serif;
  margin-bottom: 20px;
  margin-top: -10px;
}

/***** BUTTONS & INTERACTIVES *****/
button, .button, input[type=submit], input[type=button] {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  padding: 10px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  cursor: pointer;
  border: none;
  outline: none;
}
.button-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 2px 8px var(--color-shadow);
}
.button-primary:hover, .button-primary:focus {
  background: var(--color-accent-alt);
  color: #fff;
}
.button-secondary {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.button-secondary:hover, .button-secondary:focus {
  background: #f0ece6;
  color: var(--color-accent);
}
.button-outline {
  background: #fff;
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
}
.button-outline:hover {
  background: var(--color-accent);
  color: #fff;
}

/* ========================================================
   FOOTER
======================================================== */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 38px 0 12px;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
footer nav {
  color: #e6e8ef;
  font-size: 1rem;
  gap: 12px;
}
footer nav a {
  color: #e7ded7;
  opacity: 0.93;
  font-weight: 400;
  font-size: 1rem;
  margin: 0 4px;
  border-radius: 4px;
  padding: 4px 6px;
}
footer nav a:hover {
  background: var(--color-accent);
  color: #fff;
}
.footer-contact {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.97rem;
  color: #e7ded7;
  line-height: 1.6;
}
.footer-contact img {
  width: 30px;
  height: 30px;
  margin-right: 10px;
  vertical-align: middle;
}
.footer-contact a {
  color: #fff;
  text-decoration: underline;
  font-weight: 500;
}
.footer-social {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}
.footer-social a img {
  width: 30px;
  height: 30px;
  opacity: 0.86;
  transition: opacity 0.16s;
}
.footer-social a:hover img {
  opacity: 1;
}

@media (max-width: 900px) {
  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
}

/* ========================================================
   TYPOGRAPHY SCALE & TEXT ELEMENTS
======================================================== */
.text-section h2, .text-section h3, .text-section h4 {
  margin-top: 18px;
}
.text-section ul, ul {
  padding-left: 18px;
  margin-bottom: 12px;
}
.text-section ul li, ul li {
  position: relative;
  margin-bottom: 8px;
  color: #323e57;
}
.text-section ul li::before, ul li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  margin-right: 11px;
  vertical-align: middle;
}
.text-section a {
  color: var(--color-accent);
  text-decoration: underline;
}
.text-section a:hover {
  color: var(--color-accent-alt);
}

/* ========================================================
   RESPONSIVE LAYOUTS
======================================================== */
@media (max-width: 1100px) {
  .container { max-width: 92vw; }
}
@media (max-width: 900px) {
  .feature-grid {
    gap: 14px;
  }
  .footer-social a img {
    width: 24px;
    height: 24px;
  }
}
@media (max-width: 768px) {
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 16px !important;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 8px;
    padding: 16px;
  }
  .feature-item {
    min-width: 100px;
    max-width: 100%;
    width: 100%;
    padding: 15px 10px;
  }
  .footer-contact {
    gap: 5px;
  }
  .container {
    padding: 0 8px;
  }
  .content-wrapper {
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* Ensure all .card, .feature-item, .testimonial-card spaced at least 20px apart */
.card, .feature-item, .testimonial-card {
  margin-bottom: 20px;
}

/* Avoid overlapping everywhere */
.card, .feature-item, .testimonial-card, .section {
  z-index: 1;
}

/* ========================================================
   ANIMATIONS
======================================================== */
.section, .card, .feature-item, .testimonial-card {
  animation: fadein 0.7s cubic-bezier(.51,.31,.37,1.07) both;
}
@keyframes fadein {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/***** Subtle micro transition for hoverable cards *****/
.card, .feature-item, .testimonial-card {
  transition: box-shadow 0.15s, transform 0.14s;
}

/* ========================================================
   COOKIE CONSENT BANNER & MODAL
======================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #2F3951;
  color: #fff;
  box-shadow: 0 -8px 36px rgba(47,57,81,0.08);
  z-index: 99999;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 17px 8vw;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  transition: transform 0.33s cubic-bezier(.21, .96, .26, .97);
}
.cookie-banner.closed {
  transform: translateY(120%);
}
.cookie-banner strong {
  color: #fff;
}
.cookie-banner-buttons {
  display: flex;
  gap: 13px;
}
.cookie-banner .button {
  min-width: 120px;
  font-size: 1rem;
  padding: 8px 22px;
  border-radius: 100px;
  font-weight: 600;
}
.cookie-banner .accept {
  background: var(--color-accent);
  color: #fff;
  border: none;
}
.cookie-banner .accept:hover {
  background: var(--color-accent-alt);
}
.cookie-banner .reject {
  background: #fff;
  color: var(--color-primary);
  border: none;
}
.cookie-banner .reject:hover {
  background: var(--color-secondary);
}
.cookie-banner .settings {
  background: transparent;
  color: #e7ded7;
  border: 1px solid #e7ded7;
}
.cookie-banner .settings:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 4vw;
    font-size: 0.99rem;
    gap: 18px;
  }
  .cookie-banner-buttons {
    flex-wrap: wrap;
    gap: 8px;
  }
}

.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(47,57,81,0.55);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein 0.33s both;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s;
}
.cookie-modal.open { visibility: visible; opacity: 1; }
.cookie-modal-inner {
  background: #fff;
  color: var(--color-primary);
  border-radius: 18px;
  box-shadow: 0 7px 50px rgba(47,57,81,0.14);
  min-width: 260px;
  max-width: 95vw;
  width: 420px;
  padding: 32px 28px 18px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadein 0.28s both;
}
.cookie-modal-title {
  font-family: 'PT Serif', serif;
  font-size: 1.35rem;
  margin-bottom: 8px;
  color: var(--color-accent);
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 18px;
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 2rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background 0.15s;
  z-index: 90010;
}
.cookie-modal-close:focus, .cookie-modal-close:hover {
  background: var(--color-secondary);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  padding: 10px 0 8px 0;
  border-bottom: 1px solid #f0f1f5;
}
.cookie-category:last-child { border-bottom: none; }
.cookie-category .toggle {
  display: inline-flex;
  align-items: center;
}
.cookie-toggle {
  width: 38px;
  height: 22px;
  background: #e7ded7;
  border-radius: 12px;
  position: relative;
  margin-left: 8px;
  transition: background 0.18s;
  border: 1px solid #d7cece;
}
.cookie-toggle.checked {
  background: var(--color-accent);
  border: 1.5px solid var(--color-accent-alt);
}
.cookie-toggle .knob {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: left 0.18s, background 0.16s;
}
.cookie-toggle.checked .knob {
  left: 18px;
  background: #fff0ef;
  box-shadow: 0 2px 8px rgba(166,88,70,0.13);
}
.cookie-category label {
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 400;
}
.cookie-category .always {
  color: #aaa;
  font-size: 0.95rem;
  margin-left: 6px;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 10px;
}
.cookie-modal .accept, .cookie-modal .reject {
  min-width: 120px;
  font-size: 1rem;
  border-radius: 100px;
  font-weight: 600;
  padding: 8px 22px;
}
.cookie-modal .accept {
  background: var(--color-accent);
  color: #fff;
  border: none;
}
.cookie-modal .accept:hover {
  background: var(--color-accent-alt);
  color: #fff;
}
.cookie-modal .reject {
  background: #fff;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}
.cookie-modal .reject:hover {
  background: var(--color-secondary);
}

@media (max-width: 540px) {
  .cookie-modal-inner {
    width: 97vw;
    min-width: 0;
    padding: 18px 7vw 11px 7vw;
  }
  .cookie-modal-title {
    font-size: 1.07rem;
  }
}

/* ========================================================
   ACCESSIBILITY FOCUSED STATES
======================================================== */
*:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ======================
   Hide visually, but not from screen readers
====================== */
.sr-only {
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  height: 1px !important; margin: -1px !important;
  overflow: hidden !important; padding: 0 !important;
  position: absolute !important; width: 1px !important;
}

/* ========================================================
   FORMS (if present in the future)
======================================================== */
input, textarea, select {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 9px 14px;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  background: #fff;
  color: var(--color-primary);
  margin-bottom: 16px;
  transition: border 0.18s, box-shadow 0.16s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--color-accent);
  outline: none;
  box-shadow: 0 2px 13px var(--color-shadow);
}

/* ========================================================
   PAGE FINISHER
======================================================== */
body {
  background: var(--color-bg);
}

/**** Prevent content overlapping the fixed cookie banner ****/
@media (min-width: 600px) {
  main { margin-bottom: 84px; }
}
@media (max-width: 599px) {
  main { margin-bottom: 96px; }
}

/* END OF STYLE.CS */
