/* RESET & NORMALIZE */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
body, html { width: 100%; min-height: 100%; }
body { background: #F5F7FA; color: #222; font-size: 16px; font-family: 'Open Sans', Arial, sans-serif; line-height: 1.6; font-weight: 400; }
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', 'Open Sans', Arial, sans-serif; font-weight: 700; color: #004B8D; margin-bottom: 20px; }
h1 { font-size: 2.5rem; margin-top: 0; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
p { margin-bottom: 16px; }
a { color: #004B8D; text-decoration: none; transition: color 0.25s; }
a:hover, a:focus { color: #FFAA00; }
ul, ol { padding-left: 24px; margin-bottom: 16px; }
strong { color: #004B8D; font-weight: 700; }

/* --- LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(255,170,0,0.07), 0 1.5px 4px rgba(0,75,141,0.06);
  transition: box-shadow 0.3s;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: #fff;
  box-shadow: 0 3px 12px rgba(0,75,141,0.06);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}
.main-nav img { height: 38px; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav ul li a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #004B8D;
  letter-spacing: 0.01em;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.main-nav ul li a:hover,
.main-nav ul li a:focus {
  background: #FFF5DB;
  color: #FFAA00;
}
.cta-btn {
  display: inline-block;
  background: #FFAA00;
  color: #222;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 12px 28px;
  border-radius: 99px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(255,170,0,0.17);
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
  margin-left: 24px;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus {
  background: #FFE8B2;
  box-shadow: 0 4px 16px rgba(255,170,0,0.28);
  color: #004B8D;
  transform: translateY(-2px) scale(1.04);
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: #FFAA00;
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  width: 48px; height: 48px;
  color: #004B8D;
  box-shadow: 0 2px 8px rgba(255,170,0,0.13);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.17s;
  margin-left: 14px;
  z-index: 1203;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #FFE8B2;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: rgba(0,75,141,0.97);
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.7,.2,.2,1);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: #FFAA00;
  border: none;
  font-size: 2.6rem;
  align-self: flex-end;
  margin: 30px 28px 0 0;
  cursor: pointer;
  z-index: 1204;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(255,255,255,0.17);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  align-items: flex-start;
  margin-left: 36px;
  margin-top: 18px;
}
.mobile-nav a {
  font-size: 1.3rem;
  color: #fff;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 500;
  padding: 10px 6px;
  border-radius: 12px;
  transition: background 0.16s, color 0.16s;
  display: block;
  width: 85vw;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFAA00;
  color: #004B8D;
}

/* --- HERO --- */
.hero {
  background: linear-gradient(90deg,#FFE8B2 0%, #F5F7FA 69%);
  padding: 40px 0 65px 0;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 4px 16px rgba(255,170,0,0.13);
}
.hero .container { display: flex; align-items: center; justify-content: center; }
.hero .content-wrapper {
  align-items: flex-start;
  gap: 24px;
  max-width: 670px;
}
.hero h1 {
  color: #004B8D;
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.hero p {
  font-size: 1.15rem;
  color: #393939;
  margin-bottom: 6px;
}
.hero .cta-btn {
  margin-top: 8px;
}

/* --- FLEX PATTERNS [MANDATORY] --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0,75,141,0.09);
  padding: 28px 24px;
  transition: box-shadow 0.22s, transform 0.16s;
}
.card:hover { box-shadow: 0 8px 28px rgba(0,75,141,0.15); transform: translateY(-2px) scale(1.01); }
.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: #fff8ed;
  color: #222;
  padding: 20px;
  border-radius: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 9px rgba(255,170,0,0.11);
  min-width: 0;
  max-width: 100%;
}
.testimonial-card p {
  font-size: 1rem;
  color: #1F1A10;
  margin-right: 16px;
}
.testimonial-card strong {
  font-size: 0.98rem;
  color: #004B8D;
  font-weight: 700;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- BUTTONS & INTERACTIONS --- */
button, .cta-btn {
  outline: none;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.15s, background 0.14s, color 0.12s;
}
button:focus-visible, .cta-btn:focus-visible { outline: 2px solid #FFAA00; outline-offset: 2px; }

/* --- TABLES & LISTS --- */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(0,75,141,0.06);
  overflow: hidden;
  margin-bottom: 36px;
  font-size: 1rem;
}
thead {
  background: #FFE8B2;
}
thead th {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: #004B8D;
  font-size: 1.06rem;
  padding: 14px 10px;
  text-align: left;
}
tbody tr {
  border-bottom: 1px solid #f1e3c7;
}
td { padding: 14px 10px; }
tbody tr:nth-child(odd) { background: #FFFAED; }

ul li, ol li {
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
}

/* --- FOOTER --- */
footer {
  background: #FFF5DB;
  color: #393939;
  padding: 0; margin: 0;
  font-size: 0.97rem;
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -2px 12px rgba(255,170,0,0.06);
}
footer section {
  padding: 30px 0 16px 0;
}
footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  margin-bottom: 16px;
  padding: 0;
}
footer ul li a {
  color: #004B8D;
  font-weight: 500;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  padding: 7px 10px;
  border-radius: 7px;
}
footer ul li a:hover, footer ul li a:focus {
  background: #FFD36B;
  color: #004B8D;
}
footer strong {
  font-weight: 700;
  color: #222;
  letter-spacing: 0.03em;
}
footer a {
  color: #004B8D;
  word-break: break-all;
}
footer a:hover, footer a:focus { color: #FFAA00; }

/* --- RESPONSIVE TYPOGRAPHY & LAYOUTS --- */
@media (max-width: 991px) {
  .container { max-width: 100vw; }
  .main-nav ul { gap: 16px; }
  .section { padding: 28px 10px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  .hero { padding: 20px 0 38px 0; border-radius: 0 0 26px 26px; }
}
@media (max-width: 768px) {
  .main-nav ul,
  .main-nav .cta-btn {
    display: none;
  }
  .mobile-menu-toggle { display: flex; }
  .hero .content-wrapper { padding: 0 0 0 0; }
  .section { margin-bottom: 36px; padding: 18px 7px; }
  h1 { font-size: 1.58rem; }
  h2 { font-size: 1.1rem; }
  .testimonial-card { flex-direction: column; padding: 15px; gap: 10px; }
  .footer .container, .content-wrapper { padding: 0; }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .content-grid { flex-direction: column; gap: 16px; }
}

@media (max-width: 480px) {
  .main-nav img { height: 31px; }
  .hero { border-radius: 0 0 15px 15px; padding-bottom: 18px; }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100vw;
  background: #fff8ed;
  box-shadow: 0 -4px 18px rgba(255,170,0,0.14);
  padding: 22px 20px 22px 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: transform 0.3s cubic-bezier(.6,.2,.2,.94), opacity 0.27s;
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  color: #433a2c;
  margin-bottom: 0;
  font-size: 1rem;
  text-align: center;
}
.cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-btns button {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  background: #FFAA00;
  color: #222;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 30px;
  border: none;
  font-size: 1rem;
  margin: 0;
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
  box-shadow: 0 1px 6px rgba(255,170,0,0.18);
  cursor: pointer;
}
.cookie-btns button:hover, .cookie-btns button:focus {
  background: #FFE8B2;
  color: #004B8D;
}
.cookie-btns .settings-btn {
  background: transparent;
  border: 2px solid #FFAA00;
  color: #004B8D;
  font-weight: 500;
}
.cookie-btns .settings-btn:hover, .cookie-btns .settings-btn:focus {
  background: #fffaed;
  color: #FFAA00;
}

/* Cookie Modal Popup */
.cookie-modal-overlay {
  display: flex;
  position: fixed;
  z-index: 3500;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.19);
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(.6,.2,.2,.96);
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 24px rgba(0,75,141,0.13);
  padding: 32px 24px;
  min-width: 330px;
  max-width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal h3 {
  font-size: 1.3rem;
  color: #004B8D;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 10px;
}
.cookie-category input[type=checkbox],
.cookie-category input[type=radio] {
  width: 22px;
  height: 22px;
  accent-color: #FFAA00;
}
.cookie-category label {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.02rem;
  color: #393939;
}
.cookie-category .always-on {
  font-size: 0.94rem;
  color: #aaa;
  margin-left: 8px;
}
.cookie-modal-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.cookie-modal-btns button {
  font-family: 'Montserrat','Open Sans',Arial,sans-serif;
  font-weight: 500;
  font-size: 0.96rem;
  padding: 8px 18px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  background: #FFAA00; color:#222;
  transition: background 0.14s, color 0.14s;
}
.cookie-modal-btns button.cancel {
  background: transparent;
  color: #004B8D;
  border: 1.5px solid #FFAA00;
}
.cookie-modal-btns button.cancel:hover,
.cookie-modal-btns button.cancel:focus {
  background: #fffaed; color: #FFAA00;
}
.cookie-modal-btns button.save {
  background: #FFAA00; color: #222;
}
.cookie-modal-btns button.save:hover,
.cookie-modal-btns button.save:focus {
  background: #FFE8B2;
  color: #004B8D;
}
.cookie-modal .cookie-modal-close {
  position:absolute; top:16px; right:18px;
  background: none; border: none;
  font-size: 1.5rem;
  color: #FFAA00;
  cursor: pointer;
  padding:4px;
}
.cookie-modal .cookie-modal-close:hover,
.cookie-modal .cookie-modal-close:focus {
  background: #FFE8B2;
}
@media (max-width: 700px) {
  .cookie-modal { min-width: 0; padding: 19px 6px; }
}

/* --- GENERAL CARD DESIGN --- */
.card, .testimonial-card {
  border-radius: 22px;
  box-shadow: 0 4px 16px rgba(0,75,141,0.10),0 1px 3px rgba(255,170,0,0.08);
  background: #fff;
  margin-bottom: 20px;
}
.card h3 { color: #004B8D; font-size: 1.18rem; }

/* --- MICRO-INTERACTIONS --- */
.card, .cta-btn, .main-nav ul li a, .cookie-btns button, .mobile-nav a {
  transition: box-shadow 0.17s, background 0.16s, color 0.18s, transform 0.18s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(0,75,141,0.15),0 1px 9px rgba(255,170,0,0.19);
  transform: translateY(-4px) scale(1.01);
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 12px; background: #ffe8b2; }
::-webkit-scrollbar-thumb { background: #FFAA00; border-radius: 8px; }

/* --- FORMS (for contact.html etc.) --- */
input, textarea, select {
  background: #FFF8ED;
  color: #222;
  border: 1.5px solid #ffda81;
  border-radius: 10px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 12px;
  margin-bottom: 18px;
  outline: none;
  transition: border 0.19s, box-shadow 0.16s;
}
input:focus, textarea:focus, select:focus {
  border: 1.8px solid #FFAA00;
  box-shadow: 0 0 0 1.2px #FFAA00;
}
button, input[type="submit"] {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
}

/* --- MISCELLANEOUS --- */
::-moz-selection { background: #FFE8B2; color: #004B8D; }
::selection { background: #FFE8B2; color: #004B8D; }

/* Accessibility: improved focus styles */
a:focus-visible, button:focus-visible, .cta-btn:focus-visible, input:focus-visible {
  outline: 2px solid #004B8D;
  outline-offset: 2px;
}

/* --- PRINT SUPPORT --- */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal-overlay, footer { display: none !important; }
  body { background: #fff; color: #222; }
}
