/* ------------------------------------------------
   CSS RESET & NORMALIZE (Mobile-first)
---------------------------------------------------*/
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
html, body { height: 100%; margin: 0; padding: 0; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; background: transparent; }
img { max-width: 100%; display: block; height: auto; border: 0; }
button, input, select, textarea { font: inherit; margin: 0; }
button { border: none; background: none; cursor: pointer; padding: 0; }
:focus { outline: 2px solid #58b368; outline-offset: 2px; }

/* ---------------------------------------------
   CSS VARIABLES & THEME (Elegant Classic Style)
-----------------------------------------------*/
:root {
  --color-primary: #23395d;
  --color-secondary: #58b368;
  --color-accent: #f6f3f0;
  --color-bg: #f8f6f4;
  --color-card: #fff;
  --color-header: #ece8e2;
  --color-footer: #ece8e2;
  --color-border: #e3e0db;
  --color-text: #212121;
  --color-text-secondary: #4A4A4A;
  --color-shadow: 0 2px 12px rgba(35,57,93,0.06);

  --font-display: 'Montserrat', 'Georgia', serif;
  --font-body: 'Open Sans', 'Georgia', serif;

  --radius-m: 8px;
  --radius-l: 16px;
  --transition: all 0.25s cubic-bezier(.37,1.17,.53,.97);
  --transition-fast: all 0.15s cubic-bezier(.37,1.17,.53,.97);
}

body {
  color: var(--color-text);
  background: var(--color-bg);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

/* -------------------------------------------------
   TYPOGRAPHY (Elegant Serif Heading, Clear Hierarchy)
----------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.015em;
  margin-bottom: 0.5em;
}
h1 { font-size: 2.25rem; margin-bottom: 0.7em; line-height: 1.2; }
h2 { font-size: 1.5rem; margin-bottom: 0.7em; line-height: 1.25; }
h3 { font-size: 1.125rem; margin-bottom: 0.5em; }
h4, h5, h6 { font-size: 1rem; margin-bottom: 0.4em; font-weight: 600; }

p, li, ul, ol {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.7em;
}
strong { color: var(--color-primary); font-weight: 600; }

small { font-size: 0.9em; color: #767676; }

/* -----------------------------------------
   LINKS & BUTTONS (Elegant, Understated)
------------------------------------------*/
a {
  color: var(--color-primary);
  transition: var(--transition-fast);
}
a:hover, a:focus {
  color: var(--color-secondary);
  text-decoration: underline;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 30px;
  border-radius: var(--radius-m);
  box-shadow: 0 2px 8px rgba(35,57,93,0.08);
  border: none;
  margin-top: 20px;
  display: inline-block;
  letter-spacing: 0.02em;
  transition: var(--transition);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(35,57,93,0.15);
}

/* -----------------------------------------
   CONTAINER & WRAPPERS
------------------------------------------*/
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  margin-top: 32px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ------------------------------
   HEADER & NAVIGATION
---------------------------------*/
header {
  background: var(--color-header);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  z-index: 30;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 18px 20px;
  gap: 24px;
}
header img {
  height: 45px;
  width: auto;
  margin-right: 16px;
  vertical-align: middle;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.main-nav a {
  font-family: var(--font-display);
  display: block;
  padding: 6px 12px;
  border-radius: var(--radius-m);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-primary);
  background: none;
  transition: var(--transition-fast);
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}
.main-nav .btn-primary {
  font-size: 1rem;
  margin-left: 10px;
  padding: 8px 22px;
}

/* Burger Button */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: none;
  color: var(--color-primary);
  border: none;
  padding: 0 8px;
  height: 44px;
  width: 44px;
  border-radius: 50%;
  transition: background 0.2s;
  z-index: 41;
  margin-left: 16px;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}

/* Hide on desktop */
@media (min-width: 1025px) {
  .mobile-menu-toggle { display: none; }
}

/* ------------------------------------------
   MOBILE MENU (Overlay Navigation)
-------------------------------------------*/
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(243,242,238, 0.99);
  z-index: 60;
  transform: translateX(100%);
  transition: var(--transition);
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 35px;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}

.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 30px;
  font-size: 2.1rem;
  background: none;
  color: var(--color-primary);
  border: none;
  cursor: pointer;
  z-index: 61;
  border-radius: 50%;
  transition: background 0.2s;
  width: 44px; height: 44px;
  display: flex; justify-content: center; align-items: center;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin-top: 70px;
  align-items: flex-start;
  padding: 0 32px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 12px 0;
  width: 100%;
  border-radius: var(--radius-m);
  line-height: 1.3;
  transition: var(--transition-fast);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}

@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
  .main-nav { display: flex !important; }
}
@media (max-width: 1024px) {
  .main-nav { display: none !important; }
  .mobile-menu { display: flex; }
}

/* -----------------------------------------
   HERO SECTION
------------------------------------------*/
.hero {
  background: linear-gradient(105deg, var(--color-accent) 70%, #eae6e1 100%);
  border-bottom: 1px solid var(--color-border);
  padding: 0;
}
.hero .container {
  min-height: 320px;
  justify-content: center;
  align-items: flex-start;
}
.hero .content-wrapper {
  margin: 0;
  gap: 24px;
  padding: 50px 0 36px 0;
  align-items: flex-start;
}
.hero h1 {
  color: var(--color-primary);
  font-size: 2.4rem;
  line-height: 1.14;
  margin-bottom: 18px;
  font-family: var(--font-display);
}
.hero p {
  max-width: 560px;
  font-size: 1.17rem;
  margin-bottom: 18px;
}

/* --------------------------------------------
   SECTION STYLES AND STRUCTURE
---------------------------------------------*/
section {
  background: none;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.section:last-child {
  margin-bottom: 0;
}

.content-wrapper:has(.features-grid),
.content-wrapper:has(.testimonial-card),
.content-wrapper {
  gap: 32px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 12px;
}

.text-section ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.text-section ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: var(--color-text-secondary);
}
.text-section ul img {
  height: 22px;
  width: 22px;
  margin-right: 3px;
}

ul, ol {
  padding-left: 0;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.features-grid > li,
.features-grid > div {
  flex: 1 1 230px;
  min-width: 210px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  padding: 26px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  box-shadow: 0 4px 16px rgba(35,57,93,0.06);
  transition: box-shadow 0.18s linear, transform 0.2s;
  margin-bottom: 10px;
  position: relative;
}
.features-grid > li:hover, .features-grid > div:hover {
  box-shadow: 0 8px 26px rgba(35,57,93,0.13);
  transform: translateY(-2px) scale(1.012);
  border-color: var(--color-secondary);
}
.features-grid > li img, .features-grid > div img {
  height: 32px;
  width: 32px;
  margin-bottom: 2px;
}

.features-grid h3 {
  font-size: 1.13rem;
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-bottom: 8px;
}
.features-grid p {
  font-size: 0.98rem;
  color: var(--color-text-secondary);
}

ul li strong { font-weight: 600; color: var(--color-primary); }

/* -----------------------------------------
   TESTIMONIAL STYLES (Card with Contrast)
------------------------------------------*/
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  padding: 20px 28px 18px 28px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(35,57,93,0.10);
  transition: box-shadow 0.25s, border 0.18s;
  min-height: 92px;
  position: relative;
}
.testimonial-card p {
  color: var(--color-primary);
  font-style: italic;
  font-size: 1.075rem;
  flex: 1;
  margin-bottom: 0;
}
.testimonial-info {
  min-width: 120px;
  flex-shrink: 0;
  text-align: right;
  font-size: 0.97em;
  color: var(--color-text-secondary);
  font-style: normal;
}
.testimonial-card:hover {
  box-shadow: 0 12px 32px rgba(35,57,93,0.18);
  border-color: var(--color-secondary);
}

/* -----------------------------------------
   FOOTER
------------------------------------------*/
footer {
  background: var(--color-footer);
  border-top: 1px solid var(--color-border);
  padding: 0;
}
footer .container {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px 20px 20px 20px;
  gap: 10px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 8px;
}
.footer-nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.03rem;
  font-weight: 500;
  opacity: 0.9;
  transition: var(--transition-fast);
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-secondary);
  opacity: 1;
}
footer small {
  color: #5c5c57;
  margin-top: 6px;
}

/* -----------------------------------------
   FLEXBOX SPACING/ALIGNMENT (MANDATE)
------------------------------------------*/
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* -------------------------------
   RESPONSIVE DESIGN (Mobile-first)
----------------------------------*/
@media (max-width: 1024px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .footer-nav { gap: 14px; }
  .features-grid { gap: 18px; }
}
@media (max-width: 768px) {
  .container { padding-left: 5px; padding-right: 5px; }
  .content-wrapper { gap: 22px; margin-top: 22px; margin-bottom: 22px; }

  .features-grid {
    flex-direction: column;
    gap: 14px;
  }
  .features-grid > li, .features-grid > div {
    min-width: 0;
    width: 100%;
    padding: 18px 14px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 12px 14px 12px;
    gap: 10px;
    font-size: 1rem;
  }
  .hero .container { min-height: unset; padding: 0 5px; }
  .hero .content-wrapper { padding: 32px 0 22px 0; gap: 14px; }
  .hero h1 { font-size: 1.36rem; }
  .section { padding: 24px 5px; margin-bottom: 30px; }
  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    width: 100%;
  }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.03rem; }
  .main-nav a, .btn-primary { font-size: 0.98rem; }
  .features-grid > li, .features-grid > div { padding: 11px 6px; }
}

/* ------------------------------------
   CARD & SHADOWS (for elegant look)
--------------------------------------*/
.card {
  background: var(--color-card);
  border-radius: var(--radius-l);
  box-shadow: 0 4px 14px rgba(35,57,93,0.09);
  border: 1px solid var(--color-border);
  padding: 24px 20px;
  margin-bottom: 20px;
  transition: var(--transition);
}
.card:hover {
  box-shadow: 0 14px 32px rgba(35,57,93,0.16);
  border-color: var(--color-secondary);
}

/* ----------------------------------
   TABLES (Info legal pages)
-----------------------------------*/
table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
}
table th, table td {
  border: 1px solid var(--color-border);
  padding: 9px 12px;
}
table th {
  background: var(--color-header);
}
table td {
  background: var(--color-card);
}

/* --------------------------------------
   COOKIE CONSENT BANNER & MODAL
---------------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -2px 32px rgba(35,57,93,0.09);
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 34px 16px 34px;
  font-size: 1rem;
  transition: transform 0.4s cubic-bezier(.68,-0.55,.27,1.55), opacity 0.4s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-m);
  padding: 8px 22px;
  margin-left: 3px;
  transition: background 0.2s, color 0.16s;
  box-shadow: 0 2px 6px rgba(35,57,93,0.04);
}
.cookie-banner .btn-accept-all {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-banner .btn-accept-all:hover, .cookie-banner .btn-accept-all:focus {
  background: var(--color-primary);
  color: #fff;
}
.cookie-banner .btn-reject-all {
  background: #ece8e2;
  color: var(--color-primary);
}
.cookie-banner .btn-reject-all:hover, .cookie-banner .btn-reject-all:focus {
  background: var(--color-primary);
  color: #fff;
}
.cookie-banner .btn-settings {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.cookie-banner .btn-settings:hover, .cookie-banner .btn-settings:focus {
  border: 1px solid var(--color-secondary);
  color: var(--color-secondary);
}
@media (max-width:600px){
  .cookie-banner { flex-direction: column; padding: 14px 6px; align-items: flex-start; gap: 9px; }
  .cookie-banner .cookie-buttons { width: 100%; gap: 6px; }
}

/* Modal Overlay */
.cookie-modal-overlay {
  position: fixed;
  z-index: 1900;
  left: 0; top:0; right:0; bottom:0;
  background: rgba(35,57,93,0.19);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius-l);
  border: 1px solid var(--color-header);
  max-width: 480px;
  width: 92vw;
  padding: 34px 28px 24px 28px;
  box-shadow: 0 12px 40px rgba(35,57,93,0.23);
  position: relative;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 21px;
  animation: fadeUpModal 0.45s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes fadeUpModal {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  margin-bottom: 12px;
  font-size: 1.23rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 13px;
  font-size: 1.05em;
}
.cookie-category label {
  font-weight: 500;
  font-family: var(--font-display);
  color: var(--color-primary);
}
.cookie-toggle {
  position: relative;
  width: 42px;
  height: 24px;
  margin-left: 8px;
  background: #ece8e2;
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-toggle input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  top: 2.5px; left: 4px;
  width: 18px;
  height: 18px;
  background: var(--color-primary);
  border-radius: 50%;
  transition: transform 0.22s;
}
.cookie-toggle input[type="checkbox"]:checked + .cookie-slider {
  background: var(--color-secondary);
  transform: translateX(16px);
}
.cookie-toggle.disabled {
  background: #f6f3f0;
  cursor: not-allowed;
  opacity: 0.7;
}

.cookie-modal .btn-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 1.7rem;
  color: var(--color-primary);
  background: none;
  border: none;
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.16s;
}
.cookie-modal .btn-modal-close:hover, .cookie-modal .btn-modal-close:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.cookie-modal .cookie-modal-actions button {
  font-family: var(--font-display);
  font-size: 1em;
  border-radius: var(--radius-m);
  padding: 8px 20px;
  border: none;
  transition: background 0.2s, color 0.2s;
}
.cookie-modal .cookie-modal-actions .btn-save {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-modal .cookie-modal-actions .btn-save:hover,
.cookie-modal .cookie-modal-actions .btn-save:focus {
  background: var(--color-primary);
  color: #fff;
}
.cookie-modal .cookie-modal-actions .btn-cancel {
  background: #ece8e2;
  color: var(--color-primary);
}
.cookie-modal .cookie-modal-actions .btn-cancel:hover {
  background: var(--color-primary);
  color: #fff;
}

/* -------------------
   TRANSITIONS
---------------------*/
.btn-primary, .features-grid > li, .features-grid > div, .card {
  transition: var(--transition);
}

/* subtle animation for links & cards */
.main-nav a, .footer-nav a, .mobile-nav a {
  transition: color 0.18s, background 0.18s;
}
.testimonial-card, .features-grid > li, .features-grid > div {
  will-change: box-shadow, transform;
  transition: box-shadow 0.18s, transform 0.2s, border 0.15s;
}

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

::-webkit-scrollbar {
  width: 9px;
  background: var(--color-header);
}
::-webkit-scrollbar-thumb {
  background: #e2ded4;
  border-radius: var(--radius-m);
}

/* -----------
   PRINT
-------------*/
@media print {
  header, nav, footer, .cookie-banner, .mobile-menu { display: none !important; }
}
