/* ==============================================================
   TwinkleTree Haven: "nature_organic" Style CSS (style.css)
   Modern, nature-inspired, organic, responsive (Flexbox-only)
   ==============================================================
*/

/* ================= CSS RESET & NORMALIZATION ================= */
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 {
  box-sizing: border-box;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  background: #F8F2E6; /* brand secondary color */
}
*, *:before, *:after { box-sizing: inherit; }

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #2D3326;
  background-color: #F8F2E6;
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}
a {
  color: #337A5B; /* earth-green accent */
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #17405F;
  outline: none;
}

/* ================= BRAND NATURE ORGANIC COLORS ================= */
:root {
  --color-primary: #17405F; /* deep blue slate */
  --color-secondary: #F8F2E6; /* soft sand background */
  --color-accent: #7BB661; /* earthy green accent (custom for "organic") */
  --color-highlight: #FFC857; /* sunflower */
  --color-dark: #14241E; /* deep forest */
  --color-brown: #8E735B; /* soft earth shadow */
  --color-gray: #D6CCC2; /* stone neutral */
  --color-white: #fff;
}

/* ================== TYPOGRAPHY HIERARCHY ================== */
h1,
h2,
h3,
h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--color-primary);
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
  color: var(--color-accent);
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--color-dark);
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.subtitle {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--color-brown);
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
p {
  margin-bottom: 16px;
  color: #392D18;
  font-size: 1rem;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 18px;
  color: #392D18;
  font-size: 1rem;
}
li {
  margin-bottom: 12px;
  line-height: 1.7;
}
strong, b {
  color: var(--color-dark);
  font-weight: 700;
}
blockquote.tagline {
  background: var(--color-gray);
  color: var(--color-accent);
  border-left: 5px solid var(--color-highlight);
  padding: 16px 24px;
  margin: 18px 0 18px 0;
  font-size: 1.17rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border-radius: 12px 36px 12px 24px;
}

/* ================= LAYOUT: CONTAINER & SECTIONS ================ */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 32px 12px 48px 16px;
  background: var(--color-secondary);
  box-shadow: 0 3px 24px 0 rgba(126,116,95,0.06);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
.text-section {
  align-items: center;
  text-align: center;
}

/* =============== HEADER & NAVIGATION DESIGN ================== */
header {
  background: var(--color-secondary);
  box-shadow: 0 2px 10px 0 rgba(75,66,40,0.04);
  padding: 14px 0;
  z-index: 100;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
header img {
  height: 48px;
  width: auto;
  border-radius: 0;
}
.main-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--color-primary);
  font-weight: 500;
  padding: 6px 14px;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border-radius: 16px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--color-accent);
  background: #e7e7de;
}
header .btn.primary {
  margin-left: 20px;
}

/* ================ BUTTONS & INTERACTIVE UI =================== */
.btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border-radius: 22px 36px 16px 36px;
  border: none;
  display: inline-block;
  padding: 12px 32px;
  cursor: pointer;
  text-align: center;
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 1px 8px 0 rgba(137,117,77,0.09);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  position: relative;
  margin-top: 12px;
}
.btn.primary {
  background: var(--color-accent);
  color: var(--color-dark);
  border-radius: 32px 18px 32px 18px;
}
.btn.primary:hover, .btn.primary:focus {
  background: var(--color-highlight);
  color: var(--color-dark);
  box-shadow: 0 4px 22px 0 rgba(94,72,38,0.13);
}
.btn.secondary {
  background: var(--color-secondary);
  color: var(--color-primary);
  border: 1.5px solid var(--color-accent);
}
.btn.secondary:hover {
  background: #D6CCC2;
  color: var(--color-accent);
}

/* =================== FLEXBOX LAYOUTS ===================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: var(--color-white);
  box-shadow: 0 2px 16px 0 rgba(98,91,63,0.07);
  border-radius: 20px 12px 28px 20px;
  margin-bottom: 20px;
  position: relative;
  padding: 30px 24px;
  flex: 1 1 280px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.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;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
}
.feature {
  background: var(--color-white);
  border-radius: 24px 36px 14px 18px;
  box-shadow: 0 2px 16px 0 rgba(120,111,85,0.07);
  padding: 30px 22px 26px 22px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.feature img {
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
}

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

.service-list {
  margin-top: 12px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  flex-direction: row;
  margin-bottom: 0;
  margin-top: 6px;
}
.team-list li {
  background: var(--color-white);
  border-radius: 24px 52px 16px 25px;
  box-shadow: 0 1px 10px rgba(120,111,85,0.06);
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 300px;
  padding: 24px 20px 18px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============= TESTIMONIALS (ACCESSIBILITY: DARK ON LIGHT) ============= */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--color-white);
  color: #262615;
  border-radius: 32px 16px 36px 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 18px 0 rgba(98,91,63,0.06);
  border-left: 5px solid var(--color-accent);
  flex-direction: row;
  min-height: 88px;
  font-size: 1.09rem;
}
.testimonial-card span {
  font-weight: 600;
  color: var(--color-accent);
  font-size: 1rem;
  margin-left: 18px;
}
.testimonial-card p {
  margin-bottom: 0;
}

/* ================ FOOTER =================== */
footer {
  border-top: 2px solid #EDDFC9;
  background: var(--color-secondary);
  padding: 38px 0 12px 0;
  margin-top: 40px;
  font-size: 0.95rem;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  gap: 38px;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.footer-nav a {
  color: var(--color-dark);
  padding: 4px 8px;
  border-radius: 8px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1em;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.18s, background 0.17s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--color-accent);
  background: #E1ECD0;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #392D18;
  font-size: 1em;
}
.contact-details span {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 3px;
}
.contact-details img {
  width: 19px;
  height: 19px;
  margin-right: 4px !important;
  border-radius: 0;
}

/* ================ MOBILE BURGER MENU =================== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 2100;
  background: var(--color-accent);
  color: var(--color-secondary);
  border-radius: 36px 18px 36px 18px;
  border: none;
  font-size: 2.1rem;
  width: 52px;
  height: 52px;
  cursor: pointer;
  box-shadow: 0 1px 6px 0 rgba(126,116,95,0.16);
  justify-content: center;
  align-items: center;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-highlight);
  color: var(--color-primary);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(38,42,31,0.97);
  z-index: 3200;
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.68,-0.55,.27,1.55);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  display: block;
  position: absolute;
  top: 18px;
  right: 26px;
  z-index: 3300;
  background: none;
  color: var(--color-accent);
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  transition: color 0.19s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-highlight);
  outline: none;
}
.mobile-nav {
  margin-top: 95px;
  display: flex;
  flex-direction: column;
  gap: 35px;
  align-items: center;
  width: 100%;
  min-height: 320px;
}
.mobile-nav a {
  color: var(--color-secondary);
  background: rgba(124,149,95,0.18);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  padding: 15px 44px;
  border-radius: 38px 18px 28px 19px;
  transition: background 0.16s, color 0.18s;
  width: auto;
  text-align: center;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--color-accent);
  color: var(--color-dark);
}

/* =============== COOKIE CONSENT BANNER & MODAL ============ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3500;
  background: var(--color-secondary);
  box-shadow: 0 -4px 32px 0 rgba(60,96,60,0.16);
  border-top: 2.5px solid var(--color-accent);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 34px;
  padding: 26px 22px;
  min-height: 64px;
  transition: transform 0.41s cubic-bezier(.68,-0.55,.27,1.55);
}
.cookie-banner h3 {
  font-size: 1.08em;
  margin-bottom: 8px;
  color: var(--color-primary);
}
.cookie-banner p {
  color: #312F1B;
  max-width: 520px;
  margin-bottom: 0;
  font-size: 1em;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-left: 24px;
  margin-top: 0;
}
.cookie-banner .btn {
  font-size: 1em;
  padding: 10px 24px;
  border-radius: 38px 18px 38px 18px;
}
.cookie-banner .btn.settings {
  background: var(--color-white);
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}
.cookie-banner .btn.settings:hover {
  background: var(--color-accent);
  color: var(--color-secondary);
}

.cookie-banner.hide {
  transform: translateY(105%);
  opacity: 0;
  pointer-events: none;
}

.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(30,41,27,0.77);
  z-index: 3700;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.25s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal .modal-content {
  background: var(--color-secondary);
  border-radius: 28px 40px 18px 37px;
  box-shadow: 0 12px 42px 0 rgba(88,82,62,0.17);
  padding: 36px 32px 22px 32px;
  min-width: 320px;
  max-width: 95vw;
  position: relative;
}
.cookie-modal .modal-close {
  position: absolute;
  right: 24px;
  top: 18px;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--color-accent);
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  color: var(--color-primary);
}
.cookie-modal h3 {
  color: var(--color-accent);
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 22px;
}
.cookie-modal .category {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 9px 0;
}
.cookie-modal label {
  font-size: 1em;
  color: var(--color-primary);
  font-weight: 600;
}
.cookie-modal input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: var(--color-accent);
}

.cookie-modal .btn {
  margin-right: 14px;
}

/* ============= LISTS WITH ICONS FOR ORGANIC FEEL ============= */
ul li img,
ol li img {
  vertical-align: middle;
  height: 23px;
  width: 23px;
  margin-right: 10px;
  margin-bottom: -5px;
}

/* ================ RESPONSIVE DESIGN ==================== */
@media (max-width: 980px) {
  header .container {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .feature-grid, .team-list {
    gap: 16px;
  }
  .footer-nav {
    gap: 12px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .container {
    padding: 0 8px;
  }
  header {
    padding: 7px 0 11px 0;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header .btn.primary {
    display: none;
  }
  .section {
    margin-bottom: 38px;
    padding: 22px 7px;
    border-radius: 18px 8px 18px 12px;
  }
  .content-grid,
  .card-container,
  .feature-grid,
  .team-list {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.97rem;
    padding: 16px 10px;
  }
  footer .container {
    flex-direction: column;
    gap: 16px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 8px 12px 9px;
  }
  .cookie-banner .cookie-buttons {
    margin-left: 0;
    margin-top: 10px;
    gap: 9px;
  }
}
@media (max-width: 510px) {
  html {
    font-size: 14px;
  }
  .section {
    padding: 12px 2px;
  }
  .card, .feature, .team-list li {
    padding: 18px 8px;
  }
  .testimonial-card {
    padding: 10px 4px;
  }
  .cookie-modal .modal-content {
    padding: 16px 4px 12px 4px;
  }
  .cookie-modal h3 {
    font-size: 1.01rem;
  }
}

/* ================ ANIMATIONS & TRANSITIONS ================== */
.section, .feature, .card, .testimonial-card, .btn, .cookie-banner, .modal-content {
  transition: box-shadow 0.23s, background 0.18s, color 0.18s, transform 0.19s;
}
.btn, .btn.primary, .btn.secondary {
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.card:hover, .feature:hover, .team-list li:hover  {
  box-shadow: 0 8px 36px 0 rgba(105,139,83,0.15), 0 1px 10px 0 rgba(153,123,48,0.06);
  transform: translateY(-5px) scale(1.012);
}

/* ============ ACCESSIBILITY FOCUSES & CONTRAST ============= */
:focus-visible {
  outline: 2.5px solid var(--color-accent);
  outline-offset: 2.5px;
}

/* ================ MISC ORGANIC DECOR ===================== */
.section,
.feature, .feature-grid,
.card, .testimonial-card, .team-list li {
  /* organic shapes */
  border-radius: 32px 12px 46px 16px;
}
.blockquote.tagline,
.card, .feature {
  border-radius: 32px 10px 25px 14px;
}

/* ================= PRINT FRIENDLY (OPTIONAL) ================== */
@media print {
  body { background: #fff; color: #000; }
  header, footer, .main-nav, .mobile-menu, .mobile-menu-toggle,.cookie-banner,.cookie-modal {display:none!important;}
}
