/* --------------------------------------
   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;
}
html {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  height: 100%;
  background: #F0EFEA;
  color: #232932;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.37,1.24,.53,.88);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
[tabindex]:focus {
  outline: 2px solid #B9A069;
  outline-offset: 2px;
}
button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

/* --------------------------------------
   BRAND FONTS
   Playfair Display & Lato loaded via HTML <link>
-----------------------------------------*/
body {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #232932;
  background-color: #F0EFEA;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #232932;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
p, ul li, ol li {
  color: #232932;
  font-size: 1rem;
  line-height: 1.7;
}
strong {
  font-weight: 700;
}

/* --------------------------------------
   COLORS
-----------------------------------------*/
:root {
  --color-primary: #232932;
  --color-secondary: #B9A069;
  --color-accent: #F0EFEA;
  --color-white: #fff;
  --header-bg: #fff;
  --footer-bg: #232932;
  --nav-link: #232932;
  --nav-link-hover: #B9A069;
  --card-bg: #fff;
  --card-border: #e6e7ea;
  --shadow: 0 2px 10px 0 rgba(35,41,50,0.08);
  --shadow-lg: 0 4px 20px 2px rgba(35,41,50,0.11);
}

/* --------------------------------------
   LAYOUT CONTAINERS
-----------------------------------------*/
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.text-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 700px;
}

/* --------------------------------------
   NAVIGATION & HEADER
-----------------------------------------*/
header {
  background: var(--header-bg);
  border-bottom: 1px solid #ececec;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 30;
}
header > nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 0 20px;
  min-height: 70px;
  background: var(--header-bg);
}
header > nav > a {
  color: var(--nav-link);
  font-weight: 500;
  font-size: 1rem;
  padding: 0 6px;
  transition: color 0.2s cubic-bezier(.37,1.24,.53,.88);
  border-radius: 3px;
  line-height: 2.2;
}
header > nav > a:not(:first-child):hover, 
header > nav > a:not(:first-child):focus {
  color: var(--nav-link-hover);
  background: #f6f6f7;
}
header nav .cta.primary {
  background: var(--color-secondary);
  color: var(--color-white);
  padding: 10px 24px;
  border-radius: 22px;
  font-weight: 700;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  box-shadow: 0 2px 6px 0 rgba(185,160,105,0.1);
  transition: background 0.2s cubic-bezier(.37,1.24,.53,.88),
              color 0.2s cubic-bezier(.37,1.24,.53,.88),
              box-shadow 0.2s cubic-bezier(.37,1.24,.53,.88);
  margin-left: 12px;
}
header nav .cta.primary:hover,
header nav .cta.primary:focus {
  background: #a68a4c;
  color: #fff;
  box-shadow: 0 4px 16px 0 rgba(185,160,105,0.15);
}

/* LOGO align top left */
header > nav > a:first-child {
  margin-right: 18px;
  padding: 0;
}
header img {
  display: block;
  height: 38px;
  width: auto;
}

/* Hide mobile toggle on desktop */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: #fff;
  border-radius: 8px;
  border: none;
  width: 42px;
  height: 42px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  margin: 8px 16px 8px auto;
  transition: background 0.18s cubic-bezier(.42,0,1,1);
  z-index: 32;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #a68a4c;
  color: #fff;
}

/* ------ MOBILE NAVIGATION ------ */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-primary);
  color: #fff;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.42,0,1,1);
  z-index: 1001;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 0 0 0;
  pointer-events: none;
  opacity: 0.98;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2rem;
  border: none;
  margin-left: 24px;
  margin-bottom: 32px;
  align-self: flex-start;
  cursor: pointer;
  line-height: 1;
  z-index: 1002;
  transition: color 0.18s cubic-bezier(.42,0,1,1);
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #B9A069;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-left: 36px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 8px 0;
  border-radius: 2px;
  transition: color 0.18s cubic-bezier(.42,0,1,1), background 0.18s cubic-bezier(.42,0,1,1);
  letter-spacing: 0.01em;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #B9A069;
  background: rgba(255,255,255,0.06);
}

@media (max-width: 1024px) {
  header > nav {
    gap: 18px;
    font-size: 0.97rem;
  }
}
@media (max-width: 850px) {
  header > nav > a:not(:first-child) {
    display: none;
  }
  header nav .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 851px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --------------------------------------
   MAIN SECTIONS & FLEXBOX LAYOUTS
-----------------------------------------*/
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-list, .card-container, .content-wrapper > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 28px 24px;
  min-width: 260px;
  flex: 1 1 320px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.18s cubic-bezier(.42,0,1,1);
}
.card:hover,
.card:focus-within {
  box-shadow: var(--shadow-lg);
  border-color: #b9a06940;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
}

/* Features (in index) */
.content-wrapper > ul,
.content-wrapper > ol {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
}
.content-wrapper > ul li,
.content-wrapper > ol li {
  background: var(--card-bg);
  border-radius: 11px;
  box-shadow: 0 1px 8px 0 rgba(55,75,105,0.05);
  flex: 1 1 200px;
  padding: 24px 22px 22px 22px;
  margin-bottom: 20px;
  min-width: 210px;
  border: 1px solid #e6e7ea;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.14s, box-shadow 0.18s;
}
.content-wrapper > ul li:hover,
.content-wrapper > ul li:focus-within {
  border-color: #B9A069;
  box-shadow: 0 4px 16px 0 rgba(185,160,105,0.09);
}
.content-wrapper > ul li img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  margin-bottom: 8px;
}

/* --------------------------------------
   TESTIMONIALS
-----------------------------------------*/
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px 0 rgba(37,41,50,0.05);
  border: 1px solid #DBDDEA;
  position: relative;
  max-width: 680px;
  transition: box-shadow 0.18s cubic-bezier(.4,.3,.7,1.1);
}
.testimonial-card p {
  color: #232932;
  font-size: 1.08rem;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-style: italic;
  margin-bottom: 8px;
}
.testimonial-info {
  margin-left: 8px;
  color: #65697b;
  font-size: 0.96rem;
  font-weight: 600;
  font-style: normal;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  box-shadow: 0 6px 22px 1px rgba(35,41,50,0.14);
}

/* --------------------------------------
   BUTTONS & CTA
-----------------------------------------*/
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-secondary);
  color: #fff;
  border-radius: 24px;
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.16s;
  box-shadow: 0 2px 8px 0 rgba(185,160,105,0.08);
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  margin-top: 14px;
}
.cta.primary {
  background: var(--color-secondary);
  color: #fff;
}
.cta.primary:hover,
.cta.primary:focus {
  background: #a68a4c;
  color: #fff;
  box-shadow: 0 6px 18px 0 rgba(185,160,105,0.17);
}

/* Subtle fade/scale on hover for all buttons */
.cta,
button {
  transition: box-shadow 0.18s, background 0.19s, color 0.17s, transform 0.18s;
}
.cta:hover,
button:focus {
  transform: translateY(-2px) scale(1.02);
}

/* --------------------------------------
   FOOTER
-----------------------------------------*/
footer {
  background: var(--footer-bg);
  color: #fff;
  padding: 40px 0 10px 0;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  color: #b9a069;
  text-decoration: none;
  padding: 2px 0px 2px 0;
  font-weight: 500;
  transition: color 0.18s;
  font-size: 0.97rem;
}
footer nav a:hover,
footer nav a:focus {
  color: #fff;
}
footer img {
  height: 35px;
  margin-bottom: 12px;
  width: auto;
}
footer .text-section {
  color: #fff;
  font-size: 0.97rem;
  line-height: 1.7;
  padding-top: 3px;
  max-width: 340px;
}
footer .text-section a {
  color: #B9A069;
  text-decoration: underline;
}

footer .text-section p {
  color: #fff;
}
footer .text-section a:hover,
footer .text-section a:focus {
  color: #fff;
  text-decoration: none;
}

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

/* --------------------------------------
   RESPONSIVE DESIGN - MOBILE FIRST
-----------------------------------------*/
@media (max-width: 990px) {
  .container {
    max-width: 97vw;
    padding: 0 12px;
  }
  .content-wrapper {
    gap: 20px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.22rem;
  }
  section, .section {
    padding: 28px 10px;
    margin-bottom: 44px;
  }
  .content-wrapper > ul, .content-wrapper > ol, .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    max-width: 100%;
  }
  .card {
    min-width: unset;
    padding: 20px 14px;
  }
}

/* Ensure enough space on touch devices */
@media (max-width: 600px) {
  .container {
    padding: 0 6px;
  }
  h1 {
    font-size: 1.10rem;
    margin-bottom: 14px;
  }
  h2 {
    font-size: 1.02rem;
    margin-bottom: 10px;
  }
  footer {
    font-size: 0.93rem;
    padding: 20px 0 4px 0;
  }
  .cta, .cta.primary {
    padding: 11px 18px;
    font-size: 0.97rem;
  }
}

/* --------------------------------------
   COOKIE CONSENT BANNER & MODAL
-----------------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #fff;
  color: #232932;
  border-top: 2px solid #B9A069;
  box-shadow: 0 -4px 32px 0 rgba(35,41,50,0.10);
  z-index: 1200;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 26px 18px 16px 18px;
  width: 100vw;
  max-width: 100vw;
  font-size: 1rem;
  transition: transform 0.34s cubic-bezier(.42,0,1,1), opacity 0.24s;
}
.cookie-banner.hide {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner__text {
  max-width: 540px;
  color: #232932;
  font-size: 1rem;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  margin-left: 16px;
}
.cookie-banner button {
  border-radius: 18px;
  border: none;
  background: #e6e7ea;
  color: #232932;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 9px 18px;
  margin: 0 2px;
  transition: background 0.18s, color 0.17s;
}
.cookie-banner button.accept {
  background: var(--color-secondary);
  color: #fff;
  margin-left: 4px;
}
.cookie-banner button.accept:hover,
.cookie-banner button.accept:focus {
  background: #a68a4c;
}
.cookie-banner button.reject {
  background: #dcdedf;
  color: #232932;
}
.cookie-banner button.reject:hover,
.cookie-banner button.reject:focus {
  background: #e1e1df;
}
.cookie-banner button.settings {
  background: #ececec;
  color: #232932;
  border: 1px solid #e4e4e5;
}
.cookie-banner button.settings:hover,
.cookie-banner button.settings:focus {
  background: #f4f3f0;
  color: #B9A069;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 8px 12px 8px;
    font-size: 0.97rem;
  }
  .cookie-banner__actions {
    margin-left: 0;
  }
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35,41,50,0.38);
  z-index: 1305;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.21s;
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  padding: 38px 30px 28px 30px;
  min-width: 320px;
  max-width: 96vw;
  max-height: 95vh;
  box-shadow: 0 4px 32px 4px rgba(35,41,50,0.18);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  animation: fadeInModal 0.25s cubic-bezier(.42,0,1,1);
}
@keyframes fadeInModal {
  from {opacity: 0; transform: scale(0.97);}
  to   {opacity: 1; transform: scale(1);}
}
.cookie-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.cookie-modal-category {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid #e4e5e7;
}
.cookie-modal-category:last-child {
  border-bottom: none;
}
.cookie-modal-category span {
  font-size: 1rem;
}
.cookie-modal-switch {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.cookie-modal input[type="checkbox"] {
  appearance: none;
  width: 38px; height: 20px;
  border-radius: 11px;
  background: #e4e4e7;
  transition: background 0.16s;
  outline: none;
  position: relative;
}
.cookie-modal input[type="checkbox"]:checked {
  background: #B9A069;
}
.cookie-modal input[type="checkbox"]:after {
  content: '';
  position: absolute;
  left: 4px; top: 2px;
  height: 16px; width: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s;
}
.cookie-modal input[type="checkbox"]:checked:after {
  transform: translateX(18px);
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 18px;
  background: none;
  color: #232932;
  font-size: 1.45rem;
  border: none;
  cursor: pointer;
  transition: color 0.19s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: #B9A069;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 20px;
  justify-content: flex-end;
}
.cookie-modal-actions button {
  border-radius: 18px;
  border: none;
  background: #e6e7ea;
  color: #232932;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 19px;
  transition: background 0.18s, color 0.17s;
}
.cookie-modal-actions button.save {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-modal-actions button.save:hover,
.cookie-modal-actions button.save:focus {
  background: #a68a4c;
}
@media (max-width: 550px) {
  .cookie-modal {
    padding: 19px 5px 18px 7px;
    min-width: unset;
  }
}

/* --------------------------------------
   FORMS (if present in future pages)
-----------------------------------------*/
input, textarea, select {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border: 1px solid #e1e2e7;
  border-radius: 6px;
  padding: 10px 12px;
  width: 100%;
  margin-bottom: 16px;
  background: #fff;
  color: #232932;
  transition: border 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: #B9A069;
  outline: none;
}
label {
  font-weight: 600;
  color: #232932;
  display: inline-block;
  margin-bottom: 4px;
}

/* --------------------------------------
   MICRO-INTERACTIONS & TRANSITIONS
-----------------------------------------*/
a, .cta, button, .card, .testimonial-card, .mobile-menu-toggle, .mobile-menu-close { 
  transition: color 0.18s, background 0.18s, box-shadow 0.16s, transform 0.16s;
}

/* --------------------------------------
   MISC - TABLES, HR, BLOCKQUOTE
-----------------------------------------*/
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid #e3e6ed; padding: 8px 14px; }
hr {
  border: none;
  border-top: 1px solid #ececec;
  margin: 28px 0;
}
blockquote {
  border-left: 4px solid #B9A069;
  margin: 18px 0;
  padding-left: 18px;
  color: #65697b;
  font-style: italic;
}

/* --------------------------------------
   ACCESSIBILITY IMPROVEMENTS
-----------------------------------------*/
a:focus, button:focus, .cta:focus {
  outline: 2px solid #B9A069;
  outline-offset: 2px;
  z-index: 89;
}

/* --------------------------------------
   CUSTOM CLASSES FOR CONTENT MARGIN/GAP
-----------------------------------------*/
.mb-20 { margin-bottom: 20px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mt-20 { margin-top: 20px !important; }
.gap-20 { gap: 20px !important; }

/* --------------------------------------
   PRINT OVERRIDE
-----------------------------------------*/
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  body { background: #fff; color: #000; }
}
