/* CSS RESET & NORMALIZATION */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  height: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: #F7EDE1;
  color: #343357;
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img, svg {
  max-width: 100%;
  display: block;
}
a {
  color: #343357;
  text-decoration: none;
  transition: color 0.22s;
  outline: none;
}
a:focus {
  outline: 2px solid #C0A06F;
  outline-offset: 2px;
}
button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}
::selection {
  background: #C0A06F;
  color: #fff;
}

/* BRAND CSS VARIABLES */
:root {
  --primary: #343357;
  --secondary: #F7EDE1;
  --accent: #C0A06F;
  --text-dark: #272742;
  --text-light: #fff;
  --border-radius: 16px;
  --box-shadow: 0 4px 28px 0 rgba(52,51,87,0.11);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Montserrat', Arial, Helvetica, sans-serif;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.005em;
}
h1 {
  font-size: 2.7rem;
  margin-bottom: 24px;
  line-height: 1.13;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.15;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  line-height: 1.2;
}
.subheadline {
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
}
p, ul, ol {
  font-size: 1rem;
  color: var(--text-dark);
}
p {
  margin-bottom: 18px;
}
ul, ol {
  margin-bottom: 18px;
  padding-left: 23px;
}
li {
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
  color: var(--primary);
}

/* LAYOUT STRUCTURE */
.container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* SECTIONS */
section {
  background: transparent;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}
@media (max-width: 768px) {
  .section {
    padding: 32px 10px;
    margin-bottom: 35px;
  }
}

/* HEADER & NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 1px 8px 0 rgba(193,160,111,0.08);
  z-index: 100;
}
header .container {
  min-height: 74px;
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 0 solid transparent;
}
header a img {
  height: 48px;
  width: auto;
}
nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.03em;
  position: relative;
  padding: 4px 2px;
  border-radius: 8px;
  transition: background 0.22s, color 0.22s;
}
nav a:not(.cta-primary):hover,
nav a:not(.cta-primary):focus {
  background: #EFE9DF;
  color: var(--accent);
}
nav .cta-primary {
  background: var(--primary);
  color: #fff;
  border-radius: 8px 24px 8px 24px;
  box-shadow: 0 2px 10px 0 rgba(52,51,87,0.08);
  padding: 10px 24px;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: bold;
  letter-spacing: 0.015em;
  margin-left: 12px;
  border: 2px solid var(--accent);
  transition: background 0.22s, color 0.22s, box-shadow 0.22s;
}
nav .cta-primary:hover,
nav .cta-primary:focus {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 4px 20px 0 rgba(192,160,111,0.15);
  border-color: var(--primary);
}

@media (max-width: 980px) {
  header .container {
    flex-direction: row;
    gap: 8px;
  }
  nav {
    gap: 13px;
  }
  nav .cta-primary {
    padding: 8px 16px;
    margin-left: 6px;
  }
}

/* HIDE NAVIGATION ON MOBILE */
@media (max-width: 768px) {
  header nav {
    display: none;
  }
}

/* MOBILE MENU BUTTON */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 2px 8px rgba(52,51,87,0.06);
  z-index: 302;
  justify-content: center;
  align-items: center;
}
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 22px;
  background: var(--accent);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 1.6rem;
  z-index: 333;
  transition: background 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--primary);
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  width: 95vw;
  max-width: 380px;
  height: 100vh;
  background: #fff;
  box-shadow: -6px 0 64px 0 rgba(52,51,87,0.19);
  z-index: 300;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.66,.11,.11,1);
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav {
  margin-top: 72px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  align-items: flex-start;
  padding: 0 28px;
}
.mobile-nav a {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 1.2rem;
  width: 100%;
  border-radius: 10px;
  padding: 12px 10px 12px 4px;
  margin-bottom: 3px;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:active,
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: var(--secondary);
  color: var(--accent);
}

@media (min-width: 769px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}


/* MAIN LAYOUT SPACING */
main {
  min-height: 68vh;
  width: 100%;
  margin-top: 18px;
}
section {
  border: none;
  margin-bottom: 55px;
}
.content-wrapper {
  margin: 0 auto;
  width: 100%;
  max-width: 920px;
  padding: 0;
}
@media (max-width: 768px) {
  main {
    margin-top: 8px;
  }
  section {
    margin-bottom: 28px;
  }
  .content-wrapper {
    padding: 0;
  }
}

/* FLEXBOX CONTAINER PATTERNS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(52,51,87,0.09);
  margin-bottom: 20px;
  position: relative;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  min-width: 260px;
  min-height: 120px;
  border-left: 7px solid var(--accent);
  transition: box-shadow 0.22s;
}
.card:hover {
  box-shadow: 0 8px 33px rgba(52,51,87,0.16);
}
.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) {
  .card-container, .content-grid, .text-image-section {
    flex-direction: column;
    gap: 17px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  color: #272742;
  box-shadow: 0 2px 10px 0 rgba(52,51,87,0.09);
  border-radius: 16px 48px 16px 24px;
  border-left: 7px solid var(--primary);
  padding: 20px 28px 20px 28px;
  min-width: 210px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.2s background 0.2s;
}
.testimonial-card p {
  font-size: 1.08rem;
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: 8px;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 600;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  background: #F7EDE1;
  box-shadow: 0 6px 28px 0 rgba(192,160,111,0.14);
}

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

/* FAQ ACCORDION */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(52,51,87,0.07);
  background: #fff;
  margin-bottom: 14px;
  padding: 20px 24px;
  cursor: pointer;
  transition: box-shadow 0.18s;
  border-left: 5px solid var(--accent);
  position: relative;
}
.faq-item h3 {
  margin-bottom: 11px;
  font-family: var(--font-display);
  color: var(--primary);
}
.faq-item p {
  color: var(--text-dark);
  font-size: 1rem;
}
.faq-item:hover,
.faq-item:focus-within {
  box-shadow: 0 6px 16px 0 rgba(192,160,111,0.14);
}

/* BUTTONS & CTAs */
.cta-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  font-family: var(--font-display);
  font-size: 1.13rem;
  font-weight: bold;
  border-radius: 10px 28px 10px 28px;
  padding: 15px 40px;
  border: 2px solid var(--accent);
  letter-spacing: 0.03em;
  box-shadow: 0 3px 18px rgba(52,51,87,0.11);
  cursor: pointer;
  margin-top: 14px;
  margin-bottom: 14px;
  transition: background 0.22s, color 0.22s, box-shadow 0.22s, border-color 0.22s;
  text-align: center;
}
.cta-primary:hover,
.cta-primary:focus {
  background: var(--accent);
  color: var(--primary) !important;
  box-shadow: 0 8px 36px rgba(192,160,111,0.13);
  border-color: var(--primary);
}

button, .button {
  padding: 10px 26px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 8px 22px 8px 22px;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 2px 7px rgba(192,160,111,0.09);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
button:hover, .button:hover, button:focus, .button:focus {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 7px 22px rgba(52,51,87,0.10);
}

/* LISTS WITH ICONS */
ul li img, ol li img {
  height: 22px;
  width: 22px;
  margin-right: 9px;
  vertical-align: middle;
  display: inline-block;
}

/* SOCIAL LINKS */
.social-links {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 18px;
}
.social-links a img {
  width: 30px;
  height: 30px;
  display: block;
  border-radius: 7px;
  transition: filter 0.19s, box-shadow 0.14s;
}
.social-links a:hover img,
.social-links a:focus img {
  box-shadow: 0 3px 13px rgba(192,160,111,0.14);
  filter: brightness(0.85) sepia(0.22);
}

/* MAP PLACEHOLDER */
.map {
  background: repeating-linear-gradient(
    45deg,
    #EFE9DF,
    #EFE9DF 13px,
    #F7EDE1 13px,
    #F7EDE1 33px
  );
  font-size: 1.02rem;
  color: var(--primary);
  min-height: 130px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 15px;
  margin: 18px 0 24px 0;
  box-shadow: 0 2px 14px rgba(52,51,87,.06);
}

/* FOOTER */
footer {
  background: var(--primary);
  color: #fff;
  padding: 50px 0 24px 0;
  margin-top: 50px;
  width: 100%;
}
footer .container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 42px;
  flex-wrap: wrap;
  max-width: 1100px;
}
.footer-brand {
  display: flex;
  align-items: center;
  margin-bottom: 0;
}
.footer-brand img {
  width: 62px;
  height: 62px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  color: var(--accent);
  font-size: 1rem;
  padding: 3px 0;
  border-radius: 5px;
  font-family: var(--font-body);
  transition: color 0.18s, background 0.15s;
}
footer nav a:hover,
footer nav a:focus {
  color: var(--secondary);
  background: rgba(255,255,255,0.08);
}
.footer-contact {
  font-size: 0.97rem;
  line-height: 1.6;
}
.footer-contact p {
  color: var(--secondary);
  margin-bottom: 10px;
}
.footer-contact img {
  height: 16px;
  width: 16px;
  margin-right: 7px;
  display: inline-block;
  vertical-align: middle;
}
@media (max-width: 980px) {
  footer .container {
    flex-direction: column;
    gap: 25px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  footer {
    padding: 30px 0 18px 0;
    margin-top: 25px;
  }
  .footer-contact {
    font-size: 0.97rem;
  }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  color: #343357;
  border-top: 2px solid var(--accent);
  box-shadow: 0 -2px 24px 0 rgba(52,51,87,0.14);
  z-index: 1300;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  transition: transform 0.27s cubic-bezier(0.48,.09,.2,1), opacity 0.23s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
}
.cookie-banner__desc {
  font-size: 1.05rem;
  flex: 1 1 0;
  margin-bottom: 6px;
  color: var(--primary);
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 8px;
}
.cookie-banner__actions button {
  background: var(--accent);
  color: var(--primary);
  padding: 9px 23px;
  border-radius: 10px 22px 10px 22px;
  border: none;
  font-size: 1.01rem;
  font-family: var(--font-body);
  font-weight: 500;
  margin-right: 4px;
  transition: background 0.17s, color 0.17s;
  box-shadow: 0 1px 6px rgba(192,160,111,0.08);
}
.cookie-banner__actions button:hover, .cookie-banner__actions button:focus {
  background: var(--primary);
  color: #fff;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right:0; top:0; bottom:0;
  background: rgba(52,51,87,0.16);
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.20s;
  pointer-events: auto;
}
.cookie-modal-overlay.hide { opacity: 0; pointer-events: none; }
.cookie-modal {
  background: #fff;
  padding: 38px 24px 26px 24px;
  border-radius: 22px 50px 14px 38px;
  min-width: 330px;
  max-width: 95vw;
  max-height: 90vh;
  box-shadow: 0 8px 36px 0 rgba(52,51,87,0.18);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 21px;
}
.cookie-modal h2 {
  font-size: 1.38rem;
  margin-bottom: 16px;
}
.cookie-modal__close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  font-size: 1.15rem;
}
.cookie-modal__group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 24px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--primary);
}
.cookie-modal input[type='checkbox']:not(:disabled) {
  accent-color: var(--accent);
}
.cookie-modal input[type='checkbox']:disabled {
  accent-color: var(--primary);
  opacity: 0.7;
}
.cookie-modal .cookie-modal__actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 12px;
}
.cookie-modal__actions button {
  background: var(--accent);
  color: var(--primary);
  padding: 9px 19px;
  border-radius: 8px 20px 8px 18px;
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
  transition: background 0.17s, color 0.17s;
}
.cookie-modal__actions button:hover, .cookie-modal__actions button:focus {
  background: var(--primary);
  color: #fff;
}

@media (max-width: 480px) {
  .cookie-modal {
    min-width: 0;
    padding: 18px 7px 17px 7px;
  }
}

/* Z-INDEX LAYERS */
header { z-index: 100; position: relative; }
.mobile-menu { z-index: 300; }
.cookie-banner { z-index: 1300; }
.cookie-modal-overlay { z-index: 1400; }

/* ANIMATIONS */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(32px); }
  100% { opacity: 1; transform: translateY(0); }
}
.section, .testimonial-card, .faq-item, .cta-primary, .card {
  animation: fadeInUp 0.9s cubic-bezier(.44, 0, .22, 1) both;
}

/* GEOMETRIC/STRUCTURED VISUAL HINTS */
.section {
  border-radius: 16px 48px 16px 24px;
  box-shadow: 0 4px 28px 0 rgba(52,51,87,0.10);
  position: relative;
  overflow: hidden;
}
.section::before {
  content: '';
  display: block;
  position: absolute;
  top: -40px;
  right: -54px;
  width: 120px;
  height: 110px;
  background: var(--accent);
  opacity: 0.08;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%);
  pointer-events: none;
}
.card::after {
  content: '';
  display: block;
  position: absolute;
  left: 90%;
  top: 60%;
  width: 36px;
  height: 36px;
  background: var(--accent);
  opacity: 0.11;
  border-radius: 25% 75% 67% 33%/46% 48% 52% 54%;
  z-index: 1;
  pointer-events: none;
}
@media (max-width: 768px) {
  .section {
    border-radius: 18px 27px 12px 22px;
  }
  .section::before {
    top: -35px;
    right: -30px;
    width: 65px;
    height: 58px;
  }
}


/* VISUAL HIERARCHY SPACING */
.content-wrapper > *:not(:last-child) {
  margin-bottom: 20px;
}
.card:not(:last-child),
.testimonial-card:not(:last-child),
.faq-item:not(:last-child) {
  margin-bottom: 20px;
}
.section:not(:last-child) {
  margin-bottom: 60px;
}

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

/* ERROR/GENERIC STYLES */
[hidden] { display: none !important; }

/* ACCESSIBILITY HINTS */
:focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 1px;
}

/* PRINT FRIENDLY */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  section, main, body {
    background: #fff !important;
    color: #000 !important;
  }
}
