/* === CSS RESET & NORMALIZE === */
html { box-sizing: border-box; font-size: 100%; }
*, *:before, *:after { box-sizing: inherit; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; background: none; border: none; outline: none; }

/* === BRAND VARIABLES === */
:root {
  --color-primary: #2C3A47;
  --color-secondary: #A3B18A;
  --color-accent: #F7F7F7;
  --color-dark: #111827;
  --color-bright: #fff;
  --color-gray: #e0e0e0;
  --color-success: #0eb27a;
  --color-error: #d44a48;

  --font-display: 'Roboto Slab', serif;
  --font-body: 'Open Sans', Arial, sans-serif;

  --radius-large: 20px;
  --radius: 12px;
  --radius-small: 6px;
  --shadow-card: 0 2px 24px 0 rgba(44,58,71,0.08), 0 1.5px 5px 0 rgba(44,58,71,0.07);

  --transition: 0.22s cubic-bezier(.4,.1,.27,1.2);
}

/* === TYPOGRAPHY / HIERARCHY === */
body {
  background: var(--color-accent);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-primary);
  line-height: 1.6;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: bold;
  color: var(--color-primary);
  line-height: 1.12;
  text-rendering: optimizeLegibility;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 16px;
  letter-spacing: -2px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  letter-spacing: -1px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
p, ul, ol, li {
  font-size: 1rem;
  margin-bottom: 8px;
}
strong {
  font-weight: 700;
}

/* === LAYOUT: CONTAINER & WRAPPER === */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* === HEADER/NAVIGATION STYLES === */
header {
  background: var(--color-bright);
  border-bottom: 2.5px solid var(--color-secondary);
  position: sticky;
  z-index: 99;
  top: 0;
  box-shadow: 0 2px 14px 0 rgba(44,58,71,0.07);
  display: flex;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  padding: 12px 0;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin: 12px 0;
  font-family: var(--font-display);
}
.main-nav a {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 10px;
  border-radius: var(--radius-small);
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-bright);
}

.cta-prim {
  background: var(--color-secondary);
  color: var(--color-bright);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  padding: 12px 24px;
  margin-left: 26px;
  margin-top: 0;
  box-shadow: 0 2px 14px 0 rgba(44,58,71,0.10);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.cta-prim:hover, .cta-prim:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
  box-shadow: 0 4px 24px 0 rgba(44,58,71,0.15), 0 1.5px 8px 0 rgba(44,58,71,0.09);
  transform: translateY(-2px) scale(1.025);
}

/* === MOBILE NAVIGATION === */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: var(--color-bright);
  font-size: 2.1rem;
  border-radius: 50%;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  cursor: pointer;
  transition: background var(--transition);
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(44,58,71,0.98);
  z-index: 1500;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.67,1.65,.47,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 28px 18px 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--color-bright);
  font-size: 2.1rem;
  align-self: flex-end;
  border-radius: 50%;
  margin-bottom: 22px;
  padding: 0 8px;
  cursor: pointer;
  transition: background var(--transition);
}
.mobile-menu-close:hover {
  background: var(--color-secondary);
  color: var(--color-dark);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  color: var(--color-bright);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  padding: 16px 0 7px 0;
  border-bottom: 2.5px solid rgba(163,177,138,0.15);
  transition: color var(--transition), border-color var(--transition);
  border-radius: 0;
}
.mobile-nav a:active,
.mobile-nav a:focus {
  color: var(--color-secondary);
  border-bottom: 2.5px solid var(--color-secondary);
}

/* HIDE NAV ON MOBILE, SHOW BURGER */
@media (max-width: 900px) {
  .main-nav, .cta-prim {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header {
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
  }
}

/* === SECTION SPACING PATTERNS === */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-bright);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
}
.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;
  margin-bottom: 20px;
  background: var(--color-accent);
  border-radius: var(--radius);
  box-shadow: 0 1px 9px 0 rgba(44,58,71,0.04);
  min-width: 0;
  color: var(--color-primary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 24px 22px;
  margin-bottom: 20px;
  min-width: 250px;
  flex: 1 1 250px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-item:hover {
  box-shadow: 0 6px 32px 0 rgba(44,58,71,0.11);
  transform: translateY(-6px) scale(1.025);
}

/* === HERO === */
.hero {
  background: var(--color-primary);
  color: var(--color-bright);
  border-radius: 0 0 36px 36px;
  margin-bottom: 60px;
  padding: 56px 0 55px 0;
  box-shadow: 0 2.5px 15px 0 rgba(44,58,71,0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .container { align-items: center; }
.hero h1 {
  color: var(--color-secondary);
  font-size: 2.6rem;
  letter-spacing: -2px;
  text-shadow: 0 2px 12px rgba(44,58,71,0.13);
  margin-bottom: 20px;
}
.hero p {
  color: var(--color-accent);
  font-size: 1.2rem;
  margin-bottom: 36px;
}
.hero .cta-prim {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-size: 1.15rem;
  font-weight: bold;
}
.hero .cta-prim:hover {
  background: var(--color-bright);
  color: var(--color-secondary);
}

/* === FEATURES SECTION === */
.features {
  background: var(--color-secondary);
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--color-bright);
  border-radius: 16px;
  margin-bottom: 60px;
  padding: 50px 0 60px 0;
}
.features h2 {
  color: var(--color-primary);
  font-size: 2rem;
  margin-bottom: 22px;
  letter-spacing: -1px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 26px;
  justify-content: flex-start;
}
.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 10px 0;
  font-family: var(--font-display);
  font-weight: 700;
}
.feature-tags li {
  background: var(--color-bright);
  color: var(--color-primary);
  border-radius: var(--radius-small);
  padding: 7px 16px 7px 11px;
  display: flex;
  align-items: center;
  font-size: 1rem;
  box-shadow: 0 0.5px 5px 0 rgba(44,58,71,0.07);
}
.feature-tags img {
  width: 20px;
  height: 20px;
  margin-right: 7px;
}
.feature-descriptions strong {
  color: var(--color-dark);
}
.feature-descriptions ul {
  padding-left: 12px;
  margin-top: 6px;
}
.feature-descriptions li {
  list-style-type: disc;
  margin-bottom: 4px;
}

/* === SERVICE LIST === */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0 0 0;
}
.service-list a {
  color: var(--color-primary);
  font-weight: bold;
  text-decoration: underline;
  margin-right: 7px;
  transition: color var(--transition);
}
.service-list a:hover {
  color: var(--color-secondary);
}

/* === TESTIMONIALS === */
.testimonials {
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 20px;
  margin-bottom: 60px;
}
.testimonials h2 {
  color: var(--color-primary);
  font-size: 2rem;
  margin-bottom: 22px;
}
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 16px;
}
.testimonial-card blockquote {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-style: italic;
  margin-bottom: 9px;
  color: var(--color-primary);
  text-shadow: 0 2px 7px rgba(44,58,71,0.04);
}
.testimonial-name {
  font-family: var(--font-body);
  color: var(--color-dark);
  font-size: 1rem;
  font-weight: 700;
  opacity: 0.8;
  letter-spacing: 0.5px;
}

/* === BLOG LISTING === */
.listing h2 {
  font-size: 1.6rem;
  margin-bottom: 14px;
}
.blog-search-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  background: var(--color-bright);
  border-radius: var(--radius-small);
  padding: 10px 16px;
  box-shadow: 0 1px 7px 0 rgba(44,58,71,0.05);
}
.blog-search-bar input[type="text"] {
  background: var(--color-accent);
  padding: 8px 12px;
  border-radius: var(--radius-small);
  border: none;
  width: 160px;
  transition: box-shadow var(--transition);
}
.blog-search-bar input[type="text"]:focus {
  outline: 2.5px solid var(--color-secondary);
}
.category-filters {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 11px;
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-weight: 700;
}
.category-filters button {
  background: var(--color-secondary);
  color: var(--color-bright);
  border: none;
  border-radius: var(--radius-small);
  padding: 7px 18px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  font-weight: 700;
}
.category-filters button:hover,
.category-filters button:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
}
.blog-listing {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 22px;
}
.blog-listing li {
  background: var(--color-bright);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 20px 22px;
  margin-bottom: 20px;
}
.blog-listing h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--color-primary);
  font-weight: 700;
}
.blog-listing p {
  color: var(--color-dark);
  margin-bottom: 6px;
}

/* === CTA SECTION === */
.cta {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 38px 0;
}
.cta .cta-prim {
  font-size: 1.23rem;
  padding: 14px 42px;
  border-radius: var(--radius-large);
  font-weight: 900;
  box-shadow: 0 2px 21px 0 rgba(163,177,138,0.16);
}
.cta .cta-prim:hover {
  background: var(--color-primary);
  color: var(--color-secondary);
}

/* === SUCCESS THANK YOU PAGE === */
.success {
  text-align: center;
  padding: 54px 0;
}
.success h1 {
  color: var(--color-secondary);
  margin-bottom: 16px;
  font-size: 2.2rem;
}
.success .cta-prim { margin-top: 34px; }

/* === CONTACT SECTION === */
.contact .text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
address img {
  vertical-align: sub;
  margin-right: 5px;
  width: 18px;
  height: 18px;
}
.contact-map {
  display: flex;
  align-items: center;
  background: var(--color-accent);
  border-radius: var(--radius);
  padding: 12px 20px;
  margin-top: 13px;
  color: var(--color-primary);
  font-weight: 700;
  font-family: var(--font-display);
  gap: 7px;
}
.contact-map img {
  width: 22px; height: 22px;
}

/* === LEGAL (IMPRINT, GDPR, ETC.) === */
.legal .text-section {
  background: var(--color-bright);
  border-radius: var(--radius);
  box-shadow: 0 1.5px 7px 0 rgba(44,58,71,0.04);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--color-primary);
}
.legal h2 { font-size: 1.1rem; margin-bottom: 8px; }
.legal ul { margin-bottom: 8px; }
.legal ul li { list-style-type: disc; margin-left: 20px; margin-bottom: 1px; }

/* === FOOTER === */
footer {
  background: var(--color-primary);
  color: var(--color-bright);
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -3px 32px 0 rgba(44,58,71,0.07);
  padding: 0 0 14px 0;
  margin-top: 80px;
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 38px 20px 10px 20px;
  flex-wrap: wrap;
}
.footer-logo {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  filter: grayscale(24%);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1rem;
}
.footer-nav a {
  color: var(--color-secondary);
  border-bottom: 2px solid transparent;
  transition: border-bottom var(--transition), color var(--transition);
}
.footer-nav a:focus,
.footer-nav a:hover { color: var(--color-bright); border-bottom: 2px solid var(--color-accent); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 20px;
  border-top: 1.5px solid rgba(163,177,138,0.15);
  font-size: 0.98rem;
}
footer address {
  font-style: normal;
  line-height: 1.46;
  color: var(--color-accent);
  margin-bottom: 0;
}
footer address a { color: var(--color-secondary); text-decoration: underline dotted; transition: color var(--transition);}
footer address a:hover {color: var(--color-bright);}
.brandline {
  font-family: var(--font-display);
  font-size: 1.0rem;
  color: var(--color-secondary);
  margin-top: 0;
  font-weight: 600;
  opacity: 0.86;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 -4px 40px 0 rgba(44,58,71,0.09);
  padding: 26px 20px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2200;
  gap: 20px;
  animation: slideup-banner 0.45s var(--transition) 1;
}
@keyframes slideup-banner {
  from { transform: translateY(90%); opacity:0; } to { transform: translateY(0); opacity:1; }
}
.cookie-banner .cookie-text {
  font-size: 1rem;
  max-width: 540px;
  margin-bottom: 0;
  font-family: var(--font-body);
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.cookie-banner button {
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: var(--radius-small);
  font-weight: 700;
  font-size: 1rem;
  padding: 9px 20px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  cursor: pointer;
  box-shadow: 0 1px 7px 0 rgba(163,177,138,0.06);
}
.cookie-banner button.cookie-accept {
  background: var(--color-success);
  color: var(--color-bright);
}
.cookie-banner button.cookie-accept:hover { background: #09a168; color: #fff;}
.cookie-banner button.cookie-reject {
  background: var(--color-error);
  color: var(--color-bright);
}
.cookie-banner button.cookie-reject:hover { background: #a93332; color: #fff;}
.cookie-banner button.cookie-settings {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-banner button.cookie-settings:hover { background: var(--color-bright); color: var(--color-secondary);}

/* COOKIE SETTINGS MODAL */
.cookie-modal-backdrop {
  position: fixed; left:0;top:0;right:0;bottom:0;
  background: rgba(44,58,71,0.89);
  z-index: 2450;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInBackdrop 0.23s var(--transition) 1;
}
@keyframes fadeInBackdrop {
 from { opacity:0;} to { opacity:1;}
}
.cookie-modal {
  background: var(--color-bright);
  color: var(--color-primary);
  border-radius: var(--radius-large);
  padding: 36px 28px 30px 28px;
  min-width: 320px; max-width: 98vw;
  box-shadow: 0 6px 32px 0 rgba(44,58,71,0.17);
  display: flex; flex-direction: column; gap: 22px;
  animation: showmodal 0.32s var(--transition) 1;
}
@keyframes showmodal { from { transform: scale(0.9);opacity:0; } to {transform: scale(1); opacity:1;} }
.cookie-modal h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--color-primary);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 7px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  background: var(--color-accent);
  border-radius: var(--radius-small);
  padding: 13px 16px;
}
.cookie-category.essential {
  opacity: 0.7;
  font-weight: 700;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.cookie-toggle {
  width: 42px; height: 24px;
  border-radius: 14px;
  background: var(--color-secondary);
  position: relative;
  transition: background var(--transition);
  margin-left: 12px;
  cursor: pointer;
  flex-shrink: 0;
  border: none;
}
.cookie-toggle[aria-checked="true"] { background: var(--color-success);}
.cookie-toggle .toggle-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-bright);
  position: absolute;
  left: 2px; top:2px;
  transition: left var(--transition), background var(--transition);
}
.cookie-toggle[aria-checked="true"] .toggle-dot { left: 20px; background: var(--color-bright); }

/* === GENERAL FORMS & INPUT === */
input, textarea, select {
  border-radius: var(--radius-small);
  border: 1.2px solid var(--color-gray);
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 9px 12px;
  margin-bottom: 12px;
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--color-secondary);
  border-color: var(--color-secondary);
}
button {
  cursor: pointer;
}

/* === MICRO-ANIMATIONS === */
a, button, .feature-item, .cta-prim, .blog-listing li, .testimonial-card {
  transition: box-shadow var(--transition), background var(--transition), color var(--transition), transform var(--transition);
}

/* === MEDIA QUERIES: RESPONSIVE MOBILE-FIRST === */
@media (max-width: 1160px) {
  .container { max-width: 98vw; }
}
@media (max-width: 980px) {
  .feature-grid, .testimonial-list {
    flex-direction: column;
    gap: 22px;
  }
  .footer-top { flex-direction: column; gap: 14px; }
  .footer-nav { justify-content: flex-start; }
  .footer-bottom { flex-direction: column; align-items:flex-start; gap: 10px; }
}
@media (max-width: 766px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.21rem; }
  .container { padding: 0 11px; }
  .content-wrapper { gap: 17px; }
  .hero { padding: 34px 0 33px 0; border-radius: 0 0 18px 18px; }
  .features { border-radius: 9px; padding: 26px 0 35px 0; }
  .feature-item, .card { padding: 15px 9px; }
  .card-container, .feature-grid, .testimonial-list, .blog-listing { gap: 14px; }
  .service-list { gap: 7px; }
  .testimonial-card { flex-direction: column; align-items: flex-start; gap: 7px; }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .card-container, .content-grid, .footer-bottom, .footer-top {
    flex-direction: column;
    gap: 13px;
    align-items: flex-start;
  }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 1.23rem; }
  .footer-logo { width: 46px; height: 46px; }
  .footer-top, .footer-bottom { padding: 10px; }
  .cookie-banner { padding: 15px 10px; }
  .cookie-modal { padding: 22px 10px 20px 10px; }
}

/* === GEOMETRIC/DECORATIVE EFFECTS === */
.feature-item img, .feature-tags img, .contact-map img {
  border-radius: 40%;
  background: var(--color-accent);
  box-shadow: 0 1.5px 6px 0 rgba(44,58,71,0.04);
}

/* ===== ENSURE SPACING & NO OVERLAPS ===== */
.card:not(:last-child), .card-container > *:not(:last-child), .feature-grid > *:not(:last-child), .testimonial-list > *:not(:last-child), .blog-listing > *:not(:last-child) {
  margin-right: 0;
  margin-bottom: 20px;
}

/* ===== PRINT STYLES (NEUTRAL) ===== */
@media print {
  header, .main-nav, .mobile-menu, .footer-top, .footer-bottom, .cookie-banner, .cookie-modal-backdrop { display:none; }
  body { color: #000; background: #fff; }
}
