/* CSS RESET & BASE TYPOGRAPHY -------------------------------------------------- */
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;
  vertical-align: baseline;
  font: inherit;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F6F6F2;
  color: #29475B;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #29475B;
  text-decoration: none;
}
a:hover, a:focus {
  color: #8BA98F;
  text-decoration: underline;
  transition: color 0.2s;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 24px;
}
li {
  margin-bottom: 10px;
}
h1, h2, h3, h4, h5, h6 {
  color: #29475B;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  margin-top: 0;
}
h2 {
  font-size: 2rem;
  margin-top: 0;
}
h3 {
  font-size: 1.3rem;
  font-weight: 700;
}
h4 {
  font-size: 1.15rem;
  font-weight: 600;
}
strong, b {
  font-weight: 700;
  color: #29475B;
}
p {
  margin-bottom: 18px;
  color: #29475B;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
}
body, button, input, select, textarea {
  font-family: 'Open Sans', Arial, sans-serif;
}

/* BRAND COLORS */
:root {
  --primary: #29475B;
  --secondary: #8BA98F;
  --accent: #F6F6F2;
  --danger: #ED3B3B;
  --success: #79B867;
  --shadow: rgba(41, 71, 91, 0.10);
  --radius: 16px;
  --transition-fast: 0.18s cubic-bezier(0.4,0.14,0.3,1);
  --shadow-card: 0 2px 12px 0 var(--shadow);
}


/* LAYOUT: GENERAL SPACING & CONTAINERS ------------------------------------------ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}
.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;
}
@media (max-width: 900px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* HEADER & NAVBAR --------------------------------------------------------------- */
header {
  background: #fff;
  border-bottom: 2px solid #8BA98F;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 24px;
}
header a img {
  height: 48px;
  margin-right: 16px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 0;
  letter-spacing: 0.01em;
  color: #29475B;
  position: relative;
  transition: color var(--transition-fast);
}
header nav a:hover, header nav a:focus {
  color: #8BA98F;
  text-decoration: none;
}
header .btn-primary {
  margin-left: 16px;
}
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #29475B;
  cursor: pointer;
  display: none;
  margin-left: 24px;
  z-index: 101;
  transition: color var(--transition-fast);
}
.mobile-menu-toggle:focus {
  outline: 2px dashed #8BA98F;
}
@media (max-width: 1000px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* MOBILE MENU ------------------------------------------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 80vw;
  max-width: 360px;
  background: #29475B;
  color: #F6F6F2;
  box-shadow: -2px 0 20px 0 var(--shadow);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.72,0,.34,1) 0s;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  padding: 40px 24px;
  gap: 28px;
}
.mobile-menu.active {
  transform: translateX(0%);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  color: #F6F6F2;
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: 24px;
  transition: color var(--transition-fast);
}
.mobile-menu-close:focus {
  outline: 2px dashed #8BA98F;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.mobile-nav a {
  color: #F6F6F2;
  font-size: 1.15rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 12px 0;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #8BA98F;
  color: #29475B;
  text-decoration: none;
}

/* HERO SECTION ------------------------------------------------------------------ */
.hero {
  background: #29475B;
  color: #F6F6F2;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0 50px 0;
  border-radius: 0 0 2.5rem 2.5rem;
  box-shadow: 0 6px 32px -12px var(--shadow);
  margin-bottom: 54px;
}
.hero .container {
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 20px;
}
.hero h1,
.hero h2,
.hero p {
  color: #F6F6F2;
  margin-bottom: 0;
}
.hero h1 {
  font-size: 2.1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
  line-height: 1.15;
}
.hero p {
  font-size: 1.09rem;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 500;
  margin-bottom: 22px;
  color: #F6F6F2;
}
.hero .btn-primary {
  background: #8BA98F;
  color: #29475B;
  font-weight: 700;
  font-size: 1.05rem;
}

/* BUTTON STYLES ----------------------------------------------------------------- */
.btn-primary,
.btn-primary:visited {
  display: inline-block;
  padding: 14px 36px;
  background: #8BA98F;
  color: #29475B;
  border: none;
  border-radius: 30px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 2px 10px 0 var(--shadow);
  transition: background 0.18s, color 0.18s, transform 0.14s;
  margin-top: 14px;
  margin-bottom: 14px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #29475B;
  color: #F6F6F2;
  outline: none;
  transform: translateY(-2px) scale(1.025);
}
.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  background: #F6F6F2;
  color: #29475B;
  border: 2px solid #8BA98F;
  border-radius: 30px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 8px;
  text-transform: uppercase;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #8BA98F;
  color: #F6F6F2;
  border-color: #29475B;
}
.btn-danger {
  display: inline-block;
  background: #ED3B3B;
  color: #fff;
  border: none;
  border-radius: 30px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  font-size: 1rem;
  padding: 12px 28px;
  text-transform: uppercase;
  transition: background 0.16s, color 0.16s;
  cursor: pointer;
}
.btn-danger:hover, .btn-danger:focus {
  background: #b92424;
}
.btn-outline {
  display: inline-block;
  border: 2px solid #29475B;
  background: transparent;
  color: #29475B;
  padding: 12px 28px;
  border-radius: 30px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  margin-top: 10px;
  margin-bottom: 10px;
  transition: background 0.13s, color 0.13s, border-color 0.13s;
  cursor: pointer;
}
.btn-outline:hover, .btn-outline:focus {
  background: #29475B;
  color: #F6F6F2;
  border-color: #8BA98F;
}

/* FLEXBOX: MANDATORY CLASSES for SECTION LAYOUTS ---------------------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-card);
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 30px;
  min-width: 280px;
  max-width: 340px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}
.feature-grid > div {
  background: #fff;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
  padding: 28px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 210px;
  flex: 1 1 220px;
  max-width: 285px;
  margin-bottom: 20px;
  border: 2px solid transparent;
  transition: border 0.14s, box-shadow 0.13s;
}
.feature-grid > div:hover {
  border: 2px solid #8BA98F;
  box-shadow: 0 7px 36px 0 var(--shadow);
}
.feature-grid img {
  width: 40px;
  margin-bottom: 8px;
}
.feature-grid h3 {
  font-size: 1.16rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* TESTIMONIALS & REVIEW CARDS --------------------------------------------------- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius);
  background: #fff;
  color: #29475B;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 650px;
  flex: 1 1 320px;
  font-size: 1.08rem;
  transition: box-shadow 0.12s, border 0.12s;
  border: 2px solid #F6F6F2;
}
.testimonial-card p {
  color: #29475B;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
}
.testimonial-card span {
  font-size: 0.98rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #8BA98F;
}
.testimonial-card:hover {
  box-shadow: 0 7px 36px 0 var(--shadow);
  border-color: #8BA98F;
}

/* BLOG CARDS & CATEGORY TAGS ---------------------------------------------------- */
.blog-post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.blog-post {
  background: #fff;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
  padding: 28px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 230px;
  flex: 1 1 320px;
  max-width: 365px;
  margin-bottom: 20px;
  border: 2px solid transparent;
  transition: border 0.13s, box-shadow 0.13s;
}
.blog-post h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.12rem;
  margin-bottom: 12px;
}
.blog-post a {
  color: #8BA98F;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.05em;
}
.blog-post a:hover {
  color: #29475B;
}
.blog-post:hover {
  border: 2px solid #8BA98F;
  box-shadow: 0 7px 36px 0 var(--shadow);
}
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.category-tag {
  background: #8BA98F;
  color: #29475B;
  border-radius: 28px;
  padding: 18px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 200px;
  flex: 1 1 220px;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  transition: background 0.14s;
}
.category-tag span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #29475B;
  margin-bottom: 6px;
}
.category-tag p {
  font-size: 0.97rem;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #29475B;
  font-weight: 500;
}
.category-tag:hover {
  background: #F6F6F2;
}

/* PROJECT SUMMARY CARDS --------------------------------------------------------- */
.project-summary {
  background: #fff;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
  padding: 28px 22px 22px 22px;
  margin-bottom: 20px;
  border: 2px solid #F6F6F2;
  transition: border 0.16s, box-shadow 0.13s;
}
.project-summary:hover {
  border: 2px solid #8BA98F;
  box-shadow: 0 7px 36px 0 var(--shadow);
}
.project-summary h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
}
.project-summary ul {
  margin-bottom: 0;
}

/* ALERTS ------------------------------------------------------------------------ */
.alert {
  padding: 18px;
  background: #fff5f1;
  border-left: 4px solid #ED3B3B;
  color: #9c1b23;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: var(--shadow-card);
  margin: 24px 0 8px 0;
}
.alert strong {
  color: #ED3B3B;
}

/* COOKIE CONSENT BANNER --------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #29475B;
  color: #F6F6F2;
  padding: 20px 18px 20px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  z-index: 2000;
  box-shadow: 0 -2px 18px 0 var(--shadow);
  border-top-left-radius: 2rem;
  border-top-right-radius: 2rem;
  animation: cookie-slide-in 0.5s ease;
  font-family: 'Open Sans', Arial, sans-serif;
}
@keyframes cookie-slide-in {
  0% { transform: translateY(120%); }
  100% { transform: translateY(0); }
}
.cookie-banner p {
  color: #F6F6F2;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0;
}
.cookie-banner .btn-primary,
.cookie-banner .btn-secondary,
.cookie-banner .btn-outline {
  margin: 0 10px 0 0;
  min-width: 130px;
  font-size: 0.98rem;
  padding: 10px 0;
}
.cookie-banner .btn-secondary {
  border: 2px solid #8BA98F;
  background: transparent;
  color: #8BA98F;
}
.cookie-banner .btn-secondary:hover, .cookie-banner .btn-secondary:focus {
  background: #8BA98F;
  color: #29475B;
}
.cookie-banner .btn-outline {
  border: 2px solid #F6F6F2;
  color: #F6F6F2;
  background: transparent;
}
.cookie-banner .btn-outline:hover, .cookie-banner .btn-outline:focus {
  background: #8BA98F;
  color: #29475B;
  border-color: #8BA98F;
}

/* COOKIE MODAL ------------------------------------------------------------------ */
.cookie-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26,33,38,0.56);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-modal-fadein 0.3s;
}
@keyframes cookie-modal-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #F6F6F2;
  color: #29475B;
  border-radius: 20px;
  max-width: 400px;
  width: 94vw;
  padding: 36px 24px 30px 24px;
  box-shadow: 0 8px 40px 0 var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  color: #29475B;
  margin-bottom: 12px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 30px;
  right: 24px;
  background: none;
  border: none;
  color: #8BA98F;
  font-size: 1.8rem;
  cursor: pointer;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-category input[type=checkbox], .cookie-category input[type=radio] {
  accent-color: #8BA98F;
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.cookie-category label {
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  color: #29475B;
}
.cookie-modal .btn-primary {
  margin-top: 0;
}

/* FOOTER ------------------------------------------------------------------------ */
footer {
  background: #fff;
  color: #29475B;
  border-top: 2px solid #8BA98F;
  margin-top: 60px;
  font-size: 0.98rem;
  padding: 26px 0 14px 0;
}
footer .container {
  flex-direction: column;
  gap: 18px;
  align-items: center;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 10px;
}
footer nav a {
  color: #29475B;
  font-size: 0.98rem;
  transition: color 0.16s;
}
footer nav a:hover, footer nav a:focus {
  color: #8BA98F;
}
.footer-contact {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #29475B;
  font-size: 0.98rem;
  margin-bottom: 10px;
  flex-wrap: wrap;
  text-align: center;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  vertical-align: text-bottom;
  margin: 0 4px 0 8px;
}
.footer-brand {
  color: #8BA98F;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 6px;
}

/* TEXT SECTIONS & TIMELINE ------------------------------------------------------ */
.text-section {
  gap: 18px;
  align-items: flex-start;
}
.text-section ul,
.text-section ol {
  margin-left: 1.5em;
  margin-bottom: 22px;
}
.history-timeline {
  background: #fff;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 14px 0 10px 0;
  color: #29475B;
}

/* FORMS (Contact, Cookie) ------------------------------------------------------- */
input[type=text],
input[type=email],
textarea {
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 18px;
  border: 2px solid #8BA98F;
  border-radius: 8px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #29475B;
  background: #F6F6F2;
  transition: border 0.16s;
}
input[type=text]:focus,
input[type=email]:focus,
textarea:focus {
  outline: 2px dashed #29475B;
  border-color: #29475B;
}
label {
  font-weight: 700;
  margin-bottom: 6px;
  display: block;
  color: #29475B;
}

/* RESPONSIVE DESIGN ------------------------------------------------------------- */
@media (max-width: 800px) {
  .container {
    max-width: 97vw;
    padding: 0 6vw;
  }
  .feature-grid,
  .card-container,
  .blog-post-list,
  .category-list {
    gap: 12px;
  }
  .footer-contact {
    font-size: 0.93rem;
    flex-direction: column;
    gap: 3px;
  }
}
@media (max-width: 600px) {
  .container {
    padding: 0 4vw;
  }
  .section {
    padding: 28px 4vw;
    margin-bottom: 34px;
  }
  h1 {
    font-size: 1.45rem;
  }
  h2 {
    font-size: 1.18rem;
  }
  .hero {
    padding: 34px 0 24px 0;
    min-height: 180px;
    border-radius: 0 0 1.2rem 1.2rem;
    margin-bottom: 28px;
  }
  .feature-grid > div,
  .card,
  .blog-post,
  .project-summary {
    max-width: 97vw;
    min-width: unset;
    padding: 18px 10px 16px 10px;
    font-size: .99rem;
  }
}

/* ANIMATIONS & MICRO-INTERACTIONS ----------------------------------------------- */
.card, .testimonial-card, .feature-grid > div, .project-summary, .blog-post, .category-tag {
  transition: transform .13s, box-shadow .13s, border .13s;
}
.card:hover, .feature-grid > div:hover, .project-summary:hover, .blog-post:hover, .category-tag:hover {
  transform: translateY(-2px) scale(1.017);
}
.btn-primary, .btn-secondary, .btn-outline, .btn-danger {
  transition: background 0.13s, color 0.13s, transform 0.13s;
}

/* GEOMETRIC SHAPE HIGHLIGHTS ---------------------------------------------------- */
.feature-grid > div::before {
  content: '';
  display: block;
  width: 42px;
  height: 8px;
  border-radius: 20px 20px 0 0;
  background: #8BA98F;
  margin-bottom: 14px;
  opacity: .10;
}
.blog-post::before {
  content: '';
  display: block;
  width: 40px;
  height: 8px;
  border-radius: 20px 20px 0 0;
  background: #29475B;
  margin-bottom: 10px;
  opacity: .13;
}
.category-tag::before {
  content: '';
  display: block;
  width: 30px;
  height: 6px;
  border-radius: 15px 15px 0 0;
  background: #29475B;
  margin-bottom: 8px;
  opacity: .17;
}

/* Z-INDEX for FLOATING UI ------------------------------------------------------- */
header {
  z-index: 900;
}
.mobile-menu {
  z-index: 1200;
}
.cookie-banner {
  z-index: 2000;
}
.cookie-modal-overlay {
  z-index: 2100;
}

/* FLEXBOX LAYOUT ENFORCEMENT: NO GRID! ------------------------------------------ */
/* All containers above use display: flex, flex-wrap: wrap, gap: ...  */
/* No display: grid or CSS columns or break-inside used anywhere      */
