/* --- CSS RESET & NORMALIZE --- */
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;
}
html{box-sizing:border-box;}
*,*:before,*:after{box-sizing:inherit;}
body{line-height:1;}
ol,ul{list-style:none;}
a{text-decoration:none;color:inherit;}
img{max-width:100%; display:block; height:auto; border:0;}
button,input,select,textarea{font-family:inherit; font-size:inherit; line-height:inherit;}

/* --- INDUSTRIAL MODERN THEME VARIABLES --- */
:root {
  --color-primary: #245C35;  /* deep industrial green */
  --color-primary-dark: #163D22;
  --color-secondary: #78AD6A;
  --color-accent: #F9F9E4;
  --color-bg: #232728;  /* urban dark background */
  --color-bg-light: #313738;
  --color-surface: #393E3D; /* card surface */
  --color-metal: #92989A;   /* metallic accent */
  --color-text: #F4F5F2;    /* light text */
  --color-text-dark: #202623;
  --color-cta: #E6D157;     /* metallic yellow for highlights/buttons */
  --color-danger: #c04444;

  /* Spacing */
  --sp-xxs: 8px;
  --sp-xs: 16px;
  --sp-s: 20px;
  --sp-m: 24px;
  --sp-l: 32px;
  --sp-xl: 40px;
  --sp-xxl: 60px;

  /* Shadow */
  --shadow: 0 2px 8px 0 rgba(20,28,18,0.15), 0 1.5px 0px 0 #92989A1f;
  --radius: 12px;

  --ff-display: 'Montserrat', Arial, 'Trebuchet MS', Helvetica, sans-serif;
  --ff-body: 'Open Sans', Verdana, Arial, Helvetica, sans-serif;
}

@media (max-width: 768px) {
  :root {
    --sp-xxl: 36px;
    --sp-xl: 24px;
    --sp-l: 16px;
    --sp-m: 12px;
    --sp-s: 9px;
    --radius: 9px;
  }
}

/* --- BASE BODY STYLES --- */
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-accent);
  font-family: var(--ff-display);
  font-weight: 700;
  letter-spacing: 0.015em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: var(--sp-m);
  color: var(--color-accent);
}
h2 {
  font-size: 2rem;
  margin-bottom: var(--sp-m);
  color: var(--color-cta);
}
h3 {
  font-size: 1.3rem;
  margin-bottom: var(--sp-s);
}
h4, h5, h6 {font-size: 1.08rem; margin-bottom: var(--sp-xs);}

p, ul, ol, li {margin-bottom: var(--sp-xs);}

strong {font-weight: 600; color: var(--color-secondary);}
em {color: var(--color-metal);}

/* --- LAYOUT CONTAINERS --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--sp-m);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--sp-l);
}

.section {
  margin-bottom: var(--sp-xxl);
  padding: var(--sp-xl) var(--sp-l);
  background: transparent;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-m);
}
.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  margin-bottom: var(--sp-s);
  position: relative;
  box-shadow: var(--shadow);
  padding: var(--sp-m);
  min-width: 250px;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-s);
}

.content-grid {
  display: flex;
  gap: var(--sp-s);
  flex-wrap: wrap;
  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: var(--sp-m);
  padding: var(--sp-m);
  background: var(--color-accent);
  border-radius: var(--radius);
  color: var(--color-text-dark);
  box-shadow: 0 2px 12px #2226  ;
  margin-bottom: var(--sp-s);
  transition: box-shadow 0.2s, transform 0.12s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 18px #2124228c;
  transform: translateY(-2px) scale(1.015);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 240px;
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: var(--sp-m);
  margin-bottom: var(--sp-s);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--color-metal);
}
.feature-item img {
  width: 38px; height: 38px;
  filter: grayscale(0.5) contrast(1.2);
}

@media (max-width: 768px) {
  .container { padding: 0 var(--sp-s); }
  .content-wrapper { gap: var(--sp-m); }
  .section { padding: var(--sp-l) var(--sp-s); }
  .text-image-section { flex-direction: column; align-items: flex-start; gap: var(--sp-m); }
  .content-grid,
  .card-container,
  .feature-grid,
  .benefit-list {
    flex-direction: column;
    gap: var(--sp-m);
  }
}

/* --- HEADER / NAVBAR --- */
header {
  background: var(--color-bg-light);
  border-bottom: 2.5px solid var(--color-metal);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-m) var(--sp-l);
}
.logo img {
  height: 46px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: var(--sp-m);
  align-items: center;
  margin-left: var(--sp-xl);
}
.main-nav a {
  font-family: var(--ff-display);
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  font-size: 1rem;
  padding: 6px 0;
  position: relative;
  letter-spacing: 0.05em;
  transition: color 0.18s;
}
.main-nav a:after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: var(--color-secondary);
  transition: width 0.22s;
  position: absolute; bottom: -4px; left: 0;
  border-radius: 2px;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--color-secondary);
}
.main-nav a:hover:after,
.main-nav a:focus:after {
  width: 80%;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(93deg,var(--color-cta),var(--color-secondary) 80%);
  color: var(--color-bg);
  font-family: var(--ff-display);
  border: none;
  border-radius: var(--radius);
  padding: 12px 32px;
  font-size: 1.08rem;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 2px 12px #202a2e18;
  transition: background 0.18s, box-shadow 0.2s, color 0.2s, transform 0.09s;
  margin-left: var(--sp-m);
  letter-spacing: 0.03em;
  cursor: pointer;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(93deg,var(--color-secondary),var(--color-cta) 80%);
  color: var(--color-primary-dark);
  box-shadow: 0 4.5px 14px #2a322d41;
  transform: translateY(-2px) scale(1.04);
}

.cta-link {
  font-family: var(--ff-display);
  color: var(--color-cta);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.13s;
}
.cta-link:hover { color: var(--color-secondary); }

/* MOBILE NAV */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-accent);
  cursor: pointer;
  padding: 8px 12px;
}

@media (max-width: 980px) {
  .main-nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(48,50,50,.96);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.8,0.1,0.2,0.9);
  display: flex;
  padding: 0;
  justify-content: flex-end;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 2.4rem;
  margin: var(--sp-xl) var(--sp-m) 0 0;
  align-self: flex-start;
  cursor: pointer;
  z-index: 1002;
  transition: color 0.14s;
}
.mobile-menu-close:hover {
  color: var(--color-cta);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp-m);
  padding: var(--sp-xxl) var(--sp-xl) var(--sp-xxl) var(--sp-xl);
  background: var(--color-surface);
  height: 100%;
  min-width: 280px;
  box-shadow: 0 0 14px #202f2c98;
}
.mobile-nav a {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  color: var(--color-accent);
  border-radius: var(--radius);
  padding: 12px 0 12px 12px;
  transition: background 0.18s, color 0.18s;
  letter-spacing: 0.03em;
}
.mobile-nav a:active,.mobile-nav a:focus,
.mobile-nav a:hover {
  background: var(--color-metal);
  color: var(--color-primary-dark);
}

/* --- HERO SECTION & BARS --- */
.hero {
  background: linear-gradient(122deg,var(--color-primary) 70%,var(--color-bg-light) 100%);
  border-bottom: 3px solid var(--color-metal);
}
.hero .content-wrapper {
  align-items: flex-start;
}
.hero h1 {
  font-size: 2.8rem;
  color: var(--color-accent);
  margin-bottom: var(--sp-m);
}
.hero p {
  font-size: 1.2rem;
  color: var(--color-metal);
  margin-bottom: var(--sp-l);
}

.cta-bar {
  background: var(--color-primary-dark);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px #1123  ;
  margin: var(--sp-l) 0;
}
.cta-bar .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-m);
}
.cta-bar h2 {
  color: var(--color-accent);
}

/* --- FEATURES GRID --- */
.features {
  background: var(--color-bg-light);
  border-radius: var(--radius);
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-l);
  margin-top: var(--sp-m);
  justify-content: flex-start;
}

.benefit-list, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-l);
}
.benefit-item, .service-item {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: var(--sp-s);
  padding: var(--sp-m);
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
  align-items: flex-start;
  min-width: 210px;
  border-left: 4px solid var(--color-metal);
}
.benefit-item img, .service-item img { width: 36px; height: 36px; }

@media (max-width: 768px) {
  .feature-grid, .benefit-list, .service-list {
    flex-direction: column;
    gap: var(--sp-m);
  }
}

/* --- PROJECT SUMMARY --- */
.project-summary {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: var(--sp-m);
  margin-bottom: var(--sp-m);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--color-primary);
}
.project-summary h3 {color: var(--color-cta);}
.project-summary strong {color: var(--color-secondary);}
.project-summary em {color: var(--color-metal);}

/* --- ABOUT / TEAM / COMMUNITY / PROSE --- */
.about,
.team,
.vision,
.community-intro,
.events,
.join,
.process,
.cookies-policy,
.gdpr,
.privacy-policy,
.terms-of-use,
.thank-you {
  background: var(--color-bg-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
ul,ol {
  padding-left: 1.25em;
  margin-bottom: var(--sp-xs);
}
ul li, ol li {
  margin-bottom: .65em;
  color: var(--color-text);
}

/* --- GUIDES & DOWNLOADS --- */
.download-btn {
  background: var(--color-metal);
  color: var(--color-bg);
  border-radius: var(--radius);
  padding: 7px 22px;
  margin-left: var(--sp-xs);
  font-family: var(--ff-display);
  font-weight: 600;
  border: none;
  transition: background 0.13s, color 0.14s, box-shadow 0.15s;
  box-shadow: 0 2px 7px #23292923;
  display: inline-block;
  cursor: pointer;
  font-size: 0.98rem;
}
.download-btn:hover, .download-btn:focus {background: var(--color-secondary); color: var(--color-primary-dark);}

/* --- FORM FIELDS --- */
.form-fields {
  display: flex;
  flex-direction: column;
  gap: var(--sp-m);
  width: 100%;
  margin-top: var(--sp-m);
}
.input-group {
  display: flex;
  align-items: center;
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 14px var(--sp-m);
  color: var(--color-accent);
  font-family: var(--ff-body);
  font-size: 1.02rem;
  gap: var(--sp-xs);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--color-metal);
}
.input-group img {width: 22px; height: 22px; margin-right: var(--sp-xs);}

/* --- FOOTER --- */
footer {
  background: var(--color-bg-light);
  border-top: 2.5px solid var(--color-metal);
  padding: var(--sp-xl) 0 var(--sp-xl) 0;
  margin-top: var(--sp-xl);
  width: 100%;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: var(--sp-l);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-m);
  margin-bottom: var(--sp-xs);
}
.footer-nav a {
  color: var(--color-metal);
  font-size: 0.98rem;
  transition: color 0.15s;
}
.footer-nav a:hover,
.footer-nav a:focus { color: var(--color-secondary); }
.footer-contact {
  color: var(--color-text);
  font-size: 0.97rem;
  text-align: center;
  margin-bottom: var(--sp-xs);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  font-family: var(--ff-display);
  font-weight: bold;
  color: var(--color-accent);
  font-size: 1.04rem;
  margin-top: var(--sp-xs);
}
.footer-brand img { width: 38px; height: 38px; filter: grayscale(0.3) contrast(1.2); }

/* --- COOKIE CONSENT BANNER & MODAL --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2000;
  background: var(--color-surface);
  color: var(--color-accent);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-s);
  box-shadow: 0 -3px 18px #1F232531;
  padding: var(--sp-m) var(--sp-l);
  border-top: 2px solid var(--color-metal);
  animation: cookieSlideIn 0.33s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes cookieSlideIn {
  from {transform: translateY(100%); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}
.cookie-banner__message {
  flex:1 1 0; font-size: 1rem; margin-right: var(--sp-s); color: var(--color-accent);}
.cookie-banner__actions {
  display: flex;
  gap: var(--sp-xs);
}
.cookie-btn {
  padding: 9px 17px;
  border-radius: var(--radius);
  border: none;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1rem;
  margin-right: 0px;
  background: var(--color-metal);
  color: var(--color-bg);
  transition: background 0.16s,color 0.16s, box-shadow 0.15s;
  cursor: pointer;
  box-shadow: 0 2px 9px #25291e11;
}
.cookie-btn.accept {background: var(--color-secondary); color: var(--color-bg);}
.cookie-btn.reject {background: var(--color-danger); color: var(--color-accent);}
.cookie-btn.settings {background: var(--color-primary); color: var(--color-accent);}
.cookie-btn:hover,.cookie-btn:focus {background: var(--color-cta); color: var(--color-bg);}

.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 2100;
  background: rgba(31,32,28,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.22s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes modalFadeIn {
  from {opacity:0;}
  to {opacity:1;}
}
.cookie-modal__content {
  background: var(--color-surface);
  color: var(--color-accent);
  border-radius: var(--radius);
  min-width: 310px;
  max-width: 94vw;
  padding: var(--sp-l) var(--sp-m);
  box-shadow: 0 6px 24px #212828df;
  display: flex;
  flex-direction: column;
  gap: var(--sp-s);
  align-items: flex-start;
  font-family: var(--ff-body);
}
.cookie-modal__close {
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 2rem;
  align-self: flex-end;
  cursor: pointer;
  margin-top: -var(--sp-xs);
  margin-bottom: 0;
}
.cookie-modal__title {
  font-family: var(--ff-display);
  font-size: 1.35rem;
  margin-bottom: var(--sp-xs);
  color: var(--color-cta);
}
.cookie-category {
  display: flex; align-items: center; gap: 16px; margin-bottom: var(--sp-xs); font-size: 1.02rem;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 18px;
  background: var(--color-metal);
  border-radius: 12px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-toggle:checked {
  background: var(--color-secondary);
}
.cookie-toggle:before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background: var(--color-accent);
  border-radius: 50%;
  position: absolute;
  top: 1px; left: 1px;
  box-shadow: 0 1.5px 7px #232e31a2;
  transition: transform 0.2s;
}
.cookie-toggle:checked:before {
  transform: translateX(20px);
}
.cookie-modal__footer {
  align-self: stretch;
  display: flex;
  gap: var(--sp-m);
  justify-content: flex-end;
  margin-top: var(--sp-s);
}
.cookie-modal__footer .cookie-btn {padding: 9px 21px;}

/* --- RESPONSIVE --- */
@media (max-width: 580px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.35rem; }
  .footer-brand img, .logo img {height: 32px;}
  .hero .content-wrapper {gap: var(--sp-m);}
}
/* --- SPACING & FLEX ADJUSTMENTS --- */
.feature-item, .card, .service-item, .benefit-item {margin-bottom: var(--sp-s);}
.section, .about, .team, .vision, .community-intro, .events, .join, .process, .cookies-policy, .gdpr, .privacy-policy, .terms-of-use, .thank-you {
  margin-bottom: var(--sp-xxl) !important;
  padding: var(--sp-xl) var(--sp-l) !important;
}
.card-container, .feature-grid, .benefit-list, .service-list {
  gap: var(--sp-m) !important;
}

/* --- TRANSITIONS & EFFECTS --- */
a, .cta-btn, .cookie-btn, .download-btn, .main-nav a, .mobile-nav a {
  transition: background 0.15s, color 0.15s, box-shadow 0.16s, border 0.14s, filter 0.13s;
}

/* --- UTILITY CLASSES --- */
.text-center { text-align: center; }
.m-b-xs { margin-bottom: var(--sp-xs); }
.m-b-s { margin-bottom: var(--sp-s); }
.m-b-m { margin-bottom: var(--sp-m); }
.m-b-l { margin-bottom: var(--sp-l); }
.m-b-xl { margin-bottom: var(--sp-xl); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.gap-s { gap: var(--sp-s); }
.gap-m { gap: var(--sp-m); }
.gap-l { gap: var(--sp-l); }
.align-center { align-items: center; }
.justify-center { justify-content: center; }

/* --- FORMS (for future/extensibility) --- */
input[type='text'], input[type='email'], input[type='tel'], textarea {
  background: var(--color-bg-light);
  border: 1.5px solid var(--color-metal);
  border-radius: var(--radius);
  padding: 11px 15px;
  color: var(--color-accent);
  font-family: var(--ff-body);
  width: 100%;
  font-size: 1.01rem;
}
input::placeholder, textarea::placeholder {color: #B3B5AB; opacity: 1;}
input:focus, textarea:focus {
  outline: none; border-color: var(--color-secondary); box-shadow: 0 1px 7px #2f382b26;
}

/* --- Misc --- */
hr {
  border: none;
  border-top: 1.5px solid var(--color-metal);
  margin: var(--sp-xl) 0;
}

/* --- PRINT (for guides, if needed) --- */
@media print { header, footer, .cookie-banner, .mobile-menu { display: none !important; } }
