/* 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.55;
  background: #F5F6FA;
  color: #1a232c;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.15s;
}
strong {
  font-weight: 600;
}

/* CUSTOM VARIABLES (for fallback) */
:root {
  --primary: #19314A;
  --secondary: #C2A25E;
  --accent: #FFFFFF;
  --bg-section: #F7F7FA;
  --border-card: #E6E0D4;
  --shadow-main: 0 2px 24px 0 rgba(25,49,74,0.09);
}


/* TYPOGRAPHY */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@600;700&family=Montserrat:wght@400;500;700&display=swap');
body {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  background: #F5F6FA;
  color: #19314A;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', Georgia, serif;
  color: #19314A;
  margin-bottom: 16px;
  font-weight: 700;
}
h1 { font-size: 2.5rem; line-height: 1.2; letter-spacing: -1px; }
h2 { font-size: 2rem;   line-height: 1.25; letter-spacing: -0.5px; }
h3 { font-size: 1.35rem; line-height: 1.35; }
h4,h5,h6 { font-size: 1.1rem; }
.subheadline {
  font-size: 1.15rem;
  color: #4D5570;
  margin-bottom: 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}
p {
  margin-bottom: 18px;
  color: #254264;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* LAYOUT CONTAINERS */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

main {
  min-height: 60vh;
  padding-top: 20px;
}

.section {
  background: transparent;
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
}

/* FLEX LAYOUTS (MANDATORY) */
.features-grid, .card-container, .card-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: #fff;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-main);
  border-radius: 22px;
  margin-bottom: 20px;
  position: relative;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 260px;
  flex: 1 1 280px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 30px;
  background: #fff;
  border: 1px solid #E6E0D4;
  border-radius: 16px;
  box-shadow: 0 2px 18px 0 rgba(27,44,60, 0.09);
  margin-bottom: 20px;
  margin-top: 12px;
  color: #19314A;
  position: relative;
  flex: 1 1 280px;
  transition: box-shadow 0.2s;
}

.testimonial-card strong {
  color: var(--secondary);
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
.testimonial-card p {
  color: #254264;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(25,49,74, 0.16);
  border-color: var(--secondary);
  z-index: 1;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

ul li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* HEADER + NAVIGATION */
header {
  background: var(--primary);
  color: var(--accent);
  width: 100%;
  box-shadow: 0 2px 14px 0 rgba(25,49,74,0.06);
  padding: 0;
  position: relative;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}
header img {
  height: 48px;
  margin-right: 18px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
header nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 5px 7px;
  border-radius: 6px;
  transition: color 0.18s, background 0.18s;
}
header nav a:hover, header nav a.active {
  color: var(--secondary);
  background: rgba(194,162,94,0.10);
}
.cta.primary, .cta.secondary {
  display: inline-block;
  padding: 12px 32px;
  font-size: 1.12rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 24px;
  transition: background 0.19s, color 0.19s, box-shadow 0.19s;
  cursor: pointer;
  text-align: center;
  margin-left: 20px;
  box-shadow: 0 2px 14px 0 rgba(25,49,74,0.08);
}
.cta.primary {
  background: linear-gradient(90deg, #C2A25E 60%, #E2C888 100%);
  color: #19314A;
  box-shadow: 0 4px 22px 0 rgba(194,162,94, 0.13);
  border: 2px solid #C2A25E;
}
.cta.primary:hover, .cta.primary:focus {
  background: #19314A;
  color: #fff;
  border-color: #19314A;
  box-shadow: 0 8px 32px 0 rgba(25,49,74,0.23);
}
.cta.secondary {
  background: #fff;
  color: #C2A25E;
  border: 2px solid #C2A25E;
  box-shadow: none;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #C2A25E;
  color: #19314A;
  box-shadow: 0 6px 40px 0 rgba(194,162,94,0.14);
}
header .cta {
  margin-left: auto;
  margin-right: 12px;
}

/* FLEXBOX: Responsive nav alignment */
header nav,header .cta,header .mobile-menu-toggle{
  align-self: center;
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 2rem;
  cursor: pointer;
  margin-left: 14px;
  z-index: 1200;
  transition: color 0.15s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: #fff;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(25,49,74,0.97);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.55,.15,.35,1.12);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 32px 20px 24px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  color: #fff;
  font-size: 2.2rem;
  background: none;
  border: none;
  align-self: flex-end;
  margin-bottom: 26px;
  cursor: pointer;
  transition: color 0.19s;
}
.mobile-menu-close:hover,.mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 500;
  padding: 10px 0;
  border-radius: 8px;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a.active {
  color: var(--secondary);
  background: rgba(194,162,94,0.16);
}

/* HERO & FEATURE SECTIONS */
.features-grid > div {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border-card);
  box-shadow: 0 2px 16px 0 rgba(25,49,74,0.07);
  padding: 22px 20px 18px 20px;
  flex: 1 1 270px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: 220px;
  margin-bottom: 20px;
  transition: border 0.24s, box-shadow 0.18s;
}
.features-grid > div:hover {
  border: 1.5px solid var(--secondary);
  box-shadow: 0 5px 28px 0 rgba(194,162,94,0.16);
}
.features-grid img {
  width: 40px; height: 40px;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 2px rgba(194,162,94,0.08));
}
.features-grid h3 {
  color: var(--primary);
  font-size: 1.13rem;
  font-family: 'Lora', Georgia, serif;
  margin-bottom: 6px;
}
.features-grid p {
  font-size: 1.01rem;
  color: #33415c;
}

/* MODALS: COOKIE CONSENT */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  color: #19314A;
  border-top: 2px solid #C2A25E;
  box-shadow: 0 -4px 18px 0 rgba(25,49,74,0.13);
  padding: 26px 18px 24px;
  z-index: 1600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  font-size: 1rem;
  animation: slideUp 0.5s cubic-bezier(.6,0,.41,1.03);
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity:0; }
  to   { transform: translateY(0); opacity:1; }
}
.cookie-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-consent-banner button {
  background: #19314A;
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 9px 22px;
  font-size: 1rem;
  margin: 0 3px;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
}
.cookie-consent-banner button.accept {
  background: linear-gradient(90deg,#C2A25E 60%,#E2C888 100%);
  color: #19314A;
  border: 1.5px solid #C2A25E;
}
.cookie-consent-banner button.accept:hover {
  background: #fff;
  color: #C2A25E;
}
.cookie-consent-banner button.reject {
  background: #E0E5EC;
  color: #19314A;
  border: 1.5px solid #C2A25E;
}
.cookie-consent-banner button.reject:hover {
  background: #19314A;
  color: #fff;
}
.cookie-consent-banner button.settings {
  background: #fff;
  color: #C2A25E;
  border: 1.5px solid #C2A25E;
}
.cookie-consent-banner button.settings:hover {
  background: #C2A25E;
  color: #fff;
}

.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(25,49,74,0.65);
  z-index: 1700;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s;
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  padding: 29px 28px 25px;
  border-radius: 16px;
  box-shadow: 0 8px 44px 0 rgba(25,49,74,0.24);
  max-width: 420px;
  width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.cookie-modal h2 {
  color: #19314A;
  margin-bottom: 12px;
  font-size: 1.4rem;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.cookie-modal .category-row {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: space-between;
  width: 100%;
}
.cookie-modal .category-row label {
  font-weight: 500;
}
.cookie-modal .switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 22px;
}
.cookie-modal .switch input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #E0E0E0;
  border-radius: 16px;
  transition: background 0.22s;
}
.cookie-modal .switch input:checked+.slider {
  background: #C2A25E;
}
.cookie-modal .slider:before {
  content: '';
  position: absolute;
  height: 16px; width: 16px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.22s;
  box-shadow: 0 1.5px 3px 0 rgba(25,49,74,0.10);
}
.cookie-modal .switch input:checked+.slider:before {
  transform: translateX(14px);
}
.cookie-modal-close {
  position: absolute;
  right: 20px; top: 15px;
  background: none;
  border: none;
  color: #19314A;
  font-size: 1.7rem;
  cursor: pointer;
}

/* FOOTER */
footer {
  background: #1B2330;
  color: #fff;
  padding: 0;
  width: 100%;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  padding: 44px 20px 34px 20px;
}
footer .content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
footer a {
  color: #fff;
  transition: color 0.16s;
}
footer a:hover, footer nav a.active {
  color: #C2A25E;
}
footer ul {
  margin-bottom: 16px;
}
footer ul li {
  color: #EBE3D6;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  gap: 10px;
  margin-bottom: 8.5px;
}
footer img {
  width: 34px;
  height: auto;
  margin-bottom: 8px;
}
footer nav {
  display: flex;
  gap: 18px;
  flex-direction: row;
  flex-wrap: wrap;
  font-size: 1rem;
}

/* RESPONSIVE: MOBILE-FIRST */
@media (max-width: 1200px) {
  .container {
    max-width: 980px;
  }
}
@media (max-width: 990px) {
  .container {
    max-width: 760px;
  }
  header nav, header .cta {
    font-size: 0.94rem;
  }
  .section {
    padding: 32px 8px;
    margin-bottom: 40px;
  }
  .features-grid {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 98vw;
    padding: 0 8px;
  }
  .section {
    padding: 24px 4px;
  }
  .cta.primary, .cta.secondary {
    font-size: 1rem;
    padding: 10px 20px;
    margin-left: 0;
    margin-right: 0;
  }
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 10px 6px;
    min-height: 56px;
  }
  header nav {
    display: none;
  }
  header .cta {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
    margin-left: auto;
  }
  .features-grid, .card-container, .card-grid, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card, .features-grid > div, .card, .footer .content-wrapper {
    padding-left: 14px;
    padding-right: 14px;
    min-width: unset;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 32px 10px 18px 10px;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.24rem; }
  .container, .section, .testimonial-card, .features-grid > div {
    padding-left: 4px;
    padding-right: 4px;
  }
}

/* FLEX: Text + Image section responsive */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
}

/* FLEX: Card container responsive */
@media (max-width: 560px) {
  .features-grid, .card-container, .card-grid, .content-grid {
    gap: 12px;
  }
}

/* MISCELLANEOUS UI ENHANCEMENTS */
::-webkit-scrollbar { width: 9px; background: #eae6dc; }
::-webkit-scrollbar-thumb { background: #C2A25E; border-radius: 5px; }

input, button, textarea, select {
  font-family: inherit;
  outline: none;
}

/* Decorative premium details */
.section > .container > .content-wrapper > h2 {
  position: relative;
  display: inline-block;
}
.section > .container > .content-wrapper > h2:after {
  content: '';
  display: block;
  width: 38px;
  height: 3px;
  background: linear-gradient(90deg,#C2A25E 70%, #E2C888 100%);
  border-radius: 3px;
  margin-top: 7px;
  margin-bottom: 12px;
}

/* Form Elements (if any in future) */
input, textarea, select {
  border-radius: 10px;
  border: 1.5px solid #C2A25E;
  padding: 8px 14px;
  font-size: 1rem;
  background: #fff;
  color: #1a232c;
  transition: border-color 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: #19314A;
}

/* Animations for interactive elements */
.cta.primary, .cta.secondary, .mobile-nav a, header nav a, .features-grid > div, .testimonial-card {
  transition: background 0.22s, color 0.20s, border 0.18s, box-shadow 0.17s, transform 0.13s;
}
.cta.primary:active, .cta.secondary:active, .mobile-nav a:active { transform: scale(0.97); }
.features-grid > div:active, .testimonial-card:active { transform: scale(0.98); }

/* Accessibility: Hide visually */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ACCENTUATED GOLD SPAN DECORATION */
.gold {
  color: #C2A25E;
  font-weight: 700;
}

/* Ensure adequate spacing between all card/section elements */
.section > .container > .content-wrapper > * + * {
  margin-top: 18px;
}

/* Link underline on hover for legal */
footer nav a {
  border-bottom: 1.5px solid transparent;
  padding-bottom: 2px;
}
footer nav a:hover {
  border-bottom: 1.5px solid #C2A25E;
}

/* Prevent content overlapping */
.card, .testimonial-card, .features-grid > div, .section { z-index: 1; }

/* Z-INDEX STACKS: mobile nav & cookies above all */
.mobile-menu, .cookie-consent-banner, .cookie-modal-overlay { z-index: 4000; }

/* Custom scrollbar for cookie modal (for overflow) */
.cookie-modal {
  max-height: 95vh;
  overflow-y: auto;
}

/* END CSS */
