/* ==== CSS RESET & BASE ==== */
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%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F7F6F2;
  color: #244650;
  letter-spacing: 0.01em;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}
ul, ol {
  list-style: none;
}

/* ==== BRAND VARIABLES ==== */
:root {
  --color-primary: #244650;
  --color-secondary: #B49B78;
  --color-accent: #F7F6F2;
  --color-dark: #1D3741;
  --color-contrast: #fff;
  --color-nav-hover: #EEE8DE;
  --color-card-bg: #FFFFFF;
  --color-card-shadow: rgba(36, 70, 80, 0.07);
  --radius: 18px;
  --shadow-soft: 0 2px 10px 0 rgba(36, 70, 80, 0.10);
  --shadow-strong: 0 4px 24px 0 rgba(36, 70, 80, 0.16);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', system-ui, sans-serif;
}

/* === TYPOGRAPHY === */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 18px;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--color-primary);
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.17rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--color-primary);
}
p, li, .body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-dark);
}
strong {
  color: var(--color-primary);
  font-weight: 600;
}

@media (min-width: 600px) {
  h1, .h1 { font-size: 2.7rem; }
  h2, .h2 { font-size: 2rem; }
}
@media (min-width: 900px) {
  h1, .h1 { font-size: 3rem; }
  h2, .h2 { font-size: 2.2rem; }
}

/* === CONTAINERS & LAYOUT === */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.text-section {
  max-width: 780px;
  margin: 0 auto;
}

/* ==== HEADER ==== */
header {
  width: 100%;
  background: var(--color-card-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  box-shadow: 0 2px 8px rgba(36,70,80,0.04);
  padding: 10px 0;
  z-index: 30;
}
.site-logo img {
  display: block;
  height: 38px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 14px;
  border-radius: 16px;
  color: var(--color-primary);
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--color-nav-hover);
  color: var(--color-secondary);
  outline: none;
}

.cta-btn {
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: 999px;
  padding: 11px 34px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(180, 155, 120, 0.08);
  margin-left: 20px;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s;
  cursor: pointer;
  border: none;
}
.cta-btn.primary {
  background: var(--color-primary);
  color: #fff;
}
.cta-btn.primary:hover,
.cta-btn.primary:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cta-btn:hover,
.cta-btn:focus {
  background: var(--color-dark);
  color: #fff;
  box-shadow: var(--shadow-strong);
  outline: none;
}

/* ==== MOBILE MENU ==== */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  font-size: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  margin-left: 20px;
  cursor: pointer;
  border: none;
  transition: background 0.2s, box-shadow 0.2s;
  z-index: 115;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  outline: none;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 0;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.45,.05,.60,1.11);
  box-shadow: -8px 0 32px 0 rgba(36,70,80,0.18);
  z-index: 120;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  font-size: 2.2rem;
  border: none;
  padding: 22px 25px 10px 20px;
  align-self: flex-end;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 121;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-secondary);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 20px 24px;
  margin-top: 18px;
}
.mobile-nav a {
  display: block;
  padding: 17px 0 17px 8px;
  font-size: 1.23rem;
  font-family: var(--font-display);
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  background: transparent;
  transition: background 0.23s, color 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

@media (max-width: 992px) {
  .main-nav, .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 993px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
  .main-nav, .cta-btn {
    display: flex !important;
  }
}

header {
  flex-wrap: wrap;
  gap: 10px;
}

/* ====== SECTIONS, LAYOUT, SPACING ====== */
section {
  width: 100%;
  background: transparent;
  /* Default fade-in animation */
  opacity: 0;
  transform: translateY(16px);
  animation: fadeInUp 0.5s both;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: none;
  }
}
/* Mandatory Section Spacing */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: var(--shadow-strong);
  transform: translateY(-4px) scale(1.02);
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  margin-top: 18px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 22px 28px;
  min-width: 210px;
  max-width: 320px;
  flex: 1 1 200px;
  transition: box-shadow 0.22s, transform 0.18s;
  margin-bottom: 20px;
}
.feature-item img {
  width: 44px;
  height: 44px;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: var(--shadow-strong);
  background: var(--color-nav-hover);
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 24px;
  background: var(--color-accent);
  border-radius: 15px;
  box-shadow: 0 3px 18px rgba(36,70,80,0.07);
  margin-bottom: 24px;
  max-width: 580px;
  transition: box-shadow 0.18s, transform 0.17s;
  border: 1.5px solid #ece6de;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-strong);
  transform: scale(1.018) translateY(-2px);
}
.testimonial-text {
  font-size: 1.15rem;
  color: var(--color-primary);
  font-style: italic;
  margin-bottom: 8px;
}
.testimonial-meta {
  color: var(--color-secondary);
  font-size: 0.99rem;
  font-weight: 600;
}
.stars {
  font-size: 1.33rem;
  color: #FDBA2F;
  letter-spacing: 0.06em;
}

/* DARK TEXT on testimonial cards to ensure contrast */
.testimonials .testimonial-card, .testimonials .testimonial-text, .testimonials .testimonial-meta {
  color: var(--color-primary);
  background: var(--color-accent);
}

.contact-teaser {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #B49B78 0%, #F7F6F2 80%);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  margin-bottom: 36px;
  padding: 30px 16px;
}

.success-message {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #B49B78 0%, #F7F6F2 80%);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  margin-bottom: 36px;
  padding: 30px 16px;
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, var(--color-accent) 53%, #eae7df 100%);
  border-radius: 0 0 44px 44px;
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 18px rgba(36,70,80,0.05);
  margin-bottom: 56px !important;
  padding-top: 44px;
  padding-bottom: 36px;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  max-width: 700px;
  margin: 0 auto;
}

/* ===== LEGAL, SERVICE LISTS STYLE ===== */
.legal ul, .services ul, .features ul, .features ol {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-left: 0;
}
.services ul span {
  background: var(--color-secondary);
  color: #fff;
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 0.98rem;
  margin-left: 8px;
}
.features ul li:before, .services ul li:before,
.features ol li:before {
  content: '\2022';
  color: var(--color-secondary);
  font-size: 1.22em;
  display: inline-block;
  width: 1.1em;
  margin-left: -1.1em;
}
.features ol, .features ul {
  margin-left: 1.4em;
}
.features ol li:before {
  content: counter(item) ". ";
  color: var(--color-secondary);
  font-weight: bold;
  margin-left: -2em;
  margin-right: 0.4em;
}
.features ol {
  counter-reset: item;
}
.features ol li {
  counter-increment: item;
}

/* ===== CARDS, MISC ELEMENTS ===== */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 34px 0 28px 0;
  position: relative;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
footer img {
  height: 40px;
  margin-bottom: 10px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 10px;
  align-items: center;
  justify-content: center;
}
.footer-nav a {
  color: var(--color-secondary);
  font-size: 1rem;
  padding: 7px 10px;
  border-radius: 12px;
  transition: background 0.17s, color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.footer-contact {
  color: #f5f7fa;
  font-size: 0.99rem;
  text-align: center;
  margin-top: 4px;
  line-height: 1.5;
}
@media (min-width: 650px) {
  footer .container {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
  }
  .footer-contact {
    text-align: right;
  }
}

/* ===== COOKIE CONSENT ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  z-index: 4000;
  box-shadow: 0 -2px 10px rgba(36,70,80,0.15);
  animation: fadeInUp 0.77s both;
}
.cookie-banner .cookie-text {
  flex: 1 1 0%;
  font-size: 1rem;
  margin-right: 20px;
  min-width: 0;
  white-space: normal;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-btn {
  padding: 9px 22px;
  border-radius: 999px;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  border: none;
  margin: 0 2px;
  transition: background 0.22s, color 0.16s, box-shadow 0.18s;
  box-shadow: 0 1px 5px rgba(180,155,120,0.06);
}
.cookie-btn:focus, .cookie-btn:hover {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 2px 12px rgba(36,70,80,0.12);
  outline: none;
}
.cookie-btn.reject {
  background: #fff;
  color: var(--color-primary);
  border: 1.5px solid var(--color-secondary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  border: 1.5px solid #fff;
}
.cookie-btn.settings {
  background: var(--color-primary);
  color: #fff;
  border: 1.5px solid var(--color-secondary);
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* ===== COOKIE PREFERENCES MODAL ===== */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36,70,80,0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.29s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fff;
  color: var(--color-primary);
  border-radius: 20px;
  padding: 36px 30px 28px 30px;
  min-width: 310px;
  max-width: 98vw;
  box-shadow: 0 4px 32px rgba(36,70,80,0.16);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: fadeInUp 0.56s both;
}
.cookie-modal-content h3 {
  font-family: var(--font-display);
  margin-bottom: 7px;
  font-size: 1.23rem;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
}
.cookie-category label {
  font-weight: 600;
  color: var(--color-primary);
}
.cookie-category input[type=checkbox] {
  accent-color: var(--color-secondary);
  width: 21px;
  height: 21px;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 12px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 14px;
  font-size: 1.65rem;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.16s;
  z-index: 4110;
}
.cookie-modal .cookie-modal-close:hover {
  color: var(--color-secondary);
}
.cookie-category .info {
  font-size: 0.85em;
  color: #6E6052;
  margin-left: 5px;
}
.cookie-category .always-on {
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 1em;
  margin-left: 8px;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 1100px) {
  .feature-grid {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .feature-grid {
    gap: 12px;
  }
  .card, .feature-item, .testimonial-card {
    min-width: 180px;
    max-width: 95vw;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  .content-grid,
  .feature-grid,
  .card-container {
    flex-direction: column !important;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column !important;
    align-items: stretch;
    gap: 16px;
  }
  header, .footer-nav {
    flex-direction: column;
    gap: 8px;
  }
  .hero {
    border-radius: 0 0 24px 24px;
    min-height: 220px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .contact-teaser,
  .success-message {
    border-radius: 14px;
    padding: 16px 5px;
    margin-bottom: 24px;
  }
  section, .section {
    margin-bottom: 28px !important;
    padding: 22px 4px !important;
  }
  .feature-item {
    padding: 14px 12px;
    margin-bottom: 12px;
  }
  .testimonial-card {
    padding: 13px 10px;
  }
  .cookie-banner, .cookie-modal-content {
    padding: 11px 4px !important;
  }
}
@media (max-width: 420px) {
  .main-nav a, .footer-nav a {
    font-size: 0.97rem;
  }
  .cta-btn, .cookie-btn {
    font-size: 0.98rem;
    padding: 8px 15px;
  }
}

/* ===== UTILITIES ===== */
.mt-24 {
  margin-top: 24px !important;
}
.text-center {
  text-align: center !important;
}
.text-left {
  text-align: left !important;
}
.text-right {
  text-align: right !important;
}

/* ===== MICRO-INTERACTIONS ===== */
.card, .feature-item, .testimonial-card, .cta-btn, .cookie-btn {
  transition: box-shadow 0.18s, transform 0.17s, background 0.2s, color 0.18s;
}

/* ===== VISUAL HIERARCHY ===== */
section > .container > .content-wrapper > h2 {
  margin-bottom: 14px;
  margin-top: 0;
  font-weight: 700;
}

/* ===== FORMS (MINIMAL STYLE, for contact) ===== */
input, textarea, select {
  border-radius: 8px;
  border: 1.5px solid #ede0cb;
  background: #fff;
  color: var(--color-primary);
  padding: 10px 14px;
  font-size: 1rem;
  margin-bottom: 14px;
  transition: border 0.19s;
  width: 100%;
  max-width: 420px;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-secondary);
}

/* ===== BUTTON ACCESSIBILITY ===== */
.cta-btn:focus-visible, .cookie-btn:focus-visible {
  outline: 2.5px solid var(--color-secondary);
  outline-offset: 2px;
}

/* ===== Z-INDEX OVERRIDES/SAFEGUARDS FOR NAV & BANNER ===== */
header {
  z-index: 100;
}
.mobile-menu,
.cookie-banner,
.cookie-modal {
  z-index: 4000;
}

/* ===== GRADIENTS & BACKGROUNDS ===== */
.gradient-bg,
.hero {
  /* fallback for pseudo-gradient if bg-image fails */
  background: linear-gradient(135deg, var(--color-accent) 40%, var(--color-secondary) 100%);
}

/* ===== Misc: Hide scroll on mobile menu open ===== */
body.mobile-menu-open {
  overflow: hidden;
}
