/* =============================================================
   Maestros Vertex – Elegant Classic CSS Theme
   Brand colors: #22436C (primary), #F4F7FC (background), #F4B400 (accent)
   Fonts: Montserrat (display/headers), Open Sans (body)
   Elegant Classic: serif for titles, muted colors, refined spacing
   All layouts via flexbox only
   ============================================================= */

/* ========= 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 {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; background: #F4F7FC; font-family: 'Open Sans', Arial, Helvetica, sans-serif; color: #273249; }
ul, ol { list-style-position: inside; margin-left: 0; }
table { border-collapse: collapse; border-spacing: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; outline: none; }

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

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #273249;
  background: #F4F7FC;
}

h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', "Times New Roman", Times, serif;
  color: #22436C;
  font-weight: 700;
  letter-spacing: -0.5px;
}
h1 { font-size: 2.5rem; margin-bottom: 18px; line-height: 1.1; }
h2 { font-size: 2rem; margin-bottom: 16px; line-height: 1.15; }
h3 { font-size: 1.35rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1.1rem; }

strong, b {
  font-weight: 700;
  color: #22436C;
}

p {
  margin-bottom: 16px;
  color: #33405C;
  font-size: 1rem;
}
ul, ol {
  margin-bottom: 16px;
  padding-left: 18px;
}
ul li, ol li {
  padding-left: 0;
  margin-bottom: 8px;
  font-size: 1rem;
}

/* ============= CONTAINER & LAYOUT ============== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
}

.content-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.text-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(34,67,108,0.05);
  padding: 32px 28px;
  flex: 1 1 270px;
}

.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;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(34, 67, 108, 0.07);
  min-width: 250px;
  min-height: 160px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px rgba(34,67,108,0.13);
}

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

/* ============= HEADER & NAVBAR ============== */
header {
  background: #fff;
  box-shadow: 0 4px 24px rgba(34,67,108,0.08);
  padding: 0;
  margin-bottom: 0;
  position: relative;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-height: 80px;
  justify-content: space-between;
  gap: 20px;
}
.logo img {
  height: 44px;
  width: auto;
  margin-right: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  font-family: 'Montserrat', serif;
  font-size: 1.05rem;
}
.main-nav a {
  color: #22436C;
  padding: 6px 2px;
  transition: color 0.15s;
  border-bottom: 2px solid transparent;
  position: relative;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #F4B400;
  border-bottom: 2px solid #F4B400;
}

.btn-primary {
  background: #22436C;
  color: #fff;
  font-family: 'Montserrat', serif;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 12px 30px;
  border-radius: 26px;
  transition: background 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(34,67,108,0.11);
  display: inline-block;
  border: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: #F4B400;
  color: #22436C;
  box-shadow: 0 4px 16px #f4b4001a;
}

/* ----------- MOBILE MENU ----------- */
.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: #22436C;
  color: #fff;
  font-size: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  margin-left: 10px;
  z-index: 40;
  transition: background 0.17s, color 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #F4B400;
  color: #22436C;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34, 67, 108, 0.98);
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.86,0,.07,1);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.2rem;
  padding: 28px 26px 10px 0px;
  cursor: pointer;
  align-self: flex-end;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 24px 36px;
  gap: 18px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', serif;
  font-size: 1.25rem;
  padding: 14px 0 8px 4px;
  border-radius: 6px;
  transition: background 0.13s, color 0.17s;
  margin-bottom: 0;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #F4B400;
  color: #22436C;
}

/* Hide main nav and show burger on mobile */
@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 981px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ============= HERO & SECTIONS ============ */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
section .container {
  padding-top: 0; padding-bottom: 0;
}

/* =========== FEATURE/CARD SECTIONS ========== */
.feature-grid, .service-cards, .testimonial-slider, .testimonial-list {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.feature {
  background: #fff;
  padding: 26px 22px;
  border-radius: 13px;
  box-shadow: 0 4px 18px rgba(34, 67, 108, 0.06);
  flex: 1 1 200px;
  min-width: 220px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.18s, border 0.18s;
}
.feature img {
  height: 44px;
  width: auto;
  margin-bottom: 6px;
}
.feature h3 {
  color: #F4B400;
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.feature p {
  font-size: 0.97rem;
  color: #33405C;
  margin-bottom: 0;
}
.feature:hover, .feature:focus {
  box-shadow: 0 8px 32px rgba(34, 67, 108, 0.17);
  border: 1px solid #F4B400;
}

.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}
.service-card {
  background: #fff;
  padding: 27px 21px;
  border-radius: 13px;
  box-shadow: 0 3px 15px rgba(34, 67, 108, 0.07);
  flex: 1 1 220px;
  min-width: 200px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, border 0.15s;
}
.service-card h3 {
  color: #22436C;
  margin-bottom: 8px;
}
.service-card p {
  color: #465675;
}
.service-card:hover {
  border: 1.5px solid #F4B400;
  box-shadow: 0 8px 32px rgba(34, 67, 108, 0.15);
}

/* ========== TESTIMONIALS ========== */
.testimonial-slider, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonial-card {
  flex: 1 1 270px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(34, 67, 108, 0.07);
  padding: 28px 22px;
  min-width: 230px;
  margin-bottom: 20px;
  color: #273249;
  font-size: 1.05rem;
  font-style: italic;
  align-items: flex-start;
  position: relative;
}
.testimonial-card p {
  font-size: 1.02rem;
  color: #273249;
  margin-bottom: 12px;
}
.testimonial-card strong {
  font-size: 0.98rem;
  color: #22436C;
  align-self: flex-end;
  font-style: normal;
}
.testimonial-card span {
  color: #F4B400;
  font-size: 1.3em;
  align-self: flex-start;
}

/* ============ TABLES ============ */
table {
  width: 100%;
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 2px 7px #22436c11;
  margin-top: 18px;
  margin-bottom: 24px;
  overflow: hidden;
}
thead {
  background: #22436C;
  color: #fff;
  font-family: 'Montserrat',serif;
}
th, td {
  padding: 13px 12px;
  text-align: left;
}
th {
  font-weight: 700;
}
tbody tr {
  border-bottom: 1px solid #E4E8F1;
}
tbody td {
  color: #33405C;
  font-size: 0.98em;
}

/* =========== FOOTER ============== */
footer {
  background: #22436c;
  color: #fff;
  font-family: 'Montserrat', serif;
  margin-top: 40px;
  padding: 0 0 20px 0;
}
footer p {color: white;}
footer .container {
  padding-top: 45px;
  padding-bottom: 8px;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 42px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
}
.footer-main .logo img {
  filter: brightness(6) invert(0.25);
  height: 38px;
}
.footer-nav, .footer-legal {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-nav a, .footer-legal a {
  color: #fff;
  font-size: 0.99rem;
  opacity: 0.85;
  transition: color 0.16s, opacity 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus,
.footer-legal a:hover, .footer-legal a:focus {
  color: #F4B400;
  opacity: 1;
}
.footer-contact {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.97rem;
  color: #fff;
  opacity: 0.87;
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-width: 260px;
}
.footer-contact img {
  width: 17px;
  margin-right: 8px;
  vertical-align: middle;
  filter: brightness(12);
}
.copyright {
  color: #F4B400;
  font-size: 0.93rem;
  opacity: 0.74;
  text-align: right;
  margin-top: 6px;
}

/* ============ COOKIES BANNER ============= */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  color: #273249;
  box-shadow: 0 -4px 44px rgba(34,67,108,0.11);
  padding: 22px 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  z-index: 3000;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.3s, transform 0.3s;
}
.cookie-banner.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-banner .cookie-text {
  font-size: 1rem;
  flex: 2;
  margin-right: 26px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.cookie-btn {
  padding: 9px 22px;
  font-family: 'Montserrat', serif;
  font-size: 1.01rem;
  border-radius: 20px;
  border: none;
  margin-right: 0;
  margin-bottom: 0;
  background: #F4F7FC;
  color: #22436C;
  transition: background 0.13s, color 0.13s, box-shadow 0.14s;
}
.cookie-btn.accept {
  background: #22436C;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #F4B400;
  color: #22436C;
  box-shadow: 0 3px 15px #f4b40025;
}
.cookie-btn.reject {
  background: #E4E8F1;
  color: #22436C;
}
.cookie-btn.reject:hover { background: #F9D775; color: #8a6702; }
.cookie-btn.settings {
  background: #F4B400;
  color: #22436C;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #22436C;
  color: #fff;
}

/* Cookie modal popup */
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.97);
  background: #fff;
  color: #273249;
  min-width: 320px;
  max-width: 95vw;
  border-radius: 16px;
  box-shadow: 0 6px 44px rgba(34,67,108,0.15);
  z-index: 3111;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
  padding: 36px 30px 25px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}
.cookie-modal h3 {
  color: #22436C;
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.cookie-modal ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 0;
}
.cookie-modal li {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 1rem;
}
.cookie-toggle {
  margin-left: auto;
  accent-color: #F4B400;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-end;
  margin-top: 16px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 18px; right: 24px;
  background: none;
  color: #22436C;
  font-size: 2rem;
  border: none;
  cursor: pointer;
}

/* ============ MEDIA QUERIES ============== */
@media (max-width: 980px) {
  .container {
    padding: 0 10px;
  }
  .footer-main {
    gap: 30px;
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-contact {
    max-width: 360px;
  }
}
@media (max-width: 850px) {
  .feature-grid, .service-cards, .testimonial-slider, .testimonial-list {
    flex-direction: column;
    gap: 22px;
  }
  .feature, .service-card, .testimonial-card {
    max-width: 100%;
    min-width: 0;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  section { padding: 30px 0; }
  .content-wrapper, .card-container { gap: 16px; }
  .feature-grid, .service-cards, .testimonial-slider, .testimonial-list {
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  header .container {
    flex-direction: row;
    gap: 12px;
    padding: 10px 6px;
  }
  .btn-primary { font-size: 1rem; padding: 10px 19px; }
  .footer-main { gap: 18px; }
  .testimonial-card { padding: 19px 10px; }
  .feature, .service-card { padding: 17px 10px; }
  .copyright { text-align: left; font-size: 0.91rem; }
  .cookie-modal { min-width: 96vw; padding: 16px 6px 12px 11px; }
  .cookie-modal h3 { font-size: 1.05rem; }
  .cookie-modal .modal-close {
    top: 8px; right: 10px;
  }
}
@media (max-width: 540px) {
  html { font-size: 14px; }
  .footer-main { flex-direction: column; gap: 13px; }
  .footer-nav, .footer-legal { gap: 5px; }
  .footer-contact { max-width: 95vw; }
  .main-nav { display: none !important; }
  .btn-primary { font-size: 0.97rem; padding: 8px 12px; border-radius: 20px; }
  .cookie-banner { flex-direction: column; gap: 13px; align-items: flex-start; }
  .cookie-banner .cookie-text { margin: 0; }
  .cookie-banner .cookie-actions { gap: 6px; width: 100%; }
}

/* =========== MISC ============ */
::-webkit-input-placeholder { color: #c3c8d2; }
:-ms-input-placeholder { color: #c3c8d2; }
::placeholder { color: #c3c8d2; }

/* Scrollbar Styles */
::-webkit-scrollbar { width: 8px; background: #F4F7FC; }
::-webkit-scrollbar-thumb { background: #E4E8F1; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #d0d3de; }

/* ========== FOCUS VISIBLE ========== */
a:focus-visible, .btn-primary:focus-visible, .cookie-btn:focus-visible {
  outline: 2px solid #F4B400;
  outline-offset: 2px;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: none; }
}
.section, .feature, .service-card, .testimonial-card {
  animation: fadeInUp 0.8s cubic-bezier(.34,1.56,.64,1) backwards;
}

/* ============= PRINT ============ */
@media print {
  nav, .btn-primary, .mobile-menu-toggle, .footer-main, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  body { background: #fff; color: #333; }
}
