/* --- CSS RESET & BASE --- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F5F3EB;
  color: #2D3142;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}
img, svg {
  max-width: 100%;
  display: block;
}
main {
  flex: 1 0 auto;
}
/* Remove system button appearance */
button, input, select, textarea {
  font-family: inherit;
  border-radius: 0;
  border: none;
  background: none;
  color: inherit;
  box-shadow: none;
}
button, [type='button'], [type='submit'] {
  cursor: pointer;
}
a {
  color: #7F593D;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #A0A3B3;
  text-decoration: underline;
}

/* --- PALE MIRAGE VINTAGE RETRO PALETTE --- */
:root {
  --pm-primary: #2D3142;         /* deep indigo navy */
  --pm-secondary: #A0A3B3;       /* silvery gray */
  --pm-accent: #F5F3EB;          /* light cream */
  --pm-vintage-pink: #EFAA9A;    /* retro coral-pink */
  --pm-old-gold: #D2A974;        /* vintage gold */
  --pm-turquoise: #8FC7C9;       /* faded turquoise */
  --pm-brown: #7F593D;           /* walnut brown */
  --pm-paper: #F8EFE0;           /* paper beige */
  --pm-label: #373A3C;           /* dark label text */
  --pm-card-border: #CBB299;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  font-weight: 700;
  color: var(--pm-primary);
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}
h1 { font-size: 2.25rem; line-height: 1.1; margin-bottom: 20px; }
h2 { font-size: 1.6rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 8px; }
h4, h5, h6 { font-size: 1.1rem; }
.subheadline {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  color: var(--pm-brown);
  margin-bottom: 28px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
p, ul, ol, address {
  font-size: 1rem;
  color: var(--pm-label);
  margin-bottom: 18px;
}
ul, ol {
  padding-left: 22px;
}

/* --- CONTAINER & FLEX LAYOUTS --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- FLEXBOX LAYOUTS (REQUIRED) --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--pm-paper);
  border-radius: 27px;
  box-shadow: 0 3px 18px 0 rgba(45,49,66,0.07);
  border: 2px dashed var(--pm-card-border);
}
.card-container, .feature-grid, .service-list, .monthly-calendar-table {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 16px;
  background: var(--pm-accent);
  box-shadow: 0 4px 16px 0 rgba(125, 94, 74, 0.08), 0 0.5px 2px 0 rgba(111, 134, 122, 0.04);
  border: 1.5px solid var(--pm-old-gold);
  transition: box-shadow 0.25s;
}
.card:hover {
  box-shadow: 0 12px 36px 0 rgba(125, 94, 74, 0.17), 0 2px 8px 0 rgba(111, 134, 122, 0.09);
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--pm-accent);
  border-radius: 18px;
  border: 1.5px solid var(--pm-vintage-pink);
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(125, 94, 74, 0.11);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.monthly-calendar-table {
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: var(--pm-accent);
  border-radius: 14px;
  border: 1.5px solid var(--pm-turquoise);
  box-shadow: 0 2px 8px rgba(111,134,122,0.04);
  padding: 18px 22px;
}
.service-list>div {
  min-width: 220px;
  flex: 1 1 230px;
  background: var(--pm-paper);
  border-radius: 15px;
  border: 1.5px solid var(--pm-old-gold);
  padding: 18px 16px;
  box-shadow: 0 1.5px 7px rgba(127,89,61,0.05);
  margin-bottom: 20px;
  transition: box-shadow 0.23s, transform 0.25s;
}
.service-list>div:hover {
  box-shadow: 0 4px 24px 0 rgba(45,49,66,0.18);
  transform: translateY(-4px) scale(1.02);
}
.price {
  display: inline-block;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--pm-old-gold);
  background: var(--pm-paper);
  border-radius: 10px;
  padding: 3px 9px;
  margin-top: 5px;
  font-weight: 600;
}
.button-primary,
.button-primary:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pm-vintage-pink);
  color: var(--pm-primary);
  border-radius: 30px;
  padding: 13px 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: 13px;
  margin-bottom: 8px;
  border: 2px solid var(--pm-old-gold);
  box-shadow: 0 2px 11px 0 rgba(232,173,139,0.09);
  transition: background 0.22s, color 0.22s, box-shadow 0.22s;
  text-shadow: 0 1px 2px rgba(255,255,255,0.08);
}
.button-primary:hover, .button-primary:focus {
  background: var(--pm-old-gold);
  color: var(--pm-primary);
  box-shadow: 0 7px 32px 0 rgba(232,173,139,0.21);
  outline: none;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
/* --- HEADER & NAVBAR --- */
header {
  background: var(--pm-accent);
  box-shadow: 0 2px 13px rgba(45,49,66,0.09);
  padding-top: 10px;
  padding-bottom: 10px;
  width: 100%;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
header nav {
  flex: 1 1 auto;
  gap: 8px;
  margin-left: 32px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--pm-brown);
  text-decoration: none;
  padding: 8px 17px;
  border-radius: 18px;
  transition: background 0.17s, color 0.17s;
}
header nav a:hover, header nav a:focus {
  background: var(--pm-old-gold);
  color: var(--pm-primary);
}
header a.button-primary {
  margin-left: 26px;
  min-width: 200px;
}

/* --- LOGOS --- */
header img, footer img {
  height: 52px;
  width: auto;
}
footer img {
  height: 41px;
  margin-bottom: 10px;
}

/* --- FOOTER --- */
footer {
  background: var(--pm-secondary);
  color: var(--pm-accent);
  padding: 40px 0 25px;
  font-size: 0.98rem;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  justify-content: space-between;
  flex-wrap: wrap;
}
footer nav {
  gap: 11px;
}
footer nav a {
  color: var(--pm-accent);
  background: none;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 0.98rem;
  transition: color 0.14s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--pm-old-gold);
}
.contact-data {
  font-style: normal;
  color: var(--pm-accent);
  opacity: 0.94;
  margin-top: 11px;
}

/* -------- VINTAGE/RETRO DETAILS -------- */
.section {
  background: linear-gradient(135deg, #F8EFE0 75%, #EFAA9A11 100%);
  border-width: 1.5px 1.5px 2.5px 1.5px;
  border-style: dashed;
  border-color: var(--pm-old-gold);
  position: relative;
}
.section:before {
  content: "";
  display: block;
  position: absolute;
  left: 16px;
  top: 16px;
  width: 38px;
  height: 38px;
  background: url('../assets/retro-corner-left.svg') no-repeat center/contain;
  opacity: 0.14;
  z-index: 0;
  pointer-events: none;
}
.section:after {
  content: "";
  display: block;
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 38px;
  height: 38px;
  background: url('../assets/retro-corner-right.svg') no-repeat center/contain;
  opacity: 0.14;
  z-index: 0;
  pointer-events: none;
}
.content-wrapper {
  position: relative;
  z-index: 2;
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  background: #FFF7F2;
  border: 1.5px solid var(--pm-vintage-pink);
  color: var(--pm-primary);
  font-size: 1.02rem;
  font-style: italic;
  position: relative;
  min-height: 90px;
  box-shadow: 0 2px 12px rgba(232,173,139,0.10);
}
.testimonial-card span {
  color: var(--pm-old-gold);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.99rem;
  margin-left: 20px;
  font-weight: 700;
}
.testimonial-card:before {
  content: "\201C";
  font-family: 'Georgia', serif;
  position: absolute;
  left: 13px;
  top: 12px;
  color: #EFAA9Aaa;
  font-size: 2.2rem;
  line-height: 1;
  opacity: 0.45;
  z-index: 1;
}

/* --- LISTS / OLDSCHOOL BULLETS --- */
ul li {
  position: relative;
  padding-left: 19px;
  margin-bottom: 6px;
}
ul li:before {
  content: '';
  display: inline-block;
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pm-old-gold);
}
.section ul li:before {
  background: var(--pm-vintage-pink);
}
ol li {
  margin-bottom: 6px;
}

/* --- TABLES (used for card-grid in lunar calendar) --- */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 20px;
  background: var(--pm-paper);
  border-radius: 10px;
  border: 1.5px solid var(--pm-turquoise);
}
th, td {
  padding: 9px 13px;
  text-align: left;
}
th {
  background: var(--pm-turquoise);
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--pm-primary);
}

/* --- ADDRESS --- */
address {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.8;
}

/* --- FORM ELEMENTS --- */
input, textarea, select {
  background: var(--pm-accent);
  border: 1.5px solid var(--pm-turquoise);
  border-radius: 6px;
  padding: 10px 13px;
  font-size: 1rem;
  margin-bottom: 15px;
  transition: border 0.2s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--pm-vintage-pink);
  outline: none;
}

/* --- RESPONSIVE LAYOUTS --- */
@media (max-width: 1070px) {
  .container, footer .container {
    max-width: 990px;
  }
}
@media (max-width: 850px) {
  .container, footer .container {
    max-width: 740px;
  }
  .content-grid, .card-container, .service-list, .feature-grid { gap: 14px; }
}
@media (max-width: 768px) {
  .container, footer .container {
    max-width: 98%;
    padding-left: 8px;
    padding-right: 8px;
    flex-direction: column;
    gap: 20px;
  }
  .content-wrapper, .section {
    padding: 26px 8px;
  }
  .content-grid, .card-container, .feature-grid, .service-list, .monthly-calendar-table {
    flex-direction: column;
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  header .container, footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
  header img {
    height: 41px;
  }
  .button-primary {
    min-width: 163px;
    padding: 10px 20px;
    font-size: 0.99rem;
  }
  footer img {
    display: block;
    margin: 0 auto 8px auto;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- MOBILE BURGER MENU --- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 120;
  background: var(--pm-vintage-pink);
  border-radius: 50%;
  border: 2px solid var(--pm-old-gold);
  width: 44px;
  height: 44px;
  font-size: 2rem;
  justify-content: center;
  align-items: center;
  color: var(--pm-primary);
  box-shadow: 0 3px 13px #edae9018;
  transition: background 0.15s, box-shadow 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--pm-old-gold);
  color: var(--pm-primary);
}
.mobile-menu {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(47,44,37,0.97);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-60vw);
  transition: opacity 0.32s cubic-bezier(.7,.21,.35,1), visibility 0s linear 0.32s, transform 0.35s cubic-bezier(.74,-0.05,.32,1);
}
.mobile-menu.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  transition-delay: 0s, 0s, 0s;
}
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 28px;
  z-index: 211;
  background: var(--pm-vintage-pink);
  color: var(--pm-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--pm-old-gold);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 9px #dac09a1a;
  transition: background 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--pm-old-gold);
}
.mobile-menu nav.mobile-nav {
  margin: 65px 0 0 0;
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}
.mobile-nav a {
  display: block;
  width: 100vw;
  padding: 19px 34px 14px 34px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.21rem;
  letter-spacing: 0.04em;
  color: #FFF7F2;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--pm-vintage-pink);
  color: var(--pm-primary);
}
@media (max-width: 950px) {
  header nav {
    display: none;
  }
  header a.button-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
/* Normalize menu for desktop */
@media (min-width: 951px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* --- MICRO-INTERACTIONS & ANIMATIONS --- */
.button-primary, .card, .service-list>div {
  will-change: transform, box-shadow, background;
}
.card, .service-list>div, .testimonial-card {
  transition: box-shadow 0.21s, transform 0.18s;
}
.card:hover, .service-list>div:hover, .testimonial-card:hover {
  box-shadow: 0 14px 32px 0 rgba(232,173,139,0.17);
  transform: translateY(-2px) scale(1.013);
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  z-index: 4000;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #FFF7F2;
  border-top: 3px solid var(--pm-old-gold);
  box-shadow: 0 -2px 17px 0 #EFAA9A33;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 20px 30px;
  gap: 24px;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.32s, transform 0.32s;
  font-size: 1rem;
}
.cookie-banner.show {
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner__message {
  flex: 3 1 280px;
  color: var(--pm-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  margin-right: 6px;
}
.cookie-banner__actions {
  flex: 2 1 180px;
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}
.cookie-banner .cookie-btn {
  background: var(--pm-old-gold);
  color: var(--pm-primary);
  border-radius: 17px;
  padding: 8px 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: 1.5px solid var(--pm-vintage-pink);
  box-shadow: 0 1px 6px #e6c3aa2a;
  margin-right: 7px;
  transition: background 0.19s, color 0.14s;
}
.cookie-banner .cookie-btn.settings {
  background: var(--pm-turquoise);
  color: var(--pm-primary);
  border: 1.5px solid var(--pm-old-gold);
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: var(--pm-vintage-pink);
  color: var(--pm-primary);
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 17px 12px 17px 18px;
    font-size: 0.98rem;
  }
  .cookie-banner__actions {
    gap: 8px;
  }
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 4100;
  background: rgba(34, 32, 27, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal__content {
  background: #FFF9F1;
  border-radius: 18px;
  border: 2.4px solid var(--pm-old-gold);
  box-shadow: 0 8px 44px #cea1702d;
  max-width: 425px;
  width: 93vw;
  padding: 34px 26px 28px 26px;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--pm-primary);
  display: flex;
  flex-direction: column;
  gap: 13px;
  position: relative;
  animation: fadeInUp 0.35s cubic-bezier(.67,-0.06,.27,1.23) 0s 1;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-modal__close {
  position: absolute;
  top: 14px; right: 16px;
  background: var(--pm-vintage-pink);
  color: var(--pm-primary);
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--pm-old-gold);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s;
  z-index: 1;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  background: var(--pm-old-gold);
}
.cookie-modal__title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.32rem;
  margin-bottom: 5px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 19px 0 19px 0;
}
.cookie-category {
  background: var(--pm-paper);
  border-radius: 10px;
  border: 1px solid var(--pm-old-gold);
  padding: 12px 12px 7px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 1rem;
}
.cookie-category label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.01rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.cookie-modal__actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 12px;
}
.cookie-modal__actions button {
  background: var(--pm-old-gold);
  color: var(--pm-primary);
  border-radius: 15px;
  border: 1.5px solid var(--pm-turquoise);
  padding: 9px 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.14s, color 0.14s;
}
.cookie-modal__actions button:hover {
  background: var(--pm-vintage-pink);
}

/* --- ENABLED/ DISABLED TOGGLE --- */
.toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: 12px;
}
.toggle input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle .slider {
  position: relative;
  display: inline-block;
  background: var(--pm-turquoise);
  border-radius: 18px;
  width: 38px;
  height: 20px;
  transition: background 0.16s;
}
.toggle input:checked + .slider {
  background: var(--pm-old-gold);
}
.toggle .slider::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.19s;
}
.toggle input:checked + .slider::before {
  transform: translateX(16px);
}
.toggle .slider {
  box-shadow: 0 1px 6px #baa77e2e;
}
.toggle input:disabled + .slider {
  background: #bbb;
  opacity: 0.6;
}

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar { width: 12px; background: var(--pm-secondary); }
::-webkit-scrollbar-thumb { background: var(--pm-old-gold); border-radius: 7px; }
::-webkit-scrollbar-thumb:hover { background: var(--pm-brown); }

/* --- FOCUS STATES FOR ACCESSIBILITY --- */
a:focus, button:focus, input:focus {
  outline: 2.5px dashed var(--pm-old-gold);
  outline-offset: 2px;
}

/* --- MISCELLANEOUS --- */
::selection {
  background: var(--pm-vintage-pink);
  color: var(--pm-primary);
}

hr {
  border: none;
  border-top: 2px dashed var(--pm-old-gold);
  margin: 32px 0;
}

/* --- HIDE NON-RELEVANT DECORATION IF NO SVG AVAILABLE --- */
.section:before, .section:after { display: none; }
@media (min-width: 761px) {
  .section:before, .section:after { display: block; }
}

/* --- END CSS --- */
