/* --------------------------------------------------
       CSS RESET & NORMALIZE (mobile first, flexbox!)
-------------------------------------------------- */
html { box-sizing: border-box; }
*,*::before,*::after { box-sizing: inherit; margin: 0; padding: 0; border: 0; font: inherit; vertical-align: baseline; }
body, html { height: 100%; }
body {
  background: #EFEFE7;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #263746;
  font-size: 16px;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; background: transparent; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', Arial, Helvetica, sans-serif; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 16px; color: #263746; }
h1 { font-size: 2.25rem; line-height: 1.15; margin-bottom: 24px; }
h2 { font-size: 1.5rem; line-height: 1.2; margin-bottom: 20px; }
h3 { font-size: 1.125rem; line-height: 1.3; margin-bottom: 12px; }
strong { font-weight: 600; }
p { margin-bottom: 16px; }
.section { margin-bottom: 60px; padding: 40px 20px; }
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

/* --------------------------------------------------
       NATUR ORGANIC STYLE: Colors, Effects, Fonts
-------------------------------------------------- */
:root {
  --primary: #263746;
  --secondary: #7D5C2D;
  --accent: #EFEFE7;
  --green: #7FBF60;
  --earth: #CDA47D;
  --stone: #B6BDA9;
  --neutral: #F6F4EA;
  --shadow: rgba(38, 55, 70, 0.08);
  --radius: 16px;
}
body { background-color: var(--accent); }

/* Typography */
body, .text-section, .faq-item, .footer-legal { font-family: 'Roboto', Arial, Helvetica, sans-serif; font-size: 1rem; color: #263746; }
h1, h2, h3, .cta-btn { font-family: 'Montserrat', Arial, Helvetica, sans-serif; }
h1 { color: var(--primary); }

/* Spacing scales for organic feel */
.section, .about-section, .features-section, .services-section, .contact-section, .legal-section, .faq-section, .testimonials, .cta-section {
  margin-bottom: 60px;
  padding: 40px 0;
}
@media (max-width: 600px) {
  .section, .about-section, .features-section, .services-section, .contact-section, .legal-section, .faq-section, .testimonials, .cta-section {
    padding: 32px 0 24px 0;
    margin-bottom: 36px;
  }
}

/* --------------------------------------------------
             HEADER/NAVIGATION
-------------------------------------------------- */
header {
  background: var(--accent);
  border-bottom: 1px solid var(--stone);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding-top: 10px;
  padding-bottom: 10px;
  position: relative;
}

.main-nav {
  display: flex;
  gap: 24px;
}
.main-nav a {
  padding: 8px 4px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--secondary);
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--neutral);
  color: var(--primary);
}
.cta-btn {
  padding: 10px 28px;
  background: var(--green);
  color: #fff;
  border-radius: 24px 24px 16px 24px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  margin-left: 20px;
  box-shadow: 0 4px 18px var(--shadow);
  border: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  cursor: pointer;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 6px 22px rgba(38, 55, 70, 0.15);
  transform: translateY(-2px) scale(1.02);
}

.mobile-menu-toggle {
  display: none;
  background: var(--green);
  color: #fff;
  font-size: 2rem;
  border-radius: 10px;
  padding: 5px 12px;
  border: none;
  cursor: pointer;
  margin-left: 18px;
  transition: background 0.2s, color 0.2s;
  z-index: 1001;
  line-height: 1;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--secondary);
  color: #fff;
}

/* Mobile Navigation */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: rgba(38,55,70,0.97);
  color: #fff;
  z-index: 1002;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  margin: 30px 0 0 22px;
  align-self: flex-start;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--green);
}
.mobile-nav {
  margin: 32px 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
  color: #fff;
  font-weight: 600;
  padding: 12px 0;
  border-radius: 8px;
  letter-spacing: 0.2px;
  transition: background 0.2s, color 0.2s;
  min-width: 220px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--green);
  color: #fff;
}
@media (max-width: 1023px) {
  .main-nav, .cta-btn { display: none !important; }
  .mobile-menu-toggle { display: block !important; }
}
@media (min-width: 1024px) {
  .mobile-menu { display: none !important; }
}

/* --------------------------------------------------
           HERO & SECTION LAYOUTS
-------------------------------------------------- */
.hero-section {
  background: linear-gradient(120deg, #EFEFE7 70%, #F6F4EA 100%);
  border-radius: 0 0 44px 44px;
  margin-bottom: 60px;
  box-shadow: 0 2px 28px var(--shadow);
}
.hero-section .container { align-items: center; min-height: 320px; }
.hero-section .content-wrapper {
  align-items: flex-start;
  gap: 20px;
}
@media (max-width: 768px) {
  .hero-section .container { min-height: 200px; padding-top: 24px; }
}

.about-section, .features-section, .services-section, .contact-section, .legal-section, .faq-section {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 0 16px var(--shadow);
  margin-bottom: 60px;
  padding: 40px 0;
}
.about-section .container, .features-section .container, .services-section .container { align-items: flex-start; }

.text-section { margin-bottom: 24px; }

/* Organic shapes */
.section, .about-section, .features-section, .services-section, .contact-section, .legal-section, .faq-section {
  position: relative;
  overflow: hidden;
}
.section::before, .about-section::before, .features-section::before, .services-section::before, .contact-section::before, .legal-section::before, .faq-section::before {
  content: '';
  position: absolute;
  left: -24px; top: -32px;
  width: 160px; height: 120px;
  background: rgba(127,191,96,0.13);
  border-radius: 40% 65% 70% 50%;
  z-index: 0;
  pointer-events: none;
}
.section::after, .about-section::after, .features-section::after, .services-section::after, .contact-section::after, .legal-section::after, .faq-section::after {
  content: '';
  position: absolute;
  right: -30px; bottom: -26px;
  width: 120px; height: 80px;
  background: rgba(205,164,125,0.14);
  border-radius: 90% 52% 80% 60%;
  z-index: 0;
  pointer-events: none;
}

/* --------------------------------------------------
          FEATURES, CARDS, TIMELINE, FAQ
-------------------------------------------------- */
.feature-grid, .project-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 6px;
}
.feature {
  background: var(--neutral);
  border-radius: var(--radius);
  box-shadow: 0 2px 14px var(--shadow);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 220px;
  max-width: 315px;
  flex: 1 1 250px;
  gap: 15px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  transition: box-shadow 0.16s;
}
.feature:hover {
  box-shadow: 0 5px 18px rgba(125,92,45, 0.11);
}
.feature img { width: 42px; margin-bottom: 4px; filter: hue-rotate(-9deg) brightness(1.02) saturate(1.2); }

.project-cards {
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.project-card {
  background: var(--neutral);
  border-radius: 20px;
  box-shadow: 0 2px 14px var(--shadow);
  padding: 28px 26px 18px 26px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 330px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  transition: box-shadow 0.16s;
}
.project-card h3 { color: var(--secondary); }
.project-card ul { margin-left: 14px; margin-bottom: 0; }
.project-card li {
  position: relative;
  margin-bottom: 6px;
  font-size: 1rem;
  color: var(--primary);
  line-height: 1.5;
}
.project-card li::before {
  content: '\2022';
  color: var(--green);
  margin-right: 8px;
  font-size: 1.18em;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.timeline-step {
  background: linear-gradient(90deg, var(--neutral), #fff 90%);
  border-radius: 18px;
  box-shadow: 0 1px 10px var(--shadow);
  padding: 24px 20px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.timeline-step strong { color: var(--green); font-family: 'Montserrat'; }

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: var(--neutral);
  border-radius: 14px;
  box-shadow: 0 1px 8px var(--shadow);
  padding: 24px 20px;
  transition: box-shadow 0.15s;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.faq-item h3 {
  font-size: 1.08rem;
  color: var(--secondary);
  margin-bottom: 8px;
}
.faq-item p { margin-bottom: 0; }
.faq-item:hover { box-shadow: 0 2px 16px rgba(38, 55, 70, 0.12); }

/* --------------------------------------------------
            TESTIMONIALS & QUOTES
-------------------------------------------------- */
.testimonials {
  background: #fff;
  padding: 40px 0;
  border-radius: var(--radius);
  box-shadow: 0 0 16px var(--shadow);
}
.testimonials .container { align-items: flex-start; }
.testimonials .content-wrapper { gap: 36px; }

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 32px 22px 32px;
  background: var(--neutral);
  border-radius: 20px;
  box-shadow: 0 2px 14px var(--shadow);
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 660px;
  z-index: 1;
  transition: box-shadow 0.16s, transform 0.16s;
}
.testimonial-card p {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1.08rem;
  color: var(--primary);
  margin-bottom: 12px;
  font-style: italic;
}
.testimonial-meta {
  font-size: 0.97rem;
  color: var(--secondary);
  font-weight: 500;
  letter-spacing: 0.1px;
}
.testimonial-card:hover {
  box-shadow: 0 6px 28px rgba(38,55,70,0.12);
  transform: translateY(-2px) scale(1.01);
}

/* --------------------------------------------------
                CALL-TO-ACTION SECTIONS
-------------------------------------------------- */
.cta-section {
  background: var(--green);
  color: #fff;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 2px 28px var(--shadow);
  position: relative;
  overflow: hidden;
}
.cta-section .container {
  align-items: center;
}
.cta-section h2, .cta-section p {
  color: #fff;
}
.cta-section .cta-btn {
  background: #fff;
  color: var(--green);
  border-radius: 32px;
  margin-top: 12px;
  box-shadow: 0 2px 14px var(--shadow);
}
.cta-section .cta-btn:hover {
  background: var(--earth);
  color: #fff;
}

/* --------------------------------------------------
                CONTACT & INFO
-------------------------------------------------- */
.contact-section .text-section,
.features-section .text-section { margin-bottom: 20px; }
.contact-section p img,
.footer-contact p img,
.text-section img { vertical-align: middle; margin-right: 10px; width: 22px; }

/* --------------------------------------------------
                   FOOTER
-------------------------------------------------- */
footer {
  background: var(--primary);
  color: #fff;
  padding: 36px 0 16px 0;
  border-radius: 44px 44px 0 0;
  box-shadow: 0 -2px 34px var(--shadow);
}
footer .container { align-items: flex-start; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  padding-bottom: 20px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 140px;
}
.footer-links a {
  color: var(--stone);
  font-family: 'Montserrat';
  font-size: 1rem;
  letter-spacing: 0.04em;
  border-radius: 8px;
  padding: 4px 0;
  transition: background 0.2s, color 0.2s;
}
.footer-links a:hover, .footer-links a:focus {
  color: var(--green); background: rgba(255,255,255,0.06);
}
.footer-contact { display: flex; flex-direction: column; gap: 6px; color: #fff; font-size: 0.99rem; }
.footer-contact p { display: flex; align-items: center; gap: 8px; }
.social-links {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
}
.social-links a img { filter: brightness(2.3) grayscale(0.3) opacity(0.85); transition: filter 0.16s; }
.social-links a:hover img { filter: grayscale(0) brightness(2.6) opacity(1) drop-shadow(0 0 4px var(--green)); }
.footer-legal {
  margin-top: 24px;
  font-size: 0.92rem;
  color: var(--stone);
  letter-spacing: 0.04em;
  text-align: center;
}
.footer-legal a {
  color: var(--green);
  text-decoration: underline;
  margin: 0 3px;
  transition: color 0.2s;
}
.footer-legal a:hover, .footer-legal a:focus { color: #fff; }

/* --------------------------------------------------
                 COOKIE CONSENT BANNER
-------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9001;
  background: #fff;
  border-top: 1px solid var(--stone);
  padding: 24px 24px 16px 24px;
  box-shadow: 0 -2px 24px rgba(38,55,70,0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  animation: banner-slideup 0.45s cubic-bezier(.18,0,.42,1);
}
@keyframes banner-slideup {
  from { transform: translateY(100%); opacity: 0.7; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner__actions { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.cookie-btn {
  padding: 8px 20px;
  border-radius: 18px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, box-shadow 0.14s;
  margin-right: 6px;
}
.cookie-btn.accept {
  background: var(--green);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--secondary);
  color: #fff;
}
.cookie-btn.reject {
  background: #EFEFE7;
  color: var(--secondary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #CDA47D;
  color: #fff;
}
.cookie-btn.settings {
  background: var(--neutral);
  color: var(--primary);
  border: 1px solid var(--green);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--green);
  color: #fff;
}

/* COOKIE MODAL */
#cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%) scale(0.98);
  z-index: 10004;
  background: #fff;
  border-radius: 24px;
  padding: 38px 28px 28px 28px;
  box-shadow: 0 6px 32px rgba(38,55,70,0.17);
  min-width: 330px;
  max-width: 98vw;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(.5,0,.5,1), visibility 0.28s;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
}
#cookie-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}
#cookie-modal h2 { color: var(--secondary); font-family: 'Montserrat'; font-size: 1.25rem; margin-bottom: 12px; }
.cookie-category {
  margin-bottom: 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.cookie-switch {
  --size: 21px;
  display: inline-block;
  width: 34px; height: var(--size);
  border-radius: 12px;
  background: #B6BDA9;
  position: relative;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-switch input {
  display: none;
}
.cookie-switch .slider {
  position: absolute; top: 2px; left: 2px;
  width: 17px; height: 17px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px #E2E7E4;
  transition: left 0.2s cubic-bezier(.4,0,.2,1);
}
.cookie-switch input:checked + .slider {
  left: 15px;
  background: var(--green);
}
.cookie-category.essential label {
  opacity: 0.65;
  pointer-events: none;
}
.cookie-modal__actions { display: flex; gap: 14px; margin-top: 16px; }

#cookie-modal .cookie-btn {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

/* Overlay for cookie modal */
#cookie-modal-overlay {
  content: '';
  position: fixed;
  left: 0; right:0; top:0; bottom:0;
  background: rgba(38,55,70,0.28);
  z-index: 10003;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.19s;
}
#cookie-modal.open + #cookie-modal-overlay {
  opacity: 1;
  pointer-events: all;
}

/* --------------------------------------------------
              MEDIA QUERIES (RESPONSIVE)
-------------------------------------------------- */
@media (max-width: 900px) {
  .container { padding: 0 10px; }
}
@media (max-width: 768px) {
  .feature-grid, .project-cards, .footer-nav { flex-direction: column; gap: 20px; }
  .feature, .project-card { max-width: 100%; min-width: 0; }
  .footer-links { flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .footer-contact, .social-links { margin-top: 12px; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.15rem; }
  .footer-nav { flex-direction: column; gap: 18px; }
  .footer-links { font-size: 0.98rem; }
  .cookie-banner { padding: 18px 8px 14px 8px; font-size: 0.99rem; }
  #cookie-modal { min-width: unset; width: 96vw; padding: 18px 7vw 16px 7vw; }
}
@media (max-width: 520px) {
  .cta-section { padding: 22px 0; }
  .section { padding-left: 8px; padding-right: 8px; }
}

/* FLEXBOX for all layout containers (MANDATORY) */
.card-container, .content-grid, .text-image-section, .testimonial-card, .feature-item, .feature-grid, .project-cards, .footer-nav, .footer-links, .footer-contact, .social-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 16px; }
}
.card {
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* For standalone cards (if needed) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* Content wrappers always flex column */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --------------------------------------------------
         MICRO-INTERACTIONS, HOVER, EFFECTS
-------------------------------------------------- */
button, .cta-btn, .cookie-btn {
  outline: none;
  transition: box-shadow 0.18s, background 0.17s, color 0.17s, transform 0.1s;
}
button:focus-visible, .cta-btn:focus-visible, .cookie-btn:focus-visible {
  box-shadow: 0 0 0 2px var(--green), 0 2px 16px var(--shadow);
  z-index: 2;
  outline: 2px solid var(--green);
}
a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

input, textarea, select {
  border-radius: 12px;
  border: 1px solid #B6BDA9;
  padding: 8px 12px;
  background: #fff;
  color: var(--primary);
  transition: border 0.18s, box-shadow 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--green);
  box-shadow: 0 2px 8px var(--shadow);
}

/* --------------------------------------------------
       ACCESSIBILITY & SELECTION COLORS
-------------------------------------------------- */
::selection {
  background: #c7efb8;
  color: #263746;
}

/* --------------------------------------------------
      HIDE MOBILE MENU ON DESKTOP, ENABLE ON MOBILE
-------------------------------------------------- */
@media (min-width: 1024px) {
  .mobile-menu { display: none!important; }
}

/* --------------------------------------------------
              HIDE/SHOW SECTIONS BY CLASS
-------------------------------------------------- */
.hide, [hidden], .hidden { display: none !important; }

/* ------------ END OF CSS ------------- */
