/* ===== Opal Quest Nature Organic Theme CSS ===== */
/* ==== 1. CSS RESET & BASE ==== */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background-color: #F8F8F2;
  color: #2D3D30;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
a {
  color: #19324B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #99C24D;
  text-decoration: underline;
}
ul, ol {
  padding-left: 24px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ==== 2. COLORS & TYPOGRAPHY ==== */
:root {
  --primary: #19324B;
  --secondary: #99C24D;
  --accent: #F8F8F2;
  --earth-brown: #7E6651;
  --leaf-green: #558A38;
  --sand: #F5E9DE;
  --rich-dark: #25331C;
  --organic-gray: #EEF5ED;
  --error: #B94F30;
}
h1, .h1 {
  font-family: 'Roboto Slab', 'Georgia', serif;
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.18;
  color: var(--primary);
  margin-bottom: 18px;
}
h2, .h2 {
  font-family: 'Roboto Slab', 'Georgia', serif;
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--leaf-green);
  margin-bottom: 14px;
}
h3, .h3 {
  font-family: 'Roboto Slab', 'Georgia', serif;
  font-weight: 500;
  font-size: 1.37rem;
  color: var(--primary);
  margin-bottom: 10px;
}
h4, .h4 {
  font-family: 'Roboto Slab', 'Georgia', serif;
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--primary);
}
p, li {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #2D3D30;
}
strong, b {
  color: var(--rich-dark);
}

/* ==== 3. CONTAINER & LAYOUTS ==== */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
}

.section, .hero-about, .projects-hero, .services-hero, .cta-services, .career-hero, .newsletter-cta, .thank-you, .privacy-policy, .gdpr-info, .cookie-policy, .terms {
  background-color: var(--organic-gray);
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 28px 52px 26px 37px/38px 32px 52px 28px;
  box-shadow: 0 2px 16px 0 rgba(30, 60, 40, 0.08);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
/* Flex patterns */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--accent);
  border-radius: 22px 36px 18px 36px/24px 28px 32px 26px;
  box-shadow: 0 3px 16px 0 rgba(61, 94, 69, 0.08);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.content-grid, .feature-grid, .service-grid, .project-overview-grid, .blog-post-summaries, .employee-testimonials, .testimonial-slider, .testimonial-list, .positions-list, .core-values, .values-list, .benefits-list, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  list-style: none;
  margin: 0 0 20px 0;
}
.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;
  box-shadow: 0 1px 10px 0 rgba(27,45,35,0.11);
  border-radius: 22px 32px 24px 38px/28px 28px 38px 24px;
  min-width: 260px;
  max-width: 400px;
  margin-bottom: 20px;
}
.feature-item, .service-list li, .core-values li, .values-list li, .benefits-list li, .positions-list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid li, .service-grid li {
  background: var(--accent);
  color: var(--primary);
  padding: 20px;
  border-radius: 19px 28px 18px 29px/20px 30px 26px 22px;
  box-shadow: 0 1px 8px 0 rgba(45,90,45,0.06);
  min-width: 220px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}
.project-overview-grid {
  gap: 24px;
}
.project-card {
  background: var(--sand);
  border-radius: 18px 28px 20px 18px/28px 24px 18px 30px;
  box-shadow: 0 2px 12px 0 rgba(72, 89, 61, 0.10);
  padding: 24px 20px;
  margin-bottom: 20px;
  flex: 1 1 320px;
  min-width: 260px;
}
.address-summary, .contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1em;
  margin-bottom: 14px;
}
.address-summary img{
  max-width: 150px;
}
.map-integration {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.98em;
  color: var(--leaf-green);
}
.client-logos, .social-icons {
  display: flex;
  gap: 22px;
  align-items: center;
  margin: 14px 0 0 0;
}
.footer-nav, .footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
}
.brand-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  margin: 16px 0 0 0;
}
address {
  font-style: normal;
  color: var(--primary);
  margin-top: 18px;
  font-size: 1em;
}

/* ==== 4. BRAND BUTTONS & LINKS ==== */
.cta-primary, .cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 14px 36px;
  border-radius: 32px 22px 34px 18px/20px 36px 18px 24px;
  font-family: 'Roboto Slab', 'Georgia', serif;
  font-size: 1.09rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-align: center;
  margin-top: 14px;
  box-shadow: 0 1px 8px 0 rgba(37,80,45,0.08);
  transition: background 0.16s, color 0.16s, box-shadow 0.18s, transform 0.13s;
}
.cta-primary {
  background: var(--secondary);
  color: var(--primary);
  border: 2px solid var(--secondary);
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--leaf-green);
  color: #fff;
  box-shadow: 0 4px 18px 0 rgba(120,177,85,0.13);
  transform: translateY(-2px) scale(1.03);
}
.cta-secondary {
  background: #F5E9DE;
  color: var(--primary);
  border: 2px solid var(--secondary);
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 3px 12px 0 rgba(120,177,85,0.12);
  transform: translateY(-1.5px) scale(1.02);
}
button:active {
  outline: none;
}

/* ==== 5. HEADER & NAV ==== */
header {
  background: var(--accent);
  box-shadow: 0 1px 10px 0 rgba(39,60,47,0.08);
  padding: 0;
  width: 100%;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 18px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  padding: 8px 0;
  letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
  transition: border 0.18s, color 0.21s;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--leaf-green);
  border-bottom: 2px solid var(--secondary);
}
.mobile-menu-toggle {
  display: none;
  background: var(--leaf-green);
  color: #fff;
  border: none;
  font-size: 2rem;
  border-radius: 10px 20px 10px 22px/16px 10px 22px 12px;
  padding: 7px 14px;
  margin-left: 8px;
  cursor: pointer;
  transition: background 0.19s, color 0.18s, box-shadow 0.18s;
  z-index: 95;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* ==== 6. MOBILE MENU ==== */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(50, 70, 55, 0.97);
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.86,0,0.07,1), opacity 0.18s;
  z-index: 9999;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: var(--sand);
  color: var(--primary);
  border: none;
  font-size: 2.1rem;
  margin: 26px 0 12px 22px;
  border-radius: 22px 12px 22px 10px;
  padding: 7px 16px;
  align-self: flex-start;
  cursor: pointer;
  z-index: 10002;
  transition: background 0.15s, color 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--leaf-green);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 44px 32px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Roboto Slab', 'Georgia', serif;
  font-size: 1.25rem;
  color: #fff;
  padding: 12px 0;
  border-radius: 10px 20px 15px 10px;
  transition: background 0.14s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--leaf-green);
  color: var(--accent);
}

/* ==== 7. HERO/BANNER SECTIONS ==== */
.hero, .hero-about, .services-hero, .projects-hero, .career-hero, .blog-hero, .contact-hero, .thank-you {
  min-height: 320px;
  background: linear-gradient(120deg, #99C24D 22%, #F8F8F2 85%);
  display: flex;
  align-items: center;
  border-radius: 42px 30px 52px 32px/39px 60px 34px 42px;
  margin-bottom: 48px;
}
.hero .content-wrapper, .hero-about .content-wrapper, .services-hero .content-wrapper, .projects-hero .content-wrapper, .career-hero .content-wrapper, .blog-hero .content-wrapper, .contact-hero .content-wrapper, .thank-you .content-wrapper {
  align-items: flex-start;
  gap: 16px;
}

/* ==== 8. CARDS & SUMMARIES ==== */
.service-list li, .positions-list li {
  margin-bottom: 16px;
  background: var(--accent);
  border-radius: 14px 18px 16px 18px/16px 20px 18px 11px;
  box-shadow: 0 1px 8px 0 rgba(38,75,41,0.07);
  padding: 16px 16px 16px 38px;
  position: relative;
  color: var(--primary);
}
.values-list li, .benefits-list li {
  margin-bottom: 12px;
  background: #EEF5ED;
  border-radius: 12px 18px 16px 11px/16px 16px 11px 14px;
  padding: 14px 16px 14px 32px;
  position: relative;
  color: var(--rich-dark);
}
.values-list img, .feature-grid img, .core-values img {
  width: 34px;
  height: 34px;
  margin-right: 14px;
}

/* ==== 9. BLOG LISTS & ARTICLES ==== */
.blog-post-summaries {
  gap: 24px;
  flex-wrap: wrap;
}
.blog-post-summaries article {
  background: #fff;
  border-radius: 17px 28px 24px 16px/14px 27px 23px 14px;
  box-shadow: 0 2px 9px 0 rgba(44, 74, 40, 0.06);
  padding: 22px 19px;
  flex: 1 1 265px;
  min-width: 230px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blog-post-summaries article h3 {
  font-size: 1.17rem;
  color: var(--primary);
}
.blog-post-summaries article a {
  color: var(--secondary);
  font-weight: bold;
  margin-top: 6px;
  align-self: flex-start;
}

.categories-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.97em;
}
.categories-filter a {
  color: var(--leaf-green);
  padding: 4px 10px;
  border-radius: 9px 17px 10px 15px;
  transition: background 0.14s;
}
.categories-filter a:hover, .categories-filter a:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* ==== 10. TESTIMONIALS & QUOTES ==== */
.testimonials, .testimonials-about, .testimonials-projects, .employee-testimonials {
  background-color: #fff;
  border-radius: 30px 16px 36px 18px/20px 39px 19px 24px;
  box-shadow: 0 1px 16px 0 rgba(51,80,47,0.10);
  margin-bottom: 60px;
  padding: 44px 20px;
}
.testimonial-card p {
  font-size: 1.08rem;
  color: var(--primary);
}
.testimonial-card span {
  font-size: 0.97em;
  color: var(--leaf-green);
  letter-spacing: 0.01em;
}

/* ==== 11. MODALS & BANNERS ==== */
/* COOKIES BANNER */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--earth-brown);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  z-index: 99997;
  box-shadow: 0 -2px 16px 0 rgba(80,50,30,0.13);
  padding: 18px 24px;
  font-size: 1rem;
  animation: slideUp 0.55s cubic-bezier(0.63,0.04,0.24,1.01);
}
@keyframes slideUp {
  from { transform: translateY(98px); opacity: 0.5; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner .cookie-btn {
  margin-left: 16px;
  padding: 8px 18px;
  border-radius: 19px 11px 13px 11px;
  border: none;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.15s, color 0.11s;
  background: var(--secondary);
  color: var(--primary);
}
.cookie-consent-banner .cookie-btn.settings {
  background: var(--organic-gray);
  color: var(--leaf-green);
  border: 1.5px solid var(--secondary);
  margin-right: 14px;
}
.cookie-consent-banner .cookie-btn.reject {
  background: #fff;
  color: var(--earth-brown);
  border: 1.5px solid var(--error);
  margin-right: 12px;
}
.cookie-consent-banner .cookie-btn:hover, .cookie-consent-banner .cookie-btn:focus {
  background: var(--leaf-green);
  color: #fff;
}

/* Cookie modal overlay */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(46, 68, 38, 0.52);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInCookie 0.37s ease;
}
@keyframes fadeInCookie {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: var(--primary);
  border-radius: 24px 38px 20px 30px/36px 18px 28px 32px;
  box-shadow: 0 6px 32px 0 rgba(86,110,80,0.14);
  padding: 36px 30px 28px 30px;
  min-width: 320px;
  max-width: 98vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 100007;
  animation: popInModal 0.26s cubic-bezier(0.57,0.04,0.22,0.99);
}
@keyframes popInModal {
  from { transform: scale(0.94); opacity: 0.75; }
  to   { transform: scale(1); opacity: 1; }
}
.cookie-modal h3 {
  color: var(--leaf-green);
  font-size: 1.22rem;
  font-family: 'Roboto Slab', 'Georgia', serif;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.cookie-toggle-input[type='checkbox'] {
  accent-color: var(--secondary);
  width: 22px;
  height: 22px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 14px; right: 20px;
  background: var(--sand);
  color: var(--primary);
  border: none;
  border-radius: 18px 11px 9px 17px;
  font-size: 1.5rem;
  padding: 5px 11px;
  cursor: pointer;
  z-index: 100990;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  background: var(--leaf-green);
  color: #fff;
}

/* ==== 12. FOOTER ==== */
footer {
  background: var(--earth-brown);
  color: #fff;
  margin-top: 60px;
  border-radius: 40px 28px 60px 30px/29px 54px 29px 40px;
  padding: 44px 0 24px 0;
  box-shadow: 0 -2px 18px 0 rgba(90,66,30,0.10);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-nav a, .footer-legal a {
  color: #fff;
  font-size: 1em;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}
.footer-nav a:hover, .footer-legal a:hover {
  color: var(--secondary);
}
.brand-info img {
  width: 46px;
  height: 46px;
}
footer address {
  color: #F8F8F2;
  font-size: 0.97em;
}

/* ==== 13. MISC ===== */
hr {
  border: none;
  border-top: 1px solid #D7E2D2;
  margin: 18px 0;
}
::-webkit-scrollbar {
  width: 10px;
  background: #F5E9DE;
}
::-webkit-scrollbar-thumb {
  background: #99C24D;
  border-radius: 8px;
}

/* ==== 14. RESPONSIVE DESIGN ==== */
@media (max-width: 990px) {
  .container {
    max-width: 98vw;
    padding: 0 14px;
  }
  .hero, .hero-about, .services-hero, .projects-hero, .career-hero, .blog-hero, .contact-hero, .thank-you {
    min-height: 210px;
    padding: 30px 0;
  }
  .footer-nav, .footer-legal {
    gap: 13px;
  }
}
@media (max-width: 768px) {
  h1, .h1 {
    font-size: 1.6rem;
  }
  h2, .h2 {
    font-size: 1.24rem;
  }
  h3, .h3 {
    font-size: 1.05rem;
  }
  .container {
    padding: 0 8px;
  }
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .content-wrapper, .card-container, .content-grid, .feature-grid, .service-grid, .project-overview-grid, .blog-post-summaries, .testimonial-slider, .testimonial-list {
    flex-direction: column !important;
    gap: 18px !important;
  }
  .feature-grid li, .service-grid li, .project-card, .card {
    min-width: 1px !important;
    width: 100%;
    flex: 1 1 100%;
  }
  .testimonials, .testimonials-about, .testimonials-projects, .employee-testimonials {
    padding: 30px 8px;
  }
  .testimonials .testimonial-slider, .testimonials-about .testimonial-list, .testimonials-projects .testimonial-list, .employee-testimonials {
    gap: 16px;
  }
  .hero, .hero-about, .services-hero, .projects-hero, .career-hero, .blog-hero, .contact-hero, .thank-you {
    flex-direction: column;
    min-height: 120px;
    border-radius: 26px 30px 32px 20px/29px 40px 24px 22px;
    padding: 20px 0;
    gap: 10px;
  }
}
@media (max-width: 520px) {
  h1, .h1 {
    font-size: 1.12rem;
  }
  h2, .h2 {
    font-size: 0.99rem;
  }
  .container, .section, .testimonials {
    padding: 0 3px !important;
  }
  .cookie-modal {
    min-width: 98vw;
    padding: 14px 6px 18px 6px;
  }
}

/* ==== 15. EFFECTS & ANIMATIONS ==== */
.card, .service-grid li, .feature-grid li, .project-card, .blog-post-summaries article {
  transition: box-shadow 0.18s, transform 0.15s;
}
.card:hover, .service-grid li:hover, .feature-grid li:hover, .project-card:hover, .blog-post-summaries article:hover {
  box-shadow: 0 4px 32px 0 rgba(59,99,40,0.19);
  transform: translateY(-2px) scale(1.01);
}

input[type="text"], input[type="email"], textarea {
  border: 1.5px solid #CCDBB2;
  border-radius: 8px;
  padding: 9px 13px;
  font-size: 1rem;
  background: #fff;
  color: var(--primary);
  transition: border 0.14s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border: 1.5px solid var(--secondary);
  outline: none;
}

/* ==== 16. ACCESSIBILITY ==== */
:focus {
  outline: 2px dashed var(--leaf-green);
  outline-offset: 2px;
}

/* === Hide visually, but not for screen readers (for accessibility) === */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ==== 17. SECTION MARGINS/PADDINGS ==== */
.section, .hero-about, .projects-hero, .services-hero, .cta-services, .career-hero, .newsletter-cta, .thank-you, .privacy-policy, .gdpr-info, .cookie-policy, .terms {
  margin-bottom: 60px !important;
  padding: 40px 20px !important;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px !important;
}
.card {
  margin-bottom: 20px !important;
  position: relative;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px !important;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center !important;
  gap: 30px !important;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center !important;
  gap: 20px !important;
  padding: 20px !important;
}
.feature-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 15px !important;
}

/* ==== 18. PRINTING ==== */
@media print {
  body, .container, .section, header, footer {
      background: none !important;
      box-shadow: none !important;
      color: #000;
  }
  .cookie-consent-banner, .mobile-menu {
    display: none !important;
  }
}
