/* ----- CSS 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,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;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  background: #181B1E;
  color: #ECEFED;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
img {
  max-width: 30%;
  height: auto;
  display: block;
}
a {
  color: #7A9C4B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F4FAEF;
  text-decoration: underline;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
strong, b {
  font-weight: 700;
}

:root {
  --color-primary: #23694A;
  --color-secondary: #7A9C4B;
  --color-accent: #F4FAEF;
  --color-dark: #181B1E;
  --color-bg-section: #23272A;
  --color-metal: #7D868C;
  --color-surface: #262C31;
  --color-error: #E54747;
  --color-border: #334340;
  --color-shadow: #161b1f55;
  --font-display: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --radius: 12px;
  --shadow-card: 0 4px 16px var(--color-shadow);
  --transition: 0.25s cubic-bezier(.45,.24,.37,1.41);
}

/* ------------------------------------
   TYPOGRAPHY (Hierarchy, Headings, Urban Feel)
------------------------------------- */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ECEFED;
  margin-bottom: 16px;
  text-shadow: 0 2px 16px #0003;
}
h1 { font-size: 2.4rem; line-height: 1.15; margin-bottom: 20px; }
h2 { font-size: 1.7rem; margin-bottom: 14px; }
h3 { font-size: 1.32rem; margin-bottom: 8px; font-weight: 600; }
h4,h5,h6 { font-size: 1rem; }

@media (min-width:600px) {
  h1 { font-size: 3.2rem; }
  h2 { font-size: 2.1rem; }
  h3 { font-size: 1.4rem; }
}

p {
  font-size: 1.08rem;
  margin-bottom: 16px;
  color: #D2D6D5;
}

blockquote {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-accent);
  background: #22292E;
  border-left: 5px solid var(--color-secondary);
  margin: 24px 0;
  padding: 18px 24px 18px 24px;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px #0003;
}

address {
  font-style: normal;
  color: #9CA3AE;
  font-size: 1rem;
  margin-top: 10px;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ------------------------------------
   CONTAINER LAYOUTS (Only FLEXBOX!)
------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 0 18px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-section);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px #10181d22;
}

/* Content grids and flex containers */
.card-container, .feature-grid, .service-grid, .content-grid, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.icon-row, .infographics, .event-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.card, .feature-item, .testimonial-card {
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  overflow: hidden;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  padding: 24px 20px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--color-accent);
  color: #1b1e21;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px #202c2c12;
  border: 2px solid var(--color-secondary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-surface);
  padding: 24px 18px;
}

.about-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
}
.about-preview ul.counters {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.project-highlights ul {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

@media (max-width: 992px) {
  .container { padding: 0 8px; }
}
@media (max-width: 768px) {
  .content-wrapper, .about-preview, .feature-grid, .service-grid, .card-container, .icon-row, .project-highlights ul, .infographics {
    flex-direction: column !important;
    gap: 18px;
    align-items: stretch;
  }
  .section {
    padding: 26px 6px;
    margin-bottom: 36px;
  }
  .testimonial-card { flex-direction: column; gap: 10px; }
  .about-preview ul.counters { flex-direction: column; gap: 8px; }
}

/* ------------------------------------
   HEADER & NAVIGATION
------------------------------------- */
header {
  width: 100%;
  background: #222829;
  border-bottom: 2px solid var(--color-secondary);
  box-shadow: 0 3px 16px #0004;
  z-index: 100;
  position: sticky;
  top: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 67px;
  padding: 0 20px;
}
header img {
  height: 48px;
  width: auto;
  display: block;
  filter: grayscale(0.4) brightness(1.04);
}
nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #ECEFED;
  background: none;
  border-radius: 4px;
  padding: 6px 12px;
  position: relative;
  transition: background var(--transition), color var(--transition);
}
nav a:hover, nav a:focus {
  color: var(--color-accent);
  background: #26312c;
  text-decoration: none;
  outline: none;
}
/* Hide main nav on mobile */
@media (max-width: 900px) {
  nav { display: none !important; }
  .cta-btn { display: none !important; }
}

/* ------------------------------------
   HERO SECTION
------------------------------------- */
.hero {
  background: linear-gradient(120deg,#222829 80%,var(--color-primary) 100%);
  padding: 0; margin-bottom: 54px;
  box-shadow: 0 8px 36px #0006;
  border-bottom: 3px solid #303a37;
}
.hero .container {
  min-height: 440px;
  justify-content: center;
  align-items: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 20px;
  max-width: 700px;
}
.hero h1 {
  color: var(--color-accent);
  text-shadow: 0 3px 30px #181b1e, 0 2px 6px #0008;
}
.hero p {
  color: #DFDFDD;
  font-size: 1.15rem;
  margin-bottom: 24px;
}

/* ------------------------------------
   BUTTONS & CTA
------------------------------------- */
.cta-btn, .cookie-accept, .cookie-reject, .cookie-settings-btn, .cookie-modal-close {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  display: inline-block;
  color: #ECEFED;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border: none;
  border-radius: 8px;
  padding: 12px 30px;
  margin: 8px 0;
  cursor: pointer;
  box-shadow: 0 2px 8px #0004;
  letter-spacing: 0.05em;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform .16s;
}
.cta-btn:focus, .cta-btn:hover, .cookie-accept:hover, .cookie-settings-btn:hover, .cookie-reject:hover, .cookie-accept:focus, .cookie-settings-btn:focus, .cookie-reject:focus {
  background: linear-gradient(90deg, #334340 65%, #5B7A3E 100%);
  color: var(--color-accent);
  outline: 2px solid var(--color-secondary);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 3px 24px #7A9C4B44;
}

/* ------------------------------------
   CARDS
------------------------------------- */
.card, .feature-item {
  min-width: 240px;
  flex: 1 1 220px;
  padding: 26px 20px;
  transition: box-shadow var(--transition), transform var(--transition);
  border-left: 4px solid var(--color-metal);
  background: #202324FA;
}
.card:hover, .feature-item:hover {
  box-shadow: 0 8px 28px #222d2b77;
  transform: translateY(-4px) scale(1.017);
  border-color: var(--color-secondary);
}

/* Testimonial Styles - always high contrast */
.testimonial-card {
  color: #181B1E;
  background: #F4FAEF;
  border: 2px solid var(--color-secondary);
  font-size: 1.08rem;
}
.testimonial-card blockquote {
  color: #23694A;
  background: none;
  border-left: 3px solid #23694A;
  box-shadow: none;
}
.testimonial-card strong {
  color: #7A9C4B;
  font-weight: 700;
}

/* ------------------------------------
   FOOTER
------------------------------------- */
footer {
  background: #16191c;
  color: #becad6;
  border-top: 2px solid #232E2a;
  box-shadow: 0 -4px 24px #10181d18;
  margin-top: 60px;
  padding-top: 28px;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  gap: 38px;
  justify-content: space-between;
  padding: 14px 18px 30px 18px;
}
footer nav {
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  color: #BECAD6;
  font-size: 0.99rem;
  font-family: var(--font-body);
  padding: 2px 0;
  text-transform: none;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-secondary);
}
footer img {
  width: 52px; height: 52px; filter: grayscale(0.6) contrast(1.1); margin-bottom: 8px;
}

@media (max-width: 950px) {
  footer .container { flex-direction: column; align-items: center; padding: 20px 8px; gap: 14px; }
}

/* ------------------------------------
   MOBILE MENU (SLIDE ANIMATION)
------------------------------------- */
.mobile-menu-toggle {
  background: #191e20;
  border: none;
  color: #F4FAEF;
  font-size: 2.3rem;
  border-radius: 8px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 8px;
  transition: background .18s, color .18s, box-shadow .22s;
  z-index: 1201;
  box-shadow: 0 1px 8px #11321824;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #26312c;
  color: var(--color-secondary);
  outline: 2px solid var(--color-secondary);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30,32,35,0.97);
  box-shadow: 12px 0 64px #111a29f1;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.58,1.02,.12,.97);
  z-index: 1600;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 42px;
  padding-left: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-secondary);
  font-size: 2.2rem;
  position: absolute;
  right: 22px;
  top: 25px;
  cursor: pointer;
  z-index: 1801;
  transition: color 0.18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #F4FAEF;
  outline: 2px solid var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 32px 0 0 36px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #ECEFED;
  padding: 10px 0;
  border-left: 4px solid transparent;
  transition: color .18s, border-left .16s;
  width: 95vw;
  outline: none;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: var(--color-secondary);
  border-left: 4px solid var(--color-secondary);
  background: #22282966;
}
@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* ------------------------------------
   ICONS & VISUALS
------------------------------------- */
.icon-row img, .infographics img, .event-list img {
  width: 46px;
  height: 46px;
  filter: grayscale(0.08) contrast(1.16);
  background: #1f2124;
  border-radius: 50%;
  padding: 5px;
  border: 1.5px solid var(--color-border);
}

/* Cards info inline icons */
.feature-grid img, .feature-item img, ul li img {
  width: 32px;
  height: 32px;
  filter: grayscale(0.18) contrast(1.10);
  margin-bottom: 7px;
  border-radius: 7px;
  background: #2e373a;
  padding: 3px;
  border: 1px solid #323833;
}

/* Counters in 'about' */
ul.counters li strong {
  font-size: 2rem;
  color: var(--color-secondary);
}

/* ------------------------------------
   COOKIE CONSENT BANNER & MODAL
------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  width: 100vw;
  background: #20292e;
  color: #F4FAEF;
  box-shadow: 0 -4px 32px #081412e1;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 6vw 18px 26px;
  font-size: 1rem;
  border-top: 3px solid var(--color-metal);
  animation: slideInCookie .74s cubic-bezier(.22,1.12,.39,.98);
}
@keyframes slideInCookie {
  from { transform: translateY(120px); opacity:0; }
  to   { transform: translateY(0); opacity:1; }
}
.cookie-banner-buttons {
  display: flex;
  gap: 14px;
}
.cookie-accept {
  background: linear-gradient(90deg, #23694A 80%, #7A9C4B 100%);
  color: #F4FAEF;
}
.cookie-reject {
  background: #293030;
  color: #b3c8b0;
}
.cookie-settings-btn {
  background: var(--color-secondary);
  color: #232b28;
}
.cookie-accept:focus, .cookie-reject:focus, .cookie-settings-btn:focus {
  outline: 2px solid var(--color-accent);
  box-shadow: 0 2px 24px #33503939;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%,-60%) scale(0.98);
  background: #181B1E;
  color: #ECEFED;
  box-shadow: 0 8px 36px #0006;
  max-width: 94vw;
  width: 400px;
  border-radius: 16px;
  z-index: 13000;
  padding: 38px 30px 18px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 1;
  pointer-events: all;
  transition: opacity .22s cubic-bezier(.65,1.08,.27,.99);
  animation: fadeInCookie .58s cubic-bezier(.24,1.24,.44,.91);
}
@keyframes fadeInCookie {
  from { opacity: 0; transform: translate(-50%, -100%) scale(0.87); }
  to   { opacity: 1; transform: translate(-50%, -60%) scale(0.98); }
}
.cookie-modal-close {
  background: none;
  border: none;
  color: var(--color-secondary);
  font-size: 1.6rem;
  position: absolute;
  top: 11px; right: 18px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}
.cookie-modal-close:focus, .cookie-modal-close:hover {
  background: #202A21;
  outline: 2px solid var(--color-secondary);
}
.cookie-category {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.cookie-category label {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0;
}
.cookie-modal input[type='checkbox'] {
  accent-color: var(--color-secondary);
  width: 20px;
  height: 20px;
  margin-right: 4px;
}
.cookie-category[data-locked] label {
  opacity: 0.66;
  color: #C7CACC;
  cursor: default;
}
.cookie-modal .cookie-category small {
  font-size: .93rem;
  color: #bdbdbd;
  margin-left: 10px;
}
/* Hide modal unless open - JS should toggle display/opacity */
.cookie-banner.hidden, .cookie-modal.hidden {
  display: none !important;
}

@media (max-width: 600px) {
  .cookie-modal {
    max-width: 97vw;
    padding: 17vw 3vw 4vw 4vw;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 4vw 14px 14px;
    font-size: 0.97rem;
  }
}

/* ------------------------------------
   MISCELLANEOUS (Forms, Inputs, Maps)
------------------------------------- */
input, textarea {
  background: #202426;
  color: #F4FAEF;
  border: 1.5px solid #3e4445;
  border-radius: 7px;
  font-family: var(--font-body);
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 1.05rem;
  transition: border .16s;
}
input:focus, textarea:focus {
  border: 2px solid var(--color-secondary);
  outline: none;
}
.map {
  padding: 20px;
  background: #23272A;
  border-radius: var(--radius);
  margin-top: 14px;
  box-shadow: 0 2px 18px #11131729;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

/* ------------------------------------
   RESPONSIVE SPACING/TYPOGRAPHY
------------------------------------- */
@media (max-width: 680px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.13rem; }
  .section { padding: 16px 2px; }
}

/* ------------------------------------
   VISUAL MICROINTERACTIONS
------------------------------------- */
.card, .feature-item, .testimonial-card, .cta-btn, .cookie-banner, .cookie-modal {
  transition: box-shadow .20s cubic-bezier(.43,1.04,.37,1.16), transform .18s cubic-bezier(.45,.24,.37,1.41), background 0.21s;
}
.cta-btn:active, .cookie-accept:active, .cookie-reject:active, .cookie-settings-btn:active {
  transform: translateY(1px) scale(0.97);
}

/* ------------------------------------
   FORM ELEMENTS ACCESSIBILITY
------------------------------------- */
input, textarea, button {
  font-family: inherit;
}
button, [type="button"], [type="submit"] {
  cursor: pointer;
  border: none;
}

/* ------------------------------------
   UTILITY + OVERRIDES
------------------------------------- */
.hidden,
[hidden] {
  display: none !important;
}
.visually-hidden {
  border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;
}

/* ------------------------------------
   PRINT STYLES (Basic)
------------------------------------- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  body { color: #111 !important; background: #fff !important; }
}
