/* === 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, 
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
html {
  width: 100%;
  font-size: 16px;
  background: #232729;
  color: #ECECEC;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #232729;
  color: #ECECEC;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #94B35A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F7EFD3;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.5em;
}
li {
  margin-bottom: 10px;
}

/* === TYPOGRAPHY HIERARCHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Roboto', Arial, serif;
  color: #F7EFD3;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
h1 { font-size: 2.75rem; line-height: 1.2; }
h2 { font-size: 2rem; line-height: 1.23; color: #EFDFA0;}
h3 { font-size: 1.375rem; line-height: 1.25; }
h4, h5, h6 { font-size: 1.125rem; line-height: 1.4; }
p, ul, ol, li { font-size: 1rem; color: #ECECEC;}
strong { color: #EFDFA0; font-weight: 700; }
em { color: #B9C6AB;}

/* === INDUSTRIAL MODERN COLORS & ACCENTS === */
:root {
  --primary: #265946;
  --secondary: #94B35A;
  --accent: #F7EFD3;
  --bg: #232729;
  --bg-dark: #202224;
  --bg-card: #2c2f31;
  --bg-metal: #484B50;
  --metal-1: #8B9299;
  --metal-2: #384045;
  --muted: #6D7175;
  --white: #FFFFFA;
  --error: #D25759;
  --shadow: 0 2px 12px 0 rgba(28,30,32,0.11), 0 1.5px 4px 0 rgba(38,89,70,0.13);
  --radius: 10px;
}

/* === INDUSTRIAL MODERN GENERAL LAYOUT === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}

/* === HEADER & NAVIGATION === */
header {
  background: var(--bg-dark);
  border-bottom: 3px solid var(--metal-2);
  box-shadow: 0 3px 12px rgba(46,56,59,0.10);
  position: relative;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 78px;
}
header nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
header nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.05rem;
  color: var(--metal-1);
  padding: 7px 10px;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.18s;
}
header nav a:hover, header nav a:focus {
  color: var(--accent);
  background: var(--bg-metal);
}
header .cta.primary {
  margin-left: 18px;
  font-family: 'Roboto', Arial, sans-serif;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 54px;
}

/* === CTA BUTTONS === */
.cta.primary {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: var(--accent);
  border: none;
  border-radius: var(--radius);
  padding: 15px 34px;
  font-size: 1.08rem;
  font-weight: bold;
  box-shadow: 0 1.5px 5px rgba(38, 89, 70, 0.12);
  cursor: pointer;
  transition: background 0.2s, transform 0.12s, color 0.18s;
  letter-spacing: 0.04em;
  outline: none;
  text-shadow:0 1px 2px #23272950;
  margin-top: 10px;
}
.cta.primary:active, .cta.primary:focus {
  background: #1d4533;
  color: var(--white);
  transform: scale(0.98);
}
.cta.primary:hover {
  background: var(--secondary);
  color: var(--bg);
}
/* Secondary/outline (if used in popups/banners) */
.cta {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  transition: background 0.19s, color 0.18s;
  cursor: pointer;
  border: 2px solid transparent;
  font-weight: 600;
}
.cta.secondary {
  background: var(--bg-card);
  color: var(--secondary);
  border-color: var(--secondary);
  padding: 11px 30px;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--secondary);
  color: var(--bg-card);
}


/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: none;
  background: var(--metal-2);
  color: var(--accent);
  border: none;
  border-radius: 7px;
  padding: 7px 18px;
  font-size: 2rem;
  cursor: pointer;
  margin-left: 14px;
  z-index: 110;
  transition: background 0.12s, box-shadow 0.12s;
  box-shadow: 0 1px 4px #2327296D;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--metal-1);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--bg-dark);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 82vw;
  max-width: 330px;
  transform: translateX(-110%);
  transition: transform 0.28s cubic-bezier(.4, .8, .33, 1) 0s;
  z-index: 2040;
  box-shadow: 4px 0 20px #232729c0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu .mobile-menu-close {
  align-self: flex-end;
  background: var(--metal-2);
  color: var(--accent);
  border: none;
  font-size: 2.1rem;
  margin: 24px 26px 19px 0;
  cursor: pointer;
  border-radius: 7px;
  padding: 5px 17px;
  transition: background 0.14s;
}
.mobile-menu .mobile-menu-close:hover, .mobile-menu .mobile-menu-close:focus {
  background: var(--metal-1);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-left: 38px;
  margin-top: 10px;
}
.mobile-nav a {
  color: var(--accent);
  font-size: 1.12rem;
  padding: 10px 0;
  font-family: 'Roboto', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid #3334;
  transition: color 0.19s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
}

/* === SECTION & RESPONSIVE LAYOUTS === */
main {
  flex: 1 1 auto;
  background: var(--bg);
}
section {
  background: none;
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius);
  box-shadow: none;
  position: relative;
}
section:last-child { margin-bottom: 0; }

/* Responsive .container is already handled above */

.content-wrapper.text-section {
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

/* === CARD AND FLEX LAYOUTS (MANDATORY) === */
.feature-grid, .card-container, .card-grid, .content-grid, .features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}
.card-container {
  gap: 24px;
}
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 22px 22px 22px;
  border: 2px solid var(--metal-2);
  min-width: 260px;
  min-height: 180px;
  transition: box-shadow 0.2s, border 0.18s, transform 0.18s;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.card:hover {
  box-shadow: 0 6px 24px #53796e1A, 0 3px 18px #23272933;
  border-color: var(--secondary);
  transform: translateY(-2px) scale(1.012);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 14px 13px;
  background: var(--bg-card);
  border-radius: var(--radius);
  min-width: 180px;
  flex: 1 1 240px;
}
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px
}

/* === LISTS & PRICING === */
.price-tag {
  margin-top: 18px;
  padding: 10px 20px;
  background: var(--metal-2);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.14rem;
  border-radius: var(--radius);
  box-shadow: 0 1px 7px #23272928;
  letter-spacing:0.03em;
}
ul li > img, ol li > img {
  margin-right: 13px;
  vertical-align: middle;
  display: inline-block;
  width: 26px;
  height: 26px;
}
ul li strong {
  color: var(--secondary);
}

/* === INDUSTRIAL ICONS AND ACCENTS === */
section img[src*='icon-'],
.feature-grid img,
ul li img {
  filter: grayscale(30%) contrast(1.07) brightness(90%);
  mix-blend-mode: luminosity;
  margin-right: 11px;
  width: 36px;
  height: 36px;
}

/* === INDUSTRIAL CARD-LIKE FEATURE GRID === */
.feature-grid > div {
  background: var(--bg-card);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 26px 22px 22px 22px;
  min-width: 220px;
  flex: 1 1 230px;
  border: 1.5px solid var(--metal-2);
  display: flex;
  flex-direction: column;
  gap: 17px;
  align-items: flex-start;
  transition: box-shadow 0.18s, border 0.16s;
}
.feature-grid > div:hover {
  border: 1.5px solid var(--secondary);
  box-shadow: 0 6.5px 22px #53796e20, 0 3.5px 18px #23272933;
}
.feature-grid h3 {
  color: var(--secondary);
  margin-bottom: 6px;
}

/* === TESTIMONIAL CARDS === */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: var(--accent);
  color: var(--bg-dark);
  border-radius: var(--radius);
  box-shadow: 0 2px 9px #23272922;
  margin-bottom: 20px;
  padding: 20px;
  border-left: 7px solid var(--primary);
  font-size: 1.08rem;
  max-width: 600px;
}
.testimonial-card p {
  color: var(--bg-dark);
  font-family: 'Playfair Display', serif;
  font-size: 1.08rem;
  font-style: italic;
  margin-bottom: 5px;
}
.testimonial-meta {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.97rem;
  margin-bottom: 3px;
}
.testimonial-card .stars {
  color: #F7B02B;
  font-size: 1.03rem;
  letter-spacing: 1px;
  font-family: 'Roboto', sans-serif;
}
.testimonial-average {
  background: var(--bg-card);
  color: var(--secondary);
  border-radius: var(--radius);
  padding: 10px 20px;
  font-weight: 700;
  font-size: 1.03rem;
  align-items: center;
  margin-top: 15px;
}
/* Guarantee text remains readable on testimonial cards */
.testimonial-card strong,
.testimonial-card em,
.testimonial-card span {
  color: var(--bg-dark) !important;
}

/* === FOOTER === */
footer {
  background: var(--bg-dark);
  color: var(--muted);
  padding: 38px 0 0 0;
  border-top: 3px solid var(--metal-2);
  position: relative;
  width: 100%;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 44px 20px;
  padding-bottom: 26px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: flex-start;
}
footer nav a {
  color: var(--muted);
  padding: 0 1px;
  font-size: 1rem;
}
footer nav a:hover, footer nav a:focus {
  color: var(--secondary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.98rem;
  color: var(--muted);
}
.footer-contact img {
  width: 22px;
  height: 22px;
  margin-right: 7px;
  vertical-align: middle;
  display: inline;
}
footer a img {
  filter: grayscale(25%) contrast(1.10) brightness(90%);
  height: 36px;
}

/* === COOKIE CONSENT BANNER & POPUP === */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--bg-metal);
  color: var(--accent);
  box-shadow: 0 -2px 12px #23272999;
  z-index: 4000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 12px;
  font-size: 1rem;
  animation: fadein-btm 0.5s cubic-bezier(.32,.72,.53,1.28);
}
@keyframes fadein-btm {
  from { transform: translateY(64px); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}
.cookie-banner p {
  color: var(--accent);
  flex: 1 1 auto;
  margin-right: 15px;
  font-size: 0.97rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 13px;
  align-items: center;
}
.cookie-banner .cta {
  font-size: 0.97rem;
  border-radius: 7px;
  padding: 8px 18px;
  min-width: 90px;
}
.cookie-banner .cta.accept {
  background: var(--secondary);
  color: var(--bg-dark);
  border: 2px solid var(--secondary);
}
.cookie-banner .cta.accept:hover {
  background: var(--accent);
  color: var(--secondary);
}
.cookie-banner .cta.reject {
  background: var(--bg);
  color: var(--accent);
  border: 2px solid var(--metal-1);
}
.cookie-banner .cta.reject:hover {
  background: var(--error);
  color: #fff;
}
.cookie-banner .cta.settings {
  background: var(--bg-card);
  color: var(--secondary);
  border: 2px solid var(--secondary);
}
.cookie-banner .cta.settings:hover {
  background: var(--secondary);
  color: var(--bg-card);
}

/* === COOKIE PREFERENCES MODAL === */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -54%) scale(0.98);
  background: var(--bg-card);
  color: var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 7px 32px #232729F2, 0 2px 12px #b9c6ab41;
  z-index: 4050;
  width: 95vw;
  max-width: 430px;
  padding: 38px 28px 30px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  animation: fadepop 0.22s cubic-bezier(.39,.82,.47,1.29);
}
@keyframes fadepop {
  from { transform: translate(-50%, -64%) scale(0.97); opacity: 0; }
  to   { transform: translate(-50%, -54%) scale(0.98); opacity: 1; }
}
.cookie-modal h2 {
  color: var(--secondary);
  font-size: 1.30rem;
}
.cookie-modal form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 17px;
  font-size: 1.02rem;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-modal label {
  color: var(--accent);
}
.cookie-modal .toggle {
  width: 38px;
  height: 22px;
  background: var(--bg-metal);
  border-radius: 22px;
  position: relative;
  cursor: pointer;
  margin-right: 8px;
  border: 2px solid var(--metal-1);
  transition: background 0.18s, border 0.19s;
}
.cookie-modal .toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal .slider {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--secondary);
  transition: transform 0.2s;
}
.cookie-modal .toggle input:checked + .slider {
  background: var(--primary);
  transform: translateX(14px);
}
.cookie-modal .category-essential {
  color: var(--metal-1);
  font-weight: 700;
}
.cookie-modal .modal-actions {
  width: 100%;
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 22px;
}
.cookie-modal .cta {
  min-width: 96px;
  font-size: 1.01rem;
}
.cookie-modal .cta.cancel {
  background: var(--bg);
  color: var(--accent);
  border: 2px solid var(--metal-1);
}
.cookie-modal .cta.save {
  background: var(--secondary);
  color: var(--bg-dark);
  border: 2px solid var(--secondary);
}

/* Overlay for cookie modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(34, 38, 41, 0.57);
  z-index: 4049;
  transition: opacity 0.23s;
}

/* === RESPONSIVE MEDIA QUERIES, MOBILE-FIRST === */
@media (max-width: 991px) {
  .container {
    max-width: 960px;
  }
  .feature-grid, .card-container, .card-grid, .content-grid, .features {
    gap: 17px;
  }
  footer .container {
    gap: 24px 10px;
    padding-bottom: 20px;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  section {
    padding: 30px 8px;
  }
  .content-wrapper { gap: 20px; }
  header nav {
    display: none;
  }
  header .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .feature-grid, .card-container, .card-grid, .content-grid, .features {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  footer .container {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}
@media (max-width: 550px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.38rem; }
  h3 { font-size: 1.08rem; }
  section {
    padding: 21px 2.5vw;
    margin-bottom: 36px;
  }
  .container {
    padding-left: 5vw;
    padding-right: 5vw;
  }
  .feature-grid > div, .card {
    min-width: 0;
    padding: 16px 8px;
  }
}

/* === MICRO-INTERACTIONS, HOVER EFFECTS === */
button, .cta {
  transition: background 0.15s, color 0.14s, box-shadow 0.16s, border 0.11s;
}
button:focus, .cta:focus {
  outline: 2.5px solid var(--secondary);
  outline-offset: 2px;
}

/* === FORM ELEMENTS === */
input, textarea, select {
  background: var(--bg-card);
  border: 1.5px solid var(--metal-2);
  border-radius: var(--radius);
  color: var(--accent);
  padding: 12px 14px;
  margin-bottom: 20px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  box-shadow: 0 1.5px 5px #23272912;
  transition: border 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
}
label {
  display: block;
  margin-bottom: 8px;
  color: var(--secondary);
  font-weight: 600;
  font-size: 1.01rem;
  letter-spacing: 0.01em;
}

/* === HELPER UTILITIES === */
.hide-mobile { display: block; }
@media (max-width: 768px) {
  .hide-mobile { display: none; }
}
.show-mobile { display: none; }
@media (max-width: 768px) {
  .show-mobile { display: block; }
}

/* === ACCESSIBILITY === */
:focus {
  outline: 2px dashed var(--secondary);
  outline-offset: 2px;
}

/* === VISUAL INDUSTRIAL METALLIC BORDERS/SHADOWS === */
.card, .feature-grid > div {
  border-left: 3.5px solid var(--metal-1);
  box-shadow: 0 3px 13px #2327291D;
}
.card:hover, .feature-grid > div:hover {
  box-shadow: 0 7px 28px #22281f25, 0 2px 8px #53796e40;
  border-left: 3.5px solid var(--secondary);
}

/* === Z-INDEX LAYERING === */
header { z-index: 110; }
.mobile-menu { z-index: 2040; }
.cookie-banner { z-index: 4000; }
.cookie-modal { z-index: 4050; }

/* === ANIMATIONS FOR INDUSTRIAL URBAN FEEL === */
.card, .feature-grid > div, .testimonial-card, .cta.primary, .cta.secondary {
  transition: box-shadow 0.22s cubic-bezier(.4,.5,.2,1.1), border 0.16s, background 0.12s, color 0.15s, transform 0.15s;
}

/* === END CSS === */
