/* ===============================================================
   CSS RESET & NORMALIZE FOR CONSISTENCY
   =============================================================== */
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, 
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 {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  line-height: 1.6;
  background: #fff;
  color: #1A1A1A;
  font-family: 'Open Sans', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
img {
  border: 0;
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
}

/* Fallback font loading */
@font-face {
  font-family: 'Roboto Slab';
  font-display: swap;
  src: local('Roboto Slab'), local('RobotoSlab-Regular');
}
@font-face {
  font-family: 'Open Sans';
  font-display: swap;
  src: local('Open Sans'), local('OpenSans-Regular');
}

/* ===============================================================
   ROOT VARIABLES (for easy tweaks), fallbacks included
   =============================================================== */
:root {
  --color-bg: #fff;
  --color-bg-alt: #F5F5F5;
  --color-text: #151515;
  --color-heading: #111;
  --color-primary: #036241;
  --color-secondary: #1E1E1E;
  --color-accent: #E1F8DC;
  --color-card-bg: #fff;
  --color-card-shadow: rgba(0,0,0,0.04);
  --color-border: #D9D9D9;
  --color-link: #111;
  --color-link-hover: #036241;
  --color-btn-bg: #1A1A1A;
  --color-btn-bg-hover: #036241;
  --color-btn-text: #fff;
  --color-btn-secondary-bg: #fff;
  --color-btn-secondary-text: #1A1A1A;
  --color-btn-secondary-hover-bg: #F5F5F5;
  --font-display: 'Roboto Slab', serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --radius: 10px;
  --shadow-card: 0 6px 32px 0 rgba(0,0,0,0.10);
  --shadow-menu: 0 4px 32px rgba(0,0,0,0.15);
  --section-spacing: 60px;
  --container-padding: 20px;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

/* ===============================================================
   GENERAL LAYOUT STRUCTURE
   =============================================================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  width: 100%;
}

/* Section spacing pattern */
.section {
  margin-bottom: var(--section-spacing);
  padding: 40px 20px;
  background: var(--color-bg);
}

/* Hero section styling */
.hero {
  background: #fff;
  padding: 80px 0 60px;
  margin-bottom: var(--section-spacing);
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .content-wrapper {
  align-items: center;
  gap: 28px;
  text-align: center;
  max-width: 680px;
}

/* Card container and cards */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: var(--color-card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 260px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 12px 36px 0 rgba(25,25,25,0.17);
}

.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 {
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: 0 4px 22px rgba(30,30,30,0.10);
  border: 1px solid #E6E6E6;
  max-width: 580px;
  position: relative;
  color: #151515;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 12px 40px 0 rgba(40,40,40,0.18);
  border-color: var(--color-primary);
}
.star-rating {
  font-size: 1.3rem;
  color: var(--color-primary);
  letter-spacing: 0.1em;
}

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

.text-section {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #222;
}
.text-section strong {
  color: var(--color-primary);
  font-weight: 600;
}

/* Spacing between sections (in addition to section class) */
section + section {
  margin-top: 0;
}

/* ===============================================================
   TYPOGRAPHY HIERARCHY (Monochrome, Sophisticated)
   =============================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}
h1 {
  font-size: 2.8rem;
  margin-bottom: 12px;
}
h2 {
  font-size: 2rem;
  margin-top: 24px;
  margin-bottom: 8px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  font-weight: 600;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
p, li, ul {
  font-size: 1.08rem;
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.7;
}
ul {
  margin-left: 1.5em;
  margin-bottom: 20px;
  list-style-type: disc;
}
li + li {
  margin-top: 8px;
}

strong {
  font-weight: 700;
  color: var(--color-secondary);
}

em {
  font-style: italic;
  color: #484848;
}

blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: 16px;
  margin: 12px 0;
  color: #484848;
  font-style: italic;
  background: #FAFAFA;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Link styling */
a {
  color: var(--color-link);
  text-decoration: underline dotted;
  transition: color var(--transition), text-decoration-color 0.18s;
}
a:hover, a:focus {
  color: var(--color-link-hover);
  text-decoration-color: var(--color-primary);
}

/* ===============================================================
   BUTTONS: PRIMARY, SECONDARY WITH SOPHISTICATED EFFECTS
   =============================================================== */
.btn-primary,
.btn-primary:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-btn-text);
  background: var(--color-secondary);
  border-radius: var(--radius);
  border: 1.5px solid var(--color-secondary);
  font-size: 1.1rem;
  padding: 0.85em 2em;
  min-width: 160px;
  box-shadow: 0 1px 4px rgba(25,25,25,0.07);
  letter-spacing: 0.03em;
  transition: background-color var(--transition), color var(--transition), box-shadow var(--transition), border-color var(--transition), transform 0.14s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-primary);
  color: #FFF;
  box-shadow: 0 6px 21px rgba(3,98,65,0.17);
  border-color: var(--color-primary);
  transform: translateY(-2px) scale(1.03);
}
.btn-primary:active {
  background: #232323;
  color: #E1F8DC;
  box-shadow: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-btn-secondary-text);
  background: var(--color-btn-secondary-bg);
  border: 1.5px solid var(--color-secondary);
  border-radius: var(--radius);
  font-size: 1rem;
  box-shadow: none;
  padding: 0.7em 1.7em;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--color-btn-secondary-hover-bg);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ===============================================================
   HEADER & NAVIGATION BAR
   =============================================================== */
header {
  background: var(--color-bg);
  border-bottom: 1px solid #eee;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 40;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}
nav ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
}
nav ul li {
  list-style: none;
}
nav ul li a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.08rem;
  padding: 6px 8px;
  border-radius: 6px;
  color: #212121;
  transition: color var(--transition), background var(--transition);
}
nav ul li a:hover,
nav ul li a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
nav + .btn-primary {
  margin-left: 24px;
}

/* Hide hamburger/menu on desktop */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  display: none;
}

/* ===============================================================
   FOOTER
   =============================================================== */
footer {
  background: #F2F2F2;
  color: #181818;
  font-size: 1rem;
  padding: 36px 0 16px 0;
  border-top: 1px solid #E5E5E5;
}
footer .container {
  padding: 0 20px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
footer nav a {
  color: #212121;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 3px 4px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
footer nav a:hover,
footer nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
footer .logo img {
  height: 38px;
}
footer .text-section {
  color: #494949;
  font-family: var(--font-body);
  font-size: 0.96rem;
}

/* ===============================================================
   MOBILE NAVIGATION: BURGER, OVERLAY, ANIMATION
   =============================================================== */
@media (max-width: 991px) {
  nav ul,
  nav + .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    color: var(--color-primary);
    background: none;
    border: none;
    z-index: 103;
    transition: background-color 0.18s;
    border-radius: 6px;
  }
  .mobile-menu-toggle:hover,
  .mobile-menu-toggle:focus {
    background: #eaeaea;
    color: var(--color-secondary);
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #191919ee;
    z-index: 102;
    transform: translateX(-104%);
    transition: transform 0.35s cubic-bezier(.7,0,.3,1);
    box-shadow: var(--shadow-menu);
  }
  .mobile-menu.open {
    transform: translateX(0%);
  }
  .mobile-menu-close {
    font-size: 2.1rem;
    color: #fff;
    background: none;
    border: none;
    align-self: flex-end;
    margin: 16px 22px 0 0;
    cursor: pointer;
    z-index: 105;
    transition: color 0.17s;
  }
  .mobile-menu-close:hover,
  .mobile-menu-close:focus {
    color: var(--color-accent);
    background: none;
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    align-items: flex-start;
    margin-top: 16px;
  }
  .mobile-nav a {
    font-family: var(--font-body);
    font-size: 1.3rem;
    color: #fff;
    font-weight: 600;
    width: 100%;
    padding: 18px 28px 18px 36px;
    transition: background 0.18s, color 0.18s;
    border: none;
    background: none;
    border-bottom: 1px solid #363636;
    letter-spacing: -0.01em;
    text-align: left;
  }
  .mobile-nav a:hover,
  .mobile-nav a:focus {
    background: var(--color-primary);
    color: var(--color-accent);
  }
}

/* Mobile container/layout tweaks */
@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }
  .section, .hero {
    padding: 28px 0 24px 0;
    margin-bottom: 32px;
  }
  .content-wrapper {
    gap: 22px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .card-container,
  .content-grid {
    gap: 14px;
  }
  .card {
    padding: 18px 12px;
    min-width: 180px;
  }
  h1 {
    font-size: 2.1rem;
  }
  h2 {
    font-size: 1.32rem;
  }
  .hero {
    padding: 46px 0 34px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
}

/* Prevent card overlap */
.card, .testimonial-card {
  margin-right: 0;
  margin-left: 0;
}

/* ===============================================================
   ANIMATIONS & MICRO-INTERACTIONS
   =============================================================== */
.btn-primary, .btn-secondary, .mobile-menu-toggle, .mobile-menu-close {
  transition: background-color 0.19s cubic-bezier(.6,0,.4,1), box-shadow 0.19s, color 0.15s, transform 0.14s;
}
section, .testimonial-card, .card {
  transition: box-shadow 0.18s, border-color 0.15s, background 0.17s;
}

/* Subtle card hover shadows */
.card:hover, .testimonial-card:hover {
  box-shadow: 0 9px 32px 0 rgba(20,20,20,0.16);
}
/* Anchor focus outline for accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* ===============================================================
   COOKIE CONSENT BANNER (minimalistic, dramatic)
   =============================================================== */
.cookie-consent-banner {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  background: #111;
  color: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0px -3px 36px rgba(0,0,0,0.10);
  padding: 28px 24px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2000;
  font-family: var(--font-body);
  box-sizing: border-box;
  animation: slideBannerIn 0.6s cubic-bezier(.7,0,.3,1);
}
@keyframes slideBannerIn {
  from { transform: translate(-50%, 100px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}
.cookie-consent-banner p {
  color: #eaeaea;
  margin-bottom: 10px;
  font-size: 0.99rem;
}
.cookie-consent-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 8px;
}
.cookie-btn {
  border-radius: var(--radius);
  font-size: 0.97rem;
  padding: 10px 32px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  outline: none;
  margin: 0;
  transition: background 0.18s, color 0.13s, border 0.15s;
}
.cookie-btn.accept {
  background: var(--color-primary);
  color: #fff;
  border: 1.5px solid var(--color-primary);
}
.cookie-btn.accept:hover {
  background: #023a26;
  color: #E1F8DC;
}
.cookie-btn.reject, .cookie-btn.settings {
  background: #222;
  color: #fff;
  border: 1.5px solid #444;
}
.cookie-btn.reject:hover {
  background: #444;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.cookie-btn.settings:hover {
  background: #1e1e1e;
  color: #E1F8DC;
}

/* Cookie modal overlay and dialog */
.cookie-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2030;
  width: 100vw;
  height: 100vh;
  background: rgba(24,24,24,0.62);
  align-items: center;
  justify-content: center;
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal-dialog {
  background: #fff;
  color: #232323;
  border-radius: 14px;
  box-shadow: 0 8px 44px rgba(10,10,10,0.16);
  padding: 36px 32px 28px;
  max-width: 398px;
  width: 96vw;
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeInScale 0.3s cubic-bezier(.6,0,.4,1);
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 34px;
  font-size: 2.1rem;
  color: #333;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2031;
}
.cookie-modal-dialog h3 {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #101010;
  font-weight: bold;
}
.cookie-modal-dialog ul {
  margin-left: 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  margin: 0 0 16px 0;
  gap: 12px;
  font-size: 1rem;
}
.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  margin-left: 8px;
}
.cookie-toggle input[type="checkbox"] {
  opacity: 0;
  width: 44px;
  height: 24px;
  position: absolute;
  z-index: 2;
  cursor: pointer;
}
.cookie-toggle .slider {
  position: absolute;
  cursor: pointer;
  background: #bbb;
  border-radius: 14px;
  top: 0; left: 0; right: 0; bottom: 0;
  height: 24px;
  width: 44px;
  transition: background 0.18s;
}
.cookie-toggle input:checked + .slider {
  background: var(--color-primary);
}
.cookie-toggle .slider:before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s;
}
.cookie-toggle input:checked + .slider:before {
  transform: translateX(20px);
}
.cookie-category span {
  min-width: 120px;
  font-weight: 500;
}

/* Responsive for cookie banner and modal */
@media (max-width: 600px) {
  .cookie-consent-banner {
    max-width: 97vw;
    padding: 22px 8px 14px 10px;
  }
  .cookie-modal-dialog {
    padding: 26px 11px 19px;
    max-width: 97vw;
  }
}

/* Ensure adequate spacing between all major elements */
.section, .hero, .card, .testimonial-card, .text-section, .card-container, .content-grid, .feature-item, .text-image-section {
  margin-bottom: 20px;
}

/* ===============================================================
   ACCESSIBILITY
   =============================================================== */
@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.08rem; }
  .testimonial-card, .card {
    padding: 12px 6px;
  }
  .cookie-consent-banner {
    font-size: 0.99rem;
  }
}

/* ===============================================================
   UTILITIES
   =============================================================== */
.hide { display: none !important; }
.show { display: block !important; }

/* ===============================================================
   CUSTOM SCROLLBAR FOR SOPHISTICATION
   =============================================================== */
body::-webkit-scrollbar {
  width: 8px;
}
body::-webkit-scrollbar-thumb {
  background: #E6E6E6;
  border-radius: 8px;
}
body::-webkit-scrollbar-track {
  background: transparent;
}

/* ===============================================================
   END OF CSS FILE
   =============================================================== */
