/* === 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 {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  background: #F5F5F5;
  color: #232323;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: inherit; }
ol, ul {
  list-style: none;
  padding-left: 0;
}
a {
  color: inherit;
  text-decoration: none;
  outline: none;
}
img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
  border: 0;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  outline: none;
  background: none;
  color: inherit;
  box-shadow: none;
}
button {
  cursor: pointer;
}

/* === BRAND VARIABLES (with fallback) === */
:root {
  --color-primary: #2C3E50;
  --color-secondary: #8D7140;
  --color-accent: #F5F5F5;
  --color-action: #D9643A;
  --color-success: #0C924A;
  --color-error: #DB3145;
  --font-display: 'Merriweather', serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --font-weight-bold: 700;
  --font-weight-semibold: 600;
  --font-weight-medium: 500;
  --shadow-bold: 0 4px 24px rgba(44, 62, 80, 0.10), 0 1.5px 6px rgba(44,62,80,0.04);
  --radius-card: 20px;
  --radius-pill: 100px;
  --transition-main: all 0.22s cubic-bezier(.66,.11,.42,.99);
}

/* === TYPOGRAPHY & BOLD MODERN STYLE === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  line-height: 1.13;
}
h1 { font-size: 2.75rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; }
h5, h6 { font-size: 1rem; }
p, li, ul, ol {
  font-size: 1.05rem;
  color: #232323;
  margin-bottom: 12px;
}
p.subheadline {
  font-size: 1.25rem;
  color: var(--color-secondary);
  font-family: var(--font-body);
  font-weight: var(--font-weight-semibold);
  max-width: 650px;
}
strong, b {
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
}
.link, a.link {
  color: var(--color-action);
  font-weight: var(--font-weight-semibold);
  border-bottom: 2px solid var(--color-action);
  transition: var(--transition-main);
}
.link:hover, a.link:hover {
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

/* === LAYOUT UTILITY CONTAINERS === */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
}

main {
  padding-bottom: 70px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-bold);
  position: relative;
}

/* === HEADER & NAVIGATION === */
header {
  background: var(--color-primary);
  color: #fff;
  width: 100%;
  position: relative;
  box-shadow: 0 2px 12px rgba(44,62,80,0.06);
  z-index: 50;
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
  gap: 20px;
  padding: 0 20px;
}
.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.main-nav a {
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.06rem;
  font-weight: var(--font-weight-semibold);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: var(--transition-main);
}
.main-nav a:hover, .main-nav a:focus {
  border-bottom: 2.5px solid var(--color-secondary);
  color: var(--color-secondary);
}
.cta-button {
  display: inline-block;
  background: var(--color-secondary);
  color: #fff;
  font-size: 1.06rem;
  font-family: var(--font-body);
  font-weight: var(--font-weight-bold);
  padding: 10px 32px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(44,62,80,0.09);
  transition: var(--transition-main);
  border: none;
  margin-left: 16px;
  text-align: center;
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-action);
  color: #fff;
  box-shadow: 0 4px 16px rgba(217, 100, 58, 0.12);
}

/* === MOBILE BURGER MENU === */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: #fff;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  transition: var(--transition-main);
  margin-left: 14px;
  border: none;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-action);
  color: #fff;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(44,62,80,0.92);
  color: #fff;
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.38s cubic-bezier(.43,.13,.52,1.09);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0); opacity: 1; pointer-events: all;
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  font-size: 2.1rem;
  align-self: flex-end;
  margin: 30px 28px 0 0;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-action);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 30px;
  padding-left: 36px;
  gap: 0;
}
.mobile-nav a {
  display: block;
  width: 100%;
  font-size: 1.32rem;
  font-family: var(--font-body);
  font-weight: var(--font-weight-bold);
  color: #fff;
  padding: 20px 0;
  border-bottom: 1.5px solid rgba(255,255,255,0.10);
  transition: background 0.22s, color 0.22s;
  text-align: left;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
  border-bottom: 2.2px solid var(--color-action);
}

@media (max-width: 1024px) {
  .main-nav, .cta-button {
    display: none;
  }
  .mobile-menu-toggle { display: flex; }
}
@media (min-width:1025px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* === HERO === */
.hero {
  background: linear-gradient(90deg, #F5F5F5 60%, #f4e8d3 100%);
  padding: 70px 0 60px 0;
  margin-bottom: 40px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: wrap;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  width: 100%;
}

/* === FEATURE CARDS/GRID === */
.features-grid, .feature-list, .features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin: 32px 0 0 0;
}
.features-grid > div, .feature-item {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-bold);
  padding: 28px 28px 18px 28px;
  flex: 1 1 260px;
  min-width: 235px;
  max-width: 370px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border-left: 5px solid var(--color-secondary);
  transition: box-shadow 0.23s, border-color 0.22s;
  position: relative;
}
.features-grid > div:hover {
  box-shadow: 0 8px 32px rgba(44,62,80,0.17), 0 2.5px 14px rgba(44,62,80,0.07);
  border-color: var(--color-action);
}

/* === CARD & FLEX LAYOUTS === */
.card-container, .card-grid, .blog-post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin: 30px 0;
}
.card, .blog-post-list > a, .pricing-table {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-bold);
  margin-bottom: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  transition: box-shadow 0.21s, border-color 0.22s;
  position: relative;
}
.card:hover, .blog-post-list > a:hover, .pricing-table:hover {
  box-shadow: 0 12px 36px rgba(44,62,80,0.16),0 3px 16px rgba(44,62,80,0.08);
}
.blog-post-list > a {
  flex: 1 1 360px;
  min-width: 250px;
  border-left: 4px solid var(--color-secondary);
  cursor: pointer;
  color: var(--color-primary);
}
.blog-post-list > a:hover {
  border-left: 4px solid var(--color-action);
  color: var(--color-action);
}

.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;
}

/* === TEAM LAYOUT === */
.team-member {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-bold);
  margin-bottom: 20px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-left: 4px solid var(--color-secondary);
}

/* === PRICING TABLE === */
.pricing-table {
  flex: 1 1 250px;
  max-width: 320px;
  min-width: 180px;
  border-left: 5px solid var(--color-secondary);
  margin-bottom: 20px;
}

/* ==== TESTIMONIALS ==== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-bold);
  margin-bottom: 20px;
  border-left: 5px solid var(--color-action);
  transition: box-shadow 0.18s, border-color 0.18s;
}
.testimonial-card p {
  font-size: 1.16rem;
  color: #262626;
  font-family: var(--font-body);
  margin-bottom: 4px;
  font-weight: var(--font-weight-medium);
}
.testimonial-card strong {
  color: var(--color-secondary);
  font-weight: var(--font-weight-bold);
}
.testimonial-card:hover {
  border-left: 5px solid var(--color-secondary);
  box-shadow: 0 8px 36px rgba(141,113,64,.08),0 2.5px 12px rgba(44,62,80,0.04);
}

/* === BUTTONS, SEARCH & LINKS === */
button, .button {
  font-family: var(--font-body);
  font-weight: var(--font-weight-bold);
  font-size: 1.06rem;
  border-radius: var(--radius-pill);
  transition: var(--transition-main);
  border: none;
  outline: none;
}
.search-bar input {
  width: 100%;
  border: 2px solid var(--color-secondary);
  border-radius: var(--radius-pill);
  padding: 13px 22px;
  font-size: 1.08rem;
  background: #fff;
  color: var(--color-primary);
  margin: 18px 0 8px 0;
  transition: border 0.18s;
}
.search-bar input:focus {
  border-color: var(--color-action);
  outline: none;
}

/* === CATEGORY LINKS (BLOG) === */
.category-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 8px 0;
  font-size: 1rem;
}
.category-links a {
  color: var(--color-secondary);
  font-weight: var(--font-weight-semibold);
  border-bottom: 2px solid transparent;
  transition: border 0.18s, color 0.18s;
}
.category-links a:hover {
  border-bottom: 2px solid var(--color-action);
  color: var(--color-action);
}

/* === FOOTER === */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 38px 0 24px 0;
  position: relative;
  width: 100%;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.footer-nav a {
  color: #fff;
  opacity: 0.93;
  font-weight: var(--font-weight-semibold);
  font-size: 1rem;
  border-bottom: 2px solid transparent;
  transition: border 0.18s, color 0.18s, opacity 0.21s;
}
.footer-nav a:hover, .footer-nav a:focus {
  border-bottom: 2px solid var(--color-action);
  color: var(--color-action);
  opacity: 1;
}
.footer-contact {
  font-size: 1rem;
  color: #fff;
  opacity: 0.92;
  margin-top: 10px;
  text-align: center;
}
.footer-contact a { color: var(--color-action); font-weight: var(--font-weight-bold); }

/* === SPECIAL SECTIONS === */
.map {
  background: #f4e8d3;
  color: var(--color-primary);
  border-radius: var(--radius-card);
  padding: 18px 18px 16px 18px;
  margin-top: 16px;
  font-size: 1.02rem;
  font-weight: var(--font-weight-medium);
  box-shadow: 0 2px 8px rgba(44,62,80,0.07);
}
.contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact li {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==== COOKIE BANNER ==== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #232323;
  color: #fff;
  z-index: 2000;
  box-shadow: 0 -2px 12px rgba(44,62,80,0.13);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px 18px 20px;
  font-size: 1.04rem;
  flex-wrap: wrap;
  gap: 20px;
  animation: cookieShow 0.7s cubic-bezier(.5,0,.4,1) both;
}
@keyframes cookieShow {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  flex: 2 1 350px;
  margin: 0 10px 0 0;
  color: #fff;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-banner button {
  background: var(--color-secondary);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: var(--font-weight-bold);
  transition: var(--transition-main);
  font-size: 1rem;
}
.cookie-banner .cookie-settings-btn {
  background: transparent;
  border: 2px solid var(--color-secondary);
  color: var(--color-secondary);
}
.cookie-banner .cookie-settings-btn:hover {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-banner .cookie-accept-btn {
  background: var(--color-success);
  border: 2px solid var(--color-success);
}
.cookie-banner .cookie-accept-btn:hover {
  background: #11b85a;
}
.cookie-banner .cookie-reject-btn {
  background: var(--color-error);
  border: 2px solid var(--color-error);
}
.cookie-banner .cookie-reject-btn:hover {
  background: #e35267;
}

/* === COOKIE MODAL POPUP === */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(44,62,80,0.64);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalIn 0.4s cubic-bezier(.48,0,.56,1.2);
}
@keyframes cookieModalIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  min-width: 320px;
  max-width: 98vw;
  width: 430px;
  background: #fff;
  color: var(--color-primary);
  border-radius: var(--radius-card);
  box-shadow: 0 8px 36px rgba(44,62,80,0.25);
  padding: 32px 28px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal h3 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
}
.cookie-modal .cookie-category input[type="checkbox"] {
  accent-color: var(--color-action);
  width: 18px; height: 18px;
}
.cookie-category.essential label {
  font-weight: var(--font-weight-bold);
  color: var(--color-secondary);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  background: transparent;
  color: var(--color-action);
  border: none;
  font-size: 1.7rem;
  cursor: pointer;
  transition: color 0.21s;
}
.cookie-modal .cookie-modal-close:hover {
  color: var(--color-secondary);
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 1150px) {
  .container {
    max-width: 95vw;
  }
}
@media (max-width: 900px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.5rem; }
  .container { padding: 0 10px; }
  .features-grid > div, .feature-item, .card, .team-member { min-width: 170px; }
}
@media (max-width: 768px) {
  .hero {
    padding: 40px 0 30px 0;
    margin-bottom: 20px;
  }
  .section, .card, .team-member, .features-grid > div, .pricing-table, .testimonial-card {
    padding: 20px 13px;
    min-width: 0;
  }
  .main-nav, .cta-button { display: none !important; }
  .mobile-menu-toggle { display: flex !important; }
  .features-grid, .feature-list, .features, .card-container, .card-grid, .blog-post-list, .content-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .testimonial-card {
    min-width: 0;
    width: 100%;
  }
  .footer-nav {
    flex-direction: column;
    gap: 6px;
  }
  .footer-contact {
    font-size: 0.97rem;
  }
  .cookie-modal { width: 96vw; min-width: 0; }
}
@media (max-width: 576px) {
  h1 { font-size: 1.28rem; }
  h2 { font-size: 1rem; }
  .container { padding: 0 8px; }
  .section, .card, .team-member, .features-grid > div, .pricing-table, .testimonial-card {
    padding: 13px 7px;
    border-radius: 10px;
  }
  .cookie-banner { padding: 12px 6px 12px 6px; font-size: 0.95rem; }
  .cookie-modal { padding: 18px 6px 18px 10px; border-radius: 10px; }
}

/* === VISUAL DETAILS (MODERN BOLD) === */
.card, .section, .features-grid > div, .team-member, .testimonials-card, .blog-post-list a {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-bold);
}
.card, .features-grid > div, .team-member, .testimonial-card, .pricing-table {
  border-left: 4px solid var(--color-secondary);
  transition: border-color 0.21s, box-shadow 0.21s;
}
.card:hover, .features-grid > div:hover, .team-member:hover, .testimonial-card:hover, .pricing-table:hover {
  border-left: 4px solid var(--color-action);
}

/* === SPACING AND ALIGNMENT (CRITICAL) === */
.section { margin-bottom: 60px !important; padding: 40px 20px !important; }
.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; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* === HOVER ANIMATION / MICROINTERACTIONS === */
.cta-button, button, .mobile-menu-toggle, .blog-post-list > a {
  transition: var(--transition-main);
}
.cta-button:active, button:active {
  transform: scale(0.98);
}

/* === Z-INDEXES === */
header { z-index: 60 !important; }
.mobile-menu { z-index: 999 !important; }
.cookie-banner { z-index: 2000 !important; }
.cookie-modal-overlay { z-index: 2100 !important; }

/* Hide visually but keep accessible for screen readers */
.sr-only {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
