/* ----------------- CSS RESET & NORMALIZE --------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Georgia', serif;
  color: #343039;
  background: #F6F4F0;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.02em;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  border: none;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 0.5em;
}

/* -------- ELEGANT CLASSIC BRAND COLORS & TYPOGRAPHY ---------- */
:root {
  --primary: #2E3A87;
  --secondary: #FFD726;
  --accent: #FFFFFF;
  --background: #F6F4F0;
  --text: #343039;
  --muted: #D2CCB4;
  --surface: #FFFFFF;
  --shadow: rgba(45, 41, 48, 0.07);
  --border-radius: 12px;
  --font-serif: 'Georgia', 'Times New Roman', Times, serif;
  --font-sans: 'Montserrat', 'Open Sans', Arial, sans-serif;
  --line-space: 1.7;
  --gap-lg: 30px;
  --gap: 20px;
  --gap-sm: 12px;
}

/* ------------- GENERAL LAYOUT ------------------- */
.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

main {
  margin-bottom: 60px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ---------- TYPOGRAPHY SCALE ------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: normal;
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 16px;
}
h1 {
  font-size: 2.75rem;
  letter-spacing: 0.01em;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.35rem;
}
h4 {
  font-size: 1.1rem;
}
.subheadline {
  font-family: var(--font-sans);
  color: #585566;
  font-size: 1.19rem;
  margin-bottom: 8px;
}
p, ul, ol {
  font-size: 1rem;
  font-family: var(--font-serif);
}
blockquote {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  color: var(--primary);
  border-left: 4px solid var(--secondary);
  padding-left: 12px;
  margin-bottom: 16px;
  font-style: italic;
  background: #FBFAF5;
}

/* ------------- HEADER & NAVIGATION -------------------- */
header {
  background: var(--surface);
  box-shadow: 0 2px 16px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding-top: 12px;
  padding-bottom: 12px;
}
header nav {
  display: flex;
  gap: 20px;
}
header nav a {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 4px 0;
  position: relative;
  color: #2E3A87;
  opacity: 0.95;
  transition: color 0.2s, border-bottom 0.2s;
}
header nav a:hover, header nav a:focus {
  color: var(--secondary);
  font-weight: bold;
}
.cta-button {
  font-family: var(--font-sans);
  background: var(--primary);
  color: var(--accent);
  padding: 12px 32px;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 2px 8px var(--shadow);
  transition: background 0.19s, color 0.19s, box-shadow 0.19s, transform 0.14s;
  cursor: pointer;
  display: inline-block;
  border: none;
  outline: none;
  margin-left: 20px;
  letter-spacing: 0.04em;
}
.cta-button:hover,
.cta-button:focus {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 4px 16px rgba(45,41,48,0.15);
}

/* -------------- MOBILE NAVIGATION ------------------ */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: var(--accent);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 12px;
  z-index: 110;
  border: none;
  transition: background 0.22s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--surface);
  box-shadow: 0 4px 32px var(--shadow);
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 28px;
  padding-left: 30px;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.77,0,.175,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2rem;
  align-self: flex-end;
  margin-bottom: 24px;
  margin-right: 24px;
  cursor: pointer;
  transition: color 0.19s;
}
.mobile-menu-close:hover {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mobile-nav a {
  font-family: var(--font-sans);
  font-size: 1.22rem;
  padding: 12px 0;
  color: var(--primary);
  border-radius: 8px;
  transition: background 0.14s, color 0.19s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* ------ HERO SECTIONS ------------- */
.hero {
  background: #F9F8F3;
  padding: 56px 0 48px 0;
  margin-bottom: 44px;
}
.hero h1 {
  font-size: 2.7rem;
  font-weight: bold;
  letter-spacing: 0;
  margin-bottom: 10px;
}
.hero .subheadline {
  font-size: 1.17rem;
  opacity: 0.90;
}
.hero .cta-button {
  margin-top: 24px;
}

/* -------- FEATURE GRIDS (Flexible Layouts) --------- */
.feature-grid,
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-grid {
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--surface);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 16px var(--shadow);
  padding: 24px 24px 20px 24px;
  min-width: 220px;
  flex: 1 1 240px;
  max-width: 48%;
  margin-bottom: 20px;
  transition: box-shadow 0.23s, transform 0.19s;
}
.feature-item img {
  width: 38px;
  height: 38px;
}
.feature-item h3 {
  margin-bottom: 6px;
  font-size: 1.12rem;
  color: var(--primary);
  font-weight: 500;
}
.feature-item:hover,
.feature-item:focus-within {
  box-shadow: 0 4px 32px rgba(76, 74, 89, 0.12);
  transform: translateY(-2px) scale(1.025);
}

/* ----------- CARDS ------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--surface);
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 16px var(--shadow);
  padding: 23px 26px 18px 26px;
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 49%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: box-shadow 0.22s, transform 0.19s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 6px 40px 0 rgba(56,58,99, 0.14);
  transform: translateY(-4px) scale(1.018);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

/* -------- TEXT-IMAGE SECTIONS ----------- */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---------- TESTIMONIALS ------------------- */
.testimonials,
.testimonial-list,
.testimonial-carousel, 
.testimonial-slider {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: #fffefb;
  border-radius: 16px;
  box-shadow: 0 4px 24px var(--shadow);
  margin-bottom: 20px;
  border-left: 4px solid var(--primary);
  font-family: var(--font-serif);
  color: #262334;
}
.testimonial-card p {
  color: #262334;
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 0;
}
.testimonial-meta {
  color: var(--primary);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: bold;
  opacity: 0.85;
}
.testimonial-card:hover {
  box-shadow: 0 10px 40px 0 rgba(45,41,48,0.12);
  border-left: 4px solid var(--secondary);
}

/* ----------- TRUST BAR ----------- */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  background: #FAF7E8;
  border-radius: 14px;
  padding: 14px 20px;
}
.trust-bar img {
  width: 24px;
  margin-right: 8px;
}
.trust-bar span {
  color: var(--primary);
  font-weight: 500;
  margin-right: 18px;
}

/* --------------- CONTACT & INFO -------------- */
.contact-info {
  background: #F5F3EB;
  border-radius: 14px;
  padding: 24px 22px;
  margin-top: 14px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-info ul {
  list-style: none;
  margin: 0;
}
.contact-info li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.contact-info img {
  width: 22px;
  opacity: 0.7;
}
.map-snippet {
  color: #736c52;
  font-size: 0.97rem;
  background: #F6F4F0;
  border-radius: 7px;
  padding: 12px 8px;
  margin-top: 3px;
}

/* --------------- FOOTER ---------------------- */
footer {
  background: var(--primary);
  color: #fff;
  padding: 48px 0 32px 0;
  margin-top: 88px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  justify-content: space-between;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
footer nav a {
  color: #fff3c5;
  font-family: var(--font-sans);
  font-size: 1rem;
  opacity: 0.93;
  transition: color 0.19s;
}
footer nav a:hover {
  color: var(--secondary);
  text-decoration: underline;
}
.footer-contact p {
  font-size: 0.94rem;
  line-height: 1.7;
  margin-bottom: 8px;
  color: #EDE9D0;
}
footer img {
  width: 52px;
  margin-bottom: 10px;
}

/* ---------- COOKIE CONSENT BANNER ---------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--surface);
  border-top: 1.5px solid var(--muted);
  color: var(--primary);
  box-shadow: 0 -3px 12px 0 rgba(0,0,0,0.05);
  padding: 24px 20px;
  z-index: 250;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  animation: cookieBannerSlideIn 0.5s;
}
@keyframes cookieBannerSlideIn {
  from { transform: translateY(80px); opacity:0; }
  to   { transform: translateY(0); opacity:1; }
}
.cookie-banner .banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.cookie-banner button {
  font-family: var(--font-sans);
  border-radius: 7px;
  padding: 9px 23px;
  margin-top: 2px;
  margin-right: 3px;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px var(--shadow);
  transition: background 0.18s, color 0.18s;
}
.banner-accept {
  background: var(--primary);
  color: var(--accent);
}
.banner-accept:hover {
  background: var(--secondary);
  color: #2E3A87;
}
.banner-reject {
  background: #fffefb;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.banner-reject:hover {
  background: #f7efd2;
  color: var(--primary);
}
.banner-settings {
  background: var(--secondary);
  color: var(--primary);
}
.banner-settings:hover {
  background: var(--primary);
  color: var(--accent);
}

/* ------ COOKIE PREFERENCES MODAL --------- */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(34, 30, 44, 0.52);
  z-index: 260;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.35s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity:1; }
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal-content {
  background: #fffefb;
  color: #2E3A87;
  border-radius: 15px;
  max-width: 420px;
  padding: 26px 30px 26px 30px;
  box-shadow: 0 6px 40px rgba(45,41,48,0.15);
  animation: slideUpModal 0.5s;
  font-family: var(--font-serif);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@keyframes slideUpModal {
  from { transform: translateY(64px); opacity:0; }
  to   { transform: translateY(0); opacity:1; }
}
.cookie-categories {
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.02rem;
}
.cookie-category .toggle-switch {
  position: relative;
  width: 48px;
  height: 24px;
  margin-right: 6px;
}
.toggle-switch input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-switch label {
  display: block;
  background: #e4e2de;
  border-radius: 12px;
  cursor: pointer;
  width: 48px;
  height: 24px;
  position: relative;
  transition: background 0.2s;
}
.toggle-switch input:checked + label {
  background: var(--secondary);
}
.toggle-switch label:after {
  content: '';
  position: absolute;
  left: 3px; top: 2.5px;
  width: 19px; height: 19px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1.5px 4px var(--shadow);
  transition: left 0.22s;
}
.toggle-switch input:checked + label:after {
  left: 26px;
}
.cookie-modal-actions {
  margin-top: 6px;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal button {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 8px 20px;
  border-radius: 7px;
  border: none;
  box-shadow: 0 2px 8px var(--shadow);
}

.cookie-close {
  background: none;
  color: #A69A70;
  font-size: 1.13rem;
  align-self: flex-end;
  margin-bottom: 12px;
  cursor: pointer;
  border: none;
}
.cookie-close:hover {
  color: var(--primary);
}

/* ---------- CONTENT GRID (flex only) ----------- */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* ----------- GALLERY QUOTES/HIGHLIGHTS ---------- */
.highlight-quotes {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ----------- FORM ELEMENTS ------------------- */
input, textarea, select {
  font-family: var(--font-serif);
  padding: 8px 13px;
  border: 1.5px solid var(--muted);
  border-radius: 8px;
  min-width: 220px;
  background: #FFF;
  transition: border 0.15s;
  margin-bottom: 12px;
}
input:focus,
textarea:focus,
select:focus {
  border: 1.5px solid var(--primary);
  outline: none;
}
label {
  font-size: 1rem;
  font-family: var(--font-serif);
  color: #343039;
}

/* ------------ SPACING REMINDER (MINIMUM) -------- */
.section,
.card-container,
.card,
.content-grid,
.text-image-section,
.testimonial-card,
.feature-item {
  margin-bottom: 20px;
}

/* --------------- MEDIA QUERIES (RESPONSIVE) -------------- */
@media (max-width: 1080px) {
  .container { max-width: 96vw; }
}
@media (max-width: 900px) {
  .container { max-width: 99vw; padding-left: 12px; padding-right: 12px; }
  .feature-grid, .feature-list {
    gap: 18px;
  }
  .card, .feature-item {
    max-width: 100%;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    gap: 10px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .main-nav {
    display: none !important;
  }
  .feature-grid, .feature-list {
    flex-direction: column;
    gap: 18px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-slider, .testimonial-carousel, .testimonial-list {
    gap: 16px;
  }
}
@media (max-width: 620px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.32rem; }
  .container {
    padding-left: 7px; padding-right: 7px;
  }
  .card, .feature-item {
    padding: 14px 10px 12px 10px;
  }
  .testimonial-card { padding: 13px 8px 11px 14px; }
  .hero { padding: 34px 0 24px 0; }
  .content-wrapper { gap: 13px; }
  .section { padding: 18px 2px; }
  .cookie-banner { padding: 14px 5px; }
}

/* ------------- ANIMATION FOR BUTTONS/HOVERS -------------- */
button, .cta-button {
  transition: background 0.16s, color 0.18s, box-shadow 0.19s, transform 0.12s;
}
button:active, .cta-button:active {
  transform: scale(0.97);
}

/* --------- UTILITIES --------- */
.bg-muted { background: var(--muted); }
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary)!important; }
.text-accent { color: var(--accent) !important; }
.text-center { text-align: center !important; }
.rounded { border-radius: var(--border-radius); }
.shadow { box-shadow: 0 4px 24px var(--shadow); }

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