/* ------------------------------------------------------------
   CSS RESET & NORMALIZATION
-------------------------------------------------------------*/
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;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  background: #fff;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #fff;
  color: #2C3756;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  line-height: 1.65;
}
a {
  color: inherit;
  text-decoration: none;
  outline: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
}
button, input, select, textarea {
  font: inherit;
  color: inherit;
}
button {
  background: none;
  border: none;
  cursor: pointer;
  appearance: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.16;
  color: #2C3756;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.5rem; margin-bottom: 16px; }
h4 { font-size: 1.25rem; }
.subheadline { font-family: 'Roboto', Arial, Helvetica, sans-serif; color: #2C3756; font-size: 1.125rem; font-weight: 400; margin-bottom: 16px; }

/* ------------------------------------------------------------
   VARIABLES (with fallbacks)
-------------------------------------------------------------*/
:root {
  --color-primary: #2C3756;
  --color-secondary: #C99D6B;
  --color-accent: #F7F3ED;
  --color-white: #fff;
  --color-black: #2C3756;
  --color-gray: #eaeaea;
  --shadow-card: 0 2px 10px rgba(44, 55, 86, 0.06);
  --shadow-large: 0 4px 24px rgba(44, 55, 86, 0.10);
  --radius-small: 8px;
  --radius-medium: 14px;
}

/* ------------------------------------------------------------
   LAYOUT ELEMENTS
-------------------------------------------------------------*/
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.text-section {
  margin-top: 10px;
  margin-bottom: 10px;
}

/* ------------------------------------------------------------
   NAVIGATION HEADER
-------------------------------------------------------------*/
header {
  width: 100%;
  background: var(--color-white);
  box-shadow: 0 2px 14px rgba(44, 55, 86, 0.03);
  position: relative;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
header nav a {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--color-primary);
  letter-spacing: 0.01em;
  opacity: 0.82;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s, opacity 0.2s;
}
header nav a:hover, header nav a:focus {
  color: var(--color-secondary);
  opacity: 1;
}
header a.cta-btn {
  padding: 10px 26px;
  background: var(--color-secondary);
  color: var(--color-white);
  border-radius: var(--radius-small);
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(44,55,86,0.08);
  letter-spacing: 0.03em;
  border: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
header a.cta-btn:hover, header a.cta-btn:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
  box-shadow: var(--shadow-large);
}

/* ------------------------------------------------------------
   MOBILE BURGER MENU
-------------------------------------------------------------*/
.mobile-menu-toggle {
  display: none;
  position: fixed;
  right: 24px;
  top: 18px;
  z-index: 110;
  width: 42px;
  height: 42px;
  background: var(--color-white);
  border-radius: 50%;
  font-size: 2rem;
  color: var(--color-primary);
  box-shadow: var(--shadow-card);
  justify-content: center;
  align-items: center;
  transition: background 0.2s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--color-accent);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-white);
  box-shadow: 0 6px 40px rgba(44,55,86,0.12);
  transform: translateX(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.15s, visibility 0.15s;
  z-index: 1050;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}
.mobile-menu-close {
  margin: 22px 22px 12px auto;
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  transition: background 0.15s, color 0.15s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--color-secondary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  align-items: flex-start;
  margin-top: 22px;
}
.mobile-nav a {
  width: 100%;
  padding: 18px 30px;
  font-size: 1.1rem;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-accent);
  background: none;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--color-accent);
  color: var(--color-secondary);
}

/* Mobile menu visibility and burger icon responsiveness */
@media (max-width: 1023px) {
  header nav, header .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1024px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* ------------------------------------------------------------
   FLEXBOX LAYOUTS (MANDATORY STRUCTURES)
-------------------------------------------------------------*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 20px;
}
.card {
  background: var(--color-white);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, border 0.18s;
  position: relative;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 32px rgba(44,55,86,0.13);
  border-color: var(--color-secondary);
}
.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;
  margin-bottom: 20px;
  background: var(--color-white);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-card);
  color: #2C3756;
  min-width: 0;
  font-size: 1.03rem;
  transition: box-shadow 0.15s, border 0.18s;
}
.testimonial-card p {
  font-family: 'Playfair Display', serif;
  font-size: 1.11rem;
  font-style: italic;
}
.testimonial-card span {
  color: var(--color-secondary);
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  margin-left: 14px;
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px rgba(44,55,86,0.13);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* Ensure a minimum gap for all major section content cards inside containers */
.container > .content-wrapper:not(:last-child) {
  margin-bottom: 20px;
}

/* ------------------------------------------------------------
   BUTTONS & LINKS
-------------------------------------------------------------*/
.cta-btn, .btn, button, input[type="submit"] {
  display: inline-block;
  padding: 12px 38px;
  background: var(--color-secondary);
  color: var(--color-white);
  border-radius: var(--radius-small);
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border 0.14s;
  outline: none;
  text-align: center;
  min-width: 120px;
}
.cta-btn:hover, .cta-btn:focus, .btn:hover, .btn:focus, button:hover, button:focus, input[type="submit"]:hover, input[type="submit"]:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
  box-shadow: 0 4px 16px rgba(44,55,86,0.10);
}

/* Links in text */
.text-section a {
  color: var(--color-secondary);
  border-bottom: 1px solid var(--color-secondary);
  transition: color 0.18s, border 0.18s;
}
.text-section a:hover, .text-section a:focus {
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-primary);
}

/* ------------------------------------------------------------
   FOOTER
-------------------------------------------------------------*/
footer {
  background: var(--color-accent);
  color: var(--color-black);
  border-top: 1px solid var(--color-gray);
  width: 100%;
  margin-top: 60px;
  padding: 36px 0 0 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  justify-content: flex-start;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 36px 64px;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  color: var(--color-primary);
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  opacity: 0.85;
  transition: color 0.19s;
  font-size: 0.98rem;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-secondary);
  opacity: 1;
}
.footer-contact {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 0.97rem;
  color: #2C3756;
  opacity: 0.9;
}
.footer-contact a {
  color: var(--color-secondary);
  border-bottom: 1px solid var(--color-secondary);
  transition: color 0.17s, border 0.17s;
}
.footer-contact a:hover, .footer-contact a:focus {
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-primary);
}

/* ------------------------------------------------------------
   BLOG POST TEASER
-------------------------------------------------------------*/
.post-teaser {
  background: var(--color-white);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-card);
  padding: 22px 20px 18px 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.17s;
}
.post-teaser h3 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 10px;
}
.post-teaser:hover {
  box-shadow: 0 4px 20px rgba(44,55,86,0.11);
}

/* ------------------------------------------------------------
   RESPONSIVE TYPOGRAPHY & PADDING
-------------------------------------------------------------*/
@media (max-width: 900px) {
  h1 { font-size: 2.05rem; }
  h2 { font-size: 1.4rem; }
  footer .content-wrapper, .card-container, .content-grid {
    gap: 24px !important;
  }
  .container, .section {
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 5vw;
    padding-right: 5vw;
  }
  .section {
    padding: 28px 0;
    margin-bottom: 36px;
    border-radius: var(--radius-small);
  }
  .content-wrapper {
    gap: 10px;
  }
  .content-grid, .card-container, .text-image-section, .footer .content-wrapper {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 18px;
  }
  header .container {
    flex-direction: row;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 12px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.3rem; margin-bottom: 16px; }
  .section {
    padding: 20px 0;
  }
}

/* ------------------------------------------------------------
   COOKIE CONSENT BANNER & MODAL
-------------------------------------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0; right:0; bottom: 0;
  width: 100vw;
  background: var(--color-white);
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -6px 18px rgba(44,55,86,0.08);
  padding: 20px 10px 14px 10px;
  z-index: 2000;
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.16s;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(120%);
  visibility: hidden;
  pointer-events: none;
}
.cookie-banner p {
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
}
.cookie-banner .cookie-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2px;
}
.cookie-btn {
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: var(--radius-small);
  padding: 10px 20px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-card);
  transition: background 0.18s, color 0.18s;
  min-width: 120px;
}
.cookie-btn.reject {
  background: var(--color-gray);
  color: var(--color-primary);
}
.cookie-btn.settings {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(44, 55, 86, 0.22);
  z-index: 2020;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.14s;
}
.cookie-modal.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.cookie-modal-dialog {
  background: var(--color-white);
  border-radius: var(--radius-medium);
  box-shadow: 0 8px 36px rgba(44,55,86,0.22);
  min-width: 320px;
  max-width: 90vw;
  padding: 36px 28px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}
.cookie-modal-dialog h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
}
.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--color-primary);
}
.cookie-category input[type="checkbox"], .cookie-category input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-secondary);
}
.cookie-category.essential label {
  color: #aaa;
  font-style: italic;
}
.cookie-modal-action-row {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 6px;
}
.cookie-modal-close {
  background: var(--color-gray);
  color: var(--color-primary);
  border-radius: 50%;
  font-size: 1.8rem;
  align-self: flex-end;
  width: 36px;
  height: 36px;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.2s, color 0.2s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--color-secondary);
  color: #fff;
}
@media (max-width: 480px) {
  .cookie-modal-dialog {
    padding: 18px 6vw 22px 6vw;
  }
  .cookie-modal-dialog h3 {
    font-size: 1rem;
  }
}

/* ------------------------------------------------------------
   SCROLLBAR & SELECTION
-------------------------------------------------------------*/
::selection {
  background: var(--color-secondary);
  color: #fff;
}
::-webkit-scrollbar {
  width: 8px;
  background: var(--color-accent);
}
::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 8px;
}

/* ------------------------------------------------------------
   MISC ELEMENTS STYLES
-------------------------------------------------------------*/
strong {
  color: var(--color-primary);
  font-weight: 700;
}
hr {
  border: none;
  border-top: 1px solid var(--color-gray);
  margin: 28px 0;
}

/* ------------------------------------------------------------
   SPACING & DEFAULTS (UNIVERSAL GAP)
-------------------------------------------------------------*/
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.container > .content-wrapper:not(:last-child) {
  margin-bottom: 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
}
.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;
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ------------------------------------------------------------
   ANIMATIONS & TRANSITIONS
-------------------------------------------------------------*/
@media (prefers-reduced-motion: no-preference) {
  .mobile-menu,
  .mobile-menu.open,
  .cookie-banner,
  .cookie-banner.hide,
  .cookie-modal,
  .cookie-modal.hide {
    will-change: transform, opacity;
  }
  a, button, .cta-btn, .btn, .card, .testimonial-card, .post-teaser {
    transition: color 0.18s, background 0.18s, box-shadow 0.18s, border 0.18s, opacity 0.18s, filter 0.18s, transform 0.22s;
  }
  .cookie-banner, .cookie-banner.hide {
    transition: opacity 0.26s, transform 0.44s cubic-bezier(0.77, 0, 0.175, 1);
  }
  .mobile-menu, .mobile-menu.open {
    transition: transform 0.44s cubic-bezier(0.77,0,0.175,1), opacity 0.23s;
  }
}
