/* =========================
   Silent Mirage Lab CSS
   Elegant Classic Style
   ========================= */

/* 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%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  background: #F2E9E4;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Georgia, Times, 'Times New Roman', serif;
  font-size: 16px;
  color: #22223B;
  background: #F2E9E4;
  line-height: 1.7;
}
@media (max-width: 425px) {
  body { font-size: 15px; }
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: #22223B;
  text-decoration: none;
  transition: color 0.25s;
}
a:focus,
a:hover {
  color: #C9ADA7;
  outline: none;
}
ul, ol {
  margin-left: 1.25em;
  padding-left: 0.5em;
}
strong {
  font-weight: 700;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

/* Typography Scale (Elegant Classic) */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', 'Georgia', serif;
  font-feature-settings: "kern", "liga" on;
  color: #22223B;
  letter-spacing: 0.02em;
  font-weight: 600;
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 24px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.18;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
  font-weight: 500;
}
h4 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

.subheadline {
  font-size: 1.3rem;
  color: #5A5368;
  margin-bottom: 2rem;
  font-family: 'Roboto', serif;
}

/* Section & Spacing Patterns */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  max-width: 700px;
  margin: 0 auto;
}

/* Card Layout Patterns */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(34,34,59,0.06);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 24px 18px 24px;
  min-width: 220px;
  transition: box-shadow 0.24s, transform 0.22s;
}
.card:hover {
  box-shadow: 0 5px 18px 0 rgba(34,34,59,0.18);
  transform: translateY(-2px);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* Feature & Testimonial Patterns */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 260px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 6px 0 rgba(34,34,59,0.07);
  padding: 22px 18px 18px;
  min-width: 210px;
  transition: box-shadow 0.22s, transform 0.21s;
}
.feature-item img {
  width: 40px; height: 40px;
  margin-bottom: 10px;
  opacity: 0.95;
}
.feature-item:hover {
  box-shadow: 0 4px 16px 0 rgba(34,34,59,0.14);
  transform: translateY(-2px) scale(1.02);
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #fff;
  color: #22223B;
  font-style: italic;
  border-left: 6px solid #C9ADA7;
  border-radius: 10px;
  box-shadow: 0 2px 8px 0 rgba(34,34,59,0.08);
  padding: 20px 32px 20px 26px;
  margin-bottom: 24px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.testimonial-card strong {
  color: #22223B;
  font-style: normal;
  font-weight: 600;
  text-align: right;
  font-size: 1.06em;
  align-self: flex-end;
}
.testimonial-card:hover {
  box-shadow: 0 6px 18px 0 rgba(34,34,59,0.14);
  border-left: 6px solid #22223B;
}

/* CTA Button & Links */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', Georgia, serif;
  background: #22223B;
  color: #fff;
  border-radius: 6px;
  padding: 12px 28px;
  font-size: 1.07rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-top: 12px;
  box-shadow: 0 1px 4px 0 rgba(34,34,59,0.08);
  transition: background 0.23s, color 0.23s, box-shadow 0.2s, transform 0.12s;
  border: none;
  cursor: pointer;
  outline: none;
}
.cta-button:hover, .cta-button:focus {
  background: #C9ADA7;
  color: #22223B;
  box-shadow: 0 3px 15px 0 rgba(34,34,59,0.18);
  transform: translateY(-1px);
}

/* Header Styles */
header {
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(34,34,59,0.07);
  padding: 0;
  position: relative;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}
header a img {
  height: 40px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 34px;
}
.main-nav a {
  font-family: 'Oswald', Georgia, serif;
  font-size: 1.05em;
  color: #5A5368;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
  position: relative;
  transition: color 0.23s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #22223B;
  border-bottom: 2px solid #C9ADA7;
}

.header .cta-button {
  margin-left: 40px;
}

/* Burger (mobile) menu styles */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  color: #22223B;
  font-size: 2.1rem;
  border: none;
  cursor: pointer;
  margin-left: 16px;
  z-index: 51;
  transition: color 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #C9ADA7;
  outline: none;
}
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: inline-flex; }
  .cta-button { display: none; }
}

.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,34,59,0.98);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 36px 0 0 0;
  z-index: 1000;
  transform: translateX(-120%);
  transition: transform 0.39s cubic-bezier(0.6,0.15,0.4,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: #fff;
  background: transparent;
  border: none;
  align-self: flex-end;
  margin: 0 28px 28px 0;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
  transition: color 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #C9ADA7;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 14px 36px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Oswald', Georgia, serif;
  font-size: 1.45em;
  color: #fff;
  padding: 9px 0;
  border-bottom: 1px solid rgba(249,245,240,0.10);
  transition: color 0.23s, background 0.20s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #C9ADA7;
  background: rgba(242,233,228,0.11);
}
@media (min-width: 1025px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* Footer Styles */
footer {
  background: #22223B;
  color: #fff;
  font-size: 0.98rem;
  padding-top: 32px;
  padding-bottom: 26px;
  margin-top: 60px;
}
footer .footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  margin-bottom: 18px;
}
footer .footer-nav a {
  color: #C9ADA7;
  font-family: 'Oswald', Georgia, serif;
  font-size: 1em;
  transition: color 0.2s;
}
footer .footer-nav a:hover, 
footer .footer-nav a:focus {
  color: #F2E9E4;
}
footer p {
  color: #fff;
  opacity: 0.9;
}

/* List, Map, Misc Styles */
ul {
  list-style-type: disc;
  margin-bottom: 18px;
  line-height: 1.75;
}
ol {
  list-style-type: decimal;
  margin-bottom: 18px;
  line-height: 1.75;
}
li {
  margin-bottom: 8px;
}

.map-placeholder {
  background: #F2E9E4;
  border: 1.5px solid #C9ADA7;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 18px;
  color: #22223B;
  font-size: 1.01em;
}

/* Responsive Utilities */
@media (max-width: 900px) {
  .container { max-width: 98vw; }
  .feature-grid, .content-grid {
    flex-direction: column;
    gap: 22px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.08rem; }
  .section {
    margin-bottom: 42px;
    padding: 28px 6px;
  }
  .card, .feature-item {
    padding: 14px 10px;
    min-width: 160px;
  }
  .testimonial-card {
    padding: 16px 12px 16px 14px;
  }
  .main-nav, .footer-nav { gap: 14px; }
}
@media (max-width: 425px) {
  .container { padding-left: 6px; padding-right: 6px; }
  .mobile-nav { padding: 10px 8px; }
  .feature-item img { width: 30px; height: 30px; }
}

/* Micro-interactions */
li, .feature-item, .testimonial-card, .cta-button, .card {
  transition: box-shadow 0.22s, transform 0.18s, background 0.19s, color 0.18s;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  z-index: 1300;
  background: #22223B;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 2vw 22px 2vw;
  box-shadow: 0 -2px 24px 0 rgba(34,34,59,0.16);
  font-size: 1rem;
  flex-wrap: wrap;
  transition: transform 0.28s cubic-bezier(.55,.15,.52,1);
}
.cookie-banner.hidden {
  transform: translateY(110%);
}
.cookie-banner-content {
  flex: 1 1 220px;
  margin-right: 26px;
}
.cookie-buttons {
  display: flex;
  gap: 13px;
  align-items: center;
}
.cookie-btn {
  padding: 9px 24px;
  border-radius: 4px;
  border: none;
  font-family: 'Oswald', Georgia, serif;
  font-size: 0.97em;
  cursor: pointer;
  background: #fff;
  color: #22223B;
  font-weight: 500;
  transition: background .2s, color .19s;
}
.cookie-btn.accept {
  background: #C9ADA7;
  color: #22223B;
}
.cookie-btn.reject {
  background: #fff;
  color: #22223B;
  border: 1.5px solid #C9ADA7;
}
.cookie-btn.settings {
  background: #22223B;
  color: #fff;
  border: 1.5px solid #C9ADA7;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #F2E9E4;
  color: #22223B;
}

/* Cookie Modal Popup */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(34,34,59,0.60);
  z-index: 1350;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal {
  background: #fff;
  color: #22223B;
  border-radius: 10px;
  box-shadow: 0 18px 50px 0 rgba(34,34,59,0.18);
  max-width: 420px;
  width: 90vw;
  padding: 34px 27px 28px 27px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: slideModal 0.33s cubic-bezier(.55,.16,.51,1.01);
}
@keyframes slideModal { from { transform: translateY(60px); opacity: 0;} to { transform: translateY(0); opacity: 1; } }
.cookie-modal h2 {
  font-size: 1.35rem;
  margin-bottom: 7px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
  padding-bottom: 6px;
  font-size: 1em;
  border-bottom: 1px solid #C9ADA7;
}
.cookie-category .category-label {
  font-family: 'Roboto', serif;
  font-weight: 500;
}
.cookie-category input[type="checkbox"] {
  accent-color: #C9ADA7;
  width: 20px;
  height: 20px;
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 8px;
}
.cookie-modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  background: transparent;
  border: none;
  font-size: 1.36rem;
  color: #C9ADA7;
  cursor: pointer;
}
.cookie-modal-close:hover {
  color: #22223B;
}

/* Miscellaneous Styles */
p, .subheadline {
  margin-bottom: 20px;
  color: #22223B;
}

.section ul img, .content-wrapper ul img {
  display: inline-block;
  margin-right: 9px;
  vertical-align: middle;
  width: 18px;
  height: 18px;
  opacity: 0.9;
}

/* Utilities */
.mt-3 { margin-top: 24px; }
.mb-3 { margin-bottom: 24px; }

/* Prevent Overlapping */
.card, .feature-item, .testimonial-card, .section, .content-wrapper, .content-grid, .text-image-section {
  margin-bottom: 20px;
}

/* Focus outline for accessibility */
a:focus, button:focus, .cta-button:focus, .cookie-btn:focus {
  outline: 2px solid #C9ADA7;
  outline-offset: 2px;
}

/* Hide visually but keep accessible */
.sr-only {
  border: 0; 
  clip: rect(0 0 0 0); 
  height: 1px; 
  margin: -1px; 
  overflow: hidden; 
  padding: 0; 
  position: absolute; 
  width: 1px; 
}

/* Remove number input spinners for consistency */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}

/* Quasi-form highlight for contact email/tel */
.content-wrapper a[href^="mailto"],
.content-wrapper a[href^="tel"] {
  color: #22223B;
  border-bottom: 1.5px dotted #C9ADA7;
  transition: color 0.2s, border-bottom-color 0.16s;
}
.content-wrapper a[href^="mailto"]:hover,
.content-wrapper a[href^="tel"]:hover {
  color: #C9ADA7;
  border-bottom: 1.5px solid #C9ADA7;
}

/* Hide map placeholder on very small devices */
@media (max-width: 420px) {
  .map-placeholder { display: none; }
}

/* END Silent Mirage Lab CSS */