/* RESET & FONT IMPORTS */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Lato:wght@400;700&display=swap');

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, 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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  min-height: 100vh;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  color: #28354A;
  background-color: #F7F5F1;
  background-image: url('../assets/nature-texture.jpg'); /* fallback for organic pattern */
  background-size: cover;
  background-attachment: fixed;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 16px;
}
a {
  color: #8CB6AD;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #28354A;
}
ul, ol {
  padding-left: 1.5em;
}
strong { font-weight: 700; }

/* TYPOGRAPHY */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: #28354A;
  font-weight: 700;
  letter-spacing: 0.5px;
}
h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.3rem; margin-bottom: 12px; }
h4 { font-size: 1.15rem; margin-bottom: 10px; }
p, li, span {
  font-size: 1rem;
  color: #384d3a;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  line-height: 1.7;
}
@media (max-width: 600px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
}

/* ORGANIC/NATURE-INSPIRED EFFECTS */
body {
  /* Gentle organic shadow under main layout */
  box-shadow: 0 4px 32px 0 rgba(140, 182, 173, 0.07);
}
section {
  background: rgba(233,217,198,0.59);
  border-radius: 32px 70px 48px 18px/40px 44px 38px 80px;
  /* mimicking organic, irregular curves */
  box-shadow: 0 8px 32px 0 rgba(140, 182, 173, 0.09);
}

/* MAIN LAYOUT & SPACING */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: none;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #FFF;
  border-radius: 22px 36px 22px 32px/32px 24px 44px 18px;
  box-shadow: 0 4px 16px 0 rgba(140, 182, 173, 0.09);
  padding: 24px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 6px 22px 0 rgba(40, 53, 74,0.14),0 8px 48px 0 rgba(140, 182, 173, 0.11);
}

.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  margin-bottom: 24px;
  background: #FFF;
  border-radius: 28px 38px 24px 36px/40px 44px 38px 50px;
  box-shadow: 0 3px 14px 0 rgba(40, 53, 74,0.07);
  border-left: 9px solid #8CB6AD;
}
.testimonial-card p {
  font-size: 1.08rem;
  color: #28354A;
  font-family: 'Lato',sans-serif;
}
.testimonial-card strong {
  color: #28354A;
  font-size: 1rem;
}

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

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 24px;
}
.features-grid > div {
  flex: 1 1 230px;
  min-width: 240px;
  background: #fff;
  border-radius: 28px 22px 36px 18px/36px 44px 38px 24px;
  box-shadow: 0 2px 16px 0 rgba(140,182,173,0.05);
  padding: 22px 18px 18px 18px;
  transition: transform 0.15s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  border-left: 5px solid #8CB6AD;
}
.features-grid > div:hover {
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 6px 18px 0 rgba(40,53,74,0.13);
  background: #f7faf9;
}
.features-grid img {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 12px;
}
.team-grid > div {
  flex: 1 1 200px;
  min-width: 200px;
  background: #F7F5F1;
  border-radius: 32px 42px 22px 34px/34px 44px 25px 35px;
  box-shadow: 0 4px 18px 0 rgba(140,182,173,0.08);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.team-grid h3 { font-size: 1.13rem; margin-bottom: 2px; }
.team-grid span {
  color: #8CB6AD;
  font-size: 1em;
  font-style: italic;
}

.services-list, .blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 16px;
}
.services-list > div, .blog-list > div {
  flex: 1 1 220px;
  min-width: 220px;
  background: #fff;
  border-radius: 24px 28px 24px 38px/32px 28px 34px 40px;
  box-shadow: 0 2px 12px 0 rgba(40, 53, 74,0.06);
  padding: 18px 14px;
  transition: box-shadow 0.18s, transform 0.13s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 4px solid #8CB6AD;
}
.services-list > div:hover, .blog-list > div:hover {
  transform: scale(1.018);
  box-shadow: 0 6px 22px 0 rgba(140, 182, 173,0.11);
}
.services-list img {
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
}

.blog-featured {
  background: #E9D9C6;
  color: #28354A;
  border-radius: 18px 32px 22px 32px/30px 26px 39px 20px;
  padding: 18px 24px;
  margin-top: 20px; margin-bottom: 10px;
  font-size: 1.02rem;
}
.blog-featured h4 {
  color: #8CB6AD;
  margin-bottom: 5px;
  font-size: 1.14rem;
}

/* BUTTONS & CTA */
.cta-btn, button, .blog-featured a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #8CB6AD;
  color: #fff;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  border: none;
  border-radius: 38px 24px 32px 18px/28px 22px 34px 22px;
  padding: 14px 36px;
  margin: 14px 0 0 0;
  box-shadow: 0 3px 12px 0 rgba(140,182,173,0.11);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.18s, transform 0.14s, color 0.15s;
}
.cta-btn:hover, .cta-btn:focus,
button:hover, button:focus,
.blog-featured a:hover {
  background: #28354A;
  color: #E9D9C6;
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 8px 32px 0 rgba(40, 53, 74,0.13);
}

/* HEADER NAVIGATION */
header {
  background: rgba(249,247,244,0.96);
  box-shadow: 0 4px 14px 0 rgba(40, 53, 74,0.04);
  position: sticky;
  top: 0;
  z-index: 30;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 16px 18px 16px;
}
.main-nav a {
  font-family: 'Lato',Arial,sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: #28354A;
  padding: 9px 10px;
  border-radius: 18px 22px 12px 14px/12px 12px 19px 17px;
  transition: background 0.16s, color 0.13s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #E9D9C6;
  color: #8CB6AD;
}
.main-nav .cta-btn {
  margin-left: 14px;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  background: #8CB6AD;
  color: #fff;
}

header img {
  height: 48px;
  width: auto;
  border-radius: 18px 24px 16px 10px/14px 19px 16px 12px;
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 22px;
  top: 26px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #28354A;
  z-index: 60;
  cursor: pointer;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 18px 22px 12px 14px/12px 12px 19px 17px;
  transition: background 0.16s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #E9D9C6;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(233,217,198,0.99);
  z-index: 9999;
  transition: transform 0.36s cubic-bezier(.48,.31,.56,.93);
  transform: translateX(-100%);
  box-shadow: 0 8px 42px 0 rgba(40,53,74,0.12);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  right: 22px;
  top: 22px;
  background: none;
  border: none;
  color: #28354A;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10001;
  transition: background 0.16s;
  padding: 6px 12px;
  border-radius: 12px 18px 13px 17px/13px 12px 14px 20px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #8CB6AD;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 20px;
  margin-top: 90px;
  padding-left: 34px;
}
.mobile-nav a {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1.14rem;
  font-weight: 700;
  color: #28354A;
  padding: 16px 10px 8px 0;
  letter-spacing: 0.02em;
  border-radius: 18px 12px 18px 10px/12px 9px 14px 14px;
  transition: background 0.13s, color 0.13s;
  width: 90%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #8CB6AD;
  color: #fff;
}

@media (max-width: 1100px) {
  .main-nav {
    max-width: none;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 10px;
    font-size: 0.98em;
  }
}
@media (max-width: 860px) {
  .main-nav .cta-btn {
    margin-left: 0;
    margin-top: 10px;
  }
  .main-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
  }
}
@media (max-width: 780px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .mobile-menu {
    display: flex;
  }
}

/* FOOTER */
footer {
  background: #E9D9C6;
  margin-top: 64px;
}
footer .container {
  padding: 0 16px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 20px 0 10px 0;
  padding-bottom: 0;
}
.footer-menu a {
  color: #28354A;
  font-size: 1rem;
  font-family: 'Lato', Arial, sans-serif;
  letter-spacing: 0.02em;
  border-radius: 10px;
  padding: 6px 10px;
  transition: background 0.14s, color 0.13s;
}
.footer-menu a:hover {
  background: #8CB6AD;
  color: #fff;
}
.contact-info {
  margin: 15px 0 8px 0;
}
.contact-info p {
  color: #28354A;
  font-size: 1rem;
}
.footer-social {
  margin: 12px 0 3px 0;
  display: flex;
  gap: 16px;
}
.footer-social img {
  width: 28px;
  height: 28px;
  border-radius: 12px 19px 13px 17px/14px 12px 10px 17px;
}

/* SECTIONS, LAYOUTS & ORGANIC DECOR */
.text-section {
  margin-top: 20px;
}

.text-section img {
  display: inline-block;
  width: 26px;
  margin-right: 7px;
  vertical-align: middle;
}

ol, ul {
  margin-top: 12px;
  margin-bottom: 22px;
  color: #475F55;
  font-size: 1rem;
  line-height: 1.65;
}
ol li, ul li {
  margin-bottom: 7px;
  margin-left: 8px;
}


/* RESPONSIVE STRUCTURE & FLEXBOX - MOBILE FIRST */
@media (max-width: 780px) {
  .container {
    padding: 0 7px;
  }
  .section {
    padding: 28px 4px;
    margin-bottom: 36px;
    gap: 14px;
  }
  .content-grid,
  .features-grid,
  .team-grid,
  .services-list,
  .blog-list {
    flex-direction: column;
    gap: 16px;
  }
  .card {
    padding: 16px;
  }
  .testimonial-card {
    padding: 15px 10px;
    border-left-width: 6px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 14px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .footer-menu {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    margin: 16px 0 2px 0;
  }
  .footer-social {
    gap: 10px;
    margin: 6px 0 0 0;
  }
}

/* ADDITIONAL FLEX SPACING (always at least 20px) */
.card-container, .features-grid, .services-list, .team-grid, .blog-list, .footer-menu, .footer-social {
  gap: 20px;
}

/* MICRO-INTERACTIONS & ANIMATIONS */
section, .card, .testimonial-card, .cta-btn, .services-list > div, .features-grid > div, .team-grid > div {
  transition: box-shadow 0.18s, transform 0.13s, background 0.14s, color 0.11s;
}

.cta-btn:active, button:active {
  transform: scale(.97);
}

/* ORG. SHAPE DECOS (ex for hover states, placeholders for further expansion) */
/* Can add before/after pseudo-elements for more organics if visual density needed */

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10200;
  width: 100vw;
  background: #28354A;
  color: #E9D9C6;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 14px 16px;
  box-shadow: 0 0 38px 0 rgba(40,53,74,0.19);
  gap: 16px;
  font-size: 1rem;
  animation: banner-fade-in 0.8s cubic-bezier(.12,.7,.65,1) both;
}
@keyframes banner-fade-in {
  from { transform: translateY(80px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner__buttons {
  display: flex;
  gap: 18px;
  margin-top: 9px;
}
.cookie-banner button {
  background: #8CB6AD;
  color: #fff;
  font-size: 1rem;
  border: none;
  border-radius: 24px 16px 22px 13px/15px 14px 20px 19px;
  padding: 10px 22px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 7px 0 rgba(140,182,173,0.09);
  margin-right: 2px;
  transition: background 0.13s, color 0.13s, transform 0.12s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #E9D9C6;
  color: #28354A;
}
.cookie-banner button:last-child { margin-right: 0; }

/* COOKIE SETTINGS MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(40,53,74,0.5);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.22s;
}
.cookie-modal {
  background: #fff;
  color: #28354A;
  border-radius: 42px 32px 22px 44px/38px 44px 20px 40px;
  box-shadow: 0 16px 80px 0 rgba(40,53,74,0.15);
  padding: 42px 32px 32px 32px;
  min-width: 330px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  font-size: 1rem;
  animation: modal-popup 0.33s cubic-bezier(.23,.76,.67,1);  
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
@keyframes modal-popup {
  from { transform: translateY(60px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-family: 'Playfair Display', serif;
  color: #28354A;
  margin-bottom: 10px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed #8CB6AD;
  padding: 12px 0;
  gap: 12px;
}
.cookie-toggle {
  width: 44px;
  height: 28px;
  border-radius: 19px 14px 16px 23px/12px 20px 20px 20px;
  background: #E9D9C6;
  position: relative;
  cursor: pointer;
  border: 1px solid #8CB6AD;
  transition: background 0.18s, border 0.18s;
}
.cookie-toggle[aria-checked="true"] {
  background: #8CB6AD;
  border-color: #28354A;
}
.cookie-toggle-thumb {
  display: block;
  position: absolute;
  left: 3px; top: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px 0 rgba(40,53,74,0.08);
  transition: left 0.20s;
}
.cookie-toggle[aria-checked="true"] .cookie-toggle-thumb {
  left: 19px;
}
.cookie-modal-actions {
  display: flex;
  gap: 17px;
  justify-content: flex-end;
  margin-top: 16px;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  color: #28354A;
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
  border-radius: 12px 16px 13px 12px/13px 18px 14px 10px;
  padding: 6px 12px;
  transition: background 0.11s;
  z-index: 11001;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #E9D9C6;
}

@media (max-width: 580px) {
  .cookie-modal {
    min-width: 0;
    padding: 20px 10px 18px 10px;
  }
  .cookie-modal-actions {
    gap: 7px;
    flex-direction: column;
    align-items: stretch;
  }
}

/* FORM (Contact, Newsletter, etc.) */
input, textarea, select {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 13px;
  border-radius: 18px 26px 18px 15px/15px 14px 19px 12px;
  border: 1.5px solid #8CB6AD;
  background: #FBFAF7;
  margin-bottom: 18px;
  width: 100%;
  transition: border 0.19s, background 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: #28354A;
  background: #fff;
  outline: none;
}

/* Accessibility & Misc */
:focus {
  outline: 2px solid #8CB6AD;
  outline-offset: 2px;
}
[role="button"]:focus {
  outline: 2.5px solid #28354A;
}

/* NO GRID OR COLUMN LAYOUTS USED!! */
/* LAYOUTS ARE PURE FLEXBOX */
