/* === CSS RESET & NORMALIZE (Modern minimal reset) === */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #F7F7F2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  color: #1a2233;
}
a {
  color: inherit;
  text-decoration: none;
}
ul, ol {
  list-style: none;
}
img, svg {
  max-width: 100%;
  vertical-align: middle;
}
button, input, textarea, select {
  font: inherit;
}

/* === BRAND FONTS === */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

:root {
  --color-primary: #184061;
  --color-secondary: #F7F7F2;
  --color-accent: #1A866B;
  --color-light-gray: #EBEFF2;
  --color-dark: #162535;
  --color-font-heading: #184061;
  --color-font-body: #222f3e;
  --color-white: #ffffff;
  --color-shadow: rgba(24, 64, 97, 0.10);
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  background: var(--color-secondary);
  color: var(--color-font-body);
  line-height: 1.65;
  font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-font-heading);
  font-weight: 700;
  letter-spacing: 0.5px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  font-weight: 600;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 600;
}
.section h2 {
  margin-bottom: 24px;
}

p, ul li, ol li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-font-body);
}
p {
  margin-bottom: 1.2em;
}

strong, b {
  font-weight: 600;
  color: var(--color-primary);
}

/* === COMMON LAYOUT CONTAINERS === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: 18px;
  box-shadow: 0 2px 16px var(--color-shadow);
}
@media (max-width: 768px) {
  .section {
    padding: 24px 8px;
    margin-bottom: 36px;
  }
}

/* Navigation ======================= */
header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-light-gray);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(24,64,97,0.03);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 18px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
  border-radius: 6px;
  padding: 8px 10px;
}
header nav a:hover,
header nav a:focus {
  background: var(--color-light-gray);
  color: var(--color-accent);
}
.cta-btn {
  background: var(--color-accent);
  color: var(--color-white) !important;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 8px;
  padding: 10px 26px;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 1.07rem;
  box-shadow: 0 2px 6px rgba(26,134,107,0.10);
  transition: background 0.2s, box-shadow 0.22s, transform 0.14s;
  cursor: pointer;
  text-align: center;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #184061;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(26,134,107,0.18);
  transform: translateY(-2px) scale(1.03);
}
.secondary-cta-btn {
  background: #184061;
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  margin-top: 8px;
  border: none;
  box-shadow: 0 2px 6px rgba(24,64,97,.10);
  transition: background .19s, box-shadow .19s, transform .13s;
  cursor: pointer;
  display: inline-block;
}
.secondary-cta-btn:hover, .secondary-cta-btn:focus {
  background: var(--color-accent);
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(24,64,97,.19);
  transform: translateY(-2px) scale(1.03);
}

/* Responsive Navigation (Mobile Burger) === */
.mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 210;
  display: none;
  margin-left: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.17s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-light-gray);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 92vw;
  max-width: 350px;
  background: var(--color-white);
  border-right: 1.5px solid var(--color-light-gray);
  box-shadow: 4px 0 32px 3px rgba(24,64,97,0.08);
  padding: 30px 20px 30px 22px;
  transform: translateX(-105%);
  transition: transform 0.36s cubic-bezier(.85,.04,.34,1.42);
  z-index: 202;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-primary);
  cursor: pointer;
  margin-bottom: 18px;
  border-radius: 50%;
  padding: 6px 11px;
  transition: background 0.19s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-light-gray);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.1rem;
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 10px 6px 10px 2px;
  border-radius: 6px;
  transition: background 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-light-gray);
  color: var(--color-accent);
}
@media (max-width: 1020px) {
  header nav, .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1021px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}
.mobile-menu-backdrop {
  content: '';
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(24,64,97,0.34);
  z-index: 112;
  display: none;
}
.mobile-menu.open + .mobile-menu-backdrop {
  display: block;
}
/* Smooth overlay via JS: can use */


/* === MAIN CONTENT & SECTION LAYOUT === */
main {
  padding-bottom: 54px; /* leave space for the cookie banner */
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-secondary);
  border-radius: 18px;
  box-shadow: 0 2px 16px var(--color-shadow);
}
@media (max-width: 768px) {
  section {
    padding: 24px 8px;
    margin-bottom: 36px;
    border-radius: 12px;
  }
}

/* Spacing/Containers
------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(24,64,97,.11);
  padding: 22px 18px;
  min-width: 240px;
  flex: 1 1 260px;
  transition: box-shadow .2s, transform .18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 20px rgba(26,134,107,0.16);
  transform: translateY(-3px) scale(1.01);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
@media (max-width: 900px) {
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media(max-width:768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(24,64,97,0.09);
  color: #222f3e;
  min-width: 212px;
  max-width: 560px;
  border-left: 6px solid var(--color-accent);
  transition: box-shadow .18s, transform .14s;
}
.testimonial-card p {
  color: #182132;
  font-style: italic;
  font-weight: 500;
  font-size: 1.09rem;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: #6e7d91;
  font-style: normal;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 26px rgba(24,64,97,0.15);
  transform: translateY(-2px) scale(1.02);
}

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

/* === SECTION: LIST ICONS/FEATURES === */
.content-wrapper ul > li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 6px;
  font-size: 1rem;
}
.content-wrapper ul > li img {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  object-fit: contain;
}
.content-wrapper ul > li .text-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.content-wrapper ul > li strong {
  color: var(--color-accent);
  font-weight: 600;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

/* === FOOTER === */
footer {
  background: var(--color-primary);
  color: #f4f6fa;
  padding: 34px 0 28px 0;
  border-top: 1.5px solid #e6ebef;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  color: #f4f6fa;
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 3px;
  transition: color 0.14s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-accent);
  text-decoration: underline;
}
footer .text-section {
  margin-top: 8px;
  font-size: 0.97rem;
  color: #e6ebef;
  gap: 2px;
}
footer img {
  height: 44px;
  margin-bottom: 10px;
}
footer .social-icons {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  align-items: center;
}
footer .social-icons img {
  width: 28px;
  height: 28px;
  cursor: pointer;
  border-radius: 50%;
  transition: box-shadow .15s, background .18s;
  background: #1a2d45;
  padding: 4px;
}
footer .social-icons img:hover {
  background: var(--color-accent);
  box-shadow: 0 2px 12px rgba(26,134,107,.17);
}
@media (max-width: 750px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 26px;
    align-items: flex-start;
  }
  footer .text-section, footer nav {
    font-size: 0.99rem;
  }
}

/* === BUTTONS (general) === */
button, .cta-btn, .secondary-cta-btn {
  outline: none;
  transition: background 0.19s, color 0.19s, transform 0.12s, box-shadow 0.18s;
}
button:active, .cta-btn:active, .secondary-cta-btn:active {
  transform: scale(0.98);
}

/* === LINKS === */
a {
  transition: color 0.19s;
}
a:active {
  opacity: 0.77;
}

/* === FORMS (Newsletter, Contact) === */
input, textarea {
  border: 1.2px solid var(--color-light-gray);
  padding: 10px 12px;
  border-radius: 7px;
  margin-bottom: 16px;
  width: 100%;
  font-size: 1rem;
  background: #fff;
  transition: border 0.17s;
}
input:focus, textarea:focus {
  border: 1.4px solid var(--color-accent);
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-primary);
  font-size: 1rem;
}

/* === TYPOGRAPHY SCALE === */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.07rem; }
}

/* === COOKIE CONSENT BANNER & MODAL === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -2px 24px rgba(24,64,97,0.07);
  border-top: 1px solid var(--color-light-gray);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  justify-content: center;
  padding: 24px 18px 20px 20px;
  z-index: 600;
  font-size: 1rem;
  transition: transform 0.34s cubic-bezier(.85,.01,.29,.99);
  transform: translateY(0);
}
.cookie-banner.hide {
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-banner-message {
  flex: 2 1 260px;
  color: var(--color-font-body);
}
.cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}
.cookie-btns button {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  color: #fff;
  border: none;
  font-size: 0.98rem;
  letter-spacing: 0.1px;
  transition: background 0.17s, transform 0.14s;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(24,64,97,0.09);
}
.cookie-btns .cookie-accept-all {
  background: var(--color-accent);
}
.cookie-btns .cookie-accept-all:hover, .cookie-btns .cookie-accept-all:focus {
  background: var(--color-primary);
}
.cookie-btns .cookie-reject-all {
  background: var(--color-primary);
}
.cookie-btns .cookie-reject-all:hover, .cookie-btns .cookie-reject-all:focus {
  background: #262c32;
}
.cookie-btns .cookie-settings {
  background: #e0e8ec;
  color: var(--color-primary);
}
.cookie-btns .cookie-settings:hover, .cookie-btns .cookie-settings:focus {
  background: var(--color-light-gray);
  color: var(--color-accent);
}

/* COOKIE PREFERENCES MODAL ================== */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(24,64,97,0.33);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity .3s;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px 26px 28px;
  max-width: 98vw;
  width: 430px;
  box-shadow: 0 8px 36px rgba(24,64,97,0.19);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 10001;
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 15px;
  font-size: 2.1rem;
  border: none;
  background: none;
  color: var(--color-primary);
  cursor: pointer;
  border-radius: 50%;
  transition: background .13s;
  padding: 4px 10px;
}
.cookie-modal-close:hover {
  background: var(--color-light-gray);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 1.05rem;
}
.cookie-category .cookie-toggle {
  margin-left: auto;
}
.cookie-toggle {
  width: 46px;
  height: 24px;
  background: #ebeff2;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.17s;
  border: none;
}
.cookie-toggle[aria-checked="true"] {
  background: var(--color-accent);
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 5px rgba(24,64,97,0.10);
  transition: left .18s;
}
.cookie-toggle[aria-checked="true"]:before {
  left: 25px;
  background: #fff;
}
.cookie-category label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-primary);
}
.cookie-category .cookie-required {
  color: #777;
  font-size: 0.95rem;
  margin-left: 7px;
}
.cookie-modal .cookie-btns {
  justify-content: flex-end;
  gap: 10px;
}
.cookie-modal h2 {
  font-size: 1.18rem;
  margin-bottom: 7px;
  font-weight: 600;
}
.cookie-modal p {
  font-size: 1rem;
}

@media (max-width: 700px) {
  .cookie-modal-content {
    width: 98vw;
    padding: 16px 8px 14px 8px;
  }
}

/* === RESPONSIVE LAYOUT RULES === */
@media (max-width: 1020px) {
  .container {
    max-width: 96vw;
  }
  header .container { gap: 10px; }
  .content-wrapper {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .section, section {
    padding: 20px 8px;
    margin-bottom: 36px;
  }
  .content-wrapper { gap: 16px; }
}
@media (max-width: 600px) {
  .section, section {
    padding: 11px 4px;
    border-radius: 7px;
    margin-bottom: 24px;
  }
}
@media (max-width: 750px) {
  .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    max-width: 98vw;
    min-width: 0;
    padding: 14px 8px;
  }
}

/* === UTILITIES === */
.muted {
  color: #6e7d91 !important;
  font-size: 0.97rem;
  opacity: 0.88;
}

/* === MICROINTERACTIONS === */
.card, .testimonial-card, .cta-btn, .secondary-cta-btn {
  transition: box-shadow .18s, transform .16s, background .17s;
}
.card:active, .testimonial-card:active {
  transform: scale(0.98);
}

/* === ACCESSIBILITY FOCUS === */
a:focus, button:focus, .cta-btn:focus, .secondary-cta-btn:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  z-index: 5;
}

/* === JS helper for overlays === */
.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(24,64,97,.39);
  z-index: 888;
}

/* === Hide visually (use for accessibility) === */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  border: 0 !important;
}

/* === PRINT-FRIENDLY === */
@media print {
  header, footer, .cookie-banner, .cookie-modal { display: none; }
  .section, section { box-shadow: none; background: #fff; }
}
