/* ------------------
   CSS RESET & BASE
-------------------*/
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;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Open Sans', Georgia, 'Times New Roman', Times, serif;
  color: #23364A;
  background: #F5F7FA;
  font-size: 1rem;
  line-height: 1.7;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
a {
  color: #23364A;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #A99176;
  outline: none;
}

/* ------------------
   TYPOGRAPHY
-------------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Georgia, 'Times New Roman', Times, serif;
  color: #23364A;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.8rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.4rem;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
p, ul, ol, dl {
  font-family: 'Open Sans', Georgia, 'Times New Roman', Times, serif;
  margin-bottom: 16px;
  font-size: 1rem;
  color: #23364A;
}
ul, ol {
  padding-left: 32px;
}
li + li {
  margin-top: 10px;
}
dt {
  font-weight: 600;
}
dd {
  margin-bottom: 10px;
}

/* subtle links for secondary text */
.footer a,
footer nav a,
.text-section a:not(.primary-btn):not(.secondary-btn) {
  color: #5B6977;
}
.footer a:hover,
footer nav a:hover,
.text-section a:not(.primary-btn):not(.secondary-btn):hover {
  color: #A99176;
}

/* ------------------
   CONTAINERS & LAYOUTS
-------------------*/
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px 0 rgba(49, 51, 67, 0.04);
}
.text-section {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(49,51,67,0.07);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 240px;
  min-width: 230px;
  transition: box-shadow .22s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(35,54,74,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;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F5F7FA;
  border-left: 5px solid #E3C7B1;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(49,51,67,0.07);
  color: #23364A;
}
.testimonial-card p {
  font-style: italic;
  color: #23364A;
}
.testimonial-card span {
  color: #5B6977;
  font-size: 1rem;
  font-weight: 400;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 12px;
}

/* --- List Styles --- */
ul, ol {
  font-size: 1rem;
  line-height: 1.8;
  color: #23364A;
}
ul li::marker, ol li::marker {
  color: #E3C7B1;
}

/* ------------------
   NAVIGATION & HEADER
-------------------*/
header {
  padding: 0 0 12px 0;
  background: #fff;
  box-shadow: 0 5px 20px -12px rgba(35, 54, 74, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 22px 0 10px 0;
  justify-content: flex-start;
}
.main-nav a {
  color: #23364A;
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 500;
  font-size: 1.08rem;
  letter-spacing: 0.009em;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background .17s, color .17s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #E3C7B1;
  color: #23364A;
}
.main-nav img {
  width: 120px;
  height: auto;
}
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #23364A;
  padding: 5px 12px;
  cursor: pointer;
  border-radius: 7px;
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 80;
  transition: background 0.17s, color 0.14s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #E3C7B1;
  color: #23364A;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #F5F7FA;
  z-index: 1002;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.77,0,.18,1.01);
  overflow-y: auto;
  box-shadow: 0 3px 36px 0 rgba(35,54,74,0.12);
}
.mobile-menu.active {
  display: block;
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  font-size: 2.3rem;
  color: #23364A;
  position: absolute;
  top: 20px;
  right: 25px;
  cursor: pointer;
  z-index: 1100;
  transition: color .12s, background .14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #E3C7B1;
  color: #23364A;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-top: 70px;
  padding: 38px 24px;
}
.mobile-nav a {
  font-family: 'Montserrat', serif;
  font-size: 1.25rem;
  color: #23364A;
  padding: 10px 0;
  width: 100%;
  border-radius: 6px;
  transition: background .18s, color .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E3C7B1;
  color: #23364A;
}

/* Mobile Nav Responsive */
@media (max-width: 1050px) {
  .main-nav {
    gap: 14px;
  }
}
@media (max-width: 900px) {
  .main-nav a {
    font-size: 1rem;
    padding: 2px 3.5px;
  }
  .main-nav {
    gap: 9px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header {
    padding-bottom: 4px;
  }
}

/* ------------------
   BUTTONS & CTAs
-------------------*/
.primary-btn, .secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  padding: 13px 38px;
  font-size: 1.11rem;
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 600;
  text-align: center;
  transition: background .21s, color .17s, border-color .19s, box-shadow .17s;
  margin: 16px 0 0 0;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: 0 2px 14px rgba(35,54,74,0.06);
}
.primary-btn {
  background: #23364A;
  color: #fff;
  border-color: #23364A;
}
.primary-btn:hover, .primary-btn:focus {
  background: #1c2531;
  color: #fff;
  border-color: #1c2531;
}
.secondary-btn {
  background: #E3C7B1;
  color: #23364A;
  border-color: #E3C7B1;
}
.secondary-btn:hover, .secondary-btn:focus {
  background: #d9b79f;
  color: #23364A;
  border-color: #a99176;
}

/* Button microinteraction effect */
.primary-btn, .secondary-btn {
  will-change: transform;
}
.primary-btn:active, .secondary-btn:active {
  transform: translateY(2px) scale(0.97);
}

/* links with button look */
a.primary-btn, a.secondary-btn {
  text-decoration: none;
}

/* ------------------
   FOOTER
-------------------*/
footer {
  background: #23364A;
  color: #fff;
  padding: 44px 0 24px 0;
  margin-top: 70px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 20px;
}
footer nav a {
  color: #E3C7B1;
  font-family: 'Montserrat', serif;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.004em;
  transition: color 0.22s;
}
footer nav a:hover {
  color: #fff;
}
footer p {
  text-align: center;
  color: #fff;
  opacity: 0.82;
  font-size: 0.98rem;
  letter-spacing: .009em;
}

/* ------------------
   COOKIE CONSENT BANNER
-------------------*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #23364A;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 24px 20px;
  box-shadow: 0 -2px 32px 0 rgba(35,54,74,.10);
  z-index: 2000;
  font-size: 1rem;
  font-family: 'Open Sans', Georgia, serif;
  animation: fadeInBanner 0.8s;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 9px;
}
.cookie-banner .accept-btn {
  background: #E3C7B1;
  color: #23364A;
  border: none;
  border-radius: 20px;
  font-family: 'Montserrat', serif;
  font-weight: 600;
  font-size: 1.08rem;
  padding: 8px 30px;
  cursor: pointer;
  transition: background 0.19s, color 0.17s;
}
.cookie-banner .accept-btn:hover, .cookie-banner .accept-btn:focus {
  background: #fff;
  color: #23364A;
}
.cookie-banner .reject-btn {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 20px;
  font-family: 'Montserrat', serif;
  font-weight: 600;
  font-size: 1.08rem;
  padding: 8px 18px;
  cursor: pointer;
  transition: background 0.17s, color 0.17s, border 0.14s;
}
.cookie-banner .reject-btn:hover, .cookie-banner .reject-btn:focus {
  background: #fff;
  color: #23364A;
  border: 2px solid #23364A;
}
.cookie-banner .settings-btn {
  background: transparent;
  color: #fff;
  border: 2px solid #E3C7B1;
  border-radius: 20px;
  font-family: 'Montserrat', serif;
  font-size: 1.08rem;
  font-weight: 500;
  padding: 8px 18px;
  cursor: pointer;
  transition: background 0.17s, color 0.17s, border 0.14s;
}
.cookie-banner .settings-btn:hover, .cookie-banner .settings-btn:focus {
  background: #E3C7B1;
  color: #23364A;
  border: 2px solid #E3C7B1;
}
@keyframes fadeInBanner {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cookie Modal */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 2100;
  background: rgba(35,54,74, 0.27);
  padding: 30px 8px;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.active {
  display: flex;
  animation: fadeInBanner 0.2s;
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  padding: 34px 20px 26px 20px;
  max-width: 420px;
  width: 100%;
  color: #23364A;
  box-shadow: 0 4px 40px 0 rgba(35,54,74,0.19);
  font-family: 'Open Sans', Georgia, serif;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: fadeInBanner 0.16s;
}
.cookie-modal h3 {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.35rem;
  color: #23364A;
  margin-bottom: 11px;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: transparent;
  border: none;
  font-size: 1.7rem;
  color: #23364A;
  cursor: pointer;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 9px 0;
  font-size: 1rem;
}
.cookie-category label {
  font-family: 'Montserrat', serif;
  color: #23364A;
}
.cookie-category input[type="checkbox"] {
  transform: scale(1.18);
  accent-color: #E3C7B1;
  cursor: pointer;
}
.cookie-category .always-on {
  font-size: 0.98rem;
  color: #A99176;
  font-weight: 500;
  margin-left: 9px;
}
.cookie-modal-action {
  margin-top: 22px;
  display: flex;
  gap: 15px;
}
.cookie-modal-action button {
  padding: 8px 23px;
  font-family: 'Montserrat', serif;
  font-size: 1.01rem;
  border-radius: 16px;
  border: none;
  background: #E3C7B1;
  color: #23364A;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.12s;
}
.cookie-modal-action button:hover, .cookie-modal-action button:focus {
  background: #23364A;
  color: #fff;
}

/* ------------------
   RESPONSIVE LAYOUTS
-------------------*/
@media (max-width: 1060px) {
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.39rem; }
  .section { margin-bottom: 32px; padding: 30px 6px; }
  .content-wrapper, .text-section { padding: 0 3px; }
}
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
    max-width: 100vw;
  }
  .section { margin-bottom: 26px; padding: 22px 0; border-radius: 9px; }
  .text-section, .content-wrapper { padding: 0 2px; }
  .testimonial-card, .card { padding: 16px; }
  .feature-item, .card-container, .content-grid, .testimonial-card, .text-image-section {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }
  .text-image-section { gap: 16px !important; flex-direction: column !important; }
}
@media (max-width: 580px) {
  h1 { font-size: 1.2rem; }
  h2 { font-size: 1rem; }
  .primary-btn, .secondary-btn { padding: 10px 14px; font-size: 1rem; }
  .footer nav { gap: 6px; font-size: 0.97rem; }
}

/* ------------------
   SCROLLBARS & SELECTION
-------------------*/
::-webkit-scrollbar { width: 8px; background: #F5F7FA; }
::-webkit-scrollbar-thumb { background: #E3C7B1; border-radius: 4px; }
::selection { background: #E3C7B1; color: #23364A; }

/* ------------------
   FORMS & FIELDS
-------------------*/
input, textarea, select {
  border: 1px solid #E3C7B1;
  border-radius: 7px;
  padding: 10px 13px;
  font-size: 1rem;
  font-family: 'Open Sans', serif;
  margin-bottom: 18px;
  color: #23364A;
  background: #fff;
  transition: border-color 0.18s, box-shadow 0.17s;
  width: 100%;
  max-width: 380px;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #23364A;
  box-shadow: 0 2px 9px 0 #E3C7B1;
}
label {
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  color: #23364A;
  margin-bottom: 4px;
}

/* ------------------
   DL/DT CONTACT
-------------------*/
dl {
  margin: 18px 0;
  font-size: 1rem;
}
dt {
  font-family: 'Montserrat', serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}
dd {
  margin-left: 0;
  margin-bottom: 10px;
}

/* ------------------
   CARDS FOR SERVICES & CATALOG
-------------------*/
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.catalog-card, .service-card {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 8px rgba(49,51,67,0.05);
  margin-bottom: 20px;
  padding: 23px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  transition: box-shadow 0.18s;
  border-left: 4px solid #E3C7B1;
}
.catalog-card:hover, .service-card:hover {
  box-shadow: 0 4px 24px rgba(35,54,74,0.11);
}

/* ------------------
   MICROINTERACTIONS
-------------------*/
section a, .card a, .content-wrapper a, .content-grid a {
  transition: color .18s, background .19s, box-shadow 0.14s;
}
section a:active {
  outline: none;
  filter: brightness(96%);
}

/* ------------------
   MISC
-------------------*/
hr {
  border: none;
  border-top: 1.5px solid #E3C7B1;
  margin: 30px 0;
}
blockquote {
  font-style: italic;
  border-left: 4px solid #E3C7B1;
  color: #A99176;
  padding-left: 14px;
  margin: 22px 0;
}

/* Ensure all cards and wrappers have minimum 20px margin */
.card, .testimonial-card, .content-wrapper {
  margin-bottom: 20px;
}

/* Utility classes */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.text-center { text-align: center !important; }

/* ------------------
   ELEGANCE EFFECTS (Shadows & Rounding)
-------------------*/
.section, .card, .testimonial-card, .cookie-modal {
  box-shadow: 0 4px 24px 0 rgba(49, 51, 67, 0.04);
  border-radius: 16px;
}

/* Accessibility for color contrast in testimonials & reviews */
.testimonial-card, .testimonial-card p, .testimonial-card span {
  color: #23364A !important;
  background: #F5F7FA !important;
}

/* ------------------
   ELEGANT CLASSIC DECOR
-------------------*/
h1,h2,h3,h4,h5,h6 {
  text-shadow: 0 2px 6px rgba(227,199,177,0.06);
}
.card, .section {
  border: 1px solid #f1ece6;
}
.text-section h1, .text-section h2, .text-section h3 {
  border-bottom: 1.5px solid #e3c7b148;
  padding-bottom: 7px;
  margin-bottom: 16px;
}

/*---------------------*
  OVERLAY UTILITIES
*---------------------*/
.overlay {
  position: fixed;
  z-index: 9999;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(35,54,74,0.19);
}

/* ------------------
   PRINTING
-------------------*/
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  .container, .section { box-shadow: none !important; background: #fff !important; }
}
