/* --- 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body { line-height: 1.5; background: #F8ECD9; color: #403836; -webkit-font-smoothing: antialiased; min-height: 100vh; }
ol, ul { list-style: none; }
table { border-collapse: collapse; border-spacing: 0; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* --- CUSTOM PROPERTIES (with fallbacks) --- */
:root {
  --color-primary: #403836;
  --color-secondary: #D1B99A;
  --color-accent: #F8ECD9;
  --color-bg: #F8ECD9;
  --color-white: #fff;
  --color-dark: #2D2320;
  --color-shadow: rgba(64,56,54,0.09);
  --radius-md: 12px;
  --radius-lg: 18px;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;
}

/* --- TYPOGRAPHY --- */
body {
  font-family: var(--font-body);
  font-size: 16px; /* base */
  background: var(--color-bg);
  color: var(--color-primary);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  line-height: 1.15;
  letter-spacing: 0.01em;
  font-weight: 600;
  margin-bottom: 20px;
}
h1 {
  font-size: 2.2rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}
p, li, ul, ol {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--color-primary);
}
p { margin-bottom: 16px; }
strong { font-weight: bold; color: var(--color-dark); font-family: var(--font-display); }

@media (min-width: 600px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.35rem; }
  body { font-size: 17px; }
}
@media (min-width: 1024px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.5rem; }
  body { font-size: 18px; }
}

/* --- CONTAINER --- */
.container {
  width: 100%;
  padding: 0 16px;
  margin: 0 auto;
  max-width: 1160px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-secondary);
  box-shadow: 0 2px 16px var(--color-shadow);
  position: sticky; top: 0; z-index: 1005;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 14px 16px 14px 16px;
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
nav a {
  padding: 7px 0;
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}
nav a:after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  transition: width 0.2s;
  margin-top: 3px;
}
nav a:hover, nav a:focus {
  color: var(--color-secondary);
}
nav a:hover:after, nav a:focus:after {
  width: 80%;
}

/* --- CTA BUTTONS --- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-size: 1.13rem;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 10px 34px;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 24px var(--color-shadow);
  letter-spacing: 0.02em;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s, transform 0.08s;
  margin: 0 7px;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 32px rgba(64,56,54,0.13);
}

/* --- MOBILE BURGER MENU BUTTON --- */
.mobile-menu-toggle {
  display: block;
  background: var(--color-secondary);
  color: var(--color-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 2rem;
  margin-left: 10px;
  transition: background 0.17s, box-shadow 0.17s;
  z-index: 1002;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 4px 16px var(--color-shadow);
}
@media (min-width: 970px) {
  .mobile-menu-toggle { display: none; }
}

/* --- HIDE NAV ON MOBILE --- */
@media (max-width: 969px) {
  nav, .cta-btn {
    display: none !important;
  }
}

/* --- MOBILE MENU OVERLAY --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(248,236,217,0.97);
  box-shadow: 0 4px 64px rgba(64,56,54,0.16);
  z-index: 1200;
  transform: translateX(-105%);
  transition: transform 0.35s cubic-bezier(.68,-0.5,.47,1.5);
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  padding: 26px 20px 18px 22px;
}
.mobile-menu.open {
  transform: translateX(0);
  transition: transform 0.32s cubic-bezier(.75,0,.23,1.2);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.0rem;
  color: var(--color-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-secondary);
  margin-bottom: 6px;
  transition: background 0.17s, color 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-primary);
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 12px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.14rem;
  font-family: var(--font-display);
  background: rgba(209,185,154,0.16);
  border-radius: var(--radius-md);
  padding: 12px 14px 12px 10px;
  color: var(--color-primary);
  font-weight: 500;
  margin: 2px 0;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}

/* --- HERO SECTION / MAIN STYLES --- */
main {
  width: 100%;
  background: var(--color-bg);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* --- SECTIONS --- */
section {
  width: 100%;
  background: var(--color-bg);
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 2px 32px rgba(64,56,54,0.03);
}
@media (min-width: 820px) {
  section { padding: 55px 0 60px 0; }
}
.section:last-child { margin-bottom: 0; }

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

/* --- FLEX WRAPPERS & GRIDS --- */
.feature-grid, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 20px var(--color-shadow);
  padding: 24px 18px;
}
.card-container > .card {
  flex: 1 1 290px;
  max-width: 420px;
  min-width: 235px;
}
.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: 14px;
  padding: 20px 22px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 24px rgba(64,56,54,0.08);
  margin-bottom: 24px;
  border-left: 5px solid var(--color-secondary);
  max-width: 540px;
}
.testimonial-card p {
  color: var(--color-primary);
  font-size: 1.12rem;
  font-style: italic;
}
.testimonial-card strong {
  font-size: 1rem;
  color: var(--color-dark);
  letter-spacing: 0.01em;
  font-family: var(--font-body);
  font-weight: 600;
}
.star-rating {
  display: flex;
  align-items: center;
  gap: 2px;
}

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

/* --- SPECIAL: CARDS AND ICONS --- */
.feature-grid > div {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 20px var(--color-shadow);
  padding: 28px 18px 18px 18px;
  min-width: 222px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  transition: box-shadow 0.19s, transform 0.19s;
}
.feature-grid > div img {
  margin-bottom: 10px;
  width: 50px; height: 50px;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 32px var(--color-shadow);
  transform: translateY(-4px) scale(1.032);
}

@media (max-width: 860px) {
  .feature-grid > div {
    min-width: 80%;
    flex: 1 1 95vw;
  }
}

/* --- RESPONSIVE FLEX DIRECTION --- */
@media (max-width: 768px) {
  .feature-grid, .content-grid, .card-container, .text-image-section {
    flex-direction: column !important;
    gap: 20px !important;
    align-items: stretch !important;
  }
  section, .testimonial-card { padding: 30px 10px; }
}

/* --- LISTS, OLs --- */
ul, ol {
  padding-left: 22px;
  margin-bottom: 18px;
}
li {
  margin-bottom: 12px;
  padding-left: 0.3em;
  color: var(--color-primary);
}
ul li::marker, ol li::marker {
  color: var(--color-secondary);
}
ul strong, ol strong {
  color: var(--color-dark);
}

/* --- PARTNER LOGOS --- */
.partners-logos {
  display: flex; align-items: center; gap: 26px; margin-top: 16px;
}

/* --- FOOTER --- */
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 36px 0 16px 0;
  margin-top: 0;
  box-shadow: 0 -2px 24px var(--color-shadow);
}
footer .container {
  flex-direction: row; flex-wrap: wrap; gap: 42px; align-items: flex-start;
  justify-content: space-between;
  padding-top: 0;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
  font-family: var(--font-display);
  font-size: 1.03rem;
  margin-bottom: 12px;
}
.footer-nav a {
  color: var(--color-secondary);
  transition: color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent);
}
.footer-brand {
  display: flex; flex-direction: column; align-items: center; gap: 15px;
}
.footer-brand img {
  width: 105px; height: auto;
}
.footer-brand .tagline {
  font-family: var(--font-display);
  font-size: 0.93rem;
  color: var(--color-accent);
  margin-top: 6px;
  font-style: italic;
}
.contact-info {
  display: flex; flex-direction: column; gap: 9px;
  font-size: 0.99rem;
  color: var(--color-accent);
}
.contact-info p img {
  width: 19px; height: 19px; margin-right: 7px; vertical-align: middle;
  display: inline-block;
}

@media (max-width: 970px) {
  footer .container { flex-direction: column; align-items: stretch; gap: 28px; padding: 0 10px; }
  .footer-nav { flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .contact-info { font-size: 1rem; gap: 7px; }
  .footer-brand { margin-bottom: 0; }
}

/* --- BUTTONS (INCLUDING COOKIE) --- */
button, .btn, .cookie-btn {
  font-family: var(--font-body);
  border-radius: var(--radius-md);
  font-size: 1rem;
  padding: 9px 22px;
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  font-weight: 500;
  box-shadow: 0 2px 12px rgba(209,185,154,0.13);
}
button:hover, .btn:hover, .cookie-btn:hover,
button:focus, .btn:focus, .cookie-btn:focus {
  background: var(--color-primary);
  color: var(--color-accent);
}

/* --- MISC ELEMENTS --- */
a.underline-link {
  text-decoration: underline;
  color: var(--color-secondary);
  transition: color 0.17s;
}
a.underline-link:hover {
  color: var(--color-primary);
}

hr {
  border: none;
  border-top: 1px solid var(--color-secondary);
  margin: 26px 0;
}

/* --- FORM ELEMENTS --- */
input, textarea {
  font-family: var(--font-body);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-secondary);
  padding: 8px 14px;
  background: var(--color-white);
  color: var(--color-primary);
  font-size: 1rem;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: border 0.15s;
}
input:focus, textarea:focus {
  border-color: var(--color-primary);
}
label {
  font-family: var(--font-body);
  font-weight: 500;
  margin-bottom: 6px;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 -2px 20px rgba(64,56,54,0.13);
  z-index: 1400;
  padding: 24px 18px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  animation: fadein-cookie 0.66s cubic-bezier(.5,1.5,0.5,1);
}
@keyframes fadein-cookie {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.cookie-btn {
  padding: 9px 22px;
  font-family: var(--font-display);
  border-radius: var(--radius-md);
  background: var(--color-secondary);
  color: var(--color-primary);
  margin-right: 6px;
  margin-bottom: 2px;
  font-size: 1.05rem;
  transition: background 0.2s, color 0.2s;
  min-width: 130px;
}
.cookie-btn.accept {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-btn.accept:hover { background: #96835b; color: #fff; }
.cookie-btn.reject {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-btn.reject:hover { background: #e5dbcf; color: #332922; }
.cookie-btn.settings {
  background: #fff;
  color: var(--color-primary);
  border: 1px solid var(--color-secondary);
}
.cookie-btn.settings:hover { background: var(--color-secondary); color: var(--color-accent); }
@media (max-width: 600px) {
  .cookie-banner {
    padding: 18px 6px 13px 6px;
    font-size: 0.97rem;
  }
}

/* --- COOKIE PREFERENCES MODAL --- */
#cookie-modal, .cookie-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(64,56,54,0.47);
  z-index: 1450;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(100vh);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.29s, transform 0.29s;
}
.cookie-modal.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.cookie-modal-content {
  background: var(--color-accent);
  border-radius: var(--radius-lg);
  padding: 40px 24px 30px 24px;
  max-width: 470px;
  width: 95vw;
  box-shadow: 0 18px 38px rgba(64,56,54,0.22);
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  animation: fadein-modal 0.40s cubic-bezier(.72,-0.5,.53,1.13);
}
@keyframes fadein-modal {
  0% { transform: scale(0.9) translateY(110px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-content h2 {
  margin-bottom: 5px;
  color: var(--color-primary);
  font-size: 1.35rem;
  font-family: var(--font-display);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 19px;
  margin: 18px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-family: var(--font-body);
}
.category-switch {
  width: 42px; height: 22px;
  border-radius: 11px;
  background: #ddd5c7;
  margin-right: 8px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.22s;
}
.category-switch[aria-checked='true'] {
  background: var(--color-secondary);
}
.category-switch:before {
  content: '';
  display: block;
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.22s;
}
.category-switch[aria-checked='true']:before {
  left: 22px; background: var(--color-primary);
}
.category-switch[aria-disabled='true'] {
  opacity: 0.64; cursor: not-allowed;
}
.cookie-modal-close {
  position: absolute; top: 18px; right: 22px;
  font-size: 1.5rem;
  background: none;
  color: var(--color-primary);
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal-actions .cookie-btn {
  min-width: 114px;
}

@media (max-width: 500px) {
  .cookie-modal-content { padding: 20px 6vw 18px 6vw; }
}

/* --- UTILITY CLASSES --- */
.mt-2 { margin-top: 2px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.w-100 { width: 100%; }
.text-center { text-align: center; }
.align-center { align-items: center; justify-content: center; }

/* --- MICRO-INTERACTIONS FOR CARDS, BUTTONS --- */
.card, .feature-grid > div, .testimonial-card {
  transition: box-shadow 0.18s, transform 0.17s;
}
.card:hover, .feature-grid > div:hover, .testimonial-card:hover {
  box-shadow: 0 8px 36px rgba(64,56,54,0.14);
  transform: translateY(-3px);
}

/* --- VISUAL HIERARCHY (SPACING) --- */
.content-wrapper > * + * {
  margin-top: 14px; /* All consecutive elements */
}
@media (min-width: 800px) {
  .content-wrapper { gap: 26px; }
}

/* --- SPECIAL RESPONSIVE --- */
@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.17rem; }
  .feature-grid > div { min-width: 97vw; padding: 18px 7vw; }
  .testimonial-card { font-size: 0.99rem; }
  section { padding: 18px 4vw; }
  main { gap: 0; }
}

/* --- Z-INDEX ENSUREMENTS --- */
header { z-index: 1005; }
.mobile-menu { z-index: 1200; }
.cookie-banner { z-index: 1400; }
.cookie-modal, #cookie-modal { z-index: 1450; }

/* --- PREVENT ABSOLUTE/OVERLAP --- */
.card, .feature-grid > div, .testimonial-card, section {
  position: relative;
  z-index: 1;
}

/* --- REMOVE OUTLINE ON CLICK, KEEP FOR KEYBOARD --- */
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--color-secondary); outline-offset: 4px; }

/* --- SCROLLBAR --- */
body::-webkit-scrollbar { width: 13px; background: #e8dbcd; }
body::-webkit-scrollbar-thumb { background: #d1b99a; border-radius: 8px; }

/* --- CUSTOM FONT IMPORTS --- */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Playfair+Display:wght@700&display=swap');

/* --- END OF ELEGANT CLASSIC STYLE --- */
