/* === CSS RESET & BASELINE === */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #F1F5F9;
  color: #253858;
  line-height: 1.6;
  min-height: 100vh;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  padding-left: 1.2em;
}
li + li {
  margin-top: 8px;
}

/* === BRAND COLORS AS CSS VARIABLES === */
:root {
  --primary: #253858;
  --primary-dark: #1a253b;
  --secondary: #90B6DE;
  --secondary-dark: #568ac6;
  --accent: #F1F5F9;
  --accent-dark: #e4ecf5;
  --white: #fff;
  --black: #101828;
  --danger: #e63946;
  --success: #27ae60;
  --shadow: rgba(37, 56, 88, 0.10);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 10px;
}
p, ul, ol, blockquote {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 18px;
  font-weight: 500;
}
strong {
  font-weight: 700;
  color: var(--secondary-dark);
}
em {
  font-style: italic;
}
blockquote {
  border-left: 6px solid var(--secondary);
  padding-left: 24px;
  margin: 24px 0 24px 0;
  font-style: italic;
  color: var(--primary-dark);
  background: var(--accent-dark);
}

/* === HEADER / NAVIGATION === */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  padding: 18px 20px 18px 20px;
  position: relative;
  border-bottom: 3px solid var(--secondary);
  box-shadow: 0 2px 8px var(--shadow);
  z-index: 50;
}
header img {
  height: 48px;
  margin-right: 20px;
}
nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--primary);
  transition: background 0.18s, color 0.18s;
}
nav a:hover,
nav a:focus {
  background: var(--secondary);
  color: var(--white);
}
header .cta-btn {
  margin-left: 32px;
}

/* Burger Button */
.mobile-menu-toggle {
  background: var(--secondary);
  color: var(--white);
  font-size: 2rem;
  border-radius: 8px;
  padding: 7px 14px;
  border: none;
  margin-left: 18px;
  cursor: pointer;
  display: none;
  transition: background 0.2s;
  z-index: 103;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--primary);
  color: var(--secondary);
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  max-width: 360px;
  height: 100vh;
  background: var(--accent);
  box-shadow: -4px 0 32px var(--shadow);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 34px 28px 18px 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  background: var(--white);
  color: var(--primary);
  border-radius: 50%;
  border: none;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--shadow);
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--danger);
  color: var(--white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-top: 12px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  color: var(--primary-dark);
  padding: 14px 8px;
  font-weight: 700;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--secondary-dark);
  color: var(--white);
}

/* Hide main nav on mobile */
@media (max-width: 968px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 968px) {
  header {
    flex-wrap: wrap;
    padding: 12px 8px 12px 8px;
  }
  .cta-btn {
    display: none !important;
  }
}

/* === PAGE CONTAINER & CONTENT === */
main {
  width: 100%;
  margin: 0 auto;
  padding-top: 18px;
  padding-bottom: 32px;
}
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding-left: 12px;
  padding-right: 12px;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* SECTION BASE STYLING */
section {
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 6px 32px var(--shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
}
@media (max-width: 600px) {
  section {
    border-radius: 0;
    box-shadow: none;
    padding: 26px 4px;
    margin-bottom: 34px;
  }
}

/* FLEX PATTERNS FOR ALL LAYOUTS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--accent);
  border-radius: 14px;
  box-shadow: 0 2px 16px var(--shadow);
  margin-bottom: 20px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}
.text-image-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--accent-dark);
  color: var(--primary-dark);
  border-radius: 12px;
  box-shadow: 0 2px 16px var(--shadow);
  margin-bottom: 24px;
  min-width: 0;
}
.testimonial-card p {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--black);
}
.testimonial-card span {
  font-weight: 700;
  color: var(--secondary-dark);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.team-member-bio {
  background: var(--accent-dark);
  border-radius: 10px;
  padding: 20px 18px 12px 18px;
  box-shadow: 0 1px 8px var(--shadow);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

/* === CTA BUTTONS & MICRO INTERACTIONS === */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.13rem;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: 32px;
  border: none;
  box-shadow: 0 4px 20px var(--shadow);
  margin-top: 18px;
  min-width: 180px;
  cursor: pointer;
  transition: background 0.23s, color 0.23s, transform 0.17s;
  text-align: center;
  text-decoration: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--secondary-dark);
  color: var(--white);
  transform: translateY(-1px) scale(1.033);
  text-decoration: none;
}

/* === CONTACT DETAILS / ICONS === */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 14px 0 18px 0;
  font-size: 1.01rem;
}
.contact-details p {
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-details img {
  width: 24px;
  height: 24px;
}
.location-info {
  margin-top: 22px;
  padding-bottom: 8px;
}

/* === FOOTER === */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 34px 20px 18px 20px;
  margin-top: 48px;
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -2px 20px var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-nav {
  display: flex;
  gap: 22px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 5px 9px;
  border-radius: 4px;
  transition: background 0.19s, color 0.19s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.footer-info {
  font-size: 0.93rem;
  color: var(--white);
  opacity: 0.92;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--primary);
  color: var(--white);
  padding: 26px 20px 26px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2024;
  box-shadow: 0 -6px 30px var(--shadow);
  animation: slideUp 0.7s cubic-bezier(.61,1,.88,1) forwards;
  gap: 12px;
}
@keyframes slideUp {
  0% { transform: translateY(100%); }
  100% { transform: translateY(0); }
}
.cookie-banner p {
  color: var(--accent);
  font-size: 1.04rem;
  margin-bottom: 4px;
}
.cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 4px;
}
.cookie-btn {
  background: var(--secondary);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  margin: 0 2px;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--white);
  color: var(--primary);
}
.cookie-btn.reject {
  background: var(--danger);
  color: var(--white);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #ae2633;
}
.cookie-btn.settings {
  background: var(--primary-dark);
  color: var(--secondary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--secondary-dark);
  color: var(--white);
}

/* === COOKIE MODAL === */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2040;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(20, 30, 45, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}
.cookie-modal {
  background: var(--white);
  padding: 34px 28px 20px 28px;
  border-radius: 20px;
  box-shadow: 0 8px 60px var(--shadow);
  max-width: 96vw;
  width: 96vw;
  max-width: 420px;
  color: var(--primary);
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: fadeIn 0.25s cubic-bezier(.77,0,.18,1) forwards;
}
.cookie-modal h2 {
  font-size: 1.5rem;
  margin-bottom: 0;
  color: var(--primary);
}
.cookie-modal .category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--accent-dark);
  font-size: 1.09rem;
}
.cookie-modal label {
  font-weight: 600;
  color: var(--primary-dark);
}
.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 1rem;
}
.cookie-toggle input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--secondary);
}
.cookie-toggle input[disabled] {
  opacity: 0.6;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal .modal-actions .cookie-btn {
  padding: 10px 24px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--danger);
  color: var(--white);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  box-shadow: 0 2px 8px var(--shadow);
  transition: background 0.17s;
}
.cookie-modal .modal-close:hover,
.cookie-modal .modal-close:focus {
  background: #ae2633;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: none; }
}

/* === HEADINGS DECORATION (MODERN BOLD) === */
h1, h2 {
  position: relative;
}
h1::after, h2::after {
  content: '';
  display: block;
  width: 64px;
  height: 5px;
  border-radius: 5px;
  background: var(--secondary);
  margin-top: 12px;
}

/* === RESPONSIVE & LAYOUT RULES === */
@media (max-width: 968px) {
  .container {
    max-width: 100vw;
    padding-left: 2vw;
    padding-right: 2vw;
  }
}
@media (max-width: 600px) {
  h1 {
    font-size: 1.65rem;
    margin-bottom: 16px;
  }
  h2 {
    font-size: 1.25rem;
    margin-bottom: 10px;
  }
  .footer-info {
    font-size: 0.75rem;
  }
}

/* FLEXBOX SPACING / GAPS */
section, .card, .card-container, .content-grid, .text-image-section, .testimonial-card, .feature-item, .team-member-bio {
  margin-bottom: 20px;
}
.card-container, .content-grid, .text-image-section, .testimonial-card, .feature-item {
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ENSURING NO OVERLAP */
section + section {
  margin-top: 28px;
}
.card + .card {
  margin-top: 22px;
}

/* === UTILITIES === */
.text-center {
  text-align: center;
}
.flex-between {
  display: flex;
  justify-content: space-between;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-col {
  display: flex;
  flex-direction: column;
}
.flex-row {
  display: flex;
  flex-direction: row;
}

/* === FORMS === */
input, textarea, select {
  border: 2px solid var(--accent-dark);
  border-radius: 8px;
  padding: 12px;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 16px;
  width: 100%;
  transition: border 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
}
label {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 7px;
  display: block;
}

/* === TABLES === */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 1rem;
}
th, td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--accent-dark);
}
th {
  background: var(--secondary);
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}

/* === GEOMETRIC SHAPES & DECORATIVE ELEMENTS === */
.section::before {
  content: '';
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 14px 14px 0 0;
  background: var(--secondary);
  opacity: 0.32;
  margin-bottom: 12px;
}

/* === HIGH CONTRAST FOR REVIEW/TESTIMONIALS === */
.testimonial-card {
  background: var(--accent-dark);
  color: var(--primary-dark);
  border-left: 8px solid var(--secondary);
}

/* === MISCELLANEOUS === */
::-webkit-scrollbar {
  width: 7px;
  background: var(--accent-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 7px;
}

/* === PRINT OPTIMIZATION === */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal-overlay, footer {
    display: none !important;
  }
  section, main, .container {
    background: none !important;
    box-shadow: none !important;
    color: #000 !important;
  }
}

/* === END OF STYLES === */
