/* ========================================================== */
/* RESET & BASE STYLES                                        */
/* ========================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: #f7f6f2;
}
body {
  font-family: 'Roboto', Georgia, 'Times New Roman', Times, serif;
  color: #292a28;
  background: #ffffff;
  line-height: 1.7;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #256029;
  text-decoration: none;
  transition: color 0.25s;
}
a:hover, a:focus {
  color: #E5B41C;
  text-decoration: underline;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Georgia', Serif;
  font-weight: 700;
  color: #1a461d;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  line-height: 1.22;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}
p, dl, table {
  margin-bottom: 16px;
}
strong {
  font-weight: 700;
  color: #1a461d;
}
small {
  font-size: 0.92rem;
}

/* ========================================================== */
/* COLOR SCHEME (Elegant Classic)                             */
/* ========================================================== */
:root {
  --primary: #1a461d;
  --primary-light: #256029;
  --secondary: #CFECBE;
  --background: #ffffff;
  --accent: #E5B41C;
  --text: #292a28;
  --inactive: #dad9d3;
  --shadow: rgba(30, 50, 35, 0.09);
}

/* ========================================================== */
/* LAYOUT CONTAINERS & FLEXBOX                                */
/* ========================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/*
MANDATORY SPACING/ALIGNMENT FROM MISSION BRIEF
*/
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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: 18px;
  box-shadow: 0 4px 24px var(--shadow);
  margin-bottom: 20px;
  border: 1px solid #e8e8e4;
  min-width: 240px;
  max-width: 420px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ========================================================== */
/* HEADER/NAVIGATION (Responsive & Elegant)                   */
/* ========================================================== */
header {
  background: #ffffff;
  border-bottom: 1px solid #e1e1db;
  position: sticky;
  top: 0;
  z-index: 12;
  box-shadow: 0 2px 8px rgba(30,50,35,0.02);
}
header .container {
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  min-height: 64px;
}
header img {
  height: 48px;
  width: auto;
}
nav {
  display: flex;
  gap: 20px;
  align-items: center;
  font-family: 'Montserrat',Georgia,serif;
}
nav a {
  font-size: 1.05rem;
  color: #333;
  padding: 4px 6px 4px 6px;
  border-radius: 5px;
  transition: background .2s, color .2s;
}
nav a:hover, nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.button-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-family: 'Montserrat',Georgia,serif;
  font-size: 1.08rem;
  font-weight: 700;
  padding: 12px 30px;
  border-radius: 28px;
  border: none;
  box-shadow: 0 2px 6px var(--shadow);
  transition: background 0.20s, color 0.20s, transform .16s, box-shadow .22s;
  text-align: center;
  text-decoration: none;
  margin-left: 16px;
  letter-spacing: 0.03em;
  cursor: pointer;
}
.button-primary:hover, .button-primary:focus {
  background: var(--accent);
  color: #1a461d;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 20px 0 rgba(40,70,30,0.10);
  text-decoration: none;
}

button {
  font-family: 'Montserrat',Georgia,serif;
  font-weight: 600;
  border-radius: 7px;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background .2s, color .2s;
}

/* ========================================================== */
/* MOBILE NAVIGATION (Hamburger + Overlay)                    */
/* ========================================================== */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--primary);
  padding: 7px 12px;
  line-height: 1;
  border-radius: 6px;
  display: none;
  transition: background .2s, color .2s;
}
.mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #fcfbf8ee;
  z-index: 99;
  transform: translateX(-105vw);
  transition: transform 0.34s cubic-bezier(0.7,0,0,1);
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 4px 0 22px #0002;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--primary);
  align-self: flex-end;
  margin: 16px 18px 7px 0;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 16px 28px;
  margin-top: 15px;
}
.mobile-nav a {
  font-size: 1.2rem;
  padding: 14px 0 11px 0;
  color: #212014;
  border-bottom: 1px solid #dad9d3;
  font-family: 'Montserrat',Georgia,serif;
}
.mobile-nav a:last-child {
  border-bottom: none;
}

@media (max-width: 1024px) {
  header .container nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 1024px) {
  .button-primary {
    margin-left: 8px;
    padding: 10px 20px;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none;
  }
  header .container nav {
    display: flex;
  }
}

/* ========================================================== */
/* SECTION & CARD STYLES (Elegance + Hierarchy)               */
/* ========================================================== */
section {
  background: transparent;
  margin-bottom: 60px;
  padding: 40px 0;
}
section:nth-child(even) {
  background: #f7f6f2;
}
.service-cards, .service-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.service-card, .project-card, .blog-teaser {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 18px var(--shadow);
  padding: 28px 22px;
  flex: 1 1 277px;
  margin-bottom: 20px;
  border: 1px solid #edece6;
  min-height: 175px;
  transition: box-shadow .18s, transform .14s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.service-card:hover, .project-card:hover, .blog-teaser:hover {
  box-shadow: 0 8px 28px #0002;
  transform: translateY(-3px) scale(1.019);
}

.feature-descriptions p, .text-section p {
  color: #292a28;
  font-size: 1.07rem;
}

.process-steps ol {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 22px;
  list-style: decimal inside;
  margin-bottom: 16px;
}
.process-steps ol li {
  background: #f3ffe7;
  padding: 16px 18px;
  border-radius: 9px;
  box-shadow: 0 2px 10px #212d120e;
  min-width: 180px;
  flex: 1 1 170px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ========================================================== */
/* TESTIMONIALS                                              */
/* ========================================================== */
.testimonial-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px var(--shadow);
  margin-bottom: 20px;
  border: 1px solid #e8e8e4;
  min-width: 240px;
  max-width: 420px;
  color: #27261a;
  font-size: 1.07rem;
}
.testimonial-card .rating-stars {
  color: #E5B41C;
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  font-family: 'Montserrat',Georgia,serif;
}
.testimonial-card span {
  color: #1a461d;
  font-family: 'Montserrat',Georgia,serif;
  font-size: 0.99rem;
  font-weight: 600;
}

/* ========================================================== */
/* FEATURE, LISTS, TABLES, FAQ (Elegant details)              */
/* ========================================================== */
.feature-item img, .service-list img, .process-steps img {
  margin-bottom: 6px;
  height: 28px;
  width: 28px;
}
.feature-descriptions p {
  font-style: italic;
}
ul li img, ol li img {
  margin-right: 8px;
  vertical-align: middle;
  display: inline-block;
  height: 24px;
  width: 24px;
}
.service-list ul li {
  background: none;
  border-radius: 0;
  border: none;
  padding: 0 0 18px 0;
  margin-bottom: 24px;
  font-size: 1.07rem;
}
table {
  border-collapse: collapse;
  width: 100%;
  margin: 22px 0 34px 0;
  background: #f8f7f2;
  border-radius: 12px;
  box-shadow: 0 2px 8px #e8e0d1cc;
  overflow: hidden;
}
table caption {
  padding: 10px 0;
  font-size: 1.12rem;
  font-family: 'Montserrat',Georgia,serif;
  font-weight: 700;
  color: #1a461d;
}
table th, table td {
  padding: 14px 16px;
  text-align: left;
}
table thead th {
  background: #eaf5de;
  color: #1a461d;
  font-family: 'Montserrat',Georgia,serif;
}
table tbody tr {
  border-top: 1px solid #dedbc9;
}
table tbody tr:nth-child(even) {
  background: #f2fbec;
}
dt {
  font-family: 'Montserrat',Georgia,serif;
  font-weight: 600;
  color: #256029;
  margin-top: 18px;
}
dd {
  margin-left: 0;
  margin-bottom: 10px;
  color: #292a28;
}

/* ========================================================== */
/* FOOTER                                                    */
/* ========================================================== */
footer {
  background: #f7f6f2;
  border-top: 1px solid #eaeaea;
  padding: 40px 0 12px 0;
  margin-top: 70px;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 36px;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: 'Montserrat',Georgia,serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #1a461d;
}
.footer-contact {
  color: #292a28;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-contact img {
  height: 19px;
  width: 19px;
  margin-right: 6px;
  vertical-align: middle;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1.05rem;
}
.footer-links a {
  color: #256029;
  font-family: 'Montserrat',Georgia,serif;
  transition: color .22s;
}
.footer-links a:hover, .footer-links a:focus {
  color: #E5B41C;
  text-decoration: underline;
}
.footer-legal-disclaimer {
  flex-basis: 100%;
  margin-top: 16px;
  text-align: right;
  color: #98977d;
}


/* ========================================================== */
/* BLOG AND PROJECTS TEASERS                                 */
/* ========================================================== */
.blog-teaser {
  background: #fff;
  border: 1px solid #edece6;
  border-radius: 17px;
  box-shadow: 0 3px 14px #d9dbc7cc;
  padding: 22px 17px 24px 17px;
  margin-bottom: 20px;
  flex: 1 1 260px;
  min-height: 130px;
  transition: box-shadow .18s, transform .14s;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.blog-teaser a {
  margin-top: 8px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  font-family: 'Montserrat',Georgia,serif;
  transition: color .18s;
}
.blog-teaser a:hover {
  color: #E5B41C;
}
.project-card {
  background: #fffdf5;
  border: 1px solid #dad6c1;
  border-radius: 17px;
  box-shadow: 0 3px 13px #dbedd1aa;
  padding: 24px 20px;
  margin-bottom: 20px;
  flex: 1 1 270px;
  min-height: 120px;
  transition: box-shadow .18s, transform .14s;
}
.project-card h3 {
  color: #256029;
  margin-bottom: 10px;
}

/* ========================================================== */
/* ANIMATIONS & TRANSITIONS & MICRO-INTERACTIONS             */
/* ========================================================== */
.button-primary, .mobile-menu, .mobile-menu-toggle, .mobile-menu-close, .service-card, .testimonial-card, .process-steps ol li, .blog-teaser, .project-card {
  transition: box-shadow .18s, transform .14s, background .16s, color .16s;
}
section, .card, .card-container, .content-grid {
  transition: background 0.22s;
}

/* Subtle hover scaling, used above in cards */
.card:hover, .service-card:hover, .testimonial-card:hover, .project-card:hover, .blog-teaser:hover {
  box-shadow: 0 8px 34px #0003;
  transform: scale(1.025) translateY(-2px);
}

/* ========================================================== */
/* RESPONSIVE FLEXBOX LAYOUTS (Mobile-first)                  */
/* ========================================================== */
@media (max-width: 1150px) {
  .container {
    max-width: 980px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 94vw;
  }
  .service-cards, .service-list ul, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .process-steps ol {
    flex-direction: column;
    gap: 14px;
  }
}
@media (max-width:768px) {
  html {
    font-size:15px;
  }
  section {
    padding: 28px 0;
    margin-bottom: 40px;
  }
  h1 {
    font-size: 1.65rem;
  }
  h2 {
    font-size: 1.22rem;
  }
  h3 {
    font-size: 1rem;
  }
  .container {
    padding: 0 4vw;
  }
  .content-wrapper {
    gap: 15px;
  }
  .card-container, .service-cards, .service-list ul, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card, .service-card, .project-card, .blog-teaser {
    min-width: 0;
    max-width: 100%;
  }
  .process-steps ol {
    flex-direction: column;
    gap: 11px;
  }
  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
  }
  .footer-contact {
    font-size: .95rem;
  }
}
@media (max-width:620px) {
  .container {
    max-width: 99vw;
    padding: 0 7px;
  }
  .section, section {
    padding: 13px 0;
    margin-bottom: 17px;
  }
  footer {
    padding-bottom: 28px;
    padding-top: 20px;
  }
}
@media (max-width:540px) {
  .footer-brand > span {
    font-size: 1.03rem;
  }
  .footer-legal-disclaimer {
    text-align: left;
    font-size: 0.91rem;
  }
}

/* Responsive alignment for text-image-section */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ========================================================== */
/* COOKIE CONSENT BANNER (Fixed, Accessible, Elegant)         */
/* ========================================================== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1a461de6;
  color: #fff;
  font-size: 1.07rem;
  z-index: 150;
  box-shadow: 0 -2px 24px #14272121;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
  padding: 24px 12px 20px 12px;
  animation: cookie-slide-in 0.7s cubic-bezier(0.7,0.01,0.11,1);
}
@keyframes cookie-slide-in {
  from { opacity: 0; transform: translateY(35px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-consent-banner p {
  color: #fff;
  margin-bottom: 0;
  max-width: 460px;
}
.cookie-consent-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
  margin-top: 0;
}
.cookie-consent-banner button {
  font-family: 'Montserrat',Georgia,serif;
  font-weight: 700;
  border: none;
  border-radius: 19px;
  padding: 9px 19px;
  font-size: 1.02rem;
  cursor: pointer;
  margin: 0 4px 0 0;
  transition: background .18s, color .18s;
}
.cookie-consent-banner .cookie-accept {
  background: #E5B41C;
  color: #184218;
  box-shadow: 0 2px 12px #9576072d;
}
.cookie-consent-banner .cookie-accept:hover {
  background: #CFECBE;
  color: #1a461d;
}
.cookie-consent-banner .cookie-reject {
  background: #fff;
  color: #1a461d;
  border: 1.5px solid #E5B41C;
}
.cookie-consent-banner .cookie-reject:hover {
  background: #E5B41C;
  color: #fff;
}
.cookie-consent-banner .cookie-settings {
  background: transparent;
  color: #E5B41C;
  text-decoration: underline;
}
.cookie-consent-banner .cookie-settings:hover {
  color: #fff6c5;
}
@media (max-width: 670px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 17px 6px 11px 6px;
    font-size: 0.99rem;
  }
  .cookie-consent-banner .cookie-buttons {
    gap:8px;
  }
}


/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  z-index: 210;
  left:0; right:0; top:0; bottom:0;
  background: #152a188e;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeInBg .22s cubic-bezier(.53,.01,.36,1);
}
.cookie-modal.open {
  display: flex;
}
@keyframes fadeInBg { from{opacity:0;} to{opacity:1;} }
.cookie-modal-content {
  background: #fff;
  color: #18381c;
  border-radius: 24px;
  max-width: 410px;
  width: 97vw;
  padding: 36px 27px 22px 27px;
  box-shadow: 0 6px 42px #193c1d41;
  position: relative;
  animation: slideUpCookie .35s cubic-bezier(.7,0,.33,1);
}
@keyframes slideUpCookie {
  from{transform:translateY(55px);opacity:0;} to{transform:translateY(0);opacity:1;}
}
.cookie-modal-content h2 {
  font-size: 1.2rem;
  color: #256029;
  margin-bottom: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid #ececec;
  font-size: 1.04rem;
}
.cookie-category:last-child { border-bottom: none; }
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: #dad9d3;
  border-radius: 12px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.22s;
}
.cookie-toggle:checked {
  background: #E5B41C;
}
.cookie-toggle::before {
  content: '';
  display: block;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2.5px;
  left: 3px;
  transition: left 0.22s;
  box-shadow: 0 1.5px 5px #dfc24c74;
}
.cookie-toggle:checked::before {
  left: 18px;
}
.cookie-modal-content .btn {
  margin-top: 30px;
  margin-right: 8px;
  padding: 8px 23px;
  border-radius: 17px;
  font-family: 'Montserrat',Georgia,serif;
  font-weight: 700;
  background: #256029;
  color: #fff;
  transition: background .18s, color .18s;
  border: none;
  cursor: pointer;
}
.cookie-modal-content .btn.secondary {
  background: #ffffff;
  color: #256029;
  border: 1.7px solid #256029;
}
.cookie-modal-content .btn.secondary:hover {
  background: #E5B41C;
  color: #fff;
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 18px;
  background: none;
  border: none;
  color: #8b8e80;
  font-size: 2.1rem;
  cursor: pointer;
  padding: 2px 8px;
}

/* ========================================================== */
/* UTILITY: MINIMUM MARGINS FOR FLEX ITEMS                    */
/* ========================================================== */
.content-wrapper > *:not(:last-child),
.card-container > *:not(:last-child),
.service-cards > *:not(:last-child),
.project-card:not(:last-child),
.blog-teaser:not(:last-child),
.testimonial-card:not(:last-child),
.feature-item:not(:last-child),
.text-section > *:not(:last-child) {
  margin-bottom: 20px;
}

/* Avoid content overlap in flex layouts */
.card,
.project-card,
.blog-teaser,
.testimonial-card,
.service-card {
  min-width: 0;
  word-break: break-word;
}

/* ========================================================== */
/* FORM ELEMENTS & INPUT                                      */
/* ========================================================== */
input, select, textarea {
  font-family: 'Roboto',Georgia,serif;
  font-size: 1.04rem;
  padding: 9px 14px;
  border: 1px solid #dad9d3;
  border-radius: 6px;
  background: #fafbfa;
  margin-bottom: 14px;
  color: #1a461d;
}
input:focus, select:focus, textarea:focus {
  border-color: #CFECBE;
  outline: none;
  box-shadow: 0 0 0 1.5px #E5B41C44;
}
::placeholder {
  color: #c2c6b2;
  font-size: 0.98em;
  opacity: .94;
}

/* ========================================================== */
/* ACCESSIBILITY & FOCUS STATES                               */
/* ========================================================== */
a:focus, button:focus, .button-primary:focus, input:focus, select:focus, textarea:focus {
  outline: 2px solid #E5B41C;
  outline-offset: 2px;
  background-color: #fffbe4;
}

/* ========================================================== */
/* ELEGANT CLASSIC EFFECTS (SHADOWS, RADIUS)                  */
/* ========================================================== */
.card, .service-card, .blog-teaser, .project-card, .testimonial-card {
  border-radius: 15px;
  box-shadow: 0 2px 10px var(--shadow);
}

/* ========================================================== */
/* TYPOGRAPHY SCALE & HIERARCHY                               */
/* ========================================================== */
@media (max-width: 430px) {
  h1 { font-size: 1.23rem; }
  h2 { font-size: 1.05rem; }
}

/* ========================================================== */
/* Z-INDEX LAYERING                                           */
/* ========================================================== */
header { z-index: 12; }
.mobile-menu { z-index: 99; }
.cookie-consent-banner { z-index: 150; }
.cookie-modal { z-index: 210; }

/* ========================================================== */
/* PRINTING SUPPORT                                           */
/* ========================================================== */
@media print {
  header, footer, .mobile-menu, .cookie-consent-banner, .cookie-modal {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
