/* ----------------------
   CSS RESET & NORMALIZE
------------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #F8F9FB;
  color: #2C3240;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #2C3240;
  text-decoration: none;
  transition: color 0.25s;
}
a:hover, a:focus {
  color: #D1B3A1;
  outline: none;
}
ul, ol {
  padding-left: 1.2em;
  margin-bottom: 1.25em;
}
li {
  margin-bottom: 0.5em;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid #2C3240;
  outline-offset: 2px;
}

/* Typography hierarchy */
h1, .h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.75rem;
  font-weight: 700;
  color: #2C3240;
  margin-bottom: 24px;
  line-height: 1.13;
}
h2, .h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 600;
  color: #2C3240;
  margin-bottom: 20px;
  line-height: 1.22;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2C3240;
  margin-bottom: 14px;
}
h4, .h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}
p, .tagline {
  margin-bottom: 18px;
}
.tagline {
  font-size: 1.25rem;
  color: #455065;
  font-weight: 500;
}

/* ---------------
   LAYOUT SYSTEM
----------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFF;
  border-radius: 18px;
  box-shadow: 0 2px 24px 0 rgba(44, 50, 64, 0.06);
}
@media (max-width: 800px) {
  .section {
    padding: 25px 8px;
    margin-bottom: 36px;
    border-radius: 14px;
  }
}

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

.card-container,
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #FFF;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(44, 50, 64, 0.04);
  padding: 24px 20px;
  flex: 1 1 260px;
  min-width: 220px;
  transition: box-shadow 0.22s;
}
.card:hover {
  box-shadow: 0 6px 32px 0 rgba(44,50,64,0.14);
}

.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) {
  .content-grid,
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* Special lists and features */
.feature-list, .service-list, .service-grid, .footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  list-style: none;
  margin-bottom: 0;
}
.feature-list li, .service-list li, .service-grid li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F5F6F8;
  border-radius: 12px;
  padding: 20px 16px;
  min-width: 180px;
  font-weight: 500;
  color: #2C3240;
  box-shadow: 0 1px 6px 0 rgba(44,50,64,0.03);
  position: relative;
}
.feature-list li img,
.service-list li img {
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
  filter: grayscale(25%) brightness(0.90);
}

@media (max-width: 768px) {
  .feature-list, .service-list, .service-grid, .footer-menu {
    flex-direction: column;
    gap: 16px;
  }
  .feature-list li, .service-list li, .service-grid li {
    min-width: 100%;
  }
}

/* Text section, used across pages */
.text-section {
  background: #F6F7FA;
  border-radius: 10px;
  padding: 26px 20px;
  color: #2C3240;
  box-shadow: 0 1px 6px 0 rgba(44,50,64,0.025);
  margin-bottom: 12px;
}
.privacy-note {
  font-size: 0.9rem;
  color: #6B7280;
  margin-top: 14px;
}

/* -------------------
   HEADER & NAVIGATION
--------------------- */
header {
  background: #FFFFFF;
  border-bottom: 1px solid #E7EAF1;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 20px;
  gap: 18px;
}
.main-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.04rem;
  color: #2C3240;
  padding: 7px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-bottom-color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #D1B3A1;
  border-bottom: 2px solid #D1B3A1;
}
.cta-button {
  display: inline-block;
  background: #2C3240;
  color: #FFF;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  border-radius: 50px;
  padding: 13px 32px;
  margin-left: 18px;
  box-shadow: 0 1px 8px 0 rgba(44,50,64,0.10);
  border: 2px solid #2C3240;
  transition: background 0.22s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  text-align: center;
}
.cta-button:hover,
.cta-button:focus {
  background: #FFFFFF;
  color: #2C3240;
  border-color: #D1B3A1;
  box-shadow: 0 2px 12px 0 rgba(44,50,64,0.18);
}

/* Hide mobile nav by default, show burger */
.mobile-menu-toggle {
  display: none;
  background: #FFF;
  color: #2C3240;
  font-size: 2.1rem;
  padding: 2px 12px;
  border-radius: 8px;
  border: 2px solid #E7EAF1;
  margin-left: 26px;
  transition: background 0.18s, color 0.18s;
  z-index: 120;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #F7F9FC;
  color: #D1B3A1;
}
.mobile-menu {
  display: none;
}

@media (max-width: 1000px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(44, 50, 64, 0.92);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.88,.06,.21,.96);
  opacity: 1;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 22px;
  background: #2C3240;
  color: #FFF;
  font-size: 2rem;
  padding: 4px 10px 7px 10px;
  border-radius: 8px;
  border: none;
  z-index: 10100;
  transition: background 0.15s, color 0.15s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #D1B3A1;
  color: #2C3240;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  background: none;
  margin-top: 80px;
  margin-left: 7vw;
}
.mobile-nav a {
  color: #FFF;
  font-size: 1.28rem;
  padding: 12px 0;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 0.18s;
  border-radius: 3px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #D1B3A1;
  background: #F7F9FC;
}
@media (max-width: 480px) {
  .mobile-nav {
    margin-left: 14px;
    gap: 20px;
    margin-top: 60px;
  }
  .mobile-menu-close {
    top: 12px; right: 8px;
  }
}

/* --------------
   BUTTON STYLES
---------------- */
button, .btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  padding: 10px 26px;
  background: #D1B3A1;
  color: #2C3240;
  transition: background 0.17s, color 0.17s, box-shadow 0.22s;
}
button:hover, button:focus, .btn:hover, .btn:focus {
  background: #2C3240;
  color: #FFF;
  box-shadow: 0 3px 18px 0 rgba(44,50,64,0.11);
}

/* Extra: inline small button for cookie and close */
.btn-inline {
  padding: 2px 16px;
  font-size: 0.95rem;
  border-radius: 7px;
  background: #F5F6F9;
  color: #2C3240;
  font-weight: 600;
  border: 1px solid #E7EAF1;
  margin-left: 10px;
  margin-right: 10px;
}
.btn-inline:hover, .btn-inline:focus {
  background: #D1B3A1;
  color: #2C3240;
}

/* Card highlight feature */
.card-accent {
  border: 2px solid #D1B3A1;
  box-shadow: 0 2px 24px 0 rgba(209,179,161,0.10);
}

/* ---------------
   TESTIMONIALS
----------------- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 1px 18px 0 rgba(44, 50, 64, 0.08);
  margin-bottom: 20px;
  transition: box-shadow 0.22s;
  color: #223;
}
.testimonial-card p {
  color: #22222E;
  font-size: 1.03rem;
  margin-bottom: 4px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.6;
}
.testimonial-name {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 0.99rem;
  font-weight: 600;
  color: #455065;
}
@media (max-width: 768px) {
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 16px 9px;
    margin-bottom: 16px;
  }
}

/* -------------
   FOOTER
--------------- */
footer {
  background: #2C3240;
  color: #FFF;
  margin-top: 40px;
  padding: 40px 0 18px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 14px;
}
.footer-menu a {
  color: #D1B3A1;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.18s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: #FFF;
  text-decoration: underline;
}
.brand-contacts {
  color: #FFF;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 5px;
}
.brand-contacts a {
  color: #D1B3A1;
  text-decoration: underline;
}
.social-links {
  display: flex;
  gap: 18px;
  align-items: center;
}
.social-links img {
  width: 32px;
  height: 32px;
  opacity: 0.72;
  filter: grayscale(10%);
  transition: opacity 0.18s, filter 0.18s;
}
.social-links img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
  }
}

/* ---------------------
   COOKIE CONSENT BANNER
----------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #2C3240;
  color: #FFF;
  z-index: 10500;
  width: 100vw;
  padding: 24px 30px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  box-shadow: 0 -4px 24px 0 rgba(44,50,64,0.12);
  font-size: 1rem;
  transition: transform 0.39s cubic-bezier(.82,.09,.23,1.33), opacity 0.28s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(110%);
  pointer-events: none;
}
.cookie-banner .cookie-msg {
  flex: 1 1 250px;
  color: #FFF;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.cookie-banner button {
  margin-right: 0;
  font-size: 0.98rem;
  padding: 10px 22px;
  background: #D1B3A1;
  color: #2C3240;
  border-radius: 50px;
  border: none;
  margin-left: 0;
  font-weight: 600;
  transition: background 0.22s, color 0.22s;
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  background: #FFF;
  color: #2C3240;
}
.cookie-banner .cookie-settings-btn {
  background: transparent;
  border: 1.5px solid #D1B3A1;
  color: #D1B3A1;
  transition: background 0.15s, color 0.13s;
}
.cookie-banner .cookie-settings-btn:hover,
.cookie-banner .cookie-settings-btn:focus {
  background: #D1B3A1;
  color: #2C3240;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 6px;
    gap: 11px;
    font-size: 0.98rem;
  }
  .cookie-banner .cookie-actions {
    justify-content: flex-start;
  }
}

/* Cookie preferences modal */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(44,50,64,0.85);
  z-index: 10600;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.28s;
}
.cookie-modal-overlay.active {
  display: flex;
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #FFF;
  color: #2C3240;
  padding: 38px 26px 32px 26px;
  border-radius: 17px;
  box-shadow: 0 2px 34px 0 rgba(44,50,64,0.22);
  min-width: 300px;
  max-width: 96vw;
  width: 410px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.38rem;
  color: #2C3240;
  margin-bottom: 10px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category {
  padding: 13px 0 9px 0;
  border-bottom: 1px solid #E7EAF1;
  font-size: 1rem;
  color: #2C3240;
  font-weight: 500;
}
.cookie-modal .switch {
  width: 38px;
  height: 22px;
  position: relative;
  display: inline-block;
}
.cookie-modal .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #E7EAF1;
  border-radius: 22px;
  transition: background 0.18s;
}
.cookie-modal .switch input:checked + .slider {
  background: #D1B3A1;
}
.cookie-modal .slider:before {
  content: '';
  position: absolute;
  left: 4px; top: 3px;
  width: 16px;
  height: 16px;
  background: #FFF;
  border-radius: 50%;
  transition: transform 0.18s;
}
.cookie-modal .switch input:checked + .slider:before {
  transform: translateX(16px);
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 24px;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  top: 12px; right: 18px;
  background: transparent;
  color: #2C3240;
  font-size: 1.35rem;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-modal .close-cookie-modal:hover,
.cookie-modal .close-cookie-modal:focus {
  color: #D1B3A1;
}
@media (max-width: 540px) {
  .cookie-modal {
    padding: 18px 7vw 17px 7vw;
    width: 95vw;
    min-width: 0;
  }
}

/* -------------
   RESPONSIVE
--------------- */
@media (max-width: 700px) {
  .header-inner {
    flex-direction: row;
    gap: 8px;
  }
  .brand-contacts {
    font-size: 0.97rem;
  }
  .section {
    padding: 13px 2px;
    margin-bottom: 18px;
  }
}
@media (max-width: 570px) {
  h1, .h1 { font-size: 1.75rem; }
  h2, .h2 { font-size: 1.19rem; }
  .cta-button, .btn, button { font-size: 0.98rem; padding: 10px 16px; }
}

/* Extra Spacing helpers */
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 20px !important; }
.mb-4 { margin-bottom: 24px !important; }

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

/* -------
 Animations
--------- */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.4s forwards;
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
.slide-in-right {
  transform: translateX(80vw);
  opacity: 0;
  animation: slideInRight 0.4s forwards;
}
@keyframes slideInRight {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* -----------
 UTILITIES
------------- */
.d-flex {
  display: flex !important;
}
.justify-between { justify-content: space-between !important; }
.align-center { align-items: center !important; }
.gap-2 { gap: 20px !important; }
.gap-3 { gap: 24px !important; }

/* -----------
  FORMS (inputs if added in the future)
------------- */
input, textarea, select {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #2C3240;
  background: #FFF;
  border: 1.3px solid #E7EAF1;
  border-radius: 6px;
  padding: 12px 14px;
  outline: none;
  margin-bottom: 12px;
  transition: border-color 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: #D1B3A1;
}

/* --- Misc --- */
::-webkit-scrollbar {
  width: 10px; background: #F6F7FA;
}
::-webkit-scrollbar-thumb {
  background: #D1B3A1;
  border-radius: 7px;
}

/* ---------------
  END OF STYLES
----------------- */
