/* RESET & BASE TYPOGRAPHY */
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, 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fcfcfc;
  color: #181818;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #1b4838;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #e6b94c;
  outline: none;
}
ul, ol {
  margin-left: 1.4em;
  margin-bottom: 1.4em;
}
li {
  margin-bottom: 8px;
}
.button, .cta-button {
  display: inline-block;
  background: #181818;
  color: #fff;
  font-family: 'Lora', 'Times New Roman', serif;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 26px;
  padding: 12px 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.17s;
  position: relative;
  letter-spacing: .02em;
}
.button:hover, .cta-button:hover, .button:focus, .cta-button:focus {
  background: #fff;
  color: #1b4838;
  box-shadow: 0 4px 20px rgba(24,24,24,.18);
  outline: none;
  transform: translateY(-2px) scale(1.03);
}

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container,
.card-grid,
.feature-grid,
.features,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 20px;
}
.card {
  background: #fff;
  margin-bottom: 20px;
  border-radius: 20px;
  box-shadow: 0 2px 18px rgba(24,24,24,0.07);
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  flex: 1 1 310px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,.16);
  transform: translateY(-4px) scale(1.02);
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* Responsive Flex Rules */
@media (max-width: 768px) {
  .content-wrapper,
  .card-container,
  .card-grid,
  .feature-grid,
  .features,
  .content-grid,
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .section {
    padding: 32px 8px;
    margin-bottom: 36px;
  }
}

/* HEADER & NAVIGATION */
header {
  background: #fff;
  color: #181818;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 70;
}
header > a > img {
  display: block;
  height: 45px;
  width: auto;
}
header nav {
  display: flex;
  gap: 36px;
  align-items: center;
}
header nav a {
  color: #181818;
  font-family: 'Lora', serif;
  font-size: 17px;
  font-weight: 600;
  padding: 6px 0;
  position: relative;
  transition: color 0.17s;
}
header nav a:hover, header nav a:focus {
  color: #1b4838;
}
.cta-button {
  margin-left: 30px;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 32px;
  color: #181818;
  cursor: pointer;
  margin-left: 24px;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus {
  color: #e6b94c;
  outline: none;
}

/* MOBILE NAVIGATION */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 94vw;
  max-width: 380px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -4px 0 24px rgba(0,0,0,0.18);
  transform: translateX(110%);
  transition: transform 0.36s cubic-bezier(.86,0,.07,1);
  z-index: 150;
  display: flex;
  flex-direction: column;
  padding: 0 0 40px 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  border: none;
  background: none;
  font-size: 32px;
  color: #181818;
  align-self: flex-end;
  padding: 22px 24px 0 0;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 155;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #e6b94c;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 32px 0 32px;
}
.mobile-nav a {
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 20px;
  color: #181818;
  padding: 12px 0 6px 0;
  width: 100%;
  border-bottom: 1px solid #f3f3f3;
  transition: color 0.18s, background 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #1b4838;
  background: #f8f8f8;
}
@media (max-width: 1000px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .cta-button {
    margin-left: 0;
  }
}

/* MAIN CONTENT Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', 'Times New Roman', serif;
  font-weight: 700;
  letter-spacing: .01em;
  color: #181818;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.16;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  line-height: 1.18;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.33rem;
  font-weight: 700;
  color: #1b4838;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.07rem;
  font-weight: 600;
  margin-bottom: 8px;
}
p, ul, ol, address {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 17px;
  color: #212121;
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #232323;
}
.text-section img {
  display: inline-block;
  vertical-align: middle;
  height: 22px;
  margin-right: 8px;
  margin-bottom: 0;
}
address {
  font-style: normal;
  color: #4D4D4D;
  font-size: 16px;
  margin-bottom: 0;
}

/* Feature Grid Items */
.feature-grid > div {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #EFEFEF;
  box-shadow: 0 2px 12px rgba(70,70,70,0.06);
  padding: 28px 22px 22px 22px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.16s, transform 0.16s;
  min-width: 170px;
  min-height: 235px;
}
.feature-grid > div img {
  margin-bottom: 16px;
  height: 38px;
  width: auto;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.16);
  transform: scale(1.04);
}
.feature-grid h3 {
  color: #1b4838;
  font-size: 1.14em;
  margin-bottom: 7px;
}
.feature-grid p {
  font-size: 16px;
  color: #232323;
  margin-bottom: 0;
}

/* Testimonials */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(36,36,36,.10);
  padding: 20px 30px;
  margin-bottom: 20px;
  border-left: 4px solid #1b4838;
  max-width: 650px;
}
.testimonial-card p {
  color: #232323;
  font-size: 18px;
  font-style: italic;
  margin-bottom: 0;
}
.testimonial-card strong {
  color: #1b4838;
  font-size: 16px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 700;
}
@media (max-width: 600px) {
  .testimonial-card {
    padding: 18px 10px;
    max-width: 100%;
  }
}

/* Section Titles & Spacing */
section {
  border-bottom: 1px solid #ECECEC;
}
:last-child > section {
  border-bottom: none;
}

/* FOOTER */
footer {
  background: #fafafa;
  border-top: 1px solid #ececec;
  padding: 32px 0 24px 0;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 18px;
}
footer nav a {
  color: #666;
  font-size: 16px;
  font-family: 'Lora', serif;
  font-weight: 600;
  position: relative;
  transition: color 0.17s;
}
footer nav a:hover, footer nav a:focus {
  color: #1b4838;
}
footer .text-section {
  align-items: center;
  text-align: center;
}
footer address, footer p {
  font-size: 15px;
}
@media (max-width: 700px) {
  footer nav {
    gap: 14px;
    font-size: 15px;
  }
}

/* INTERACTIVE STATES */
button, .cta-button, .button {
  transition: background 0.22s, color 0.22s, box-shadow 0.16s, transform 0.16s;
}
button:active, .cta-button:active, .button:active {
  transform: scale(.98);
}

/* SPECIAL FLEX CONTAINERS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.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;
}

@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap:18px; }
}

/* COOKIE BANNER & MODAL */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  color: #181818;
  border-top: 1px solid #ececec;
  box-shadow: 0 -2px 32px rgba(24,24,24,0.05);
  padding: 24px 10px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 9999;
  animation: cookieAppear 0.45s cubic-bezier(.55,0,.3,1);
}
.cookie-banner-content {
  font-size: 16px;
  font-family: 'Open Sans', Arial, sans-serif;
  margin-bottom: 3px;
}
.cookie-button-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.cookie-button, .cookie-settings-button {
  background: #1b4838;
  color: #fff;
  font-family: 'Lora', serif;
  font-size: 16px;
  border: none;
  border-radius: 22px;
  padding: 8px 22px;
  cursor: pointer;
  transition: background 0.19s, color 0.19s;
  margin-bottom: 0;
}
.cookie-button:hover, .cookie-button:focus,
.cookie-settings-button:hover, .cookie-settings-button:focus {
  background: #181818;
  color: #fff;
}
.cookie-reject {
  background: #fff;
  color: #181818;
  border: 1px solid #cfcfcf;
  font-weight: 600;
  transition: background 0.16s, color 0.16s;
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #e6b94c;
  color: #181818;
  border-color: #e6b94c;
}

@media (max-width: 600px) {
  .cookie-banner {
    padding: 14px 4px 8px 4px;
  }
  .cookie-button-group {
    gap: 7px;
  }
}

/* COOKIE MODAL POPUP */
.cookie-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(26,26,26,0.54);
  z-index: 10100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalAppear 0.42s cubic-bezier(.52,0,.35,1);
}
.cookie-modal {
  background: #fff;
  color: #181818;
  border-radius: 18px;
  box-shadow: 0 4px 28px rgba(24,24,24,0.18);
  padding: 40px 30px;
  min-width: 325px;
  max-width: 92vw;
  max-height: 92vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  font-family: 'Lora', serif;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 17px;
  margin-bottom: 16px;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 20px;
  background: #f3f3f3;
  border: 1px solid #aaa;
  border-radius: 12px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.21s;
}
.cookie-toggle:checked {
  background: #1b4838;
  border-color: #1b4838;
}
.cookie-toggle::before {
  content: '';
  display: block;
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.23s cubic-bezier(.5,0,.32,1);
  box-shadow: 0 1px 2.5px rgba(38,38,38,0.18);
}
.cookie-toggle:checked::before {
  transform: translateX(18px);
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 30px;
  color: #1b4838;
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #e6b94c;
  outline: none;
}
@media (max-width: 480px) {
  .cookie-modal {
    padding: 18px 6px;
    min-width: 85vw;
  }
}

@keyframes cookieAppear {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes cookieModalAppear {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

/* Miscellaneous Aesthetics for Monochrome Sophisticated */
body, .container {
  background: #fcfcfc;
}
.card, .feature-grid > div, .testimonial-card, .cookie-modal, .cookie-banner {
  background: #fff;
  color: #181818;
}
.cta-button, .button, .cookie-button, .cookie-settings-button {
  font-family: 'Lora', serif;
  font-weight: 700;
}

/* Visual Hierarchy, Spacing, Shadows */
section, .card, .feature-grid > div, .testimonial-card, .cookie-modal {
  box-shadow: 0 2px 16px rgba(24,24,24,.07);
}
section {
  background: #fafafa;
  border-radius: 22px;
}

@media (max-width: 600px) {
  section {
    border-radius: 10px;
  }
}

/* Hide outline in nav, show on focus for a11y */
nav a:focus {
  outline: 2px solid #e6b94c;
  outline-offset: 2px;
}

/* Visually Distinctive Cards */
.card, .feature-grid > div {
  border: 1px solid #eaeaea;
}

/* Accessibility: Increase contrast for testimonials */
.testimonial-card {
  background: #fff;
  color: #111111;
  border-left: 4px solid #1b4838;
  box-shadow: 0 4px 20px rgba(30,30,30,.09);
}

/* --------------------------------------------
   FONTS: IMPORT (ensure included in HTML/externally for production)
-------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@600;700&family=Open+Sans:wght@400;600;700&display=swap');

/* Hide scrollbars for mobile menu */
.mobile-menu::-webkit-scrollbar { display: none; }
.mobile-menu { -ms-overflow-style: none; scrollbar-width: none; }

/* Hide extra decorative elements for print */
@media print {
  header, footer, .cookie-banner, .cookie-modal-overlay, .mobile-menu { display: none!important; }
  body { background: #fff; color: #000; }
}
