/* =============================================================================
   Nature_Organic CSS for Vivid Pauldron Analytics
   ============================================================================= */

/* -------------------------------
   CSS RESET & NORMALIZE
------------------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background-color: #F4F2EC;
  color: #3e3d37;
  font-size: 1rem;
  line-height: 1.7;
}
img {
  border: 0;
  max-width: 100%;
  display: block;
}
a {
  color: #123060;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #17A398;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
li+li {
  margin-top: 8px;
}
strong {
  font-weight: 700;
  color: #123060;
}

/* --------------------------------
   TYPOGRAPHY
-------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #123060;
  letter-spacing: 0.01em;
  line-height: 1.18;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
section p,
.text-section p {
  margin-bottom: 20px;
  color: #4a493f;
}
.text-section h2, .text-section h3, .text-section h4 {
  color: #174433;
}

@media (max-width: 600px) {
  h1 {font-size: 2rem;}
  h2 {font-size: 1.5rem;}
  h3 {font-size: 1.125rem;}
}

/* --------------------------------
   NATURE _ ORGANIC PALETTE
-------------------------------- */
:root {
  --primary: #123060;
  --secondary: #17A398;
  --accent: #FFFDF6;
  --earth-olive: #6e8927;
  --earth-brown: #8f6e53;
  --earth-sand: #eae7d8;
  --nature-green: #388f4f;
  --nature-moss: #6f9774;
  --nature-dark: #2b3531;
  --nature-light: #f4f2ec;
}

body {
  background: var(--nature-light);
}

/* --------------------------------
   SHAPE & CARD ORGANIC
-------------------------------- */
.card, .testimonial-card, .content-wrapper, .cookie-banner, .cookie-modal, .map-placeholder {
  border-radius: 22px 38px 26px 28px/30px 18px 38px 22px;
  box-shadow: 0 2px 16px 0 rgba(142,126,103,0.07),
              0 8px 32px 0 rgba(24,85,54,0.05);
  background-color: #fffdf6;
}

.card-container, .features-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* -------------------------------
   CONTAINER & SECTION
------------------------------- */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

@media (max-width: 600px) {
  .section, section {
    padding: 24px 8px;
    margin-bottom: 36px;
  }
  .container {
    padding: 0 8px;
  }
}

.content-wrapper {
  background: #fff;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 16px;
}

.card {
  background: #fff;
  margin-bottom: 20px;
  padding: 32px;
  border-radius: 22px 38px 26px 28px/30px 18px 38px 22px;
  box-shadow: 0 2px 16px 0 rgba(32,64,55,0.10);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 6px 36px 0 rgba(142,126,103,0.16),
              0 12px 36px 0 rgba(24,85,54,0.07);
  transform: translateY(-4px) scale(1.02);
}

/* -------------------------------
   BUTTONS & CTA
------------------------------- */
.cta-button {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(90deg,#388f4f,#17A398);
  color: #fff;
  border: none;
  font-family: 'Montserrat',Arial,sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.015em;
  border-radius: 40px 32px 42px 28px/38px 34px 28px 36px;
  box-shadow: 0 2px 10px rgba(24,85,54,0.09);
  padding: 0.85em 2.2em;
  cursor: pointer;
  margin: 12px 0px 0px 0px;
  transition: background 0.2s, box-shadow 0.2s, color 0.13s, transform 0.22s;
}
.cta-button:hover,
.cta-button:focus {
  background: linear-gradient(90deg,#174433,#17A398);
  color: #fffdf6;
  box-shadow: 0 4px 24px rgba(24,85,54,0.20);
  transform: translateY(-2px) scale(1.03);
  outline: none;
}
button, .cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--secondary);
  color: #fff;
  border: none;
  padding: 10px 28px;
  border-radius: 24px 30px 20px 28px/22px 19px 24px 26px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.14s, box-shadow 0.14s, color 0.15s, transform 0.15s;
  margin-right: 10px;
}
button:last-child,.cookie-btn:last-child { margin-right: 0;}
button:hover, .cookie-btn:hover, button:focus, .cookie-btn:focus {
  background: var(--nature-green);
  color: #FFFDF6;
  outline: none;
  box-shadow: 0 2px 14px 0 rgba(56,143,79,0.19);
  transform: translateY(-1px) scale(1.025);
}

/* -------------------------------
   HEADER & NAVIGATION
------------------------------- */
header {
  background: #fffdf6;
  border-bottom: 3px solid var(--earth-sand);
  padding: 0;
  position: relative;
  z-index: 40;
  box-shadow: 0 1.5px 8px rgba(24,85,54,0.04);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 16px;
}
header a img {
  height: 44px;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-left: 36px;
}
.main-nav a {
  font-family: 'Montserrat',Arial,sans-serif;
  font-weight: 600;
  font-size: 1.011rem;
  color: #123060;
  padding: 8px 0px;
  position: relative;
  transition: color 0.2s;
  letter-spacing: 0.013em;
}
.main-nav a:after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.19s;
  border-radius: 2px;
  margin-top: 2px;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--nature-green);
}
.main-nav a:hover:after,
.main-nav a:focus:after {
  width: 100%;
}
.cta-button {
  margin-left: 32px;
}

/* ------------------
   MOBILE NAVIGATION
-------------------- */
.mobile-menu-toggle {
  background: var(--secondary);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  border: none;
  border-radius: 16px 32px 20px 24px/20px 12px 38px 19px;
  padding: 8px 18px;
  cursor: pointer;
  margin-left: 10px;
  display: none;
  z-index: 108;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--nature-green);
  color: #F4F2EC;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(244,242,236,0.98);
  z-index: 130;
  transform: translateX(-110vw);
  transition: transform 0.35s cubic-bezier(.8,0,.24,1.01);
  box-shadow: 2px 0 26px 2px rgba(56,143,79,0.08);
  padding: 32px 36px 36px 36px;
  width: 100vw;
}
.mobile-menu.open {
  transform: translateX(0);
  transition: transform 0.5s cubic-bezier(.9,0,.17,1);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  background: none;
  color: #388f4f;
  margin-bottom: 12px;
  padding: 0 12px;
  cursor: pointer;
  border: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 26px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #123060;
  font-size: 1.3rem;
  padding: 14px 0;
  border-radius: 16px;
  background: transparent;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 80px;
  min-height: 46px;
}
.mobile-nav a:active,
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: rgba(23,163,152,0.12);
  color: #17A398;
}

@media (max-width: 992px) {
  .main-nav, .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width:993px) {
  .mobile-menu {
    display: none !important;
  }
}

/* -------------------------------
   FOOTER
------------------------------- */
footer {
  background: var(--earth-sand);
  padding: 36px 0 20px 0;
  color: #3e3d37;
  font-size: 1rem;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 0 20px;
}
footer nav.footer-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
footer nav.footer-nav a {
  color: #3e3d37;
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.18s;
  position: relative;
}
footer nav.footer-nav a:hover,
footer nav.footer-nav a:focus {
  color: #388F4F;
  text-decoration: underline;
}
footer img {
  max-height: 38px;
}

@media (max-width: 650px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    padding: 0 6px;
  }
  .footer-nav {
    gap: 10px;
    flex-wrap: wrap;
  }
}

/* -------------------------------
   FLEXBOX PATTERNS for layout
------------------------------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  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;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Responsive Stack for small screens */
@media (max-width: 768px) {
  .content-grid,
  .card-container,
  .features-grid,
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 8px;
  }
}

/* -------------------------------
   FEATURES GRID
------------------------------- */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 22px;
}
.features-grid > div {
  flex: 1 1 200px;
  min-width: 220px;
  max-width: 312px;
  background: #fffdf6;
  border-radius: 24px;
  box-shadow: 0 2px 10px rgba(56,143,79,0.07);
  padding: 28px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 10px;
  border: 1.5px solid #e0dcc9;
  transition: box-shadow 0.19s;
}
.features-grid > div:hover {
  box-shadow: 0 4px 24px rgba(56,143,79,0.19);
}
.features-grid img {
  height: 42px;
  margin-bottom: 12px;
}
.features-grid h3 {
  font-size: 1.13rem;
  margin-bottom: 4px;
  color: #174433;
}
.features-grid p {
  font-size: 1rem;
  color: #4a493f;
}

/* -------------------------------
   TESTIMONIAL CARDS
------------------------------- */
.testimonial-card {
  background: #fff;
  border-left: 7px solid #6e8927;
  box-shadow: 0 2px 16px 0 rgba(32,64,55,0.08);
  border-radius: 16px 29px 16px 21px/20px 18px 22px 18px;
  padding: 30px 28px;
  color: #153121;
  margin-bottom: 24px;
  min-width: 0; /* Fix FF flexbox bug */
}
.testimonial-card p {
  font-size: 1.025rem;
  color: #153620;
  margin-bottom: 14px;
}
.testimonial-card span {
  font-size: 0.99rem;
  font-weight: 700;
  color: #388f4f;
  margin-left: 8px;
}

/* Accessibility: Dark text, light bg */
.testimonial-card, .testimonial-card * {
  background: #fffdf6 !important;
  color: #2b352a !important;
}

@media (max-width: 600px) {
  .testimonial-card {
    padding: 20px 10px;
  }
}

/* -------------------------------
   ORGANIC LIST & MISC
------------------------------- */
ul, ol {
  margin-bottom: 22px;
  padding-left: 1.4em;
}
ul li::marker {
  color: #388f4f;
  font-size: 1.2em;
  font-weight: 700;
}
.text-section {
  margin-bottom: 18px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0 22px 0;
}
.contact-info img {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  vertical-align: middle;
}
.map-placeholder {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #F4F2EC;
  border: 1.4px solid #e0dcc9;
  font-size: 1rem;
  color: #6e8927;
  padding: 18px 18px;
}
.map-placeholder img {
  height: 26px;
}

/* -------------------------------
   COOKIE CONSENT BANNER & MODAL
------------------------------- */
.cookie-banner {
  position: fixed;
  left: 12px; right: 12px;
  bottom: 16px;
  z-index: 4000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  background: #eae7d8;
  color: #2d372e;
  padding: 20px 28px;
  border-radius: 22px 38px 26px 28px/30px 18px 38px 22px;
  box-shadow: 0 3px 22px rgba(56,143,79,0.14);
  font-size: 1rem;
  transition: opacity 0.21s, transform 0.25s;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(60px);
  pointer-events: none;
}
.cookie-banner .cookie-btn-accept {
  background: var(--nature-green);
  margin-right: 12px;
}
.cookie-banner .cookie-btn-reject {
  background: #8f6e53;
  color: #fff;
}
.cookie-banner .cookie-btn-settings {
  background: #FFFDF6;
  color: #388f4f;
  border: 1.5px solid #388f4f;
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  filter: brightness(0.94);
  box-shadow: 0 1px 9px rgba(56,143,79,0.18);
}
@media (max-width:600px){
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 14px;
    left: 2px; right: 2px;
  }
}

.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(44,65,55,0.33);
  z-index: 3999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.19s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-dialog {
  background: #fffdf6;
  border-radius: 30px 26px 37px 32px/22px 32px 19px 22px;
  box-shadow: 0 2px 36px rgba(24,85,54,0.16);
  padding: 38px 34px 32px 34px;
  min-width: 320px;
  max-width: 94vw;
  color: #174433;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}
.cookie-modal-dialog h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
  color: #123060;
}
.cookie-modal-dialog label {
  font-size: 1.1rem;
  margin-right: 20px;
  margin-bottom: 10px;
}
.cookie-modal-dialog .cookie-category {
  display: flex;
  align-items: center;
  margin-bottom: 9px;
}
.cookie-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: none;
  color: #8f6e53;
  font-size: 2rem;
  cursor: pointer;
  z-index: 6;
}
.cookie-modal-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  width: 100%;
}
@media (max-width:500px){
  .cookie-modal-dialog {
    padding: 18px 8px 16px 10px;
    min-width: 90vw;
  }
}

/* -------------------------------
   MICRO-ANIMATIONS
------------------------------- */
.cta-button:active,
button:active,
.cookie-btn:active {
  transform: scale(0.98);
}

section, .card, .testimonial-card, .content-wrapper {
  transition: box-shadow 0.14s, background 0.16s, transform 0.18s;
}

.card, .content-wrapper, .testimonial-card {
  animation: fadein 0.75s cubic-bezier(.67,.03,.61,1.19) both;
}
@keyframes fadein {
  0% {opacity:0; transform: translateY(32px);}
  100% {opacity:1; transform: none;}
}

/* -------------------------------
   FORMS (possible in future)
------------------------------- */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  padding: 9px 14px;
  border: 1.2px solid #e0dcc9;
  border-radius: 15px 21px 10px 14px/18px 12px 20px 18px;
  margin-bottom: 10px;
  width: 100%;
  background: #f9f8f3;
  color: #2b352a;
  transition: border 0.17s, box-shadow 0.17s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #388f4f;
  background: #fff;
  outline: none;
}

/* -------------------------------
   ICONS
------------------------------- */
.features-grid img,
.contact-info img,
.map-placeholder img {
  filter: hue-rotate(-24deg) saturate(1.2) brightness(1.04) contrast(1.05);
  opacity: 0.8;
}

/* -------------------------------
   UTILITIES
------------------------------- */
.mt-2 { margin-top:   16px !important; }
.mb-2 { margin-bottom:16px !important; }
.pt-2 { padding-top:   16px !important; }
.pb-2 { padding-bottom:16px !important; }

/* Ensures no overlap of elements */
section + section,
.card + .card, .testimonial-card + .testimonial-card,
.content-wrapper + .content-wrapper {
  margin-top: 24px;
}

/* Prevent horizontal scroll on mobile */
html, body {
  overflow-x: hidden;
}

/* Prevent broken layout for long spans */
span, a, p, ul, li {
  word-break: break-word;
}

/* Hide scrollbars for modals & mobile-menu */
.mobile-menu,
.cookie-modal {
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
}

::-webkit-scrollbar {
  width: 9px;
  background: #eae7d8;
}
::-webkit-scrollbar-thumb {
  background: #b8b398;
  border-radius: 12px;
}

/* ---------------------------------------------
   END NATURE_ORGANIC UI for Vivid Pauldron
----------------------------------------------- */
