/* === 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: inherit;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F6F2EA;
  color: #255679;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* === ROOT VARIABLES === */
:root {
 --color-primary: #255679;
 --color-secondary: #E5A85C;
 --color-accent: #F6F2EA;
 --color-bg-hero: linear-gradient(90deg, #E5A85C 0%, #255679 100%);
 --color-bg-section: linear-gradient(90deg, #F6F2EA 0%, #E5A85C 100%);
 --color-card: #fff;
 --color-footer: #255679;
 --color-testimonial-bg: #fff;
 --color-footer-link: #fff;
 --color-footer-link-hover: #E5A85C;

 --font-display: 'Montserrat', Arial, sans-serif;
 --font-body: 'Open Sans', Arial, sans-serif;
}

body {
  font-family: var(--font-body);
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 16px;
  letter-spacing: 0.1px;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  margin-bottom: 16px;
  color: var(--color-primary);
  font-weight: 700;
}
h1 {
  font-size: 2rem;
  line-height: 1.15;
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.17rem;
}
@media (min-width: 600px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.3rem; }
}
p, ul, ol {
  margin-bottom: 16px;
}

/* === LAYOUT ELEMENTS === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
  background: #fff; /* subtle contrast to hero */
}

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-section);
  border-radius: 24px;
  box-shadow: 0 2px 16px rgba(37,86,121,0.05);
}

/* === HERO SECTION === */
.hero {
  background: var(--color-bg-hero);
  color: #fff;
  border-radius: 0 0 36px 36px;
  box-shadow: 0 8px 24px rgba(37,86,121,0.04);
}
.hero .container {
  padding-top: 48px;
  padding-bottom: 48px;
}
.hero h1, .hero p {
  color: #fff;
}
.hero .cta-btn {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(37,86,121,0.09);
}
.hero .cta-btn:hover {
  background: var(--color-secondary);
  color: #fff;
}

/* === MAIN NAVIGATION === */
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 7px;
  color: var(--color-primary);
  transition: background 0.25s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}

.cta-btn {
  font-family: var(--font-display);
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 10px 30px;
  font-size: 1rem;
  font-weight: 700;
  margin-left: 12px;
  cursor: pointer;
  transition: background 0.24s, box-shadow 0.24s, color 0.18s;
  box-shadow: 0 2px 12px rgba(37,86,121,0.09);
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(37,86,121,0.13);
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: transparent;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background: #fff;
  box-shadow: 0 4px 24px rgba(37,86,121,0.13);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.23,1.1,.32,1);
  padding: 32px 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 2rem;
  padding: 12px 28px 0 24px;
  cursor: pointer;
  align-self: flex-end;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  padding: 24px;
}
.mobile-nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  padding: 12px 10px;
  border-radius: 8px;
  transition: background 0.22s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}

@media (max-width: 1023px) {
  .main-nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* === FLEXBOX LAYOUTS as per requirement === */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  margin-bottom: 16px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-card);
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(37,86,121,0.08);
  padding: 24px;
  min-width: 240px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  transition: box-shadow 0.24s, transform 0.22s;
}
.feature-item:hover {
  box-shadow: 0 10px 32px rgba(37,86,121,0.12);
  transform: translateY(-4px) scale(1.03);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(37,86,121,.07);
  margin-bottom: 20px;
  position: relative;
  padding: 24px;
}
.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;
  background: var(--color-testimonial-bg);
  color: #222;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(37,86,121,0.10);
  padding: 20px;
  margin-bottom: 20px;
  max-width: 750px;
  transition: box-shadow 0.17s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(37,86,121,0.14);
}
.testimonial-meta {
  font-size: 1rem;
  color: var(--color-primary);
  margin-left: 12px;
}

/* Responsive: Mobile-first */
@media (max-width: 768px) {
  .feature-grid,
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .container {
    padding: 0 9px;
  }
  .hero .container {
    padding-top: 32px; padding-bottom: 32px;
  }
}

/* === TEXT SECTIONS, FAQ, BLOCKQUOTE, LISTS === */
.text-section {
  margin-bottom: 20px;
}
.text-section img {
  vertical-align: middle;
  margin-right: 8px;
}
blockquote {
  font-style: italic;
  color: var(--color-primary);
  background: #F6F2EA;
  border-left: 5px solid var(--color-secondary);
  padding: 16px 24px;
  border-radius: 8px;
  margin: 24px 0 24px 0;
}
ul, ol {
  padding-left: 18px;
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 8px;
  line-height: 1.6;
  list-style-position: outside;
  color: #255679;
}
ul li::marker, ol li::marker {
  color: var(--color-secondary);
}

.faq-accordion > h3 {
  margin-bottom: 5px;
  font-size: 1.12rem;
}
.faq-accordion > h3 + p {
  margin-bottom: 18px;
  color: #1c3243;
  background: #fcfaf7;
  border-radius: 7px;
  padding: 12px 17px 14px 15px;
  box-shadow: 0 1px 3px rgba(37,86,121,0.06);
}

/* === ICON GROUPS === */
.feature-icons {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  margin-bottom: 12px;
}
.feature-icons img {
  width: 44px;
  height: 44px;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(37,86,121,0.08);
  padding: 4px;
  transition: background 0.17s;
}
.feature-icons img:hover {
  background: var(--color-secondary);
}

/* === FOOTER === */
footer {
  background: var(--color-footer);
  color: #fff;
  padding: 42px 0 24px 0;
  box-shadow: 0 -2px 8px rgba(37,86,121,0.10);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 20px;
  justify-content: center;
}
.footer-nav a {
  color: var(--color-footer-link);
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  transition: color 0.22s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-footer-link-hover);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 1.04rem;
  color: #fff;
}
.footer-contact img {
  vertical-align: middle;
  margin-right: 7px;
  height: 22px;
  width: 22px;
  opacity: 0.86;
}
@media (max-width: 600px) {
  footer .container {
    padding: 0 0px;
  }
  .footer-contact {
    font-size: 0.98rem;
  }
}

/* === BUTTONS === */
button, .btn, .cta-btn {
  outline: none;
  cursor: pointer;
}
.btn-secondary {
  background: #fff;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
  border-radius: 20px;
  padding: 10px 30px;
  font-family: var(--font-display);
  font-weight: 700;
  transition: background 0.21s, color 0.19s, border 0.2s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* === SHADOWS & EFFECTS === */
.card, .testimonial-card, .feature-item {
  transition: box-shadow 0.2s, transform 0.18s;
}
.card:hover, .feature-item:hover {
  box-shadow: 0 6px 20px rgba(37,86,121,0.13);
  transform: translateY(-3px) scale(1.02);
}

/* === SCROLLBAR STYLING === */
::-webkit-scrollbar {
  width: 10px;
  background: #ecedea;
}
::-webkit-scrollbar-thumb {
  background: #e5a85c;
  border-radius: 6px;
}

/* === MOBILE: Tighter Spacing, Stack Layouts === */
@media (max-width: 480px) {
  h1 { font-size: 1.38rem; }
  h2 { font-size: 1.13rem; }
  .feature-item { padding: 16px; }
  .card { padding: 12px; }
  .footer-nav { gap: 13px; font-size: 0.97rem; }
  .footer-contact { font-size: 0.93rem; }
  .section { padding: 24px 7px; }
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10100;
  background: #fff;
  border-top: 4px solid var(--color-secondary);
  box-shadow: 0 -2px 22px rgba(37,86,121,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 16px 20px 16px;
  gap: 16px;
  transition: transform 0.35s;
}
.cookie-banner.hide {
  transform: translateY(110%);
}
.cookie-banner p {
  color: var(--color-primary);
  text-align: center;
  font-size: 1rem;
  margin-bottom: 0;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 0;
}
.cookie-btn {
  padding: 8px 24px;
  border: none;
  border-radius: 15px;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0;
  transition: background 0.2s, color 0.16s, box-shadow 0.22s;
  box-shadow: 0 2px 7px rgba(37,86,121,0.10);
  cursor: pointer;
}
.cookie-btn.accept {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-btn.accept:focus, .cookie-btn.accept:hover {
  background: var(--color-primary);
}
.cookie-btn.reject {
  background: #fff;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}
.cookie-btn.reject:focus, .cookie-btn.reject:hover {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-btn.settings {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn.settings:focus, .cookie-btn.settings:hover {
  background: var(--color-secondary);
  color: #fff;
}

/* === COOKIE MODAL === */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -54%) scale(1);
  background: #fff;
  z-index: 10150;
  border-radius: 17px;
  box-shadow: 0 8px 40px rgba(37,86,121,0.13);
  min-width: 300px;
  max-width: 90vw;
  padding: 28px 24px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: opacity 0.24s, transform 0.32s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%,-44%) scale(0.98);
}
.cookie-modal h2 {
  font-size: 1.37rem;
  margin-bottom: 6px;
  color: var(--color-primary);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
  color: #263a4b;
}
.cookie-category input[type="checkbox"]:disabled + label {
  color: #b4b9bc;
}
.cookie-category label {
  font-family: var(--font-body);
}
.cookie-modal-footer {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  right: 12px;
  top: 14px;
  background: none;
  border: none;
  font-size: 1.55rem;
  color: var(--color-secondary);
  cursor: pointer;
}
@media (max-width:480px) {
  .cookie-modal {
    max-width: 99vw;
    padding: 14px 8px 16px 8px;
  }
}

/* === MISC COMPONENTS === */
a {
  transition: color 0.19s, background 0.15s;
  cursor: pointer;
}
a:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* === VISUAL HIERARCHY & ELEVATION === */
.section h2 {
  margin-bottom: 10px;
  font-family: var(--font-display);
}
.card, .testimonial-card, .feature-item {
  border-radius: 14px;
  background: #fff;
}

/* === FORM ELEMENTS (if used) === */
input, textarea, select {
  border: 1.5px solid #E5A85C;
  border-radius: 7px;
  padding: 8px 12px;
  font-size: 1rem;
  margin-bottom: 14px;
  width: 100%;
  background: #fcfaf7;
  transition: border 0.17s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--color-primary);
  outline: none;
}

/* === ANIMATIONS === */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.7s forwards;
}
@keyframes fadeIn {
  to { opacity: 1; }
}
.slide-in-right {
  animation: slideInRight 0.5s cubic-bezier(.23,1.2,.32,1) forwards;
  transform: translateX(40vw);
  opacity: 0;
}
@keyframes slideInRight {
  to { transform: none; opacity: 1; }
}

/* === ACCESSIBILITY === */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* === Z-INDEX HOSTING === */
.header-container { position: relative; z-index: 10; }
.mobile-menu { z-index: 2000; }
.cookie-banner { z-index: 10100; }
.cookie-modal { z-index: 10150; }

/* === PRINT HANDLING === */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal { display: none !important; }
}
