/* RESET & NORMALIZE */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #F7FAFC;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #202c39;
  background: #F7FAFC;
  line-height: 1.6;
  font-size: 1rem;
  -webkit-text-size-adjust: 100%;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #174B70;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #102f4a;
  outline: none;
  text-decoration: underline;
}
ul, ol {
  padding-left: 2rem;
  margin-bottom: 1.25rem;
}
li + li {
  margin-top: 0.5em;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  background: none;
}
button {
  cursor: pointer;
}

/* BRAND COLORS */
:root {
  --primary: #174B70;
  --secondary: #F4BF2A;
  --accent: #FFFFFF;
  --gray-bg: #F6F8FA;
  --gray-100: #e6ecf2;
  --gray-200: #c4d0dd;
  --gray-900: #202c39;
  --shadow: 0 4px 20px rgba(30,60,90,0.06);
}

/* FONT STACK */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  margin-bottom: 0.75em;
  line-height: 1.18;
  font-weight: 700;
  color: var(--primary);
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
}

p {
  margin-bottom: 1.25rem;
  color: var(--gray-900);
  font-size: 1.0625rem;
}
strong {
  color: var(--primary);
  font-weight: bold;
}

/* CONTAINER & LAYOUT */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
@media (max-width: 768px) {
  .section {
    padding: 24px 10px;
    margin-bottom: 36px;
    border-radius: 12px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--accent);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  min-width: 270px;
  flex: 1 1 275px;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(30,60,90,0.14);
  transform: translateY(-3px);
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F7FAFC;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(23,75,112,0.05);
  margin-bottom: 20px;
  min-width: 250px;
  max-width: 480px;
  color: #202c39;
  position: relative;
}
.testimonial-card p {
  font-size: 1.15rem;
  font-style: italic;
  color: #28374a;
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--primary);
  margin-left: auto;
}
@media (max-width: 768px) {
  .testimonial-card {
    flex-direction: column;
    gap: 12px;
    max-width: 100%;
    padding: 16px;
  }
  .testimonial-card span {
    margin-left: 0;
  }
}

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

.service-card {
  background: var(--gray-bg);
  border-radius: 12px;
  padding: 28px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  flex: 1 1 250px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.service-card:hover {
  box-shadow: 0 8px 32px rgba(30,60,90,0.11);
  transform: translateY(-2px);
}

.text-section {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 8px;
}

/* BUTTONS & CTA */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--accent);
  padding: 14px 38px;
  border-radius: 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.03em;
  margin-top: 8px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(23,75,112,0.07);
  transition: background 0.2s, box-shadow 0.18s, transform 0.18s;
  border: none;
}
.cta:hover, .cta:focus {
  background: #102f4a;
  box-shadow: 0 6px 18px rgba(23,75,112,0.14);
  transform: translateY(-1px) scale(1.02);
  color: var(--secondary);
}

button, .button {
  background: var(--primary);
  color: var(--accent);
  border-radius: 24px;
  padding: 10px 18px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  margin-right: 12px;
  transition: background 0.19s, color 0.15s, box-shadow 0.14s;
}
button:hover, .button:hover, button:focus, .button:focus {
  background: #102f4a;
  color: var(--secondary);
  box-shadow: 0 3px 14px rgba(23,75,112,0.18);
}

/* HEADER & NAVIGATION */
header {
  background: var(--accent);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: 0 1.5px 0 rgba(0,0,0,0.02);
  position: sticky;
  top: 0;
  z-index: 100;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.main-nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:not(.cta):hover, .main-nav a:not(.cta):focus {
  background: var(--gray-100);
  color: #102f4a;
}
.main-nav img {
  margin-right: 36px;
  width: 154px;
  height: auto;
}
.mobile-menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  font-size: 2rem;
  color: var(--primary);
  z-index: 101;
  border: none;
  padding: 6px 12px;
  min-width: 44px; min-height: 44px;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 14px;
  }
  .main-nav img {
    width: 124px;
    margin-right: 18px;
  }
}
@media (max-width: 900px) {
  .main-nav a {
    font-size: 0.96rem;
    padding: 7px 6px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(28,40,55,0.97);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 25px 28px 24px 28px;
  transform: translateX(-110%);
  transition: transform 0.38s cubic-bezier(.8,.01,.15,.99);
  width: 100vw;
  height: 100vh;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  color: var(--secondary);
  background: none;
  border: none;
  margin-bottom: 14px;
  cursor: pointer;
  min-width: 44px; min-height: 44px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 22px;
}
.mobile-nav a {
  color: var(--accent);
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 13px 0 13px 6px;
  border-radius: 7px;
  transition: background 0.12s, color 0.13s;
  outline: none;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--primary);
  color: var(--secondary);
}

@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
}

/* SECTIONS */
main {
  width: 100%;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
section {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 44px;
}

/* FOOTER */
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 56px 0 32px 0;
  margin-top: 36px;
  font-size: 1rem;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: var(--secondary);
  font-size: 1rem;
  margin-bottom: 4px;
  transition: color 0.13s;
  font-family: 'Montserrat', Arial, sans-serif;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
}
.footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-direction: row;
}
.footer-contact img {
  width: 48px;
  height: 48px;
  margin-right: 18px;
  border-radius: 8px;
  background: #25415e;
}
.footer-contact p {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0;
}
.footer-contact a {
  color: var(--secondary);
  text-decoration: underline;
  font-weight: 500;
}
.footer-contact a:hover, .footer-contact a:focus {
  color: var(--accent);
  text-decoration: underline;
}
@media (max-width: 830px) {
  footer .container {
    flex-direction: column;
    gap: 30px;
  }
  .footer-contact {
    margin-top: 18px;
    gap: 10px;
    flex-direction: column;
  }
}

/* FORMS (if any in future) */
input, textarea, select {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 18px;
  border-radius: 6px;
  border: 1px solid var(--gray-100);
  background: #fafdff;
  font-size: 1rem;
  color: var(--gray-900);
  transition: border-color 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  background: #eef5fa;
}
label {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
  display: block;
}

/* Cookie Banner & Modal */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1600;
  background: var(--accent);
  border-top: 2px solid var(--secondary);
  box-shadow: 0 -1px 18px rgba(23,75,112,0.07);
  padding: 24px 20px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 20px;
  animation: fadeInUp 0.55s both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(64px); }
  to { opacity: 1; transform: translateY(0); }
}
#cookie-banner p {
  color: #202c39;
  font-size: 1rem;
  margin-bottom: 0;
  max-width: 510px;
}
#cookie-banner .cookie-buttons {
  display: flex;
  gap: 12px;
}
.cookie-btn {
  background: var(--primary);
  color: var(--accent);
  border-radius: 22px;
  padding: 10px 18px;
  font-size: 1rem;
  border: none;
  font-weight: 500;
  margin-right: 0;
  transition: background 0.16s, color 0.14s, box-shadow 0.14s;
}
.cookie-btn.accept {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.settings {
  background: var(--gray-100);
  color: var(--primary);
}
.cookie-btn.reject {
  background: #e23737;
  color: var(--accent);
}
.cookie-btn:hover, .cookie-btn:focus {
  filter: brightness(0.96);
  box-shadow: 0 2px 10px rgba(23,75,112,0.07);
}
@media (max-width: 500px) {
  #cookie-banner {
    flex-direction: column;
    gap: 14px;
    padding: 15px 5px;
  }
  #cookie-banner .cookie-buttons {
    flex-direction: column;
    gap: 9px;
  }
}

#cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20,31,51,0.56);
  z-index: 1700;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s both;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
#cookie-modal {
  background: var(--accent);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(23,75,112,0.21);
  padding: 36px 34px 22px 34px;
  max-width: 415px;
  margin: 0 18px;
  display: flex;
  flex-direction: column;
  animation: modalIn 0.36s cubic-bezier(.8,.01,.15,.99) both;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
#cookie-modal h2 {
  color: var(--primary);
  font-size: 1.6rem;
  margin-bottom: 10px;
}
#cookie-modal .cookie-category {
  margin-bottom: 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
#cookie-modal label {
  font-size: 1rem;
  color: var(--gray-900);
  font-weight: 500;
  flex: 1 1 auto;
  margin-bottom: 0;
}
#cookie-modal .switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
#cookie-modal .switch input {
  opacity: 0; width: 0; height: 0;
}
#cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #eee;
  border-radius: 12px;
  transition: background 0.15s;
}
#cookie-modal .switch input:checked + .slider {
  background-color: var(--secondary);
}
#cookie-modal .slider:before {
  position: absolute;
  content: "";
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background-color: var(--primary);
  border-radius: 10px;
  transition: transform 0.18s, background 0.18s;
}
#cookie-modal .switch input:checked + .slider:before {
  transform: translateX(20px);
  background-color: var(--primary);
}
#cookie-modal .cookie-category[data-essential] label {
  color: #999;
  font-style: italic;
}
#cookie-modal .cookie-category[data-essential] .switch {
  opacity: 0.6;
  pointer-events: none;
}
#cookie-modal .cookie-modal-footer {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-direction: row;
  justify-content: flex-end;
}
@media (max-width: 600px) {
  #cookie-modal {
    padding: 22px 8px 14px 8px;
    min-width: 0;
    max-width: calc(100vw - 18px);
  }
  #cookie-modal h2 {
    font-size: 1.22rem;
  }
}

/* Misc Utility */
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }

.hide { display: none !important; }
.flex-row { display: flex; flex-direction: row; gap: 20px; }
.flex-col { display: flex; flex-direction: column; gap: 20px; }

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* Responsive Typography & Spacing */
@media (max-width: 520px) {
  .container {
    padding-left: 7px;
    padding-right: 7px;
  }
  .section {
    padding: 18px 3px;
    margin-bottom: 20px;
    border-radius: 9px;
  }
  h1, h2, h3, h4, h5 {font-size: 1.08em;}
}

/* --- END --- */
