/* ====================================
   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,
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.5;
  background: #fff;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img, picture, video {
  max-width: 100%;
  display: block;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  color: inherit;
  outline: none;
}
button {
  cursor: pointer;
}

/* ================================
   Brand Fonts
   ================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');
:root {
  --primary: #202E4A;
  --secondary: #E0A96D;
  --accent: #F3F5E1;
  --text-main: #222;
  --text-light: #fff;
  --text-gray: #666;
  --surface: #fff;
  --surface-dark: #181818;
  --gray-light: #f5f5f5;
  --gray-medium: #d1d5db;
  --gray-dark: #2c2c2c;
  --border: #e5e7eb;
  --shadow: 0 4px 24px 0 rgba(30,34,44,0.08);
  --radius: 12px;
}

body {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
  color: var(--text-main);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.015em;
}

h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 24px; }
h2 { font-size: 2rem; line-height: 1.22; margin-bottom: 20px; }
h3 { font-size: 1.4rem; line-height: 1.3; margin-bottom: 16px; }
h4, h5, h6 { font-size: 1.1rem; margin-bottom: 12px; }

p, ul, ol, li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-main);
}
strong, b { font-weight: 700; color: var(--primary); }
em, i { font-style: italic; color: var(--gray-dark); }


/* ================================
   Utility Classes for Layout
   ================================ */
.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 32px;
  background: none;
}
/* Legal/text-only sections can have larger spacing */
.legal-section {
  padding: 40px 24px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 48px;
  gap: 22px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  box-sizing: border-box;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(32,46,74,0.15);
  border-color: var(--primary);
  z-index: 2;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--gray-light);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: 0 2px 16px rgba(32,46,74,0.06);
  color: var(--text-main);
  transition: box-shadow 0.25s;
}
.testimonial-card p {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-main);
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--gray-dark);
  font-family: 'Lato', Arial, sans-serif;
}
.testimonial-card:hover {
  box-shadow: 0 4px 32px rgba(32,46,74,0.18);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ================================
   Header & Navigation
   ================================ */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
header img {
  height: 48px;
  margin-right: 22px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: var(--text-main);
  letter-spacing: 0.02em;
  padding: 8px 4px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--primary);
  color: var(--text-light);
}
.cta-btn {
  background: var(--primary);
  color: var(--text-light);
  padding: 12px 26px;
  border-radius: 8px;
  font-family: 'Playfair Display', serif;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  box-shadow: 0 1px 6px rgba(32,46,74,.08);
  transition: background 0.2s, box-shadow 0.3s, transform 0.15s;
  border: none;
  outline: none;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #252c3f;
  color: var(--secondary);
  box-shadow: 0 4px 16px rgba(32,46,74,0.15);
  transform: translateY(-3px) scale(1.05);
}

.mobile-menu-toggle {
  background: none;
  color: var(--primary);
  font-size: 2rem;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  display: none;
  transition: background 0.15s;
  z-index: 1021;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--gray-light);
}

/* =========== MOBILE MENU =========== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,46,74,0.98);
  flex-direction: column;
  align-items: flex-start;
  z-index: 2000;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: opacity 0.4s cubic-bezier(.77,.01,.35,1), transform 0.4s cubic-bezier(.77,.01,.35,1);
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--secondary);
  font-size: 2.2rem;
  padding: 10px;
  border: none;
  margin: 16px 0 0 20px;
  align-self: flex-start;
  border-radius: 6px;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(224,169,109,0.15);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 38px 30px 30px 30px;
  margin-top: 20px;
}
.mobile-nav a {
  font-size: 1.3rem;
  color: #fff;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  width: 100%;
  letter-spacing: 0.04em;
  transition: color 0.15s, background 0.15s;
  border-radius: 4px;
  font-family: 'Playfair Display', serif;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
  background: rgba(224,169,109,0.08);
}

/* ================================
   Hero Section
   ================================ */
.hero {
  background: linear-gradient(120deg,#fff 65%, #e7e8ea 100%);
  border-bottom: 1px solid var(--gray-medium);
  padding: 48px 0 42px 0;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 0;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.7rem;
}
.hero p {
  color: var(--gray-dark);
  font-size: 1.2rem;
  margin-bottom: 18px;
}
.hero .cta-btn {
  margin-top: 10px;
}

/* ================================
   Main Content Sections
   ================================ */
section {
  margin-bottom: 60px;
  padding: 40px 20px 20px 20px;
}
section:last-child {
  margin-bottom: 0;
}
section > .container > .content-wrapper {
  background: none;
  box-shadow: none;
  border: none;
}

ul {
  padding-left: 1.4em;
  margin-bottom: 16px;
}
ul li {
  margin-bottom: 8px;
  color: var(--text-main);
  position: relative;
  padding-left: 0.6em;
}
ul li strong {
  color: var(--primary);
}

/* ================================
   Footer
   ================================ */
footer {
  background: var(--primary);
  color: #fff;
  padding: 32px 0 0 0;
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 2px solid var(--secondary);
  z-index: 51;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: center;
  margin-bottom: 18px;
}
.footer-nav a {
  font-family: 'Lato', Arial, sans-serif;
  font-size: .98rem;
  color: #fff;
  opacity: 0.85;
  letter-spacing: 0.02em;
  border-radius: 4px;
  padding: 8px 6px;
  transition: color 0.2s, background 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
  opacity: 1;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 12px;
  margin-bottom: 18px;
}
.footer-brand img {
  width: 62px;
  height: auto;
}

/* ================================
   Cookie Consent Banner
   ================================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: rgba(32,46,74,0.95);
  color: #fff;
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
  box-shadow: 0 -4px 24px rgba(32,46,74,0.18);
  font-size: 1rem;
  animation: banner-fade-in 0.4s ease;
  transition: transform 0.4s, opacity 0.4s;
}
@keyframes banner-fade-in {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner .cookie-banner__text {
  max-width: 600px;
  color: #fff;
}
.cookie-banner .cookie-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cookie-btn {
  background: var(--secondary);
  color: var(--primary);
  font-family: 'Lato', Arial, sans-serif;
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: 700;
  margin: 0 4px;
  border: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(32,46,74,0.07);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #db953a;
  color: #fff;
}
.cookie-btn.secondary {
  background: transparent;
  color: #fff;
  border: 1px solid var(--secondary);
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(32,46,74,0.74);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.2s;
}
.cookie-modal {
  background: #fff;
  color: var(--text-main);
  border-radius: 14px;
  box-shadow: 0 12px 48px rgba(32,46,74,0.22);
  max-width: 430px;
  width: 98%;
  padding: 32px 26px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: fade-in 0.28s;
  position: relative;
}
@keyframes fade-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-modal h2 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--gray-medium);
  padding-bottom: 9px;
}
.cookie-category label {
  font-size: 1rem;
  color: var(--primary);
}
.cookie-category .toggle {
  width: 44px;
  height: 26px;
  background: var(--gray-medium);
  border-radius: 24px;
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  margin-left: 8px;
}
.cookie-category input[type=checkbox] {
  display: none;
}
.cookie-category .slider {
  position: absolute;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: var(--secondary);
  left: 4px;
  transition: left 0.23s;
}
.cookie-category input[type=checkbox]:checked + .slider {
  left: 22px;
  background: var(--primary);
}
.cookie-modal .cookie-actions {
  gap: 14px;
  margin-top: 16px;
  justify-content: flex-end;
}
.cookie-modal .cookie-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  color: var(--primary);
  font-size: 1.5rem;
  border: none;
  padding: 6px;
  border-radius: 4px;
  transition: background 0.15s;
}
.cookie-modal .cookie-close:hover, .cookie-modal .cookie-close:focus {
  background: var(--gray-light);
}

/* ================================
   Cards, Feature Items, Grid
   ================================ */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 18px;
  gap: 10px;
}
.card-content h3 {
  margin-bottom: 8px;
}

/* ================================
   Buttons and Links
   ================================ */
button, .btn, .cta-btn, .cookie-btn {
  transition: background 0.18s, color 0.18s, box-shadow 0.24s, transform 0.2s;
}

/* ================================
   Responsive & Typography Layout
   ================================ */
@media (max-width: 1100px) {
  .container { max-width: 96vw; }
}
@media (max-width: 850px) {
  .hero h1 { font-size: 2.05rem; }
  h2 { font-size: 1.35rem; }
}
@media (max-width: 768px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  header .container {
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 7px 12px 7px;
  }
  .main-nav {
    display: none;
  }
  .cta-btn {
    padding: 11px 18px;
    font-size: 1rem;
  }
  .mobile-menu-toggle {
    display: block;
    margin-left: 17px;
  }
  .content-wrapper, .card {
    margin-bottom: 20px;
    padding: 12px 8px;
  }
  section {
    margin-bottom: 44px;
    padding: 30px 8px 12px 8px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 28px;
  }
  .footer-nav {
    gap: 18px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 8px 70px 8px;
    font-size: 0.93rem;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.13rem; }
  h3, h4, h5 { font-size: 1rem; }
  .hero h1 { font-size: 1.3rem; }
  .footer-brand img { width: 42px; }
}

/* ================================
   Misc Visual Tweaks
   ================================ */
::-webkit-scrollbar {
  width: 8px;
  background: var(--gray-light);
}
::-webkit-scrollbar-thumb {
  background: var(--gray-medium);
  border-radius: 6px;
}

/* Spacing for image/icon sections */
section .content-wrapper a img[alt^="Instagram"],
section .content-wrapper a img[alt^="Facebook"] {
  display: inline-block;
  height: 28px;
  width: 28px;
  margin-right: 10px;
  vertical-align: middle;
  transition: filter 0.18s, opacity 0.14s;
  filter: grayscale(1) contrast(1.1);
  opacity: 0.72;
}
section .content-wrapper a:hover img[alt^="Instagram"],
section .content-wrapper a:hover img[alt^="Facebook"] {
  filter: none;
  opacity: 1;
}

/* ================================
   Focus and Accessibility
   ================================ */
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
  z-index: 1;
}

/* Hide visually but keep for screenreaders */
.sr-only,.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/* ================================
   Micro Animation for Card Hover
   ================================ */
.card, .testimonial-card, .cta-btn, .cookie-btn {
  transition: box-shadow 0.17s cubic-bezier(0.4,0,0.2,1), transform 0.14s, background 0.20s, color 0.14s;
}
.card:active, .testimonial-card:active, .cta-btn:active {
  transform: scale(0.98);
}

/* ================================
   Print Styles
   ================================ */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  body { color: #000; background: #fff !important; }
  section, .container { page-break-inside: avoid; }
}
