/* === 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,
main, 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 { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body { line-height: 1.4; background: #FAF9F6; color: #312F2B; }
article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section { display: block; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; border-style: none; }
table { border-collapse: collapse; border-spacing: 0; }
button, input, optgroup, select, textarea {
  font-family: inherit; font-size: inherit; line-height: inherit;
}

/* === BRAND FONTS === */
@import url('https://fonts.googleapis.com/css?family=Cormorant+Garamond:400,500,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

:root {
  --color-primary: #312F2B;
  --color-secondary: #B2976D;
  --color-accent: #E5E1D8;
  --color-bg: #FAF9F6;
  --font-display: 'Cormorant Garamond', Garamond, Georgia, serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* ===================
   TYPOGRAPHY
====================*/
body {
  font-family: var(--font-body);
  color: var(--color-primary);
  background: var(--color-bg);
  font-size: 16px;
  line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.75rem; line-height: 1.12; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 16px; font-weight: 500; }
h3 { font-size: 1.25rem; margin-bottom: 8px; }
h4 { font-size: 1.1rem; margin-bottom: 6px; }
p, ul, ol, blockquote, address {
  font-size: 1rem;
  margin-bottom: 14px;
  color: var(--color-primary);
}
strong, b { font-weight: 700; }
ul, ol { padding-left: 20px; }
blockquote {
  font-style: italic;
  color: var(--color-secondary);
  border-left: 3px solid var(--color-secondary);
  padding-left: 16px;
  margin: 20px 0 16px 0;
  font-family: var(--font-display);
}
address { font-style: normal; color: var(--color-primary); line-height: 1.6; }

/* ===================
   LAYOUT CONTAINERS
====================*/
.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* === GRID/FEATURE FLEX LAYOUTS === */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  margin-bottom: 12px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #fff;
  border-radius: 18px;
  padding: 28px 24px 24px 24px;
  flex: 1 1 260px;
  min-width: 240px;
  box-shadow: 0 3px 18px rgba(49, 47, 43, 0.06);
  border: 1px solid #ECE8DF;
  transition: box-shadow .18s, transform .18s;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 8px 30px rgba(49, 47, 43, 0.13);
  transform: translateY(-3px) scale(1.03);
}

.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { box-shadow: 0 3px 16px rgba(49,47,43,0.07); background: #fff; border-radius: 16px; margin-bottom:20px; position: relative; padding: 24px; border:1px solid #ECE8DF; }
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid #ECE8DF;
  border-radius: 16px;
  box-shadow: 0 3px 16px rgba(49,47,43,0.08);
  transition: box-shadow 0.2s, transform 0.15s;
  min-width: 220px;
  max-width: 470px;
  color: #312F2B;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 34px rgba(49,47,43,0.14);
  transform: translateY(-2px) scale(1.02);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
}

/* MINIMUM GAP between cards/sections enforced */
section + section {
  margin-top: 20px;
}

/* ===================
   HEADER & NAVIGATION
====================*/
header {
  padding: 0;
  background: #fff;
  box-shadow: 0 1px 8px rgba(49,47,43,0.06);
  border-bottom: 1px solid #ECE8DF;
  z-index: 50;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  min-height: 80px;
  gap: 30px;
  flex-wrap: wrap;
}
header img { height: 38px; margin-right: 18px; }
.main-nav {
  display: flex;
  gap: 26px;
  flex: 1 1 auto;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  color: #312F2B;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border 0.2s, color 0.18s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
}
.header .cta-btn, .main-nav .cta-btn {
  margin-left: 22px;
}
.cta-btn {
  display: inline-block;
  font-family: var(--font-display);
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: .08em;
  padding: 10px 28px;
  margin-left: 12px;
  margin-top: 2px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(178,151,109, 0.05);
  transition: background 0.2s, color 0.15s, box-shadow 0.18s, transform 0.12s;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: #8e7a53;
  color: #fff;
  box-shadow: 0 5px 22px rgba(178,151,109,0.12);
  transform: translateY(-2px) scale(1.025);
}

/* ===================
   MOBILE NAVIGATION
====================*/
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-primary);
  cursor: pointer;
  margin-left: auto;
  z-index: 210;
  padding: 6px 12px;
}
.mobile-menu {
  position: fixed;
  z-index: 200;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(49,47,43,0.85);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.69,.11,.36,.95);
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  display: block;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  margin: 22px 30px 12px 0;
  padding: 7px 13px;
  cursor: pointer;
  z-index: 205;
}
.mobile-nav {
  background: #fff;
  border-top-left-radius: 22px;
  border-bottom-left-radius: 22px;
  min-width: 65vw;
  max-width: 340px;
  min-height: 100vh;
  box-shadow: -5px 0 18px rgba(49,47,43,0.09);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 42px 0 42px 40px;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  padding: 17px 0 17px 6px;
  width: 100%;
  display: block;
  border-left: 4px solid transparent;
  transition: background 0.14s, color 0.13s, border .18s;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
  border-left: 4px solid var(--color-secondary);
}

@media (max-width: 1000px) {
  .main-nav {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 900px) {
  header .cta-btn {
    display: none;
  }
}

/* ===================
   FOOTER STYLES
====================*/
footer {
  background: #312F2B;
  color: #E5E1D8;
  padding: 0 0 0 0;
  border-top: 1px solid #B5AEA2;
  margin-top: 40px;
}
footer .container {
  padding-top: 36px;
  padding-bottom: 16px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
footer img { height: 38px; margin-bottom: 10px; }
footer address {
  color: #E5E1D8;
  font-size: 1em;
  padding-bottom: 10px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--font-display);
}
.footer-nav a {
  color: #E5E1D8;
  font-size: 1.02rem;
  padding: 3px 0;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-secondary);
  text-decoration: underline;
}
.social-links {
  display: flex;
  gap: 18px;
  align-items: center;
}
.footer-copy {
  color: #E5E1D8;
  font-size: 0.96em;
  text-align: left;
  margin-top: 26px;
}

/* ===================
   SECTIONS & CARDS
====================*/
section {
  background: transparent;
  box-sizing: border-box;
}
section .container {
  padding-top: 18px;
  padding-bottom: 18px;
}

/* Cards for features, general re-use */
.card {
  background: #fff;
  padding: 26px 22px;
  border-radius: 15px;
  box-shadow: 0 2px 12px rgba(49,47,43,0.06);
  border: 1px solid #E5E1D8;
  transition: box-shadow .14s, transform .13s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 5px 30px rgba(49,47,43,0.14);
  transform: translateY(-2px);
}

/* Enforce margin/gap between content-area cards */
.card-container > * {
  margin-bottom: 20px;
}

/* === TESTIMONIALS (strong contrast) === */
.testimonial-card {
  background: #fff;
  color: #312F2B;
  border: 1px solid #ECE8DF;
  box-shadow: 0 2px 16px rgba(49,47,43,0.06);
}
.testimonial-card strong {
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-size: 1.08rem;
}

/* ===================
   RESPONSIVE DESIGN
====================*/
@media (max-width: 768px) {
  h1 { font-size: 2.05rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1rem; }
  .container { padding-left: 10px; padding-right: 10px; }
  .content-wrapper { gap: 17px; }
  .section { padding: 24px 5px; margin-bottom: 34px; }
  .feature-grid { flex-direction: column; gap: 20px; }
  .feature-grid > div { min-width: 0; width: 100%; }
  .card-container, .content-grid { flex-direction: column; gap: 20px; }
  .text-image-section { flex-direction: column; gap: 19px; }
  .testimonial-card { max-width: 100%; min-width: 0; }
  footer .content-wrapper { flex-direction: column; gap: 27px; }
}

@media (max-width: 480px) {
  h1, h2 { font-size: 1.09rem; }
  .section { padding: 12px 0; margin-bottom: 18px; }
}

/* ===================
   INTERACTIVE ELEMENTS
====================*/
a, button {
  transition: color .17s, background .17s;
  outline: none;
}
button:focus, a:focus {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}

/* ===================
   FORM FIELDS
====================*/
input, textarea, select {
  background: #fff;
  border: 1px solid #DAD5C7;
  border-radius: 4px;
  padding: 9px 11px;
  font-size: 1rem;
  margin-bottom: 13px;
  width: 100%;
  color: var(--color-primary);
  font-family: var(--font-body);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 2px #B2976D33;
}

/* ===================
   COOKIE CONSENT BANNER
====================*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: rgba(250,249,246,0.96);
  color: #312F2B;
  box-shadow: 0 -3px 18px rgba(49,47,43,0.11);
  border-top: 2px solid var(--color-secondary);
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  padding: 19px 10px;
  gap: 32px;
  transition: transform 0.27s cubic-bezier(.42,0,.31,1), opacity 0.18s;
}
.cookie-banner.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-text {
  font-size: 1.01rem;
  flex: 1;
  max-width: 500px;
  font-family: var(--font-body);
  color: #312F2B;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 15px;
}
.cookie-btn, .cookie-banner button {
  min-width: 120px;
  font-size: 1rem;
  font-family: var(--font-display);
  border-radius: 20px;
  border: none;
  cursor: pointer;
  padding: 7px 20px 8px 20px;
  transition: background .18s, color .16s, box-shadow .17s;
}
.cookie-btn.accept {
  background: var(--color-secondary);
  color: #fff;
  font-weight: 600;
}
.cookie-btn.reject {
  background: #E5E1D8;
  color: var(--color-primary);
}
.cookie-btn.settings {
  background: none;
  border: 1px solid #B2976D;
  color: var(--color-primary);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #8e7a53;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #e4d7bd;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #f7f5f1;
  border-color: #8e7a53;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    padding: 13px 4px;
  }
  .cookie-banner .cookie-btns {
    justify-content: flex-start;
    gap: 9px;
  }
}

/* === COOKIE MODAL === */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 3100;
  left:0; top:0; right:0; bottom:0;
  background: rgba(49,47,43,0.67);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.19s;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  max-width: 400px;
  width: 94vw;
  box-shadow: 0 7px 42px rgba(49,47,43,0.15);
  padding: 35px 26px 30px 26px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  animation: cookieModalIn .21s cubic-bezier(.69,.11,.36,.95);
}
@keyframes cookieModalIn {
  from { opacity:0; transform: translateY(48px) scale(1.09); }
  to { opacity:1; transform: none; }
}
.cookie-modal h3 { font-size: 1.33rem; color: var(--color-primary); margin-bottom: 6px; }
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 20px 0 24px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-body);
}
.cookie-category label { font-weight: 600; color: var(--color-primary); }
.cookie-toggle {
  width: 38px; height: 21px;
  background: #E5E1D8;
  border-radius: 21px;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  transition: background .18s;
  margin-left: 10px;
}
.cookie-toggle input[type="checkbox"] { display: none; }
.cookie-toggle span {
  position: absolute;
  top: 2.5px; left: 2px;
  height: 16px; width: 16px;
  background: #B2976D;
  border-radius: 50%;
  transition: left 0.2s, background .16s;
}
.cookie-toggle input[type="checkbox"]:checked + span {
  left: 20px;
  background: #312F2B;
}
.cookie-modal .modal-btns {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}
.cookie-modal button {
  min-width: 105px;
  font-size: 1rem;
  border-radius: 20px;
  padding: 7px 18px;
}
.cookie-modal .close-modal {
  background: none;
  color: var(--color-secondary);
  border: none;
  font-size: 1.25rem;
  align-self: flex-end;
  cursor: pointer;
  transition: color .15s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: #312F2B;
}

/* ===================
   MISC UTILITIES
====================*/
.d-none { display: none !important; }
.d-block { display: block !important; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* Hide visually only */
.sr-only { position: absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); border:0;}

/* ===================
   CUSTOM SCROLLBAR
====================*/
::-webkit-scrollbar {
  width: 10px; background: #F2EEE5;
}
::-webkit-scrollbar-thumb {
  background: #E5E1D8; border-radius: 20px;
}

/* ===================
   BRAND ACCENTS
====================*/
.text-secondary { color: var(--color-secondary); }
.bg-accent { background: var(--color-accent); }
.bg-primary { background: var(--color-primary); color: #fff; }

/* ===================
   SPACING HELPERS
====================*/
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mt-3 { margin-top: 24px; }
.mb-3 { margin-bottom: 24px; }
.mt-4 { margin-top: 40px; }
.mb-4 { margin-bottom: 40px; }

/* ===================
   MICRO-ANIMATIONS
====================*/
.cta-btn, .feature-grid > div, .card, .testimonial-card, .cookie-btn, .cookie-modal {
  transition: box-shadow .18s, background .18s, transform .17s;
}

/* ===================
   PRINT STYLES
====================*/
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  * { color: #1a1a1a !important; background: none !important; box-shadow: none !important; }
}
