/* ========================
   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;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F1EBDD;
  color: #2C2115;
}

*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style-position: inside;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
input, button, textarea, select {
  font: inherit;
  outline: none;
}

/* ========================
     BRAND TYPOGRAPHY
======================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:400,700&display=swap');

body {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  background: #F1EBDD;
  color: #2C2115;
}
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #2C2115;
  margin-bottom: 18px;
  letter-spacing: -1px;
}
h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.4rem;
}
p, li {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #473D32;
  font-size: 1rem;
  line-height: 1.7;
}
strong {
  font-weight: 700;
}

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

/* ========================
     GRADIENT MODERN BG
======================== */
body, .mobile-menu {
  background: linear-gradient(120deg, #F1EBDD 0%, #FFFFFF 50%, #F9F6F1 100%);
}
section {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(44,33,21,.07);
  margin-bottom: 60px;
  padding: 40px 20px;
}

@media (max-width: 768px) {
  section {
    padding: 24px 8px;
    margin-bottom: 36px;
  }
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

/* ========================
       FLEX LAYOUTS
========================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(156,102,21,0.08);
  background: #fff;
  position: relative;
  padding: 24px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 8px 28px rgba(156,102,21,0.13);
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #fffbe9;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(44,33,21,0.06);
  padding: 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
  color: #2C2115;
}
.testimonial-card:hover {
  box-shadow: 0 6px 20px rgba(156,102,21,0.15);
  transform: translateY(-2px) scale(1.01);
}
.testimonial-card p {
  color: #473D32;
}
.testimonial-card strong {
  font-size: 1rem;
  color: #A06615;
  font-weight: 700;
}

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

ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
li {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ========================
     BUTTONS & LINKS
======================== */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 26px;
  border: none;
  border-radius: 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}
.btn-primary {
  background: linear-gradient(90deg, #A06615 0%, #996C3B 100%);
  color: #fff;
  box-shadow: 0 3px 14px rgba(156,102,21,0.14);
  letter-spacing: 0.5px;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, #996C3B 0%, #A06615 100%);
  box-shadow: 0 6px 24px rgba(156,102,21,0.23);
}
.btn-secondary {
  background: #fff;
  color: #A06615;
  border: 2px solid #A06615;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #F1EBDD;
  color: #473D32;
  border-color: #996C3B;
}
a.btn-primary, a.btn-secondary {
  margin-right: 14px;
}

/* ========================
     NAVBAR & HEADER
========================= */
header {
  width: 100%;
  background: linear-gradient(90deg, #fff 60%, #F9F6F1 100%);
  box-shadow: 0 2px 16px rgba(44,33,21,0.07);
  z-index: 100;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 0 18px 0;
  justify-content: flex-start;
  flex-wrap: wrap;
  font-size: 1.07rem;
}
.main-nav img {
  height: 38px;
  margin-right: 18px;
  vertical-align: middle;
}
.main-nav a {
  color: #2C2115;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 16px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F1EBDD;
  color: #A06615;
}
.main-nav .btn-primary {
  margin-left: 18px;
}

/* ========================
    FOOTER
========================= */
footer {
  background: #473D32;
  color: #fff;
  text-align: center;
  padding: 32px 0 14px 0;
}
footer .container {
  align-items: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #fff;
  font-size: 0.97rem;
  opacity: 0.9;
  transition: color 0.18s, opacity 0.12s;
}
.footer-nav a:hover {
  color: #A06615;
  opacity: 1;
}
footer p {
  color: #fff;
  opacity: 0.73;
  font-size: 0.95rem;
}

/* ========================
    MOBILE NAVIGATION
======================== */
.mobile-menu-toggle {
  background: none;
  border: none;
  color: #A06615;
  font-size: 2.2rem;
  display: none;
  position: absolute;
  right: 24px;
  top: 23px;
  z-index: 101;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: #2C2115;
}
@media (max-width: 991px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
  background: linear-gradient(120deg, #fff 80%, #F1EBDD 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.75,0,.25,1);
  box-shadow: 0 0 40px 0 rgba(44,33,21,0.13);
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #A06615;
  font-size: 2.2rem;
  margin: 20px 20px 0 0;
  cursor: pointer;
  align-self: flex-end;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-top: 24px;
  gap: 14px;
  padding: 0 32px;
}
.mobile-nav a {
  padding: 16px 0;
  color: #2C2115;
  font-size: 1.23rem;
  font-weight: 500;
  width: 100%;
  border-radius: 14px;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F1EBDD;
  color: #A06615;
}

@media (max-width: 480px) {
  .mobile-nav {
    padding: 0 10vw;
  }
}

/* Hide scrollbar for mobile menu */
.mobile-menu::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

/* ========================
    COOKIE CONSENT BANNER
======================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
  background: #2C2115;
  color: #fff;
  box-shadow: 0 -3px 16px rgba(44,33,21,0.10);
  gap: 24px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  animation: bannerFadein 0.8s 0.2s backwards;
}
@keyframes bannerFadein {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  flex: 1;
  font-size: 1rem;
  color: #fff;
}
.cookie-banner .cookie-btn {
  margin-left: 8px;
}
.cookie-banner .cookie-btn {
  padding: 10px 22px;
  border-radius: 16px;
  font-size: 1rem;
  border: none;
  font-weight: 600;
  cursor: pointer;
  margin-right: 9px;
  transition: background 0.15s, color 0.15s;
}
.cookie-banner .accept {
  background: #A06615;
  color: #fff;
  border: 2px solid #A06615;
}
.cookie-banner .accept:hover { background: #996C3B; }
.cookie-banner .reject {
  background: #fff;
  color: #A06615;
  border: 2px solid #A06615;
}
.cookie-banner .reject:hover {
  background: #ffe5bb;
}
.cookie-banner .settings {
  background: #473D32;
  color: #fff;
  border: 2px solid #473D32;
}
.cookie-banner .settings:hover {
  background: #2C2115;
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    padding: 14px 9px;
    align-items: flex-start;
  }
  .cookie-banner .cookie-btn {
    margin: 0 8px 6px 0;
    width: 100%;
  }
}

/* ========================
  COOKIE PREFERENCES MODAL
======================== */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(44,33,21,0.47);
  z-index: 4000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  color: #2C2115;
  border-radius: 20px;
  box-shadow: 0 12px 62px rgba(44,33,21,0.35);
  width: 88vw;
  max-width: 410px;
  padding: 36px 26px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: modalAppear 0.4s cubic-bezier(.7,0,.2,1);
}
@keyframes modalAppear {
  from {transform: scale(.93) translateY(36px); opacity:0;}
  to {transform: scale(1) translateY(0); opacity:1;}
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  background: #F1EBDD;
  border-radius: 12px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.01rem;
}
.cookie-category .switch {
  margin-left: 14px;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
}
.cookie-modal .accept, .cookie-modal .reject {
  padding: 7px 16px;
  font-size: 1rem;
  border-radius: 13px;
}
.cookie-modal .accept {
  background: #A06615;
  color: #fff;
  border: 2px solid #A06615;
}
.cookie-modal .reject {
  background: #fff;
  color: #A06615;
  border: 2px solid #A06615;
}
.cookie-modal .close-modal {
  background: none;
  border: none;
  color: #A06615;
  font-size: 1.3rem;
  position: absolute;
  top: 17px;
  right: 17px;
  cursor: pointer;
}

/* Custom checkbox/switch for modal */
.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ece3d0;
  transition: .2s;
  border-radius: 14px;
}
.switch input:checked + .slider {
  background-color: #A06615;
}
.slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: .2s;
}
.switch input:checked + .slider:before {
  transform: translateX(18px);
}
.switch input:disabled + .slider {
  background-color: #c7bcaa;
  cursor: not-allowed;
}

/* ========================
    RESPONSIVE UTILS
========================= */
@media (max-width: 991px) {
  .main-nav {
    display: none !important;
  }
  .container {
    padding: 0 8px;
  }
  section {
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(44,33,21,0.05);
  }
}
@media (max-width: 620px) {
  .footer-nav, .main-nav, .mobile-nav {
    gap: 9px;
    font-size: 0.97rem;
  }
  .container {
    padding: 0 3vw;
  }
}

/* ========================
     MISC & ACCESSIBILITY
========================= */
:focus {
  outline: 2px solid #A06615;
}
::-webkit-input-placeholder {
  color: #c7bcaa;
}
::-moz-placeholder {
  color: #c7bcaa;
}
:-ms-input-placeholder {
  color: #c7bcaa;
}
::placeholder {
  color: #c7bcaa;
}

/* ========================
     UTILITY SPACING
========================= */
.gap-20 { gap: 20px; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }

/*  ======================
      PRINT OPTIMIZATION
========================= */
@media print {
  header, footer, .mobile-menu, .cookie-banner {
    display: none !important;
  }
}

/* ========================
     FORM ELEMENTS (BASE)
========================= */
input[type='text'], input[type='email'], textarea {
  border: 1px solid #c7bcaa;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 1rem;
  width: 100%;
  background: #fff;
  transition: border-color 0.15s;
}
input[type='text']:focus, input[type='email']:focus, textarea:focus {
  border-color: #A06615;
}

button:active {
  transform: scale(.98);
}

/* ========================
  IMAGE ICONS (LIST ITEMS)
========================= */
ul li img {
  width: 26px;
  height: 26px;
  margin-right: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #f8ead2;
  padding: 3px;
}

/* =========================
   MISC GRADIENT DECORATIVE
========================= */
section {
  position: relative;
  overflow: hidden;
}
section::before {
  content: '';
  position: absolute;
  z-index: 0;
  left: -70px;
  top: -70px;
  width: 180px;
  height: 160px;
  background: radial-gradient(circle at 40% 40%, #A0661544 0%, #F1EBDD00 90%);
  pointer-events: none;
}
section::after {
  content: '';
  position: absolute;
  z-index: 0;
  right: -70px;
  bottom: -70px;
  width: 170px;
  height: 140px;
  background: radial-gradient(circle at 70% 80%, #473D3299 0%, #F1EBDD00 95%);
  pointer-events: none;
}
.container, .content-wrapper, section, .card, .testimonial-card {
  position: relative;
  z-index: 1;
}

/* =========================
    Z-INDEX FOR OVERLAYS
========================= */
.mobile-menu, .cookie-modal-overlay { z-index: 9999; }

/* ========================
    END OF CSS
========================= */
