/* =======================================================
   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, input, button, section, article, aside, nav, header, footer, main, figure, figcaption {
  margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline;
}
html { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
*, *:before, *:after { box-sizing: inherit; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { border: 0; display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; border: none; background: none; outline: none; }
:root {
  --color-primary: #233047;
  --color-secondary: #F4E9D6;
  --color-accent: #D6A730;
  --color-bg: #FFF;
  --color-muted: #ece7de;
  --color-shadow: rgba(35,48,71,0.07);
  --color-border: #e3ddce;
  --color-link: #233047;
  --color-title: #233047;
  --color-text: #231f20;
  --color-card-bg: #fff8ef;
  --color-footer-bg: #233047;
  --color-footer-text: #ede5d6;
  --font-display: 'Libre Baskerville', 'Times New Roman', Times, serif;
  --font-body: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-size-base: 16px;
  --font-size-lg: 20px;
  --font-size-xl: 32px;
  --radius: 12px;
  --shadow: 0 2px 16px var(--color-shadow);
}
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: 1.7;
  letter-spacing: 0.01em;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =======================================================
   TYPOGRAPHY & HEADINGS
======================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-title);
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  line-height: 1.2;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.22;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.1rem;
}
p, ul, ol, li, .text-section {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 20px;
}
strong, b {
  font-weight: 700;
}
em, i {
  font-style: italic;
}
.text-section {
  margin-bottom: 20px;
}
.text-section ul {
  list-style: disc inside;
  margin-bottom: 20px;
}
.text-section li { margin-bottom: 10px; }

/* =======================================================
   HEADER & NAVIGATION
======================================================= */
header {
  background: var(--color-secondary);
  box-shadow: 0 2px 8px var(--color-shadow);
  position: relative;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px;
}
header img {
  height: 48px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
  position: relative;
  padding: 2px 0;
}
.main-nav a:not(.cta-btn):hover, .main-nav a:not(.cta-btn):focus {
  color: var(--color-accent);
}
.main-nav .cta-btn {
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: var(--radius);
  padding: 10px 26px;
  margin-left: 16px;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: 0 2px 8px var(--color-shadow);
  border: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.3s;
  cursor: pointer;
}
.main-nav .cta-btn:hover, .main-nav .cta-btn:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
  box-shadow: 0 6px 20px var(--color-shadow);
}
.mobile-menu-toggle {
  display: none;
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 50%;
  width: 48px; height: 48px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  margin-left: 10px;
  z-index: 51;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:active {
  background: var(--color-primary);
  color: var(--color-secondary);
}
/* Hamburger icon for accessibility */
@media (max-width: 992px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: var(--color-secondary);
  z-index: 200;
  padding: 32px 24px;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.73,.09,.36,1.29);
  box-shadow: 4px 0 32px var(--color-shadow);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 1.65rem;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 20px; right: 24px;
  cursor: pointer;
  border: none;
  z-index: 202;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 66px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 500;
  padding: 12px 12px;
  margin-right: 10px;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}

/* =======================================================
   MAIN LAYOUT & SPACING
======================================================= */
main { min-height: 50vh; margin-bottom: 40px; }
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* Flex spacing patterns (required classes) */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--color-shadow);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px 28px;
}
.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;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  max-width: 620px;
  transition: box-shadow 0.23s, border-color 0.23s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 6px 24px var(--color-shadow);
}
.testimonial-content p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.testimonial-author {
  font-size: 1.05rem;
  color: var(--color-text);
  font-family: var(--font-body);
  margin-top: 6px;
  display: block;
}
.star-rating {
  color: var(--color-accent);
  font-size: 1.3em;
  letter-spacing: 0.15em;
  margin-bottom: 4px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Highlights Numbers */
.highlight-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 32px;
  margin-bottom: 10px;
}
.highlight-numbers > div {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--color-primary);
  text-align: center;
  min-width: 120px;
  border-right: 1px solid var(--color-border);
  padding-right: 32px;
}
.highlight-numbers > div:last-child {
  border-right: none;
  padding-right: 0;
}

/* =======================================================
   FEATURE GRID & FLEX UTILITIES
======================================================= */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 20px;
}
.feature-grid > div {
  background: var(--color-card-bg);
  border-radius: var(--radius);
  padding: 28px 20px 22px 20px;
  min-width: 220px;
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 1px 6px var(--color-shadow);
  border: 1px solid var(--color-border);
  gap: 12px;
  transition: box-shadow 0.23s, border-color 0.25s;
  margin-bottom: 0;
  max-width: 340px;
}
.feature-grid > div img {
  width: 40px;
  height: 40px;
  margin-bottom: 7px;
}
.feature-grid > div h3 {
  font-size: 1.16rem;
  margin-bottom: 7px;
  color: var(--color-primary);
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 6px 20px var(--color-shadow);
  border-color: var(--color-accent);
}

/* =======================================================
   BUTTONS & LINKS
======================================================= */
.cta-btn, .btn, button[type="submit"] {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 14px 36px;
  border-radius: var(--radius);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 1px 8px var(--color-shadow);
  margin-top: 12px;
  margin-bottom: 10px;
  transition: background 0.23s, color 0.22s, box-shadow 0.22s, letter-spacing 0.18s;
  letter-spacing: 0.01em;
}
.cta-btn:hover, .cta-btn:focus, .btn:hover, .btn:focus, button[type="submit"]:hover, button[type="submit"]:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
  box-shadow: 0 6px 20px var(--color-shadow);
  letter-spacing: 0.04em;
}
a { color: var(--color-link); transition: color 0.18s; }
a:hover, a:focus { color: var(--color-accent); outline: none; }

/* Map Placeholder */
.map-placeholder {
  font-style: italic;
  color: #777;
  background: #faf6ed;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 24px 0 24px 24px;
  margin: 22px 0 18px 0;
  min-height: 60px;
}

/* =======================================================
   LISTS, TABLES & FORMATTING
======================================================= */
ul, ol {
  list-style: disc inside;
  margin-bottom: 18px;
}
ul li, ol li { margin-left: 8px; margin-bottom: 8px; }

/* =======================================================
   FOOTER LAYOUT
======================================================= */
footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 40px 0 0 0;
  border-top: 2px solid var(--color-border);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 30px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-links a {
  color: var(--color-footer-text);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: color 0.25s;
}
.footer-links a:hover, .footer-links a:focus { color: var(--color-accent); }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.97rem;
  color: var(--color-footer-text);
  font-family: var(--font-body);
}
.footer-address strong,
.footer-email strong,
.footer-hours strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.02em;
}
.footer-email a { color: var(--color-footer-text); word-break: break-all; }
.footer-email a:hover { color: var(--color-accent); }

/* =======================================================
   COOKIE CONSENT BANNER & MODAL
======================================================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 300;
  width: 100%;
  background: var(--color-card-bg);
  border-top: 1.5px solid var(--color-border);
  box-shadow: 0 -2px 14px var(--color-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 30px 22px 30px;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: transform 0.28s cubic-bezier(.64,.23,.45,1.22), opacity 0.22s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner .cookie-message {
  max-width: 540px;
  color: var(--color-primary);
  font-size: 1rem;
  margin-right: 16px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-btn {
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.17s, color 0.17s, box-shadow 0.22s;
  box-shadow: 0 1px 6px var(--color-shadow);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
}
.cookie-btn.settings {
  background: var(--color-secondary);
  color: var(--color-primary);
  border: 1px solid var(--color-accent);
}
.cookie-btn.settings:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

.cookie-modal-backdrop {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(35,48,71,0.22);
  z-index: 401;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-backdrop.active { display: flex; }
.cookie-modal {
  background: var(--color-card-bg);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: 0 10px 40px var(--color-shadow);
  width: 95%;
  max-width: 440px;
  z-index: 410;
  font-size: 1rem;
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: cookie-modal-in 0.33s cubic-bezier(.8,.22,.54,1.18);
}
@keyframes cookie-modal-in {
  from { opacity: 0; transform: scale(0.90) translateY(40px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal h3 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.cookie-modal .cookie-categories {
  margin: 22px 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f7f3eb;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 13px 16px;
}
.cookie-category.essential {
  opacity: 0.65;
  pointer-events: none;
}
.cookie-category label {
  font-family: var(--font-body);
  font-weight: 500;
}
.cookie-toggle {
  display: inline-block;
  width: 44px;
  height: 24px;
  background: var(--color-border);
  border-radius: 12px;
  position: relative;
  vertical-align: middle;
  transition: background 0.17s;
  margin-left: 10px;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle-slider {
  position: absolute;
  left: 3px; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--color-accent);
  transition: left 0.20s, background 0.18s;
  box-shadow: 0 1px 4px var(--color-shadow);
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  left: 23px;
  background: var(--color-primary);
}
.cookie-modal .modal-actions {
  margin-top: 18px;
  display: flex;
  gap: 16px;
}
.cookie-modal .modal-close {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.02rem;
  border-radius: var(--radius);
  padding: 8px 20px;
  margin-left: 8px;
  border: 1px solid var(--color-accent);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.cookie-modal .modal-close:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* =======================================================
   RESPONSIVE DESIGN (MOBILE FIRST)
======================================================= */
@media (max-width: 1200px) {
  .container { max-width: 1000px; }
}
@media (max-width: 992px) {
  .container { max-width: 820px; }
  .feature-grid {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .container { max-width: 100%; padding: 0 8px; }
  .content-wrapper {
    max-width: 100%;
    padding: 0;
  }
  header .container {
    flex-direction: row;
    padding: 14px 8px 14px 8px;
  }
  header img { height: 40px; }
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .mobile-menu { padding: 24px 10px; }
  .mobile-nav a { font-size: 1.1rem; }
  .section, section { padding: 26px 6px !important; margin-bottom: 36px !important; }
  .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid > div {
    max-width: 100%; min-width: 0; width: 100%;
    padding: 22px 12px 19px 12px;
  }
  .card-container, .content-grid, .highlight-numbers { gap: 14px; }
  .highlight-numbers { flex-direction: column; gap: 12px; }
  .highlight-numbers > div { border-right: none; padding-right: 0; min-width: 60px; font-size: 1.15rem; }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    max-width: 100%;
    gap: 6px;
  }
  .card { padding: 20px 12px 18px 12px; }
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 18px; }
  .content-grid { flex-direction: column; }
  .card-container { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 12px; }
  .footer-contact { font-size: 0.97rem; }
  footer .container { flex-direction: column; gap: 26px; }
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 16px 8px; font-size: 0.97rem; }
}
@media (max-width: 540px) {
  h1 { font-size: 1.39rem; }
  h2 { font-size: 1.08rem; }
  section, .section, .cookie-banner {
    padding-left: 0; padding-right: 0;
  }
}

/* =======================================================
   ANIMATIONS & MICRO-INTERACTIONS
======================================================= */
.card, .feature-grid > div, .testimonial-card, .cta-btn, .btn {
  transition: box-shadow 0.22s, border-color 0.22s, background 0.18s, color 0.18s;
}
.card:hover, .feature-grid > div:hover, .testimonial-card:hover, .cta-btn:hover, .btn:hover {
  box-shadow: 0 8px 28px var(--color-shadow);
  border-color: var(--color-accent);
}
.cta-btn:active, .btn:active {
  box-shadow: 0 2px 4px var(--color-shadow);
}

/* =======================================================
   DETAILED COMPONENTS
======================================================= */
::-webkit-input-placeholder { color: #aaa; }
:-ms-input-placeholder { color: #aaa; }
::placeholder { color: #aaa; }

hr {
  margin: 32px 0;
  height: 2px;
  border: none;
  background: var(--color-border);
  border-radius: 4px;
}

/* Visually hidden (for accessibility) */
.visually-hidden { position: absolute!important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Hide scroll for mobile menu overlay only when closed */
body.mobile-menu-open {
  overflow: hidden;
}

/* Accessibility: High-contrast focus states */
a:focus, button:focus, .cta-btn:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  z-index: 20;
}

/* --- End --- */

