/* ===========================================================
   CSS RESET & NORMALIZATION
   =========================================================== */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; border: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: #f7f8fa;
  color: #14273a;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #18486c; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #b07c28; }
ul, ol { margin-left: 1.2em; }
address { font-style: normal; color: #18486c; }
button { font-family: inherit; font-size: inherit; background: none; border: none; padding: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; background: #fff; margin-bottom: 32px; }
th, td { padding: 14px 12px; border-bottom: 1px solid #e4e8ec; text-align: left; }
th { background: #e4e8ec; color: #18486c; font-weight: 600; }

/* ===========================================================
   TYPOGRAPHY
   =========================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: #18486c;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}
h1 { font-size: 2.5rem; margin-bottom: 32px; }
h2 { font-size: 2rem; margin-bottom: 28px; }
h3 { font-size: 1.3rem; margin-bottom: 18px; }
h4 { font-size: 1.15rem; margin-bottom: 14px; }
h5, h6 { font-size: 1rem; }
p, ul, ol, address, table, .testimonial-card { margin-bottom: 18px; }
b, strong { font-weight: 700; }
small { font-size: 0.92em; color: #5b6b7f; }

/* ===========================================================
   LAYOUT: CONTAINERS & STRUCTURE
   =========================================================== */
.container {
  width: 100%;
  max-width: 1180px;
  padding: 0 20px;
  margin: 0 auto;
}
.content-wrapper {
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(24,72,108,0.05);
  border-radius: 14px;
  padding: 40px 32px;
  margin-bottom: 32px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ===========================================================
   FLEXBOX PATTERNS
   =========================================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(24,72,108,0.06);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  min-width: 250px;
  max-width: 370px;
  flex: 1 1 300px;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 4px 20px 0 rgba(24,72,108,0.12); }
.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 22px;
  margin-bottom: 20px;
  background: #e4e8ec;
  border-radius: 10px;
  box-shadow: 0 1px 5px 0 rgba(24,72,108,0.06);
  color: #14273a;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #f7f8fa;
  border-radius: 9px;
  padding: 18px 16px;
}

/* ===========================================================
   HEADER & NAVIGATION
   =========================================================== */
header {
  background: #18486c;
  padding: 0;
  box-shadow: 0 2px 12px 0 rgba(24,72,108,0.07);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 24px;
}
header img {
  height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.main-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 6px;
  position: relative;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #e4e8ec;
  color: #18486c;
}
.main-nav .cta-btn {
  background: #b07c28;
  color: #fff;
  padding: 10px 22px;
  margin-left: 10px;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.main-nav .cta-btn:hover,
.main-nav .cta-btn:focus {
  background: #d1a053;
  color: #14273a;
}

/* MOBILE MENU BUTTON */
.mobile-menu-toggle {
  display: none;
  background: #b07c28;
  color: #fff;
  font-size: 2rem;
  padding: 6px 14px;
  border-radius: 7px;
  margin-left: 8px;
  transition: background 0.2s;
  z-index: 104;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #18486c;
  color: #fff;
}

/* ===========================================================
   MOBILE MENU OVERLAY
   =========================================================== */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  background: #18486c;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 120;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.82,0,.42,1);
  width: 100vw; height: 100vh;
  padding: 38px 24px 24px 24px;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.1rem;
  color: #fff;
  background: none;
  margin-bottom: 24px;
  margin-left: auto;
  border-radius: 8px;
  transition: background 0.15s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #b07c28;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  margin-top: 10px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.2rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 14px 8px;
  border-radius: 8px;
  width: 100%;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #b07c28;
  color: #14273a;
}

/* Hide nav and show menu button on mobile */
@media (max-width: 992px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 993px) {
  .mobile-menu { display: none !important; }
}

/* ===========================================================
   HERO & CTA BUTTONS
   =========================================================== */
.cta-btn {
  background: #18486c;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 7px;
  box-shadow: 0 1px 8px 0 rgba(24,72,108,0.07);
  margin-top: 20px;
  display: inline-block;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #b07c28;
  color: #14273a;
  box-shadow: 0 4px 16px 0 rgba(177,124,40,.15);
}

.cta-box {
  background: #e4e8ec;
  border-radius: 10px;
  padding: 20px 18px;
  color: #18486c;
  margin-bottom: 16px;
  box-shadow: 0 1px 5px 0 rgba(24,72,108,0.04);
}

/* ===========================================================
   FEATURES & ICONS SECTION (Index, Services, About)
   =========================================================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 -8px 0 0;
}
.feature-grid > div {
  flex: 1 1 220px;
  background: #f7f8fa;
  border-radius: 10px;
  padding: 22px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 1px 6px 0 rgba(24,72,108,0.03);
  transition: box-shadow 0.18s;
}
.feature-grid > div:hover { box-shadow: 0 4px 16px 0 rgba(24,72,108,0.10); }
.feature-grid img {
  height: 42px;
  margin-bottom: 14px;
}

/* ===========================================================
   FAQ STYLES
   =========================================================== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq-accordion h2 {
  font-size: 1.2rem;
  margin-bottom: 9px;
  color: #18486c;
}
.faq-accordion p {
  margin-bottom: 0;
  color: #14273a;
}

/* ===========================================================
   FOOTER
   =========================================================== */
footer {
  background: #18486c;
  color: #fff;
  padding: 40px 0 22px;
  margin-top: 64px;
}
.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid #2b5992;
}
.footer-cols > div:first-child {
  min-width: 210px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-cols img {
  height: 44px;
  width: auto;
  margin-bottom: 8px;
}
.footer-cols p, .footer-cols a { color: #e4e8ec; font-size: 1rem; }
.footer-cols a:hover, .footer-cols a:focus { color: #b07c28; }
footer small {
  display: block;
  margin-top: 22px;
  color: #e4e8ec;
  text-align: center;
  font-size: 0.98em;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer a {
  text-decoration: none;
}

/* ===========================================================
   RESPONSIVE DESIGN (Mobile-First)
   =========================================================== */
@media (max-width: 768px) {
  .container { padding-left: 10px; padding-right: 10px; }
  .content-wrapper { padding: 28px 12px; }
  .section { padding: 28px 10px; }
  .card-container, .feature-grid, .footer-cols, .content-grid { flex-direction: column; gap: 20px; }
  .text-image-section { flex-direction: column; gap: 24px; }
  .card { min-width: unset; max-width: 100%; }
  header img { height: 38px; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1.05rem; }
  .cta-btn { font-size: 1rem; padding: 12px 14px; }
  .testimonial-card { padding: 12px 10px; }
}

/* ===========================================================
   TABLE / PRICES TABLE STYLING
   =========================================================== */
table { font-size: 1rem; margin-bottom: 20px; border-radius: 10px; overflow: hidden; }
th, td { border-bottom: 1px solid #e4e8ec; }
th { background: #e4e8ec; }

/* ===========================================================
   MICRO-INTERACTIONS & TRANSITIONS
   =========================================================== */
.card, .feature-grid > div, .cta-btn, .main-nav a, .mobile-nav a,
.testimonial-card, .section, .footer-cols > div, .faq-accordion > div {
  transition: box-shadow 0.18s, background 0.18s, color 0.18s, transform 0.15s;
}
.card:active, .feature-grid > div:active, .cta-btn:active {
  transform: translateY(1px) scale(0.98);
}

/* ===========================================================
   COOKIE CONSENT BANNER & MODAL
   =========================================================== */
#cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #18486c;
  color: #fff;
  padding: 28px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  z-index: 2000;
  box-shadow: 0 -6px 32px 0 rgba(24,72,108,0.14);
  font-size: 1rem;
  animation: banner-in 0.38s cubic-bezier(.85,-0.01,.46,1);
}
@keyframes banner-in {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: none; opacity: 1; }
}
#cookie-banner.hide {
  animation: banner-out 0.28s cubic-bezier(.78,0,.38,1) forwards;
}
@keyframes banner-out {
  to { transform: translateY(120%); opacity: 0; }
}
#cookie-banner p {
  color: #fff;
  margin-bottom: 6px;
}
#cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}
.cookie-btn {
  padding: 9px 20px;
  border-radius: 6px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1em;
  color: #fff;
  background: #b07c28;
  border: none;
  margin-right: 8px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.cookie-btn.accept {
  background: #b07c28;
}
.cookie-btn.accept:hover { background: #d1a053; color: #14273a; }
.cookie-btn.reject {
  background: #5b6b7f;
}
.cookie-btn.reject:hover { background: #18486c; }
.cookie-btn.settings {
  background: #e4e8ec; color: #18486c;
  border: 1px solid #b07c28;
}
.cookie-btn.settings:hover { background: #b07c28; color: #fff; }

/* Cookie Preferences Modal */
#cookie-modal {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  width: 96vw;
  max-width: 420px;
  transform: translate(-50%, -50%) scale(0.98);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 36px 0 rgba(24,72,108,0.19);
  padding: 34px 28px 24px 28px;
  z-index: 2100;
  animation: modal-in 0.33s cubic-bezier(.85,0,.25,1);
}
#cookie-modal.active { display: block; }
@keyframes modal-in {
  from { opacity: 0; transform: translate(-50%,-55%) scale(0.93); }
  to { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
#cookie-modal h3 {
  margin-bottom: 18px; color: #18486c;
  font-size: 1.28rem;
}
#cookie-modal label {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 1.02em;
  color: #18486c;
}
#cookie-modal input[type="checkbox"] {
  accent-color: #b07c28;
  margin-right: 10px;
}
#cookie-modal .cookie-categories {
  margin-bottom: 24px;
}
#cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 14px;
}
#cookie-modal .cookie-btn {
  font-size: 1em;
  padding: 8px 20px;
}
#cookie-modal .cookie-btn.cancel {
  background: #e4e8ec; color: #18486c;
  border: 1px solid #b07c28;
}
#cookie-modal .cookie-btn.cancel:hover { background: #b07c28; color: #fff; }

/* Cookie modal close button */
#cookie-modal .modal-close {
  position: absolute;
  top: 12px; right: 14px;
  background: none;
  font-size: 1.2em;
  color: #18486c;
  border-radius: 5px;
  padding: 4px 6px;
}
#cookie-modal .modal-close:hover { background: #f7f8fa; }

@media (max-width: 540px) {
  #cookie-modal { padding: 22px 10px 16px 10px; }
}

/* ===========================================================
   UTILITIES & MISC
   =========================================================== */
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.gap-20 { gap: 20px !important; }
.rounded { border-radius: 9px; }
.shadow { box-shadow: 0 2px 12px 0 rgba(24,72,108,0.07); }

/* ===========================================================
   ACCESSIBILITY & FOCUS STATES
   =========================================================== */
a:focus, .cta-btn:focus, .mobile-menu-close:focus, .cookie-btn:focus {
  outline: 2px solid #b07c28;
  outline-offset: 2px;
}

/* ===========================================================
   ICONS
   =========================================================== */
ul li img, ol li img {
  display: inline-block;
  vertical-align: middle;
  height: 1.2em;
  margin-right: 6px;
}

/* ===========================================================
   SPACING ENFORCEMENT (MANDATORY)
   =========================================================== */
.card, .testimonial-card, .feature-grid > div, .section, .content-wrapper {
  margin-bottom: 20px;
}
.card-container, .feature-grid, .content-grid {
  gap: 24px;
}

/* END OF CSS FILE */
