/* CSS RESET & BASELINE */
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,  
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  line-height: 1.7;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #F7F9FA;
  color: #2C3531;
  min-height: 100vh;
  font-size: 1rem;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #116466;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #D9B08C;
  outline: none;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  margin-left: 24px;
}
strong {
  font-weight: 700;
}
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  color: #253146;
  font-weight: 700;
  line-height: 1.15;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
h5, h6 {
  font-size: 1rem;
  margin-bottom: 8px;
}
p {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #33454D;
}

/* BUTTONS - CTA */
.cta-primary, .cta-secondary, .cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  border-radius: 32px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-transform: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  border: none;
}
.cta-primary {
  background: #116466;
  color: #fff;
  box-shadow: 0 2px 16px 0 rgba(44,53,49,0.10);
}
.cta-primary:hover, .cta-primary:focus {
  background: #2C3531;
  color: #D9B08C;
  box-shadow: 0 4px 24px 0 rgba(44,53,49,0.16);
}
.cta-secondary {
  background: #D9B08C;
  color: #2C3531;
  box-shadow: 0 2px 14px 0 rgba(44,53,49,0.09);
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #eac8a4;
  color: #116466;
  box-shadow: 0 4px 20px 0 rgba(44,53,49,0.13);
}

/* GENERAL LAYOUT SPACING */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 3px 16px 0 rgba(44,53,49,0.05);
}
.content-wrapper {
  margin: 0 auto;
  max-width: 850px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* FLEX LAYOUTS - ONLY FLEXBOX */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 8px;
}
.features-grid > div {
  flex: 1 1 220px;
  min-width: 200px;
  background: #F5F6F8;
  border-radius: 20px;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  box-shadow: 0 2px 12px 0 rgba(44,53,49,0.08);
  transition: box-shadow 0.22s;
}
.features-grid > div:hover {
  box-shadow: 0 6px 32px 0 rgba(17,100,102,0.12);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #F5F6F8;
  border-radius: 20px;
  margin-bottom: 20px;
  padding: 24px 18px;
  box-shadow: 0 1px 8px 0 rgba(44,53,49,0.05);
  position: relative;
}
.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;
  background: #EAF1F1;
  padding: 20px;
  margin-bottom: 24px;
  margin-top: 8px;
  border-radius: 18px;
  box-shadow: 0 1px 6px 0 rgba(44,53,49,0.07);
  color: #213127;
  font-size: 1.1rem;
  position: relative;
  transition: box-shadow 0.18s;
}
.testimonial-card strong {
  color: #116466;
  display: block;
  margin-left: 12px;
  font-size: 1rem;
  font-weight: 600;
}
.testimonial-card:hover {
  box-shadow: 0 3px 18px 0 rgba(44,53,49,0.11);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.footer-nav, .social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.footer-nav a {
  color: #746D65;
  font-size: 0.95rem;
  font-weight: 500;
}
.footer-nav a:hover {
  color: #116466;
  text-decoration: underline;
}
.contact-info {
  margin-top: 16px;
  color: #566772;
  font-size: 1rem;
}
.footer-brand {
  margin-top: 26px;
}
footer {
  background: #2C3531;
  color: #fff;
  padding: 45px 0 32px 0;
  margin-top: 70px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
footer .contact-info {
  color: #E4E8EA;
}
footer .footer-brand img {
  height: 56px;
}
footer .social-links a img {
  height: 28px;
  transition: filter 0.22s;
  filter: grayscale(70%);
}
footer .social-links a:hover img {
  filter: grayscale(0%);
}

/* HEADER/NAVIGATION */
header {
  background: #F7F9FA;
  box-shadow: 0 2px 14px 0 rgba(44,53,49,0.05);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 14px 20px;
  flex-wrap: wrap;
}
header a img {
  height: 42px;
  margin-right: 16px;
}
.main-nav {
  display: flex;
  gap: 25px;
  align-items: center;
}
.main-nav a {
  color: #2C3531;
  font-weight: 500;
  font-size: 1rem;
  padding: 7px 0;
  border-radius: 6px;
  transition: background 0.16s, color 0.16s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #EAF1F1;
  color: #116466;
}
.main-nav .cta-primary {
  margin-left: 18px;
  background: #116466;
  color: #fff;
}
.main-nav .cta-primary:hover {
  background: #253146;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #116466;
  padding: 5px 12px;
  border-radius: 6px;
  transition: background 0.13s;
  z-index: 1101;
  cursor: pointer;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #EAF1F1;
}

/* MOBILE NAVIGATION OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(44,53,49, 0.95);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  z-index: 1250;
  transform: translateX(-100vw);
  opacity: 0;
  transition: transform 0.34s cubic-bezier(0.7,0,0.3,1), opacity 0.22s;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  padding: 17px 24px 12px 17px;
  cursor: pointer;
  align-self: flex-end;
  transition: color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #D9B08C;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 18px 28px;
  width: 100vw;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: #fff;
  font-weight: 500;
  padding: 8px 0;
  border-radius: 5px;
  transition: background 0.15s, color 0.17s;
}
.mobile-nav a:active, .mobile-nav a:hover {
  background: #116466;
  color: #FFF;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #253146;
  color: #fff;
  z-index: 1800;
  padding: 24px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  box-shadow: 0 -1px 16px 0 rgba(44,53,49,0.09);
  animation: cookieslidein 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes cookieslidein {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: #fff;
  font-size: 1rem;
}
.cookie-btns {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
/* Cookie Banner Buttons - Align to Brand */
.cookie-btn {
  background: #2C3531;
  color: #fff;
  font-size: 0.98rem;
  border: 2px solid #D9B08C;
  margin: 0;
  min-width: 120px;
  box-shadow: 0 1px 5px 0 rgba(44,53,49,0.08);
}
.cookie-btn.accept {
  background: #116466;
  border-color: #116466;
  color: #fff;
}
.cookie-btn.accept:hover {
  background: #2C3531;
  color: #D9B08C;
}
.cookie-btn.reject {
  background: #fff;
  color: #2C3531;
  border-color: #D9B08C;
}
.cookie-btn.reject:hover {
  background: #D9B08C;
  color: #2C3531;
}
.cookie-btn.settings {
  background: none;
  color: #D9B08C;
  border: 2px solid #D9B08C;
}
.cookie-btn.settings:hover {
  background: #D9B08C;
  color: #253146;
}

/* Cookie Modal Popup */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(44,53,49, 0.65);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeinbg 0.3s;
}
@keyframes fadeinbg {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #2C3531;
  border-radius: 20px;
  padding: 40px 28px 28px 28px;
  max-width: 410px;
  width: 96vw;
  box-shadow: 0 7px 40px 0 rgba(17,100,102,0.19);
  z-index: 2100;
  display: flex;
  flex-direction: column;
  gap: 26px;
  animation: cookieslideup 0.25s cubic-bezier(0.3,1,0.6,1);
}
@keyframes cookieslideup {
  from { transform: translateY(70px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  color: #116466;
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.cookie-category {
  padding: 13px 0;
  border-bottom: 1px solid #D9B08C;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.06rem;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-modal .toggle-switch {
  --switch-width: 48px;
  --switch-height: 27px;
  position: relative;
  display: inline-flex;
  align-items: center;
  width: var(--switch-width);
  height: var(--switch-height);
  background: #D9B08C;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-modal .toggle-switch input[type="checkbox"] {
  display: none;
}
.cookie-modal .toggle-switch .slider {
  position: absolute;
  left: 3px;
  top: 2.5px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px 0 rgba(44,53,49,0.08);
  transition: left 0.2s, background 0.22s;
}
.cookie-modal .toggle-switch input:checked + .slider {
  left: 23px;
  background: #116466;
}
.cookie-modal .toggle-switch[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}
.cookie-modal .cookie-category.essential label {
  color: #8F887F;
}
.cookie-modal .cookie-actions {
  margin-top: 10px;
  display: flex;
  gap: 17px;
  justify-content: flex-end;
}

/* COMMON COMPONENTS and CARDS */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 18px;
}
.social-links a {
  transition: filter 0.22s;
}
.social-links a img {
  height: 30px;
}

/* Forms (for future), Newsletter, etc. */
input, textarea, select {
  background: #F2F5F7;
  border: 1px solid #C3C7CD;
  border-radius: 8px;
  font-size: 1rem;
  padding: 13px 15px;
  margin-bottom: 18px;
  font-family: 'Open Sans', Arial, sans-serif;
}
input:focus, textarea:focus, select:focus {
  border-color: #116466;
  outline: 2px solid #A5CCCB;
}

/* UTILITIES */
.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mt-40 { margin-top: 40px !important; }
.mb-40 { margin-bottom: 40px !important; }

/* RESPONSIVE DESIGN & FLEX DIRECTION */
@media (max-width: 1000px) {
  .container {
    max-width: 100%;
  }
  .main-nav {
    gap: 10px;
  }
  .section {
    padding: 32px 8px;
  }
}

@media (max-width: 900px) {
  .features-grid {
    gap: 18px;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.14rem; }
  .features-grid {
    flex-direction: column;
    gap: 17px;
  }
  .footer-brand { order: 3; margin: 16px 0 0 0; }
  .footer-nav, .contact-info, .social-links {
    flex-direction: column;
    gap: 7px;
  }
  .footer-nav { align-items: flex-start; }
  footer .container {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .card-container { flex-direction: column; }
  .card {
    min-width: 0;
    padding: 14px 9px;
  }
  .section { padding: 26px 5vw; }
  .content-wrapper { padding: 0 2px; }
  .content-grid {
    flex-direction: column;
    gap: 15px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

@media (max-width: 700px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  header .container {
    padding: 15px 15px 8px 15px;
  }
}
@media (max-width: 500px) {
  .cookie-banner {
    font-size: 0.98rem;
    padding: 16px 8px 12px 8px;
  }
  .cookie-modal {
    padding: 16px 4vw 16px 4vw;
  }
}

/* SHADOWS and EFFECTS FOR CARDS & BUTTONS */
.card,
.features-grid > div,
.section {
  transition: box-shadow 0.17s, border-color 0.18s;
}
.card:hover,
.features-grid > div:hover,
.section:focus-within {
  box-shadow: 0 9px 30px 0 rgba(17,100,102,0.11);
}

/* MICRO-INTERACTIONS */
.cta-primary, .cta-secondary, .cookie-btn {
  transition: background 0.17s, color 0.17s, box-shadow 0.22s;
}

/* VISUAL DETAILS FOR CORPORATE AESTHETIC */
.section, .card, .features-grid > div, .testimonial-card {
  border: 1px solid #E3E7ED;
}

/* ENSURE NO ELEMENT OVERLAPS OR RUNS OUT OF SPACE */
.section, .card, .features-grid > div, .testimonial-card {
  margin-bottom: 20px;
}
.content-wrapper > *:not(:last-child) {
  margin-bottom: 20px;
}

/* CLEARING FLOATS (no floats, but for safety) */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* ACCESSIBILITY: FOCUS STATES */
a:focus, button:focus, .cta-primary:focus, .cta-secondary:focus {
  outline: 2px solid #116466;
  outline-offset: 2px;
}

/* ADDITIONAL UX: Hide banner/modal if not needed */
.cookie-banner[hidden], .cookie-modal-backdrop[hidden] {
  display: none !important;
}
