/* ========== 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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: 'Libre Baskerville', 'Georgia', 'Times New Roman', serif;
  font-size: 1rem;
  color: #133C55;
  background-color: #FAFAFA;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 24px;
}
li { margin-bottom: 0.5em; }
strong { font-weight: 600; }
.container {
  width: 100%;
  max-width: 1060px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ========== TYPOGRAPHY SCALE ========== */
h1 {
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #133C55;
  line-height: 1.14;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
h2 {
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #133C55;
  margin-bottom: 14px;
  line-height: 1.16;
  letter-spacing: 0.2px;
}
h3 {
  font-family: 'Libre Baskerville', 'Georgia', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #23475E;
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-family: 'Libre Baskerville', 'Georgia', serif;
  font-size: 1rem;
  font-weight: 500;
}
p, li, blockquote {
  font-family: 'Libre Baskerville', 'Georgia', serif;
  font-size: 1rem;
  color: #133C55;
}
blockquote {
  font-style: italic;
  border-left: 3px solid #4DA8DA;
  padding-left: 14px;
  color: #133C55;
  margin-bottom: 10px;
}

/* ========== HEADER & NAVIGATION ========== */
header {
  background: #EDEDED;
  border-bottom: 1px solid #D1D5DB;
  position: sticky;
  top: 0;
  z-index: 100;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: flex-start;
  min-height: 96px;
}
.logo-link {
  display: flex;
  align-items: center;
  margin-right: 28px;
}
.main-nav a {
  font-family: 'Libre Baskerville', 'Georgia', serif;
  font-size: 1rem;
  padding: 7px 10px;
  transition: color .15s;
  border-radius: 4px;
  color: #133C55;
}
.main-nav a:not(.cta-btn):hover, .footer-nav a:hover {
  background: #D7E4ED;
  color: #133C55;
}
.cta-btn {
  font-family: 'Cinzel', 'Times New Roman', serif;
  background: #133C55;
  color: #fff !important;
  font-size: 1.1rem;
  padding: 8px 28px;
  border-radius: 32px;
  border: none;
  box-shadow: 0 2px 10px 0 rgba(19,60,85,0.03);
  font-weight: 700;
  transition: background 0.20s, color 0.20s, box-shadow .20s;
  margin-left: 18px;
  cursor: pointer;
  letter-spacing: 0.5px;
  outline: none;
  display: inline-block;
}
.cta-btn:focus, .cta-btn:hover {
  background: #4DA8DA;
  color: #133C55 !important;
  box-shadow: 0 4px 18px 0 rgba(77,168,218,0.08);
}
.mobile-menu-toggle {
  display: none;
  background: none;
  font-size: 2.2rem;
  color: #133C55;
  border: none;
  cursor: pointer;
  margin-left: auto;
  z-index: 121;
}

/* ========== MOBILE NAV ========== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(19,60,85,0.93);
  z-index: 120;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.645,0.045,0.355,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 40px;
  padding-left: 0;
  width: 100vw;
  height: 100vh;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.2rem;
  border: none;
  position: absolute;
  right: 32px;
  top: 28px;
  z-index: 121;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  margin-top: 70px;
  align-items: center;
}
.mobile-nav a {
  font-size: 1.3rem;
  color: #fff;
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-weight: 600;
  padding: 12px 0;
  border-radius: 8px;
  width: 90%;
  text-align: center;
  transition: background .18s, color .18s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #EDEDED;
  color: #133C55;
}

/* ========== SECTION / LAYOUT ========== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 0;
  align-items: flex-start;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #fff;
  border: 1px solid #D6DDE4;
  border-radius: 15px;
  box-shadow: 0 2px 11px rgba(19,60,85,0.035);
  padding: 22px 26px 20px;
  min-width: 260px;
  flex: 1 1 260px;
  transition: box-shadow 0.19s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 28px rgba(77,168,218,0.10);
}
.team-bio {
  background: #fff;
  border: 1px solid #E8EEF4;
  border-radius: 16px;
  padding: 18px 22px 10px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 9px rgba(19,60,85,0.025);
}
.event-teaser {
  background: #FFF;
  border-radius: 15px;
  border: 1px solid #E1E5EA;
  margin-bottom: 20px;
  padding: 22px 26px;
  box-shadow: 0 2px 11px rgba(19,60,85,0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.case-study-summary {
  background: #f7fafc;
  border-radius: 14px;
  border: 1px solid #D6DDE4;
  margin-bottom: 20px;
  padding: 24px 24px 15px 20px;
  box-shadow: 0 2px 8px rgba(19,60,85,0.025);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* MANDATORY FLEXBOX SPACING */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(19,60,85,0.06);
  padding: 26px 20px;
  flex: 1 1 260px;
  border: 1px solid #DEE6ED;
  transition: box-shadow .16s;
}
.card:hover {
  box-shadow: 0 8px 25px rgba(77,168,218,0.14);
}
.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;
  background: #F6FAFD;
  border-radius: 14px;
  border: 1px solid #DEE6ED;
  margin-bottom: 20px;
  box-shadow: 0 2px 14px rgba(19,60,85,0.07);
  flex-direction: column;
}

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

/* ========== SPACING ========== */
main .container {
  padding-top: 24px;
  padding-bottom: 24px;
}
main section:last-child {
  margin-bottom: 0;
}

/* ========== BUTTONS & INTERACTIONS ========== */
button, .cta-btn, input[type="submit"] {
  cursor: pointer;
  border: none;
  outline: none;
}
button:focus-visible, a:focus-visible, .cta-btn:focus-visible {
  box-shadow: 0 0 0 3px #4DA8DA40;
}

/* ========== FOOTER ========== */
footer {
  background: #133C55;
  color: #fff;
  padding: 46px 0 24px 0;
  font-size: 1rem;
  border-top: 1px solid #4DA8DA44;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 28px;
  justify-content: flex-start;
  align-items: center;
}
.footer-nav a {
  color: #fff;
  opacity: 0.93;
  font-family: 'Cinzel', serif;
  transition: color .11s, opacity .19s;
  font-size: 1.03rem;
  padding: 4px 6px;
  border-radius: 4px;
}
.footer-nav a:focus, .footer-nav a:hover { background: #4DA8DA35; color: #fff; }
.footer-branding {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}
.footer-branding img {
  height: 36px;
  width: auto;
}
.footer-branding p {
  font-size: 1rem;
  font-family: 'Libre Baskerville', serif;
  color: #EDEDED;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.98rem;
  color: #EDEDED;
  opacity: 0.90;
}
.footer-contact img {
  height: 1em;
  vertical-align: middle;
  margin-right: 5px;
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #FFF;
  border-top: 1px solid #D8E4EC;
  padding: 24px 18px 16px 18px;
  box-shadow: 0 -2px 16px rgba(19,60,85,0.09);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2000;
  animation: appearUp 0.48s cubic-bezier(.24,.57,.52,1.11) 1;
}
@keyframes appearUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #133C55;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 10px;
}
.cookie-btn {
  background: #133C55;
  color: #fff;
  border-radius: 22px;
  padding: 8px 22px;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  border: none;
  margin: 0 2px;
  transition: background .2s, color .2s;
}
.cookie-btn:focus,
.cookie-btn:hover {
  background: #4DA8DA;
  color: #133C55;
}
.cookie-btn-alt {
  background: #fff;
  color: #133C55;
  border: 1px solid #133C55;
  padding: 8px 22px;
}
.cookie-btn-alt:hover {
  background: #133C55;
  color: #fff;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2100;
  background: rgba(19,60,85,0.66);
  left: 0; right: 0; top: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInCookie .28s;
}
@keyframes fadeInCookie {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 95%;
  min-width: 310px;
  padding: 36px 30px 20px 30px;
  box-shadow: 0 4px 22px rgba(19,60,85,0.15);
  font-family: 'Libre Baskerville', 'Georgia', serif;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.5rem;
  margin-bottom: 18px;
  color: #133C55;
  font-family: 'Cinzel', serif;
}
.cookie-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #133C55;
  position: absolute;
  right: 16px;
  top: 14px;
  cursor: pointer;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}

.cookie-toggle {
  width: 42px;
  height: 22px;
  border-radius: 22px;
  background: #DEE6ED;
  position: relative;
  transition: background 0.17s;
  cursor: pointer;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle span {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #133C55;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.18s cubic-bezier(.36,.67,.46,1.1), background 0.18s;
}
.cookie-toggle input:checked + span {
  left: 22px;
  background: #4DA8DA;
}
.cookie-modal-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 23px;
  flex-wrap: wrap;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1060px) {
  .container { max-width: 97vw; }
}
@media (max-width: 900px) {
  .main-nav { gap: 13px; }
}
@media (max-width: 800px) {
  .feature-grid { gap: 20px; }
  .content-grid { gap: 13px; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .main-nav { display: none !important; }
  .mobile-menu-toggle {
    display: block;
  }
  .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .container {
    padding-left: 11px;
    padding-right: 11px;
  }
  .section { padding: 27px 11px; }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .testimonial-card, .event-teaser, .feature-grid > div, .case-study-summary, .card {
    padding: 18px 11px;
    font-size: 0.98rem;
  }
  header {
    min-height: 54px;
  }
  .footer-branding {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 10px;
  }
  .footer-nav {
    gap: 12px;
    font-size: 0.98rem;
  }
}
@media (max-width: 480px) {
  html { font-size: 14px; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.2rem; }
  .cta-btn, .cookie-btn, .cookie-btn-alt {
    font-size: 0.99rem;
    padding: 8px 12px;
  }
}

/* ========== ANIMATIONS & MICRO-INTERACTIONS ========== */
.cta-btn, .cookie-btn, .cookie-btn-alt {
  transition: filter .18s, background .18s, color .18s, box-shadow .18s;
}
.cta-btn:active, .cookie-btn:active, .cookie-btn-alt:active {
  filter: brightness(0.94);
}
.feature-grid > div, .card, .event-teaser, .case-study-summary, .testimonial-card, .team-bio {
  transition: box-shadow 0.18s, border-color 0.18s;
}
.feature-grid > div:active, .card:active {
  box-shadow: 0 3px 15px rgba(19,60,85,0.10);
}

/* ========== FORM ELEMENTS (for potential expansion) ========== */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #DEE6ED;
  margin-bottom: 17px;
}
input:focus, textarea:focus, select:focus {
  border-color: #4DA8DA;
  outline: none;
  background: #F8FCFF;
}

/* ========== MISC CLASSES ========== */
.text-muted { color: #7A899D; }
.bg-accent { background: #EDEDED !important; }
.bg-primary { background: #133C55 !important; color: #fff !important; }
.text-primary { color: #133C55 !important; }
.text-secondary { color: #4DA8DA !important; }

/* ========== UTILITY ========== */
.nowrap { white-space: nowrap; }
.d-flex { display: flex !important; }
.align-items-center { align-items: center !important; }
.justify-center { justify-content: center !important; }
.flex-wrap { flex-wrap: wrap; }

/* ========== END ========== */
