/* =====================================
   Fusion Glade - style.css
   Modern organic nature-inspired design
   Responsive, Flexbox-only (no Grid)
   ===================================== */

/* ========= CSS RESET & BASE ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F5F7FA;
  color: #213E53;
  min-height: 100vh;
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #387144;
  text-decoration: none;
  transition: color .15s;
}
a:hover, a:focus {
  color: #DE9421;
  outline: none;
}
ul, ol {
  padding-left: 1.25em;
  margin-top: 12px;
  margin-bottom: 16px;
  list-style: disc outside;
}
li {
  margin-bottom: 10px;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #213E53;
  margin-bottom: 12px;
  font-weight: 700;
  line-height: 1.2;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1rem;
}
p {
  margin-bottom: 12px;
  font-size: 1.05rem;
  color: #2c4232;
}
strong {
  font-weight: 700;
  color: #387144;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

/* ========== HEADER & NAV ============ */
header {
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(34,46,24,0.04);
  position: sticky;
  top: 0;
  z-index: 1003;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  min-height: 76px;
  gap: 0;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}
header nav a {
  font-size: 1.06rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #213E53;
  padding: 8px 4px;
  border-radius: 6px;
  font-weight: 500;
  transition: background .16s, color .13s;
}
header nav a:hover, header nav a:focus {
  background: #EBF4E3;
  color: #387144;
}
.btn-primary {
  background: #387144;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  border-radius: 40px;
  padding: 12px 32px;
  box-shadow: 0 2px 16px 0 rgba(34,46,24,0.11);
  cursor: pointer;
  letter-spacing: 0.02em;
  margin-left: 18px;
  transition: background .18s, box-shadow .22s, color .10s, transform .1s;
  outline: none;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: #DE9421;
  color: #fff;
  box-shadow: 0 5px 24px 0 rgba(213, 132, 32, 0.10);
  transform: translateY(-2px) scale(1.03);
}

header .mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #387144;
  display: none;
  padding: 8px 14px;
  margin-left: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: background .17s;
  z-index: 1012;
}
header .mobile-menu-toggle:hover, header .mobile-menu-toggle:focus {
  background: #EBF4E3;
}

/* ========== MOBILE NAV MENU ========= */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 100vh;
  background: #fff;
  transform: translateX(100vw);
  transition: transform .37s cubic-bezier(.7,.07,.45,1);
  z-index: 1050;
  box-shadow: -2px 0 24px 0 rgba(34,46,24,0.11);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #387144;
  font-size: 2.2rem;
  margin: 28px 22px 0 0;
  cursor: pointer;
  border-radius: 50%;
  padding: 4px 11px;
  transition: background .11s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #EBF4E3;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
  padding: 32px 36px 30px 28px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: #213E53;
  padding: 12px 4px;
  width: 100%;
  border-radius: 16px;
  transition: background .15s, color .13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #EBF4E3;
  color: #387144;
}

/* =========== HERO SECTION =========== */
.hero {
  background: #EBF4E3 url('../assets/hero-bg-texture.svg') bottom right no-repeat;
  min-height: 350px;
  display: flex;
  align-items: center;
  border-radius: 0 0 56px 56px / 0 0 48px 48px;
  box-shadow: 0 2px 32px 0 rgba(34,46,24,0.06);
  margin-bottom: 60px;
}
.hero .container {
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 44px;
  padding-bottom: 44px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 24px;
  max-width: 630px;
}
.hero h1 {
  font-size: 2.65rem;
  color: #213E53;
  font-family: 'Montserrat', Arial, sans-serif;
}
.hero p {
  color: #387144;
  font-size: 1.19rem;
  margin-bottom: 12px;
}
.hero .btn-primary {
  margin: 0;
  margin-top: 16px;
}

/* ========= SECTIONS & SPACING ======== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  margin-top: 12px;
  margin-bottom: 14px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 18px;
  box-shadow: 0 2px 24px 0 rgba(34,46,24,0.08);
  background: #fff;
  padding: 30px 24px;
}
.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;
  margin-bottom: 16px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F9F7F4;
  border-left: 5px solid #387144;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(56,113,68,0.09);
  margin-bottom: 20px;
  flex-direction: column;
  align-items: flex-start;
}
.testimonial-card p {
  color: #213E53;
  font-size: 1.08rem;
  margin: 0 0 8px 0;
}
.testimonial-card span {
  color: #387144;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}

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

.service-card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.service-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 3px 28px 0 rgba(34,46,24,0.08);
  padding: 30px 28px 22px 28px;
  margin-bottom: 20px;
  min-width: 260px;
  flex: 1 1 310px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  border-left: 6px solid #DE9421;
  transition: box-shadow .17s, transform .13s;
}
.service-card:hover, .service-card:focus-within {
  box-shadow: 0 8px 32px 0 rgba(56,113,68,0.11);
  transform: translateY(-3px) scale(1.02);
}
.service-card h3, .service-card h2 {
  color: #387144;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.16rem;
}
.service-card .price {
  color: #DE9421;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* === White background for footer logo === */
footer {
  background: #fff;
  border-top-left-radius: 36px;
  border-top-right-radius: 36px;
  box-shadow: 0 -2px 18px 0 rgba(34,46,24,0.08);
  padding-top: 32px;
  padding-bottom: 16px;
  margin-top: 30px;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-top: 6px;
  padding-bottom: 6px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-right: 26px;
}
footer nav a {
  color: #387144;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  transition: color .14s;
}
footer nav a:hover, footer nav a:focus {
  color: #DE9421;
}
footer .text-section {
  gap: 4px;
  color: #213E53;
  font-size: 0.95rem;
}

/* =========== FORMS & BUTTONS ========== */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 14px;
  border: 1px solid #b9b9b2;
  padding: 12px 16px;
  background: #F5F7FA;
  transition: border .14s, box-shadow .15s;
  margin-bottom: 18px;
}
input:focus, textarea:focus, select:focus {
  border-color: #387144;
  box-shadow: 0 0 0 2px #EBF4E3;
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #213E53;
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
}

/* ========== ANIMATION & EFFECTS ========== */
.btn-primary, .service-card, .testimonial-card, .card {
  transition: box-shadow .18s, background .17s, color .18s, transform .13s;
}
.hero, .section, .service-card-list, .testimonial-card, .feature-item {
  /* subtle organic soft edge */
  border-radius: 18px;
}

/* =========== COOKIE BANNER =========== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #EBF4E3;
  color: #213E53;
  padding: 24px 18px 16px 18px;
  box-shadow: 0 -2px 24px 0 rgba(56,113,68,0.16);
  z-index: 1060;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: slideInBanner .5s cubic-bezier(.9,.16,.27,1) 1;
}
@keyframes slideInBanner {
  0% { transform: translateY(100%); opacity:0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin-bottom: 6px;
  color: #213E53;
  font-size: 1.05rem;
  text-align: center;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 40px;
  padding: 10px 24px;
  border: none;
  margin: 0;
  transition: background .13s, color .12s;
  cursor: pointer;
}
.cookie-banner .accept {
  background: #387144;
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #DE9421;
}
.cookie-banner .reject {
  background: #EFF3ED;
  color: #387144;
  border: 1.5px solid #387144;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #F7EEDD;
  color: #DE9421;
  border-color: #DE9421;
}
.cookie-banner .settings {
  background: transparent;
  color: #387144;
  border: 1.5px solid #387144;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #EBF4E3;
  color: #DE9421;
  border-color: #DE9421;
}

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 1065;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(33, 62, 83, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .24s;
}
.cookie-modal {
  background: #fff;
  border-radius: 28px;
  padding: 36px 28px;
  box-shadow: 0 8px 48px 0 rgba(34,46,24,0.14);
  width: 95%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: popupIn .3s cubic-bezier(.9,.15,.2,1);
  position: relative;
}
@keyframes popupIn {
  0% { transform: scale(0.89) translateY(30px); opacity:0; }
  100% { transform: scale(1) translateY(0); opacity:1; }
}
.cookie-modal h3 {
  font-size: 1.32rem;
  color: #387144;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-modal label {
  color: #213E53;
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0;
}
.cookie-modal input[type="checkbox"] {
  appearance: none;
  background: #EBF4E3;
  border: 2px solid #387144;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  position: relative;
  cursor: pointer;
  transition: background .11s, border .13s;
}
.cookie-modal input[type="checkbox"]:checked {
  background: #387144;
  border-color: #DE9421;
}
.cookie-modal input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 7px;
  height: 13px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 6px;
}
.cookie-modal .save {
  background: #387144;
  color: #fff;
  border: none;
}
.cookie-modal .save:hover, .cookie-modal .save:focus {
  background: #DE9421;
}
.cookie-modal .cancel {
  background: transparent;
  color: #387144;
  border: 1.5px solid #387144;
}
.cookie-modal .cancel:hover, .cookie-modal .cancel:focus {
  background: #EBF4E3;
  color: #DE9421;
  border-color: #DE9421;
}
.cookie-modal .category-desc {
  color: #637c6b;
  font-size: 0.97rem;
  margin-left: 18px;
}

/* ==== LISTS & ICONS ==== */
ul li::marker, ol li::marker {
  color: #387144;
}

/* ==== ORGANIC SHAPES DECOR ==== */
.hero, .service-card, .testimonial-card, .card, .section, .cookie-modal, .btn-primary {
  border-radius: 24px 32px 20px 28px/24px 24px 28px 32px;
}

/* ==== RESPONSIVE DESIGN (Mobile First) ==== */
@media (max-width: 1150px) {
  .service-card-list { gap: 16px; }
  .container { padding: 0 12px; }
  .content-wrapper { gap: 12px; }
}
@media (max-width: 900px) {
  .container { padding: 0 8px; }
  .content-wrapper { gap: 10px; }
  .service-card-list { gap: 12px; }
  .hero h1 { font-size: 2.2rem; }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    gap: 0;
  }
  header nav {
    display: none;
  }
  header .mobile-menu-toggle {
    display: inline-block;
    margin-right: 4px;
  }
  .btn-primary {
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
  }
  .service-card-list {
    flex-direction: column;
    gap: 16px;
  }
  .service-card {
    min-width: 0;
    width: 100%;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    margin-bottom: 18px;
  }
  section, .hero {
    padding: 30px 7px;
    margin-bottom: 38px;
    border-radius: 0 0 24px 24px/0 0 24px 24px;
  }
  .content-wrapper, .text-section {
    gap: 9px;
    padding: 0;
  }
  .card-container, .content-grid, .service-card-list {
    gap: 14px;
  }
  .card {
    padding: 20px 12px;
    border-radius: 16px;
    margin-bottom: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  footer .container {
    flex-direction: column;
    gap: 11px;
    align-items: flex-start;
  }
}
@media (max-width: 520px) {
  h1 {
    font-size: 1.4rem;
  }
  h2 {
    font-size: 1.13rem;
  }
  .btn-primary {
    font-size: 0.98rem;
    padding: 10px 16px;
  }
  .service-card {
    padding: 14px 7px 12px 10px;
  }
  .testimonial-card {
    padding: 10px 8px 10px 10px;
  }
  .cookie-modal {
    padding: 11px 7px;
  }
}

/* ========== MISC UTILITY ========== */
.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; }

/* Prevent overlapping - keep enough spacing everywhere */
section > .container, .content-grid, .card-container, .service-card-list {
  gap: 20px;
}

/* Accessibility: Focus styles */
a:focus, button:focus, .btn-primary:focus {
  outline: 2px solid #387144;
  outline-offset: 2px;
  background: #eaf2df;
  color: #213E53;
}

/* Hide visually (for accessibility helpers) */
.sr-only {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ===== ORGANIC DIVIDERS & TEXTURE ELEMENTS (if used) ===== */
.organic-divider {
  width: 60px;
  height: 6px;
  background: #DE9421;
  border-radius: 20px;
  margin: 17px 0;
}

::selection {
  background: #EBF4E3;
  color: #213E53;
}

/* ============ END OF STYLE.CSS ============= */
