/* ============================
   Defolen Blo CSS – Elegant Classic
   ============================ */

/* --- 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, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  background: #F5F3EF;
  color: #312E2B;
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.7;
  font-size: 1rem;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

ul, ol {
  list-style: none;
}

a {
  color: #312E2B;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #DBA23C;
  outline-offset: 2px;
}

a:hover, a:active {
  color: #DBA23C;
}

strong {
  font-weight: 600;
  color: #312E2B;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #312E2B;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: .5px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
p, li, dt, dd {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #312E2B;
  font-size: 1rem;
  margin-bottom: 10px;
}

/* --- Containers & Main Layout --- */
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

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

/* --- Section Spacing --- */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
@media (max-width: 768px) {
  section {
    padding: 28px 0;
    margin-bottom: 38px;
  }
}

/* --- Lists --- */
ul li, ol li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 12px;
}
ul li::before {
  content: "\2022 ";
  color: #DBA23C;
  font-size: 1.2em;
  position: absolute;
  left: 0;
  top: -2px;
}
ol li {
  counter-increment: num;
  list-style: none;
}
ol li::before {
  content: counter(num) ". ";
  color: #DBA23C;
  font-weight: 600;
  position: absolute;
  left: 0;
}
dt {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #312E2B;
}
dd {
  margin-bottom: 18px;
  margin-left: 0;
}

dd, dt {
  padding-left: 0;
}

dt {
  margin-top: 16px;
}

/* --- Header --- */
header {
  background: #fff;
  border-bottom: 1.5px solid #E9E7E3;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 90;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}
header img {
  height: 54px;
  transition: filter 0.2s;
}
header img:hover {
  filter: brightness(0.95) sepia(10%) contrast(105%);
}

/* --- Main Navigation --- */
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Playfair Display', serif;
  font-size: 1.07rem;
  color: #312E2B;
  padding: 8px 2px;
  border-radius: 3px;
  transition: color 0.18s, background 0.18s;
  position: relative;
}
.main-nav a.cta {
  background: #DBA23C;
  color: #fff;
  padding: 8px 20px;
  border-radius: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.05em;
  letter-spacing: 0.05em;
  box-shadow: 0 0.5px 8px rgba(219,162,60,0.05);
  margin-left: 8px;
}
.main-nav a.cta:hover,
.main-nav a.cta:focus {
  background: #312E2B;
  color: #DBA23C;
}
.main-nav a:hover {
  color: #DBA23C;
}

/* --- Hamburger Menu --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #312E2B;
  cursor: pointer;
  margin-left: 16px;
  z-index: 101;
  padding: 6px 13px;
  border-radius: 50%;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #F5F3EF;
}

/* --- Mobile Navigation Overlay --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(49,46,43,0.97);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.83,.01,.28,1.01);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding-top: 0;
  width: 100vw;
  height: 100vh;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #DBA23C;
  margin: 20px 28px 0 0;
  cursor: pointer;
  transition: color 0.18s;
  z-index: 2010;
  align-self: flex-end;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: #fff;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 48px 40px 30px 36px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.5;
  padding: 9px 0 9px 4px;
  border-radius: 6px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #DBA23C;
  color: #312E2B;
  padding-left: 20px;
  transition: background 0.17s, color 0.17s, padding-left 0.27s;
}

/* --- Hide Main Nav on Mobile, Show Hamburger --- */
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  header .container {
    justify-content: space-between;
  }
}

/* --- Show Main Nav on Desktop, Hide Mobile --- */
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
  .main-nav {
    display: flex !important;
  }
}

/* --- Footer --- */
footer {
  background: #fff;
  border-top: 1.5px solid #E9E7E3;
  padding-top: 18px;
  padding-bottom: 32px;
}
footer .container {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-bottom: 6px;
}
.footer-nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #312E2B;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #DBA23C;
}
footer p {
  color: #aaa188;
  font-size: 0.97rem;
  font-family: 'Playfair Display', serif;
}

/* ===========================
   Content & Card Styles
   =========================== */

/* --- Cards & Card Container --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 14px rgba(49,46,43,0.035);
  padding: 34px 26px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.22s;
}
.card:hover {
  box-shadow: 0 6px 28px rgba(49,46,43,0.07);
}

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

/* --- Text-Image Section --- */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

/* --- Testimonial Card --- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 22px 22px 32px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 12px rgba(49,46,43,0.09);
  margin-bottom: 20px;
  border-left: 5px solid #DBA23C;
  transition: box-shadow 0.22s, border-color 0.22s;
  min-width: 260px;
  max-width: 520px;
}
.testimonial-card p {
  font-size: 1.07rem;
  font-family: 'Open Sans', serif;
  color: #312E2B;
  margin-bottom: 0;
}
.testimonial-card strong {
  font-size: .97em;
  font-family: 'Playfair Display', serif;
  color: #312E2B;
}
.testimonial-card span {
  color: #DBA23C;
  font-size: 1.15rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-left: 2px;
  letter-spacing: 0.1em;
}
.testimonial-card:hover {
  box-shadow: 0 6px 28px rgba(49,46,43,0.11);
  border-left-color: #312E2B;
}

/* --- Feature Items --- */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 24px;
}

/* --- Hero/CTA buttons --- */
.cta,
button.cta,
input[type="submit"].cta {
  display: inline-block;
  background: #DBA23C;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.13em;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 30px;
  padding: 0.62em 2.1em;
  margin-top: 18px;
  margin-bottom: 6px;
  box-shadow: 0 4px 16px rgba(219,162,60,0.11);
  cursor: pointer;
  transition: background 0.19s, color 0.19s, box-shadow 0.18s, transform 0.19s;
  text-align: center;
  text-decoration: none;
}
.cta:hover, .cta:focus,
button.cta:hover, button.cta:focus {
  background: #312E2B;
  color: #DBA23C;
  box-shadow: 0 8px 18px rgba(49,46,43,0.13);
  transform: translateY(-2px) scale(1.03);
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #312E2B;
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  font-size: 1.03rem;
  z-index: 3000;
  padding: 32px 18px 26px 18px;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 0 36px 4px rgba(49,46,43,0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  transform: translateY(160%);
  opacity: 0;
  transition: transform 0.37s cubic-bezier(.69,.04,.27,.99), opacity 0.19s;
  margin-left: auto;
  margin-right: 32px;
}
@media (max-width: 650px) {
  .cookie-banner {
    left: 0; right: 0; margin: 0; max-width: none;
    border-radius: 0;
    padding-left: 12px; padding-right: 12px;
  }
}
.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-banner button,
.cookie-banner .btn {
  background: #DBA23C;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 0.98em;
  border: none;
  padding: 9px 22px;
  border-radius: 22px;
  cursor: pointer;
  margin-bottom: 0;
  transition: color 0.17s, background 0.17s;
  box-shadow: 0 3px 18px rgba(219,162,60,0.1);
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  background: #fff;
  color: #DBA23C;
}
.cookie-banner .btn.settings {
  background: transparent;
  color: #DBA23C;
  border: 1.5px solid #DBA23C;
}
.cookie-banner .btn.settings:hover,
.cookie-banner .btn.settings:focus {
  background: #DBA23C;
  color: #fff;
}

/* --- Cookie Modal --- */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(49,46,43,0.52);
  z-index: 3010;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(.69,.04,.27,.99);
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fff;
  color: #312E2B;
  border-radius: 16px;
  padding: 32px 20px 28px 22px;
  max-width: 440px;
  width: 94vw;
  box-shadow: 0 2px 38px 4px rgba(49,46,43,0.19);
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: cookieModalPop .37s cubic-bezier(.22,.9,.42,1.01);
}
@keyframes cookieModalPop {
  0% { transform: scale(0.89) translateY(70px); opacity: 0; }
  95% { transform: scale(1.03); }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-close {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #DBA23C;
  position: absolute;
  top: 16px;
  right: 22px;
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: #312E2B;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
}
.cookie-category label {
  font-weight: 600;
  font-family: 'Playfair Display', serif;
  color: #312E2B;
  cursor: pointer;
}
.cookie-category input[type="checkbox"] {
  accent-color: #DBA23C;
  width: 18px; height: 18px;
}
.cookie-category .essential {
  color: #aaa188;
  font-size: 0.92em;
  font-style: italic;
}
.cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 15px;
  margin-top: 14px;
  align-items: center;
}

/* --- Responsive Content --- */
@media (max-width: 768px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .testimonial-card {
    padding: 18px 13px 15px 16px;
    font-size: 0.96rem;
  }
}
@media (max-width:500px) {
  .testimonial-card {
    max-width: 100%;
    padding: 11px 8px 12px 10px;
  }
  .card {
    padding: 16px 8px;
  }
}

/* --- Tables --- */
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 28px;
}
thead {
  background: #efede5;
}
th, td {
  padding: 13px 8px;
  border-bottom: 1px solid #E9E7E3;
  font-family: 'Open Sans', Arial, sans-serif;
}
th {
  font-family: 'Playfair Display', serif;
  color: #312E2B;
  font-size: 1.07em;
}

/* --- Forms (CTA pages) --- */
input, textarea, select {
  border: 1px solid #E9E7E3;
  border-radius: 6px;
  padding: 11px 14px;
  font-size: 1em;
  margin-bottom: 20px;
  font-family: 'Open Sans', Arial, sans-serif;
}
input:focus, textarea:focus, select:focus {
  border-color: #DBA23C;
  outline: none;
}
label {
  font-family: 'Playfair Display', serif;
  color: #312E2B;
  font-size: 1rem;
  margin-bottom: 4px;
}

/* --- Spacing Utilities --- */
.mb-24 { margin-bottom: 24px !important; }
.mb-36 { margin-bottom: 36px !important; }
.mt-24 { margin-top: 24px !important; }
.pt-24 { padding-top: 24px !important; }
.pb-24 { padding-bottom: 24px !important; }

/* --- Content Alignment --- */
.align-center {
  text-align: center;
  align-items: center;
  justify-content: center;
}
.align-left {
  text-align: left;
  align-items: flex-start;
}

/* --- Decorative icon styles --- */
.content-wrapper img[alt^="icon-"] {
  margin-right: 7px;
  vertical-align: middle;
  width: 21px;
  height: 21px;
  opacity: 0.87;
}

/* --- Micro-interactions --- */
button, input[type="submit"] {
  transition: background 0.16s, color 0.16s, box-shadow 0.18s, transform 0.12s;
  cursor: pointer;
}
button:active, input[type="submit"]:active {
  transform: scale(0.98);
  box-shadow: none;
}

/* --- Section Consistency --- */
section {
  background: #F5F3EF;
}
.container > section,
section > .container {
  margin-bottom: 0;
  padding-bottom: 0;
}
.content-wrapper > *:last-child {
  margin-bottom: 0;
}
.content-wrapper > *:first-child {
  margin-top: 0;
}

/* --- Accessibility & Focus --- */
:focus {
  outline: 2px solid #DBA23C;
  outline-offset: 2px;
}

/* --- Visual Hierarchy --- */
@media (min-width: 900px) {
  section {
    padding-left: 0;
    padding-right: 0;
  }
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* --- Prevent Overlapping: ensure all cards/sections have min 20px spacing --- */
section > .container > *,
.content-wrapper > * {
  margin-bottom: 20px;
}
section:last-child {
  margin-bottom: 0;
}

/* --- Misc --- */
::-webkit-scrollbar {
  width: 12px;
  background: #eae8e1;
}
::-webkit-scrollbar-thumb {
  background: #DBA23C;
  border-radius: 6px;
}

/* --- Thank you/confirmation styling --- */
.confirmation, .thankyou-message, .success-message {
  background: #fffbe4;
  border-left: 4px solid #DBA23C;
  padding: 24px 20px;
  border-radius: 9px;
  font-family: 'Open Sans', serif;
  font-size: 1.11rem;
  color: #312E2B;
  margin-top: 18px;
}

/* Ensure NO grid/columns used. All layouts use flex only. */
