/* --- 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,
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;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #fff;
  color: #1C2541;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}
img, svg {
  max-width: 100%;
  display: block;
}
button, input, textarea, select {
  font: inherit;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  appearance: none;
}
:focus {
  outline: 2px solid #176135;
  outline-offset: 2px;
}

/* --- GLOBAL VARIABLES --- */
:root {
  --color-primary: #176135;
  --color-secondary: #1C2541;
  --color-accent: #F1F7EE;
  --color-bg-main: #fff;
  --color-text-main: #1C2541;
  --color-muted: #7C8CA6;
  --color-border: #E8ECEF;
  --color-shadow: rgba(29, 41, 47, 0.06);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* --- TYPOGRAPHY --- */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -1px;
  line-height: 1.18;
  margin-bottom: 16px;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
}
h4, .h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-secondary);
}
p, ul, ol, li {
  font-size: 1rem;
  color: var(--color-text-main);
  line-height: 1.7;
}
strong {
  font-weight: 600;
  color: var(--color-primary);
}

/* --- LINKS --- */
a {
  color: var(--color-primary);
  transition: color 0.2s;
}
a:hover, a:active {
  color: var(--color-secondary);
}

/* --- CONTAINER --- */
.container {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- HEADER --- */
header {
  background: var(--color-bg-main);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1002;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo-link {
  display: flex;
  align-items: center;
  margin-right: 32px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  padding: 4px 6px;
  color: var(--color-secondary);
  position: relative;
}
.main-nav a:after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--color-primary);
  transition: width 0.2s;
  margin-top: 3px;
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 100%;
}
.btn-primary {
  font-family: var(--font-display);
  padding: 10px 28px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-left: 24px;
  box-shadow: 0 2px 14px -5px var(--color-shadow);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  letter-spacing: 0.3px;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-secondary);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px -7px var(--color-shadow);
}
.btn-secondary {
  font-family: var(--font-display);
  padding: 8px 22px;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 2px 8px -4px var(--color-shadow);
  transition: background 0.2s, color 0.2s, border 0.2s;
  display: inline-block;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.mobile-menu-toggle {
  display: none;
  background: none;
  font-size: 2rem;
  color: var(--color-primary);
  border: none;
  cursor: pointer;
  margin-left: 18px;
  padding: 6px 10px;
  border-radius: 50%;
  transition: background 0.2s;
  line-height: 1;
  z-index: 1010;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-accent);
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  max-width: 320px;
  height: 100vh;
  background: #fff;
  box-shadow: -8px 0 24px -8px var(--color-shadow);
  z-index: 1100;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.77,.1,.21,.86);
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-secondary);
  font-size: 2rem;
  margin: 16px auto 0 16px;
  cursor: pointer;
  align-self: flex-end;
  transition: background 0.2s;
  border-radius: 50%;
  padding: 6px 12px;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 40px 24px 0 24px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 8px 0;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}

@media (max-width: 1050px) {
  .main-nav {
    gap: 13px;
  }
  .btn-primary {
    margin-left: 10px;
    padding: 9px 19px;
  }
}
@media (max-width: 900px) {
  header .container {
    flex-wrap: wrap;
  }
}
@media (max-width: 820px) {
  .main-nav, .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* --- HERO --- */
.hero {
  background: var(--color-accent);
  padding-top: 48px;
  padding-bottom: 48px;
  margin-bottom: 48px;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 650px;
  margin: 0 auto;
}
.hero h1 {
  color: var(--color-primary);
  font-size: 2.3rem;
}
.hero p {
  color: var(--color-secondary);
  font-size: 1.18rem;
}

/* --- SPACING & BASIC LAYOUTS --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  box-shadow: 0 5px 16px -10px var(--color-shadow);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
  min-width: 240px;
  flex: 1 1 250px;
}
.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;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 5px 26px -21px var(--color-shadow);
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
  max-width: 600px;
}
.testimonial-card p {
  font-size: 1.1rem;
  color: var(--color-secondary);
}
.testimonial-author {
  color: var(--color-primary);
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 500;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- FEATURE CARD GRID --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 26px;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 26px 22px 22px 22px;
  box-shadow: 0 3px 10px -6px var(--color-shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 220px;
  flex: 1 1 250px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.16s;
  border: 1px solid var(--color-border);
}
.feature-card:hover {
  box-shadow: 0 10px 24px -8px var(--color-shadow);
  transform: translateY(-2px) scale(1.018);
}
.feature-card img {
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
  filter: brightness(1.1);
}
.feature-card h3 {
  color: var(--color-secondary);
  margin-bottom: 8px;
  font-size: 1.09rem;
}
.feature-card p {
  color: var(--color-text-main);
  font-size: 1rem;
}

/* --- BLOG CARDS / GRID --- */
.blog-posts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.blog-post-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px 22px 20px 22px;
  box-shadow: 0 3px 10px -6px var(--color-shadow);
  display: flex;
  flex-direction: column;
  min-width: 220px;
  flex: 1 1 280px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.16s;
  border: 1px solid var(--color-border);
}
.blog-post-card:hover {
  box-shadow: 0 8px 24px -12px var(--color-shadow);
  transform: translateY(-2px) scale(1.017);
}
.blog-post-card h3 {
  margin-bottom: 10px;
  color: var(--color-primary);
  font-size: 1.02rem;
}
.blog-post-card p {
  margin-bottom: 12px;
}

.benefits-list, .categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}
.benefits-list li, .categories-list li {
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 0.96rem;
  font-weight: 500;
}

/* --- ABOUT AND SERVICES --- */
.about ul, .services ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 10px;
}
.services-list ul {
  gap: 16px;
  margin-bottom: 18px;
}

/* --- PROJECTS & CASE STUDIES --- */
.project-summary {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 3px 10px -6px var(--color-shadow);
  margin-bottom: 20px;
  padding: 20px 20px 12px 20px;
  border: 1px solid var(--color-border);
}

/* --- CONTACT/CTA SECTION --- */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--color-accent);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.contact-details div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}
.map {
  margin-top: 30px;
  text-align: center;
}
.map .map-placeholder {
  margin-top: 10px;
  background: var(--color-accent);
  border-radius: var(--radius-md);
  padding: 28px 0;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta {
  background: var(--color-accent);
  border-radius: var(--radius-md);
  text-align: center;
  padding: 22px 0 30px 0;
}

/* --- FOOTER --- */
footer {
  background: #fff;
  border-top: 1px solid var(--color-border);
  padding: 38px 0 0 0;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 30px;
}
.footer-main img {
  width: 70px;
  margin-bottom: 14px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  font-size: 0.98rem;
  color: var(--color-muted);
  transition: color 0.2s;
  padding: 1px 0;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-primary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.98rem;
  color: var(--color-secondary);
}
.footer-contact img {
  width: 19px;
  margin-right: 6px;
  vertical-align: middle;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0 22px 0;
  border-top: 1px solid var(--color-border);
  margin-top: 6px;
}
.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}
.social-links img {
  width: 32px;
  filter: grayscale(80%) brightness(1.1);
  transition: filter 0.2s, transform 0.12s;
  border-radius: 50%;
  background: var(--color-accent);
  padding: 2px;
}
.social-links img:hover {
  filter: none;
  transform: scale(1.08);
}
.copyright {
  font-size: 0.97rem;
  color: var(--color-muted);
}

/* --- MODALS, BANNERS & BUTTONS --- */
/* --- COOKIE CONSENT BANNER --- */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  box-shadow: 0 -4px 32px -12px var(--color-shadow);
  border-top: 1px solid var(--color-border);
  z-index: 1300;
  padding: 26px 18px 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: cookie-slidein 0.32s cubic-bezier(.77,.1,.21,.86);
}
@keyframes cookie-slidein {
  from { transform: translateY(100%); opacity: .6; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  color: var(--color-secondary);
  text-align: center;
  font-size: 1rem;
  margin-bottom: 7px;
}
.cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-btn, .cookie-btn-primary {
  font-family: var(--font-display);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 4px -2px var(--color-shadow);
  transition: background 0.2s, color 0.15s;
}
.cookie-btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn-primary:hover, .cookie-btn-primary:focus {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-btn {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-primary);
  color: #fff;
}

/* --- Cookie Preferences Modal --- */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44,52,65, 0.36);
  z-index: 1400;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 30px 24px 30px;
  width: 92vw;
  max-width: 430px;
  box-shadow: 0 12px 48px -11px var(--color-shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modal-in 0.26s cubic-bezier(.77,.1,.21,.86);
}
@keyframes modal-in {
  from { opacity: .4; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
.cookie-modal h2 {
  font-size: 1.28rem;
  color: var(--color-secondary);
  margin-bottom: 6px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 13px;
}
.cookie-category label {
  font-weight: 500;
}
.cookie-toggle {
  position: relative;
  width: 38px;
  height: 22px;
}
.cookie-toggle input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}
/* custom toggle */
.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: var(--color-border);
  border-radius: 16px;
  transition: background 0.2s;
}
.cookie-toggle-slider:before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px; top: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px -1px var(--color-shadow);
  transition: transform 0.2s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  background: var(--color-primary);
}
.cookie-toggle input:checked + .cookie-toggle-slider:before {
  transform: translateX(16px);
  background: #e8fbe6;
}
.cookie-modal .cookie-btn-primary {
  margin-top: 16px;
  width: 100%;
}
.cookie-close-modal {
  background: none;
  border: none;
  color: var(--color-secondary);
  font-size: 1.5rem;
  position: absolute;
  top: 18px; right: 22px;
  cursor: pointer;
  border-radius: 50%;
  padding: 4px 10px;
  transition: background 0.2s;
}
.cookie-close-modal:hover {
  background: var(--color-accent);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1100px) {
  .feature-grid, .card-container, .blog-posts-grid, .footer-main {
    gap: 18px;
  }
}

@media (max-width: 980px) {
  .container {
    max-width: 89vw;
    padding: 0 10px;
  }
  .feature-grid, .card-container, .blog-posts-grid, .footer-main {
    gap: 12px;
  }
  .feature-card, .card, .blog-post-card {
    min-width: 180px;
    padding: 17px 12px;
  }
}
@media (max-width: 820px) {
  .footer-main {
    flex-direction: column;
    gap: 19px;
    align-items: flex-start;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
}
@media (max-width: 700px) {
  h1, .h1 {
    font-size: 1.65rem;
  }
  h2, .h2 {
    font-size: 1.21rem;
  }
  .feature-card, .card, .blog-post-card {
    min-width: 150px;
    font-size: 0.94rem;
  }
  .testimonial-card {
    max-width: 100%;
    font-size: 0.96rem;
  }
}
@media (max-width: 600px) {
  .section {
    padding: 30px 7px;
    margin-bottom: 30px;
  }
  .feature-grid, .card-container, .blog-posts-grid, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .hero {
    padding-top: 34px;
    padding-bottom: 36px;
    margin-bottom: 21px;
  }
  .hero .content-wrapper {
    gap: 8px;
    text-align: left;
  }
  .footer-main {
    flex-direction: column;
    gap: 9px;
  }
}
@media (max-width: 480px) {
  .container {
    max-width: 98vw;
    padding: 0 2vw;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* --- UTILS --- */
.content-wrapper {
  margin: 0 auto;
  width: 100%;
  max-width: 850px;
}

/* --- PAGE-SPECIFIC --- */
.privacy-policy, .gdpr-policy, .cookie-policy, .terms, .thank-you {
  padding-top: 48px;
  padding-bottom: 48px;
  background: var(--color-accent);
  border-radius: var(--radius-lg);
  margin: 35px 0;
}
.privacy-policy h1, .gdpr-policy h1, .cookie-policy h1, .terms h1, .thank-you h1 {
  color: var(--color-primary);
}

/* --- MISC BUTTONS --- */
button, .btn-secondary, .btn-primary {
  transition: background 0.18s, color 0.18s, border 0.18s, box-shadow 0.18s, transform 0.15s;
}

/* --- FORM ELEMENTS (if any forms in future) --- */
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  padding: 10px 12px;
  margin-bottom: 1.1em;
  background: var(--color-accent);
  font-size: 1rem;
}
input:focus, textarea:focus {
  border-color: var(--color-primary);
}

/* --- Miscellaneous --- */
::-webkit-scrollbar {
  width: 8px;
  background: var(--color-accent);
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 8px;
}

/* --- END --- */
