/* ---------------------------------------------------
   CSS RESET & BASE STYLES
--------------------------------------------------- */
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,
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;
  vertical-align: baseline;
  font: inherit;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  font-size: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  background: #F5F5F5;
  color: #232323;
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #383873;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #D4A373;
  text-decoration: underline;
  outline: none;
}
ul, ol {
  list-style-position: inside;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
}

/* ---------------------------------------------------
   TYPOGRAPHY
--------------------------------------------------- */
h1, .h1 {
  font-family: 'Roboto Slab', serif;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #383873;
  margin-bottom: 24px;
}
h2, .h2 {
  font-family: 'Roboto Slab', serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #383873;
}
h3, .h3 {
  font-family: 'Roboto Slab', serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #383873;
}
h4, .h4 {
  font-family: 'Roboto Slab', serif;
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: #383873;
}
.subheadline {
  font-size: 1.1rem;
  color: #232323;
  opacity: 0.7;
  margin-bottom: 20px;
}
p {
  margin-bottom: 16px;
}
strong {
  font-weight: 700;
  color: #383873;
}
ul, .text-section ul, .benefit-list, .article-list {
  padding-left: 20px;
  margin-bottom: 16px;
}
ul li, .benefit-list li, .article-list li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* ---------------------------------------------------
   HEADER & NAVIGATION
--------------------------------------------------- */
header {
  background: #fff;
  box-shadow: 0 1px 8px rgba(56, 56, 115, 0.04);
  position: relative;
  z-index: 100;
  padding: 0 0 0 0;
}
header .container,
header > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.branding {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0 18px 0;
}
.branding a {
  display: flex;
  align-items: center;
}
nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #383873;
  opacity: 0.9;
  position: relative;
  padding: 3px 0;
  transition: color 0.2s;
}
nav a:hover, nav a.active {
  color: #D4A373;
  opacity: 1;
}
.cta-btn {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  color: #fff;
  background: #383873;
  border: none;
  border-radius: 24px;
  padding: 12px 32px;
  font-size: 1.05rem;
  margin-left: 28px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 12px rgba(56,56,115,0.08);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  outline: none;
  display: inline-block;
}
.cta-btn:focus, .cta-btn:hover {
  background: #D4A373;
  color: #fff;
  box-shadow: 0 4px 18px rgba(212,163,115,0.17);
  text-decoration: none;
}

/* HAMBURGER MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 2rem;
  color: #383873;
  margin-left: 16px;
  cursor: pointer;
  outline: none;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: #D4A373;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: #fff;
  z-index: 2100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  box-shadow: -4px 0 32px rgba(56,56,115,.10);
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: -4px 0 64px rgba(56,56,115,0.18);
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: #383873;
  background: transparent;
  border: none;
  align-self: flex-end;
  margin: 22px 32px 0 0;
  cursor: pointer;
  transition: color 0.2s;
  outline: none;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #D4A373;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding: 32px 0 0 44px;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: #383873;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  padding: 10px 0;
  width: 90vw;
  display: inline-block;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #F5F5F5;
  color: #D4A373;
}
@media (max-width: 992px) {
  nav:not(.mobile-nav) {
    display: none;
  }
  .cta-btn {
    margin-left: 0;
    margin-right: 8px;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header > .branding,
  header > nav,
  header > .cta-btn,
  header > .mobile-menu-toggle {
    position: static;
  }
  header {
    padding: 0 0 0 0;
  }
}

@media (max-width: 600px) {
  .mobile-nav {
    padding-left: 24px;
  }
  .mobile-menu-close {
    margin-right: 12px;
  }
}

/* --------------------------------------------
   HERO SECTIONS & SECTIONS GENERAL
-------------------------------------------- */
.section,
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.container {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.text-section {
  gap: 12px;
}

@media (max-width: 768px) {
  .section, section {
    padding: 32px 8px;
    margin-bottom: 40px;
  }
  .container {
    padding: 0 8px;
  }
}

/* --------------------------------------------
   FLEX PATTERNS (MANDATORY)
-------------------------------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  padding: 30px 24px;
  box-shadow: 0 1px 8px rgba(56,56,115,0.05);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 4px 24px rgba(212,163,115,0.09);
  transform: translateY(-2px) scale(1.01);
}
.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) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 16px rgba(56,56,115,0.08);
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 360px;
  flex: 1 1 280px;
  transition: box-shadow 0.2s, transform 0.21s;
}
.testimonial-card:focus-within,
.testimonial-card:hover {
  box-shadow: 0 6px 36px rgba(56,56,115,0.10);
  transform: translateY(-2px) scale(1.01);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --------------------------------------------
   FEATURE GRIDS & SERVICE LISTS
-------------------------------------------- */
.feature-grid, .feature-list, .feature-icons, .service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 20px;
  justify-content: flex-start;
}
.feature-grid > div, .feature-list > div, .feature-icons > div, .service-grid > div {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 8px rgba(56,56,115,0.04);
  padding: 28px 20px 24px 20px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 330px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.2s, transform 0.16s;
}
.feature-grid > div:hover,
.feature-list > div:hover,
.feature-icons > div:hover,
.service-grid > div:hover {
  box-shadow: 0 4px 18px rgba(212,163,115,0.11);
  transform: translateY(-2px) scale(1.012);
}
.feature-grid img, .feature-list img, .feature-icons img {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  opacity: 0.92;
}
/* Service Lists */
.service-list, .article-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 16px;
  padding: 0;
}
.service-list li, .article-list li {
  background: #fff;
  padding: 24px 18px 22px 18px;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(56,56,115,0.03);
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.service-list strong {
  color: #D4A373;
  margin-top: 6px;
}
/* Extra grid tweaks for mobile */
@media (max-width: 900px) {
  .feature-grid, .feature-list, .feature-icons, .service-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .feature-grid > div, .feature-list > div, .feature-icons > div, .service-grid > div {
    min-width: 0;
    max-width: 100%;
  }
}

/* --------------------------------------------
   TABLES & PRICING
-------------------------------------------- */
.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  box-shadow: 0 1px 10px rgba(56,56,115,0.05);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 28px;
}
.pricing-table th,
.pricing-table td {
  text-align: left;
  padding: 18px 14px;
}
.pricing-table th {
  background: #F5F5F5;
  font-weight: 700;
  color: #383873;
  letter-spacing: 0.01em;
}
.pricing-table tbody tr + tr {
  border-top: 1px solid #ECECEC;
}
.pricing-table td {
  color: #232323;
  font-size: 1rem;
}
@media (max-width: 700px) {
  .pricing-table th, .pricing-table td {
    padding: 12px 8px;
    font-size: 0.99rem;
  }
  .pricing-table {
    font-size: 0.99rem;
  }
}

.note {
  margin: 18px 0 0 0;
  padding: 16px 14px;
  background: #fff7ef;
  color: #634820;
  border-radius: 10px;
  font-size: 0.98rem;
  box-shadow: 0 1px 8px rgba(212,163,115,.05);
}

.tip-highlights {
  margin: 24px 0 0 0;
  padding: 14px 18px;
  background: #f8f8fa;
  border-radius: 10px;
  font-size: 0.98rem;
}

.address-block {
  background: #fff;
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(56,56,115,0.04);
  margin-bottom: 20px;
}

/* --------------------------------------------
   TESTIMONIALS & RATINGS
-------------------------------------------- */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.rating-stars {
  display: flex;
  align-items: center;
  gap: 2px;
}
.testimonial-card p {
  color: #232323;
  font-size: 1rem;
  margin-bottom: 0;
}
.testimonial-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
  color: #383873;
  letter-spacing: 0.01em;
}

/* Ensure card text is always on white for contrast */
.testimonial-card {
  background: #fff;
  color: #232323;
}

/* --------------------------------------------
   FOOTER
-------------------------------------------- */
footer {
  background: #fff;
  border-top: 1px solid #ECECEC;
  padding: 36px 0 20px 0;
  color: #232323;
  position: relative;
  z-index: 2;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-navigation {
  min-width: 220px;
  margin-bottom: 18px;
}
.footer-navigation nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-navigation a {
  color: #383873;
  opacity: 0.75;
  font-size: 1rem;
  font-weight: 400;
  transition: color 0.19s,opacity 0.13s;
  margin-bottom: 2px;
}
.footer-navigation a:hover {
  color: #D4A373;
  opacity: 1;
}
.contact-summary {
  font-size: .99rem;
  line-height: 1.7;
  opacity: 0.92;
}
.brandname-and-tagline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.brandname-and-tagline img {
  width: 32px;
  height: 32px;
}
.brandname-and-tagline span {
  font-size: .99rem;
  color: #383873;
  font-weight: 600;
  font-family: 'Roboto Slab', serif;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
/* --------------------------------------------
   BUTTONS & INTERACTIVE ELEMENTS
-------------------------------------------- */
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  font-family: 'Roboto Slab', serif;
  font-weight: 600;
  background: #383873;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.16s;
  outline: none;
}
button:focus, button:hover,
input[type="button"]:focus, input[type="button"]:hover,
input[type="submit"]:focus, input[type="submit"]:hover {
  background: #D4A373;
  color: #fff;
  box-shadow: 0 2px 14px rgba(212,163,115,0.13);
}

/* Forms */
input[type="text"], input[type="email"], textarea {
  border: 1px solid #ECECEC;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 1rem;
  color: #232323;
  background: #fff;
  transition: border .15s;
  width: 100%;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border: 1.5px solid #D4A373;
  outline: none;
}
label {
  font-size: .99rem;
  font-weight: 500;
  color: #383873;
}

/* --------------------------------------------
   COOKIE CONSENT BANNER & MODAL
-------------------------------------------- */
.cookie-banner {
  position: fixed;
  z-index: 3000;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  box-shadow: 0 -4px 32px rgba(56,56,115,0.15);
  padding: 28px 16px 24px 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  font-size: 1rem;
  border-radius: 18px 18px 0 0;
  transition: transform 0.34s ease, opacity 0.22s ease;
}
.cookie-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner p {
  max-width: 480px;
  color: #232323;
}
.cookie-banner-buttons {
  display: flex;
  gap: 10px;
}
.cookie-btn {
  font-family: 'Roboto Slab', serif;
  background: #383873;
  color: #fff;
  border-radius: 18px;
  font-size: .97rem;
  font-weight: 600;
  border: none;
  padding: 10px 24px;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.13s, color 0.13s;
}
.cookie-btn.accept {
  background: #383873;
}
.cookie-btn.reject {
  background: #ECECEC;
  color: #383873;
}
.cookie-btn.settings {
  background: #fff;
  color: #383873;
  border: 1px solid #ECECEC;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #D4A373;
  color: #fff;
  outline: none;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    border-radius: 0;
  }
  .cookie-banner p {
    max-width: 100%;
    font-size: .99rem;
  }
  .cookie-banner-buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .cookie-btn {
    width: 100%;
  }
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 4000;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30,35,40,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.22s;
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  padding: 36px 24px 24px 24px;
  border-radius: 18px;
  max-width: 360px;
  width: 90vw;
  box-shadow: 0 1px 28px rgba(56,56,115,.12);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: modalIn .40s cubic-bezier(.4,0,.2,1);
}
@keyframes modalIn {
  0% { opacity: 0; transform: translateY(30px) scale(0.95); }
  100% { opacity: 1; transform: none; }
}
.cookie-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}
.cookie-switch-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid #f0f0f0;
}
.cookie-switch-label {
  font-size: 1rem;
  color: #232323;
}
.cookie-switch {
  position: relative;
  width: 42px;
  height: 22px;
  display: flex;
}
.cookie-switch input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ECECEC;
  border-radius: 13px;
  transition: background 0.21s;
}
.cookie-switch input[type="checkbox"]:checked + .cookie-slider {
  background: #D4A373;
}
.cookie-slider:before {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.21s;
}
.cookie-switch input[type="checkbox"]:checked + .cookie-slider:before {
  transform: translateX(18px);
}
.cookie-modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}
.cookie-modal-close {
  position: absolute;
  top: 11px;
  right: 13px;
  font-size: 1.5rem;
  color: #383873;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color .18s;
}
.cookie-modal-close:focus, .cookie-modal-close:hover {
  color: #D4A373;
}
.cookie-modal .hint {
  font-size: 0.93rem;
  color: #555;
  opacity: 0.8;
}
.cookie-switch-group[data-essential="true"] .cookie-switch-label,
.cookie-switch-group[data-essential="true"] .cookie-switch {
  opacity: 0.7;
  pointer-events: none;
  user-select: none;
}

/* --------------------------------------------
   MISCELLANEOUS
-------------------------------------------- */
::-webkit-input-placeholder { color: #aaa; opacity:1; }
::-moz-placeholder { color: #aaa; opacity:1; }
:-ms-input-placeholder { color: #aaa; opacity:1; }
::placeholder { color: #aaa; opacity:1; }

a.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
a.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  background: #D4A373;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  z-index: 3000;
}

/* --------------------------------------------
   RESPONSIVE TYPOGRAPHY & UTILITIES
-------------------------------------------- */
@media (max-width: 600px) {
  h1, .h1 { font-size: 1.45rem; }
  h2, .h2 { font-size: 1.12rem; }
  h3, .h3 { font-size: 1.05rem; }
  h4, .h4 { font-size: 1rem; }
  .cta-btn, button, .cookie-btn { font-size: 0.99rem; }
}

/* Utility gaps & whitespace */
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
.pt-20 { padding-top: 20px; }
.pb-20 { padding-bottom: 20px; }

/* Prevent card/text overlap */
section, .testimonial-card, .card, .feature-grid > div, .service-list li, .article-list li {
  margin-bottom: 20px;
}

/* Hide visually only but remain accessible */
.sr-only {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Ensure min tap targets for links/buttons on mobile */
@media (hover: none) and (pointer: coarse) {
  a, button, .cta-btn {
    min-height: 44px;
    min-width: 44px;
    font-size: 1rem;
  }
}

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