/* =============================================================
   Vavass Chronometrie - Elegant Classic CSS (Mobile-first, Flexbox only)
   ============================================================= */

/* === CSS RESET & BASE === */
html {
  box-sizing: border-box;
  font-size: 16px;
  background: #F5F4EF; /* accent bg */
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Lato', Arial, sans-serif;
  color: #232629;
  background: #F5F4EF;
  min-height: 100vh;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #232629;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
p, ul, ol {
  font-size: 1rem;
  font-family: 'Lato', Arial, sans-serif;
  margin-bottom: 15px;
}
strong {
  font-weight: 700;
  color: #232629;
  font-family: 'Playfair Display', Georgia, serif;
}

/* === LINKS & BUTTONS === */
a {
  color: #A88D5C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #232629;
  text-decoration: underline;
}
.cta-primary {
  background: #A88D5C;
  color: #fff;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  padding: 12px 34px;
  border-radius: 32px;
  border: none;
  display: inline-block;
  margin-top: 12px;
  box-shadow: 0 2px 12px 0 rgba(168,141,92,0.06);
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.3s, color 0.2s, box-shadow 0.2s;
  font-weight: 700;
}
.cta-primary:hover, .cta-primary:focus {
  background: #232629;
  color: #fff;
  box-shadow: 0 4px 24px 0 rgba(35,38,41,0.08);
}
button {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  background: none;
  cursor: pointer;
}

/* === LAYOUT CONTAINERS === */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  padding: 0;
  margin: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
/* If you want slightly tinted background, add a .section.bg class or similar */

/* === FLEX SPACING & ALIGNMENTS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 280px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(35,38,41,0.06);
  padding: 28px 24px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 6px 24px 0 rgba(35,38,41,0.10);
}
.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: #fff;
  border: 1px solid #E4DFD3;
  border-radius: 18px;
  box-shadow: 0 1px 8px 0 rgba(35,38,41,0.07);
  transition: box-shadow 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 20px 0 rgba(168,141,92,0.12);
}
.testimonial-card p {
  color: #232629;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.13rem;
  font-style: italic;
  margin: 0 0 8px;
}
.testimonial-meta {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 0.98rem;
  color: #A88D5C;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.brand-logos, .brand-overview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 24px;
}
.brand-overview-grid {
  gap: 24px;
}
.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(35,38,41,0.09);
  padding: 22px 18px;
  flex: 1 1 210px;
  min-width: 180px;
  max-width: 260px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
}
.brand-card:hover {
  box-shadow: 0 7px 18px 0 rgba(168,141,92,0.13);
}
.brand-card img {
  height: 40px;
  margin-bottom: 12px;
}

/* === HERO SECTION === */
.hero {
  background: #fff;
  border-bottom: 1px solid #E4DFD3;
  padding-top: 48px;
  padding-bottom: 48px;
  margin-bottom: 40px;
  text-align: left;
}
.hero .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.hero h1 {
  color: #232629;
  font-size: 2.35rem;
  margin-bottom: 18px;
}
.hero p {
  color: #3b3935;
  font-size: 1.15rem;
  margin-bottom: 22px;
}

/* === CTA BANNER === */
.cta-banner {
  background: #A88D5C;
  color: #fff;
  border-radius: 24px;
  margin: 40px 0;
  box-shadow: 0 2px 16px 0 rgba(168,141,92,0.075);
}
.cta-banner .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.cta-banner h2, .cta-banner p {
  color: #fff;
}
.cta-banner .cta-primary {
  background: #fff;
  color: #A88D5C;
  border: 2px solid #fff;
}
.cta-banner .cta-primary:hover {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

/* === NAVIGATION === */
header {
  background: #fff;
  border-bottom: 1px solid #E4DFD3;
  padding: 0;
  position: relative;
  z-index: 50;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: flex-start;
  padding: 12px 20px;
  font-family: 'Lato', Arial, sans-serif;
  background: transparent;
}
.main-nav a {
  color: #232629;
  padding: 7px 14px;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F5F4EF;
  color: #A88D5C;
}
.main-nav .cta-primary {
  background: #A88D5C;
  color: #fff !important;
  margin-left: 18px;
  font-size: 1rem;
  padding: 7px 26px;
  border-radius: 18px;
}

/* === MOBILE NAV === */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 2.1rem;
  background: #A88D5C;
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  z-index: 1020;
  box-shadow: 0 2px 12px 0 rgba(168,141,92,0.14);
  border: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #232629;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35,38,41,0.97);
  z-index: 2000;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transition: transform 0.35s cubic-bezier(.86,.01,.15,.99);
  transform: translateX(-100vw);
}
.mobile-menu.active {
  display: flex;
  transform: translateX(0);
  animation: slideInMenu 0.38s ease;
}
@keyframes slideInMenu {
  from { transform: translateX(-100vw); }
  to { transform: translateX(0); }
}
.mobile-menu-close {
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  position: absolute;
  top: 20px;
  right: 22px;
  cursor: pointer;
  z-index: 2020;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #A88D5C;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 88px;
  gap: 12px;
  align-items: flex-start;
  padding-left: 30px;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: #fff;
  padding: 15px 0 15px 0;
  font-family: 'Playfair Display', Georgia, serif;
  border-radius: 0 24px 24px 0;
  width: 90%;
  transition: background 0.15s, color 0.2s;
  margin-bottom: 4px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #A88D5C;
  color: #fff;
}

/* === FOOTER === */
footer {
  background: #232629;
  color: #fff;
  padding: 38px 0 24px 0;
  margin-top: 60px;
  border-radius: 0 0 28px 28px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 16px;
}
.footer-nav a {
  color: #fff;
  opacity: 0.88;
  padding: 6px 14px;
  font-size: 0.98rem;
  transition: color 0.2s, opacity 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #A88D5C;
  text-decoration: underline;
  opacity: 1;
}
.footer-address {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 0.98rem;
  color: #E4DFD3;
  gap: 8px;
}
.footer-address a {
  color: #A88D5C;
  text-decoration: underline;
  font-weight: 400;
  transition: color 0.18s;
}
.footer-address a:hover, .footer-address a:focus {
  color: #fff;
  text-decoration: underline;
}

/* === LISTS & TEXT SECTIONS === */
ul, ol {
  margin-left: 24px;
  margin-bottom: 20px;
  font-family: 'Lato', Arial, sans-serif;
}
ul li, ol li {
  margin-bottom: 10px;
  padding-left: 2px;
  line-height: 1.6;
  font-size: 1.01rem;
}
.text-section {
  margin-bottom: 20px;
  color: #232629;
  max-width: 820px;
}
.text-section img {
  max-width: 100%;
  margin: 16px 0;
}

/* === BRAND LOGOS === */
.brand-logos img {
  max-height: 44px;
  filter: grayscale(0.22) brightness(0.99);
  opacity: 0.98;
  background: #fff;
  border-radius: 12px;
  padding: 6px 8px;
  box-shadow: 0 2px 8px 0 rgba(168,141,92,0.06);
  margin-right: 0;
}

/* === ICONS IN TEXT === */
p a img, .text-section a img {
  vertical-align: middle;
  margin-right: 5px;
  height: 20px;
}

/* === TABLE OF CONTENTS (if needed) === */
.toc {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.toc a {
  color: #A88D5C;
  font-family: 'Playfair Display', Georgia, serif;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding: 0 10px;
  }
  .main-nav {
    gap: 10px;
    padding: 10px 8px;
  }
  .footer-nav {
    gap: 12px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .container {
    padding: 0 5vw;
  }
  .content-wrapper {
    padding: 0;
  }
  .section {
    padding: 28px 0 34px 0;
    margin-bottom: 40px;
  }
  .hero {
    padding: 38px 0 34px 0;
    margin-bottom: 28px;
    text-align: left;
  }
  .cta-banner {
    margin: 28px 0;
  }
  .brand-logos, .brand-overview-grid {
    gap: 16px;
    justify-content: center;
  }
  .brand-overview-grid {
    flex-direction: column;
    align-items: stretch;
  }
  .brand-card {
    max-width: 100%;
    min-width: 0;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 15px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 9px;
    padding: 14px;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.09rem; }
  .cta-primary, .main-nav .cta-primary {
    font-size: 0.91rem;
    padding: 10px 18px;
  }
  .footer-address {
    font-size: 0.89rem;
  }
  .brand-logos img {
    max-height: 34px;
    padding: 4px 6px;
    margin: 0;
  }
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  color: #232629;
  border-top: 2px solid #A88D5C;
  box-shadow: 0 -3px 24px 0 rgba(35,38,41,0.09);
  z-index: 2100;
  padding: 24px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  opacity: 1;
  transition: opacity 0.4s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 18px;
  margin-top: 5px;
  flex-wrap: wrap;
}
.cookie-banner button {
  border-radius: 26px;
  padding: 7px 22px;
  font-size: 0.97rem;
  font-family: 'Playfair Display', Georgia, serif;
  border: none;
  background: #A88D5C;
  color: #fff;
  font-weight: 700;
  margin-right: 0;
  margin-bottom: 0;
  box-shadow: 0 2px 8px 0 rgba(168,141,92,0.10);
  transition: background 0.18s, color 0.18s;
}
.cookie-banner button:last-child {
  background: #E4DFD3;
  color: #232629;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #232629;
  color: #fff;
}
.cookie-banner .cookie-settings-btn {
  background: #fff;
  color: #A88D5C;
  border: 1px solid #A88D5C;
}
.cookie-banner .cookie-settings-btn:hover {
  background: #F5F4EF;
  color: #232629;
  border: 1px solid #232629;
}

/* Cookie Preferences Modal */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(35,38,41, 0.60);
  z-index: 3000;
  justify-content: center;
  align-items: center;
  animation: fadeInModal 0.4s;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal.active {
  display: flex;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 20px;
  max-width: 430px;
  width: 95vw;
  padding: 38px 28px 24px 28px;
  box-shadow: 0 7px 40px 0 rgba(35,38,41,0.14);
  display: flex;
  flex-direction: column;
  gap: 25px;
  position: relative;
}
.cookie-modal-content h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.cookie-modal-content .cookie-cat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0;
}
.cookie-modal-content label {
  font-size: 1rem;
  font-family: 'Lato', Arial, sans-serif;
  color: #232629;
}
.cookie-switch {
  width: 36px;
  height: 20px;
  border-radius: 22px;
  background: #E4DFD3;
  position: relative;
  transition: background 0.2s;
  margin-left: 9px;
  flex-shrink: 0;
}
.cookie-switch input[type="checkbox"] {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-switch span {
  position: absolute;
  left: 3px; top: 3px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #A88D5C;
  transition: left 0.23s;
}
.cookie-switch input[type="checkbox"]:checked + span {
  left: 19px;
  background: #232629;
}
.cookie-modal-content .cookie-cat.essential label {
  color: #A88D5C;
  font-weight: 700;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 1.5rem;
  color: #A88D5C;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #232629;
}
.cookie-modal-content .cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  margin-top: 8px;
}
.cookie-modal-content button {
  border-radius: 26px;
  padding: 7px 22px;
  font-size: 0.97rem;
  font-family: 'Playfair Display', Georgia, serif;
  border: none;
  background: #A88D5C;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px 0 rgba(168,141,92,0.09);
  transition: background 0.18s, color 0.18s;
}
.cookie-modal-content button:last-child {
  background: #E4DFD3;
  color: #232629;
}
.cookie-modal-content button:hover, .cookie-modal-content button:focus {
  background: #232629;
  color: #fff;
}

/* === SCROLLBAR (ELEGANT) === */
::-webkit-scrollbar {
  width: 10px;
  background: #F5F4EF;
}
::-webkit-scrollbar-thumb {
  background: #E4DFD3;
  border-radius: 7px;
}
::-webkit-scrollbar-thumb:hover {
  background: #A88D5C;
}

/* === ANIMATIONS / MICRO-INTERACTIONS === */
.cta-primary, .main-nav .cta-primary {
  transition: background 0.22s, color 0.20s, box-shadow 0.2s;
}
div.card, .testimonial-card, .brand-card {
  transition: box-shadow 0.19s;
}
a, .main-nav a, .footer-nav a, button {
  transition: color 0.20s, background 0.18s;
}

/* === PRINT ADAPTATION === */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  .container { max-width: 100vw; padding: 0; }
}

/* ELEGANT SPAN & EMPHASIS FOR CLASSIC LOOK */
.elegant-em {
  font-family: 'Playfair Display', Georgia, serif;
  color: #A88D5C;
  font-style: italic;
  letter-spacing: 0.06em;
}

/* Utility classes for hidden/visible (if used by JS) */
.hidden { display: none !important; }
.visible { display: block !important; }

/* Spacing between cards in flex containers */
.card-container > .card, .brand-overview-grid > .brand-card,
.content-grid > * {
  margin-bottom: 20px;
}

/* Ensure no content overlaps due to positioning */
section, .container, .content-wrapper, .card, .brand-card {
  position: relative;
  z-index: 10;
}

/* ========================== END ========================== */
