/* 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;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height: 1.5;
  background: #F4F7F9;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #295A6A;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.02em;
  position: relative;
}

/* FONT FACE - fallback */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,500&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

:root {
  --primary: #295A6A;
  --secondary: #EFE2C3;
  --secondary-contrast: #ffffff;
  --accent: #D3A15D;
  --accent-dark: #9B6F2C;
  --gradient-main: linear-gradient(90deg, #295A6A 0%, #D3A15D 100%);
  --gradient-reverse: linear-gradient(90deg, #D3A15D 0%, #295A6A 100%);
  --success: #6ABD74;
  --shadow: 0 4px 24px rgba(41,90,106,0.12);
  --radius: 16px;
  --spacing-sm: 8px;
  --spacing: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --font-main: 'Open Sans', Arial, Helvetica, sans-serif;
  --font-display: 'Montserrat', sans-serif;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover, a:focus { color: var(--accent-dark); }
ul { list-style: none; }

/* TYPOGRAPHY & HEADINGS */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  line-height: 1.15;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: var(--spacing-lg);
}
h2 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  font-weight: 700;
}
h3 { font-size: 1.125rem; font-weight: 500; }

p, li, ul, ol { font-size: 1rem; margin-bottom: var(--spacing); }
strong { font-weight: 700; }

/* BUTTON & CTA STYLES */
.cta, button, .mobile-menu-close, .mobile-menu-toggle {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: var(--spacing) var(--spacing-lg);
  border: none;
  border-radius: var(--radius);
  background: var(--gradient-main);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background .22s, color .17s, transform .13s;
  display: inline-block;
}
.cta:hover, .cta:focus,
button:hover, button:focus,
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--gradient-reverse);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 36px 0 rgba(41,90,106,0.17);
}
nav .cta {
  margin-left: var(--spacing-lg);
  min-width: 160px;
  text-align: center;
}

/* HEADER STYLES */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) var(--spacing);
  background: #fff;
  box-shadow: 0 2px 16px rgba(41,90,106,0.06);
  position: sticky;
  top: 0;
  z-index: 30;
}
header a img {
  height: 42px;
  width: auto;
  margin-right: var(--spacing-md);
}
header nav {
  display: flex;
  align-items: center;
  gap: var(--spacing);
}
header nav a {
  padding: var(--spacing-sm) var(--spacing-md);
  font-family: var(--font-main);
  font-weight: 600;
  color: var(--primary);
  border-radius: 8px;
  transition: background .18s, color .13s;
  font-size: 1rem;
}
header nav a:hover, header nav a:focus {
  background: var(--secondary);
  color: var(--accent-dark);
}
.mobile-menu-toggle {
  display: none;
  background: none;
  color: var(--primary);
  border: none;
  font-size: 2rem;
  min-width: 48px; min-height: 48px;
  align-items: center;
  justify-content: center;
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: rgba(41,90,106,0.97);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 999;
  transform: translateX(-100vw);
  transition: transform .35s cubic-bezier(.66,.01,.33,1);
  will-change: transform;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  margin: var(--spacing-md) var(--spacing-lg) 0 0;
  background: none;
  color: #fff;
  box-shadow: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  margin: var(--spacing-lg) 0 0 var(--spacing-lg);
}
.mobile-nav a {
  font-size: 1.25rem;
  color: #fff;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: 12px;
  font-weight: 600;
  display: block;
  min-width: 180px;
  background: none;
  transition: background .18s, color .14s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--accent);
  color: var(--primary);
}

/* MAIN & CONTAINER */
main {
  width: 100%;
  flex: 1;
}
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

/* HERO SECTIONS */
.hero {
  width: 100%;
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 6px 28px rgba(41,90,106,0.13);
  border-radius: 0 0 var(--radius) var(--radius);
  margin-bottom: 60px;
  padding: 40px 0 0 0;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero h1, .hero p {
  color: #fff;
}
.hero .cta {
  margin-top: var(--spacing-md);
  background: var(--secondary);
  color: var(--primary);
}
.hero .cta:hover,
.hero .cta:focus {
  background: var(--accent);
  color: #fff;
}

/* SECTIONS */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
section:last-child { margin-bottom: 0; }

/* FLEX PATTERNS MANDATORY */
.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; }

/* GENERAL CARDS */
.card {
  background: var(--secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.card strong {
  color: var(--primary);
  font-size: 1.1em;
}

/* LISTS, ICONS & FEATURES */
ul, ol {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: var(--spacing-md);
}
ul li, ol li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.5;
}
ul li img, ol li img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* TESTIMONIALS */
.testimonial-card {
  background: var(--secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: #222;
  font-size: 1.05em;
  margin-bottom: 24px;
  min-width: 0;
}
.testimonial-card p {
  color: #222; /* Strong contrast for readability! */
  margin-bottom: 0;
}
.testimonial-card strong {
  color: var(--primary);
}

/* FOOTER */
footer {
  background: var(--primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 40px 20px 32px 20px;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -2px 16px rgba(41,90,106,0.07);
  margin-top: 48px;
}
.footer-logo img {
  width: 64px;
  margin-bottom: 8px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}
footer nav a {
  color: #fff;
  font-weight: 600;
  opacity: 0.92;
  padding: var(--spacing-sm) var(--spacing);
  border-radius: 8px;
  transition: background .16s;
}
footer nav a:hover,
footer nav a:focus {
  background: var(--accent);
  color: #fff;
  opacity: 1;
}
.footer-contact p {
  margin: 0 0 6px 0;
  color: #fff;
  opacity: .92;
  font-size: 0.98em;
}

/* FORM ELEMENTS (if present) */
input, textarea, select {
  font-family: var(--font-main);
  font-size: 1em;
  border: 1px solid #bfcad2;
  border-radius: 9px;
  padding: 10px 14px;
  margin-bottom: var(--spacing);
  background: #fff;
  min-width: 0;
  outline: none;
  transition: border .17s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent-dark);
}

/* === COOKIE CONSENT BANNER & MODAL === */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #FFFFFF;
  color: var(--primary);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  box-shadow: 0 -2px 24px rgba(41,90,106,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 24px 20px 24px;
  z-index: 2000;
  animation: banner-slide-in .7s cubic-bezier(.65,0,.23,1);
}
@keyframes banner-slide-in {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.cookie-banner button,
.cookie-banner .cta {
  font-size: 1em;
  font-family: var(--font-display);
  padding: 10px 26px;
  border-radius: 12px;
  border: none;
  margin: 0;
  transition: background .17s, color .13s;
  background: var(--gradient-main);
  color: #fff;
  cursor: pointer;
}
.cookie-banner button.secondary {
  background: var(--secondary);
  color: var(--primary);
  border: 1px solid var(--primary);
}
.cookie-banner button.secondary:hover,
.cookie-banner button.secondary:focus {
  background: var(--accent);
  color: #fff;
}
.cookie-banner button.settings {
  background: var(--accent);
  color: #fff;
}
.cookie-banner button.settings:hover,
.cookie-banner button.settings:focus {
  background: var(--primary);
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(41,90,106,0.80);
  z-index: 2050;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modal-fade-in .4s;
}
@keyframes modal-fade-in {
  from { opacity:0; } to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  color: var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 425px;
  width: 98vw;
  padding: 32px 28px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.cookie-modal-content h2 {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.18rem;
  margin-bottom: 2px;
}
.cookie-modal-content label {
  font-size: 1em;
  color: #222;
  gap: 8px;
  display: flex;
  align-items: center;
}
.cookie-modal-content input[type="checkbox"] {
  accent-color: var(--primary);
  width: 20px; height: 20px;
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 5px;
  flex-wrap: wrap;
}

/* SPECIAL FLEX AND SECTION PATTERNS */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-section ul {
  margin-bottom: 0;
}

/* CUSTOM VISUALS for Gradient_Modern & BRAND */
section, .card, .testimonial-card {
  background: linear-gradient(100deg, #fff 90%, #EFE2C3 100%);
}

section {
  border-radius: var(--radius);
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: var(--shadow);
}

.card {
  background: linear-gradient(95deg, #EFE2C3 80%, #fff 100%);
  border: none;
  transition: box-shadow .18s, transform .12s;
}
.card:hover {
  box-shadow: 0 8px 36px 3px rgba(41,90,106,0.18);
  transform: translateY(-4px) scale(1.01);
}

.cta {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 2px 12px 1px rgba(41,90,106,0.15);
  border-radius: 999px;
  padding: 12px 36px;
  transition: background .15s, color .1s, box-shadow .15s, transform .12s;
}
.cta:hover, .cta:focus {
  background: var(--gradient-reverse);
  color: #fff;
  box-shadow: 0 4px 24px 2px rgba(211,161,93,0.13);
  transform: translateY(-2px) scale(1.04);
}

/* VISUAL HIERARCHY & SPACING */
.content-wrapper > * {
  margin-bottom: 0;
}
main ul, main ol {
  margin-bottom: var(--spacing-lg);
}

/* IMAGE AND ICON STYLING */
ul li img, .text-section ul li img {
  min-width: 28px;
  max-width: 32px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(41,90,106,.09);
}
.content-wrapper > div > img:not(.footer-logo img) {
  width: 54px; margin-right: 10px;
  display: inline-block;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1050px) {
  .container { max-width: 100%; padding: 0 10px; }
  header, footer {padding-left: 0; padding-right: 0; }
}
@media (max-width: 900px) {
  .container { max-width: 98vw; }
  section { padding: 32px 8px; }
  .hero { padding: 34px 0 0 0; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  header nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .hero { padding: 28px 0 0 0; min-height: unset; }
  section, .section { padding: 22px 3vw; margin-bottom: 28px; }
  .card-container, .content-grid, .feature-item {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 12px;
  }
  .text-image-section { flex-direction: column; gap: 18px; }
  footer {padding: 20px 3vw 18px 3vw; gap: 14px; margin-top: 18px;}
  .footer-contact {font-size: .98em;}
}
@media (max-width: 520px) {
  html { font-size: 14px; }
  .mobile-nav a{font-size:1.05em; min-width:120px;}
  .hero h1{font-size:1.37rem;}
  .hero p{font-size:1rem;}
}

/* MICROINTERACTIONS & TRANSITIONS */
.card, .testimonial-card, .cta, button, .feature-item, .hero, section {
  transition: box-shadow .16s cubic-bezier(.77,.07,.62,.99),
              transform .15s cubic-bezier(.61,.06,.23,1),
              background .15s;
}
@media (hover: hover) {
  .card:hover, .testimonial-card:hover {
    box-shadow: 0 8px 36px 3px rgba(41,90,106,0.15);
    transform: translateY(-4px) scale(1.01);
  }
}

/* VISIBILITY & UTILITY */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

/* ACCESSIBILITY OUTLINES */
a:focus, button:focus, .cta:focus, input:focus {
  outline: 2px dashed var(--accent-dark);
  outline-offset: 2px;
}

/* SPACING utilities */
.mb-0 {margin-bottom: 0 !important;}
.mb-1 {margin-bottom: var(--spacing-sm)!important;}
.mb-2 {margin-bottom: var(--spacing)!important;}
.mb-3 {margin-bottom: var(--spacing-md)!important;}
.mb-4 {margin-bottom: var(--spacing-lg)!important;}

/* CUSTOM HIDE ON MOBILE (utility) */
.hide-mobile { display:inline-block; }
@media (max-width: 768px) { .hide-mobile { display: none !important; } }

/* CUSTOM CLASSES FOR CONSISTENCY */
.card-container {margin-top: var(--spacing-md);}

/* Ensure no elements overlap and z-index priority for overlays */
.mobile-menu, .cookie-banner, .cookie-modal {z-index: 2000;}

/* END CSS */
