/* RESET & BASELINE 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section { display: block; }
body {
  line-height: 1.6;
  background: #F4F0EC;
  color: #374050;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
img { max-width: 100%; height: auto; border-radius: 10px; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* BRAND COLORS & NATURAL PALETTE */
:root {
  --primary: #374050;
  --secondary: #7D9259;
  --accent: #F4F0EC;
  --organic-brown: #926F5B;
  --organic-sand: #EDDBC2;
  --organic-green: #B4C19D;
  --organic-dark-green: #566B3E;
  --danger: #B1382E;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: .01em;
}
h1 {
  font-size: 2.7rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
p, li, span, table, th, td { font-size: 1rem; }
p { margin-bottom: 1em; }
strong { font-weight: 700; }
em { font-style: italic; }

/* SPACING & CONTAINER PATTERNS */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  margin-bottom: 0;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 14px 0 rgba(125,146,89,0.10), 0 1px 2px rgba(55, 64, 80, 0.07);
  margin-bottom: 20px;
  position: relative;
  padding: 28px;
  flex: 1 1 260px;
  min-width: 220px;
}
.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;
}

/* TESTIMONIALS, FEATURES, CARDS */
.testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonial-card {
  background: #fff;
  color: #374050;
  border-left: 7px solid var(--secondary);
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(125,146,89,0.07), 0 1px 2px rgba(80, 100, 50, 0.09);
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 240px;
  max-width: 350px;
  flex: 1 1 33%;
  transition: box-shadow 0.2s;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  box-shadow: 0 4px 16px 0 rgba(125,146,89,0.16), 0 2px 8px rgba(55, 64, 80, 0.12);
  border-left-color: var(--organic-dark-green);
}
.testimonial-card p {
  font-size: 1.08rem;
  flex: 1;
  color: #2E332E;
}
.testimonial-card strong {
  display: block;
  color: var(--secondary);
  margin-left: 16px;
  font-size: 0.97rem;
}

.feature_grid, .service_grid, .project-overviews, .blog-teasers, .workshop-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

.feature_grid > div,
.service_grid > div,
.project-overviews > div,
.blog-teasers > div {
  background: #fff;
  border-radius: 18px 40px 18px 24px;
  box-shadow: 0 2px 10px 0 rgba(55,64,80,0.10), 0 1px 2px rgba(125,146,89,0.11);
  padding: 24px;
  flex: 1 1 260px;
  min-width: 250px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  border-left: 5px solid var(--secondary);
  transition: box-shadow 0.22s, border-color 0.21s;
  position: relative;
}
.feature_grid > div img,
.service_grid > div img {
  max-width: 50px;
  margin-bottom: 8px;
  align-self: flex-start;
}
.feature_grid > div span,
.service_grid > div span {
  color: var(--organic-dark-green);
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 7px;
}
.feature_grid > div:hover,
.service_grid > div:hover,
.project-overviews > div:hover,
.blog-teasers > div:hover {
  box-shadow: 0 6px 20px 8px rgba(125,146,89,0.13), 0 2px 10px 0 rgba(55, 64, 80, 0.11);
  border-left-color: var(--organic-brown);
}

/* Lists with icons */
.content-wrapper ul, .content-wrapper ol {
  margin: 0 0 16px 0;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.content-wrapper li {
  background: rgba(180, 193, 157, 0.17);
  padding: 7px 16px;
  border-radius: 11px;
  margin-bottom: 0px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--organic-dark-green);
  font-size: 1rem;
}
.content-wrapper img[alt^="Inspirație"],
.content-wrapper img[alt^="Calitate"],
.content-wrapper img[alt^="Respect"],
.content-wrapper img[alt^="Educație"] {
  width: 24px;
  height: 24px;
  margin-right: 4px;
}

/* Category/Tag List */
.category-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.category-list li {
  background: var(--organic-green);
  color: var(--organic-dark-green);
  border-radius: 14px;
  padding: 5px 16px;
  margin-bottom: 0;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
}

/* Header & Navigation */
header {
  background: var(--accent);
  box-shadow: 0 1px 14px rgba(125,146,89,0.08);
  padding: 0;
  position: relative;
  z-index: 20;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  margin: 0 auto;
  padding: 14px 8px 14px 12px;
  max-width: 1180px;
}
header nav > a img {
  height: 54px;
  width: auto;
  transition: filter 0.18s;
  border-radius: 0 12px 12px 0;
}
header nav ul {
  display: flex;
  align-items: center;
  gap: 18px;
}
header nav ul li { list-style: none; }
header nav ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.11rem;
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 16px;
  background: none;
  transition: background 0.18s, color 0.24s;
  font-weight: 600;
}
header nav ul li a.cta {
  background: var(--secondary);
  color: #fff;
  border-radius: 22px;
  padding: 7px 20px;
  font-weight: 700;
  margin-left: 11px;
  box-shadow: 0 2px 8px 0 rgba(125,146,89,0.19);
  transition: background 0.18s, color 0.16s, box-shadow 0.2s;
}
header nav ul li a.cta:hover, header nav ul li a.cta:focus {
  background: var(--organic-dark-green);
  color: #fff;
  box-shadow: 0 6px 22px 0 rgba(125,146,89,0.21);
}
header nav ul li a:not(.cta):hover, header nav ul li a:not(.cta):focus {
  background: var(--organic-green);
  color: var(--organic-dark-green);
}

/* MOBILE BURGER NAVIGATION */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  margin-left: auto;
  z-index: 21;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--organic-green);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(54,65,38,0.92);
  z-index: 1100;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.77,.02,.32,1);
  display: flex;
  flex-direction: column;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.3rem;
  align-self: flex-end;
  margin: 22px 28px 6px 0;
  cursor: pointer;
  z-index: 1110;
  border-radius: 9px;
  transition: background 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--danger);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  margin: 28px 0 0 36px;
}
.mobile-nav a {
  color: #fff;
  background: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 22px;
  margin-bottom: 2px;
  transition: background 0.15s, color 0.14s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--organic-green);
  color: var(--organic-dark-green);
}

@media (max-width: 1024px) {
  header nav ul {
    gap: 8px;
  }
}
@media (max-width: 900px) {
  header nav ul {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .mobile-menu {
    display: flex;
  }
}
@media (max-width: 899px) {
  .container {
    max-width: 99vw;
    padding: 0 10px;
  }
  .section, section {
    padding: 26px 4vw;
    margin-bottom: 46px;
  }
}
@media (min-width: 900px) {
  .mobile-menu-toggle { display: none; }
}

/* Footer */
footer {
  background: var(--organic-brown);
  color: #fff;
  padding: 32px 0 0 0;
  border-radius: 36px 36px 0 0;
  min-height: 120px;
}
footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  padding-bottom: 7px;
}
footer nav a {
  color: #fff;
  font-size: 1.01rem;
  margin: 0 4px;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color 0.15s;
  font-weight: 500;
  opacity: 0.94;
}
footer nav a:hover, footer nav a:focus {
  color: var(--accent);
  text-decoration: underline;
}
footer .text-section {
  text-align: center;
  margin-top: 14px;
  font-size: .99rem;
  line-height: 1.68;
  color: #fff;
  opacity: 0.95;
}

/* Table Styling */
table {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 9px rgba(125,146,89,0.04);
  margin-bottom: 18px;
  border-radius: 13px;
  overflow: hidden;
}
th, td {
  padding: 15px 12px;
  border-bottom: 1px solid #ECE8DE;
  color: var(--primary);
}
th {
  background: var(--organic-green);
  color: var(--organic-dark-green);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.07rem;
}
tr:last-child td {
  border-bottom: none;
}

/* Button & Call to Action Styles */
.cta, a.cta {
  display: inline-block;
  background: var(--secondary);
  color: #fff;
  border-radius: 24px 41px 24px 24px;
  font-size: 1.13rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 12px 34px;
  margin-top: 16px;
  box-shadow: 0 4px 16px 0 rgba(125,146,89,0.13);
  outline: none;
  border: none;
  cursor: pointer;
  transition: background 0.17s, color 0.16s, box-shadow 0.14s, transform 0.16s;
  text-shadow: 0 2px 8px rgba(125,146,89,0.07);
  position: relative;
}
.cta:focus, .cta:hover, a.cta:hover, a.cta:focus {
  background: var(--organic-dark-green);
  color: #fff;
  transform: translateY(-2px) scale(1.035);
  box-shadow: 0 8px 28px 0 rgba(125,146,89,0.18);
}

/* Micro Interactions */
a, button, input, select, textarea {
  transition: background 0.15s, color 0.15s, border 0.14s, box-shadow 0.16s, transform 0.15s;
}

/* Forms (simple for contact) */
input, textarea, select {
  border: 1px solid var(--organic-green);
  background: #fff;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 1rem;
  margin-bottom: 16px;
  width: 100%;
  color: var(--primary);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
  outline: none;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 9999;
  width: 100vw;
  background: var(--organic-sand);
  box-shadow: 0 -4px 26px 0 rgba(125,146,89,0.11);
  color: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 22px 10vw 18px 10vw;
  font-size: 1rem;
  border-radius: 30px 30px 0 0;
  animation: cookie-slide-up 0.6s cubic-bezier(.66,0,.32,1);
}
@keyframes cookie-slide-up {
  0% { transform: translateY(110%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 13px;
}
.cookie-banner button,
.cookie-banner .cookie-btn {
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 4px;
  box-shadow: 0 1px 5px 0 rgba(125,146,89,0.10);
  cursor: pointer;
  transition: background 0.15s, color 0.13s, transform 0.13s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--organic-dark-green);
  color: #fff;
  transform: translateY(-2px) scale(1.05);
}
.cookie-banner .cookie-btn.reject {
  background: var(--danger);
}
.cookie-banner .cookie-btn.reject:hover, .cookie-banner .cookie-btn.reject:focus {
  background: #a5271c;
}
.cookie-banner .cookie-btn.settings {
  background: var(--organic-green);
  color: var(--organic-dark-green);
}
.cookie-banner .cookie-btn.settings:hover, .cookie-banner .cookie-btn.settings:focus {
  background: var(--secondary);
  color: #fff;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(34,47,31,0.55);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.29s;
}
.cookie-modal.open {
  pointer-events: all;
  opacity: 1;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 26px;
  padding: 36px 34px 30px;
  max-width: 420px;
  width: 95vw;
  box-shadow: 0 12px 46px 0 rgba(125,146,89,0.31);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookie-popup-in 0.4s cubic-bezier(.77,.02,.32,1);
}
@keyframes cookie-popup-in {
  0% { transform: translateY(65px) scale(0.86); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-modal-content h2 {
  font-size: 1.33rem;
  margin-bottom: 7px;
}
.cookie-modal-content .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-bottom: 13px;
}
.cookie-modal-content .cookie-category label {
  flex: 1;
  font-size: 1.01rem;
  color: var(--primary);
  font-weight: 600;
}
.cookie-modal-content .category-toggle {
  accent-color: var(--secondary);
  width: 20px; height: 20px;
}
.cookie-modal-content .cookie-modal-actions {
  margin-top: 14px;
  display: flex;
  gap: 13px;
}
.cookie-modal-content .cookie-modal-close {
  position: absolute;
  top: 18px; right: 24px;
  font-size: 2rem;
  border: none;
  background: none;
  color: var(--primary);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.14s;
}
.cookie-modal-content .cookie-modal-close:hover, .cookie-modal-content .cookie-modal-close:focus {
  background: var(--organic-sand);
}

/* MODAL accessibility layering */
.cookie-modal.open {
  pointer-events: all;
  opacity: 1;
  z-index: 12050;
}

/* Utility classes for hiding (JS toggling) */
.is-hidden { display: none !important; }

/* Feature Items / Flex Patterns */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Misc text styling */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 17px;
  align-items: flex-start;
  max-width: 800px;
}

/* Responsive: FLEX ONLY */
@media (max-width: 1020px) {
  .content-grid, .feature_grid, .service_grid, .card-container, .project-overviews, .blog-teasers, .testimonials-grid {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.3rem; }
  .content-wrapper, .text-section {
    padding: 0;
    gap: 14px;
    max-width: 100%;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    min-width: unset;
    width: 100%;
    max-width: 100%;
  }
  .testimonials-grid {
    gap: 14px;
  }
  .feature_grid > div, .service_grid > div, .project-overviews > div, .blog-teasers > div {
    padding: 18px;
    min-width: unset;
  }
  .section, section { padding: 18px 2vw; margin-bottom: 32px; }
  .cookie-banner { padding: 16px 3vw 14px 3vw; font-size: .96rem; }
}

@media (max-width: 520px) {
  .cookie-modal-content { padding: 18px 9px 24px; }
  .section, section { padding: 9px 2px; }
  .testimonial-card { padding: 10px 8px; }
}

/* Styled scrollbars for modern browsers */
body::-webkit-scrollbar {
  width: 11px;
  background: var(--accent);
}
body::-webkit-scrollbar-thumb {
  background: var(--organic-green);
  border-radius: 17px;
}
body {
  scrollbar-color: var(--organic-green) var(--accent);
  scrollbar-width: thin;
}

/* ORGANIC SHAPES with subtle texture */
.section, .feature_grid > div, .testimonial-card, .card, .service_grid > div, .content-wrapper {
  box-shadow: 0 2px 14px 0 rgba(125,146,89,0.10), 0 1px 2px rgba(55, 64, 80, 0.07);
  background-size: 120% 120%;
  background-repeat: no-repeat;
  background-blend-mode: lighten;
}
.feature_grid > div, .service_grid > div {
  background: linear-gradient(128deg, #F4F0EC 90%, #EDDBC2 100%);
}
.section {
  background: linear-gradient(110deg, #F4F0EC 70%, #EDDBC2 100%);
}

/* Micro Decorative Effects */
.feature_grid > div::before, .testimonial-card::before {
  content: '';
  display: block;
  position: absolute;
  left: -20px; top: -17px;
  width: 50px; height: 50px;
  background: rgba(125,146,89,0.13);
  border-radius: 70% 90% 42% 82%/80% 60% 70% 53%;
  z-index: 0;
}
.testimonial-card::before {
  left: -12px; top: -8px;
  width: 36px; height: 36px;
  background: rgba(180,193,157,0.22);
}

/* Remove before on mobile for performance */
@media (max-width: 600px){
  .feature_grid > div::before, .testimonial-card::before { display:none; }
}

/* Accessibility features */
:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* Z-index layering for mobile menus and cookie banner */
header, .mobile-menu, .cookie-banner, .cookie-modal { z-index: 101; }
footer { z-index: 10; }

/* Prevent Overlap: All major blocks have at least 20px margin-bottom via .card, .testimonial-card, .feature_grid>div, .service_grid>div, .content-wrapper, .section, .project-overviews>div, etc. */

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