/* --- 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;
}
html { scroll-behavior: smooth; }
body {
  line-height: 1.6;
  min-height: 100vh;
  background: linear-gradient(135deg, #FAF8F5 0%, #E1EDDF 100%);
  color: #2D3D39;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
}
*, *::before, *::after { box-sizing: inherit; }
a { color: inherit; text-decoration: none; transition: color .2s; }
ul, ol { list-style: none; }
img { display: inline-block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; background: none; border: none; }
input, textarea, select { font: inherit; }
:focus { outline: none; }

/* --- BRANDING ROOT VARIABLES --- */
:root {
  --primary: #2D3D39;
  --secondary: #7F9583;
  --accent: #FAF8F5;
  --gradient-1: #7F9583;
  --gradient-2: #B8D8BA;
  --gradient-3: #FAF8F5;
  --shadow: 0 4px 24px 0 rgba(45,61,57,0.10);
  --radius-xl: 24px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;

  --transition: background .24s cubic-bezier(0.4,0,0.2,1), color .22s;
}

body, html { width: 100%; height: 100%; }

@media (max-width: 430px) {
  html { font-size: 15px; }
}

/* --- LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
}

/* --- GLOBAL TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -.02em;
}
h1 { font-size: 2.75rem; margin-bottom: 28px; line-height: 1.15; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.21rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1.02rem; margin-bottom: 8px; }
p, li, ul, ol, strong, b { font-family: var(--font-body); font-variant-ligatures: common-ligatures; }
p { font-size: 1rem; margin-bottom: 20px; }
strong, b { font-weight: 700; }
ul, ol { margin-bottom: 20px; }
ul li, ol li { margin-left: 24px; margin-bottom: 8px; line-height: 1.7; }
a:hover, nav a:focus { color: var(--secondary); }

.text-section {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

/* --- SECTIONS, SPACING, FLEXBOX LAYOUTS --- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: var(--radius-xl);
  box-sizing: border-box;
}
@media (max-width: 768px) {
  section { padding: 28px 6px; margin-bottom: 44px; }
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 24px;
  flex: 1 1 300px;
  min-width: 260px;
  transition: box-shadow .22s, transform .22s;
}
.card:hover { box-shadow: 0 8px 30px 0 rgba(45,61,57,0.12); transform: translateY(-2px) scale(1.012); }
.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-md);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  min-width: 240px;
  max-width: 600px;
  color: #2D3D39;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- COMMON FLEX GRIDS BASED ON HTML CLASSES --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  flex: 1 1 220px;
  min-width: 200px;
  max-width: 340px;
  padding: 24px 20px;
  margin-bottom: 20px;
  transition: box-shadow .18s, transform .18s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 32px 0 rgba(45,61,57,0.15);
  transform: translateY(-2px) scale(1.014);
}
.feature-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .feature-grid {
    gap: 16px;
  }
  .feature-grid > div {
    flex-basis: 46%;
    max-width: 100%;
  }
}
@media (max-width: 550px) {
  .feature-grid {
    flex-direction: column;
  }
  .feature-grid > div {
    width: 100%;
    flex-basis: 100%;
  }
}

@media (max-width: 950px) {
  .content-grid { flex-direction: column; }
  .text-image-section { flex-direction: column; }
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(113deg, var(--secondary) 0%, var(--gradient-3) 100%);
  border-radius: var(--radius-xl);
  margin-bottom: 48px;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 24px;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.4rem;
  margin-bottom: 6px;
}
.hero p {
  font-size: 1.22rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.hero .btn-primary { margin-top: 10px; }

@media (max-width: 700px) {
  .hero {
    border-radius: var(--radius-md);
  }
  .hero .content-wrapper { padding-top: 10px; padding-bottom: 10px; }
  .hero h1 { font-size: 2rem; }
}

/* --- BUTTONS --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--secondary) 6%, var(--primary) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.01rem;
  font-weight: 700;
  padding: 14px 34px;
  border: none;
  border-radius: 100px;
  box-shadow: 0 2px 8px #2d3d391a;
  transition: background .23s, box-shadow .16s, transform .12s;
  margin-top: 20px;
  cursor: pointer;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px #00000011;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 90%);
  color: #fff;
  box-shadow: 0 4px 20px #2d3d3922;
  transform: translateY(-1px) scale(1.018);
}

/* --- HEADER & NAVIGATION --- */
header {
  background: #fff;
  box-shadow: var(--shadow);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 80;
  margin-bottom: 2px;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 16px;
}
header img {
  height: 44px;
  max-width: 145px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
header nav a {
  font-family: var(--font-body);
  font-size: 1.01rem;
  color: var(--primary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: color .18s, background .22s;
}
header nav a:hover, header nav a.active {
  background: var(--accent);
  color: var(--secondary);
}
header .btn-primary {
  margin-top: 0;
  margin-left: 18px;
  font-size: 1.01rem;
}

/* --- MOBILE MENU TRIGGER ---*/
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 120;
  width: 48px;
  height: 48px;
  font-size: 2.2rem;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  border: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px #2D3D3920;
  transition: background .16s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--secondary);
  color: #fff;
}

/* --- MOBILE MENU OVERLAY --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(127deg, var(--primary) 70%, var(--secondary) 100%);
  box-shadow: 0 6px 38px #2D3D3955;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100vw);
  transition: transform .33s cubic-bezier(.72,0,.32,1);
  padding-top: 30px;
  padding-left: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin-right: 26px;
  font-size: 2.2rem;
  background: none;
  color: #fff;
  border: none;
  margin-bottom: 24px;
  transition: color .19s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { color: var(--gradient-3); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 90vw;
  max-width: 400px;
  margin-left: 32px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.23rem;
  color: #fff;
  padding: 12px 12px;
  border-radius: 8px;
  background: none;
  transition: background .11s, color .19s;
  margin-right: auto;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

@media (max-width: 1100px) {
  header .container { gap: 11px; }
  header nav a { font-size: 0.95rem; padding: 8px 8px; }
  header .btn-primary { padding: 12px 18px; }
}
@media (max-width: 900px) {
  header .container nav, header .container .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* --- MAIN FOOTER --- */
footer {
  width: 100%;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
  color: #fff;
  padding: 42px 0 24px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 42px 40px;
  justify-content: space-between;
}
.footer-logo img {
  height: 44px;
  margin-bottom: 12px;
  filter: none;
  background: none;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
footer nav a {
  color: #fff;
  font-size: 1rem;
  opacity: 0.92;
  transition: color .18s, text-decoration .10s;
}
footer nav a:hover, footer nav a:focus { text-decoration: underline; color: #FAF8F5; }
footer .contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.97rem;
}
footer .contact-info img {
  position: relative;
  top: 2px;
  width: 19px;
  height: 19px;
  margin-right: 8px;
}
@media (max-width: 900px) {
  footer .container { gap: 26px 14px; }
  .footer-logo img { margin-bottom: 5px; }
}
@media (max-width: 700px) {
  footer .container {
    flex-direction: column;
    gap: 18px 0;
    align-items: flex-start;
    padding: 0 8px;
  }
}

/* --- TESTIMONIAL CARDS --- */
.testimonial-card {
  border-left: 7px solid var(--secondary);
  box-shadow: var(--shadow);
  background: #fff;
  color: #2D3D39;
  font-size: 1.09rem;
  margin-bottom: 24px;
  padding: 24px 32px 20px 20px;
  min-width: 190px;
  max-width: 600px;
  transition: box-shadow .16s, border-color .18s;
  border-radius: var(--radius-md);
}
.testimonial-card strong {
  font-family: var(--font-display);
  color: var(--secondary);
  font-size: 1.03rem;
  margin-top: 5px;
}
.testimonial-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 28px 0 rgba(45,61,57,0.13);
}

@media (max-width: 750px) {
  .testimonial-card {
    padding: 18px 14px;
  }
}

/* --- CTA/LINKS STYLING --- */
section a:not(.btn-primary) {
  font-family: var(--font-display);
  color: var(--secondary);
  font-weight: 600;
  text-decoration: underline;
  transition: color .17s;
}
section a:not(.btn-primary):hover {
  color: var(--primary);
  text-decoration: underline wavy;
}

/* --- CONTACT INFO BLOCKS --- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.contact-info p, .contact-info span {
  display: flex;
  align-items: center;
  font-size: 1.08rem;
}
.contact-info img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  filter: none;
}

/* --- MODALS & DIALOGS (COOKIE CONSENT) --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: #2D3D39;
  box-shadow: 0 -4px 18px #2d3d3937;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 22px 16px;
  font-size: 1.03rem;
  transition: transform .33s cubic-bezier(.72,0,.32,1), opacity .33s;
  border-radius: 14px 14px 0 0;
  animation: cookieSlideUp .8s cubic-bezier(.7,0,.3,1);
}
@keyframes cookieSlideUp {
  from { transform: translateY(160px); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}
.cookie-banner.hidden { transform: translateY(200px); opacity: 0; pointer-events: none; }
.cookie-banner .cookie-btn {
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 10px 25px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-left: 12px;
  margin-right: 5px;
  box-shadow: 0 2px 9px #2d3d390f;
  cursor: pointer;
  outline: none;
  transition: background .16s, color .16s, box-shadow .23s;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 18px #2d3d391d;
}
.cookie-banner .cookie-settings-btn {
  background: #ECECE6;
  color: var(--primary);
  border: none;
  margin-left: 6px;
  transition: background .13s, color .13s;
  font-weight: 600;
}
.cookie-banner .cookie-settings-btn:hover {
  background: var(--secondary);
  color: #fff;
}

.cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: #2d3d3980;
  z-index: 10010;
  align-items: center;
  justify-content: center;
  animation: fadeInBg .36s cubic-bezier(.5,0,1,1);
}
@keyframes fadeInBg {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal.open { display: flex; }
.cookie-modal-content {
  background: #fff;
  color: #2D3D39;
  padding: 38px 34px 28px 34px;
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 36px #2d3d3924;
  min-width: 320px;
  max-width: 94vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: fadeModalIn .5s cubic-bezier(.5,0,1,1);
}
.cookie-modal-content h3 { margin-bottom: 6px; }
.cookie-modal-content label {
  display: flex;
  align-items: center;
  font-size: 1.06rem;
  gap: 8px;
  margin-bottom: 14px;
}
.cookie-modal-content input[type="checkbox"] {
  width: 18px;
  height: 18px;
}
.cookie-modal-close {
  position: absolute;
  top: 22px;
  right: 22px;
  background: #ECECE6;
  color: var(--primary);
  font-size: 1.7rem;
  border-radius: 50%;
  width: 37px; height: 37px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background .15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--secondary);
  color: #fff;
}
.cookie-modal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  justify-content: flex-end;
}

@media (max-width: 600px) {
  .cookie-modal-content {
    padding: 18px 8px 24px 8px;
    min-width: 0;
  }
}

/* --- MICRO-INTERACTION HOVER ANIMATIONS --- */
.feature-grid > div,
.card,
.testimonial-card,
.btn-primary {
  will-change: transform, box-shadow;
  transition: box-shadow .14s, background .19s, transform .18s;
}

/* --- UTILITIES / HELPERS --- */
.mt-2 { margin-top: 16px !important; }
.mt-4 { margin-top: 32px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-4 { margin-bottom: 32px !important; }
.w-100 { width: 100%; }
.text-center { text-align: center !important; }
.flex-center { display: flex; justify-content: center; align-items: center; }

/* -- FORBID GRID/COLUMNS (just in case) -- */
[class*='grid-'],
[class*='-col'],
[class^='col-'] {
  display: flex !important;
  flex-wrap: wrap !important;
}

/* --- RESPONSIVE ELEMENTS & TYPOGRAPHY --- */
@media (max-width: 700px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.23rem; }
  .feature-grid > div, .testimonial-card, .card {
    padding: 14px 8px;
    font-size: 1.01rem;
  }
}
@media (max-width: 510px) {
  .container { padding: 0 4px;  }
  section { padding: 18px 2px; }
}
@media (max-width: 420px) {
  h1 { font-size: 1.15rem; }
  h2, h3 { font-size: 0.99rem; }
  .btn-primary { font-size: 0.96rem; padding: 10px 14px; }
  .feature-grid > div, .testimonial-card, .card { font-size: 0.98rem; }
}

/* --- PRINT OPTIMIZED --- */
@media print {
  header, .mobile-menu, .mobile-menu-toggle, footer, .cookie-banner, .cookie-modal { display: none !important; }
}

/* ----------- END OF CSS ----------- */
