/* --------------------
   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,
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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F7F6F3;
  color: #22424D;
}
*, *:before, *:after {
  box-sizing: inherit;
}
ul, ol {
  list-style: none;
}
a {
  background: transparent;
  color: inherit;
  text-decoration: none;
}
img {
  border: 0;
  vertical-align: middle;
  max-width: 100%;
  height: auto;
  display: inline-block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
  border: none;
  background: none;
}

/* --------------------
   VARIABLES
---------------------*/
:root {
  --color-primary: #22424D;
  --color-secondary: #FFFFFF;
  --color-bg: #F7F6F3;
  --color-accent: #647C6B;
  --color-card-bg: #FFFFFF;
  --color-card-shadow: rgba(34, 66, 77, 0.07);
  --color-border: #E0E1DF;
  --color-footer-bg: #22424D;
  --color-footer-text: #FFFFFF;
  --color-btn-primary: #22424D;
  --color-btn-primary-hover: #3a626d;
  --color-btn-secondary: #647C6B;
  --color-btn-secondary-hover: #779a85;
  --color-link: #22424D;
  --color-link-hover: #647C6B;
  --radius-sm: 8px;
  --radius-md: 20px;
  --shadow-card: 0 4px 24px 0 var(--color-card-shadow);
  --transition: 0.25s cubic-bezier(.38,.8,.37,1);

  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Lato', Arial, Helvetica, sans-serif;
}

/* --------------------
   GEOMETRIC STRUCTURED
---------------------*/
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-primary);
  font-weight: 400;
  font-size: 16px;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  font-weight: 700;
  color: var(--color-primary);
}
h1 {
  font-size: 2.8rem;
  margin-bottom: 24px;
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
  margin-bottom: 24px;
  line-height: 1.15;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}
h4 {
  font-size: 1.1rem;
}
p, li, blockquote {
  color: var(--color-primary);
  font-size: 1rem;
  margin-bottom: 18px;
  line-height: 1.7;
  font-family: var(--font-body);
}
ul, ol {
  padding-left: 20px;
  margin-bottom: 18px;
}
ul li, ol li {
  padding-bottom: 8px;
  font-size: 1rem;
  letter-spacing: 0.015em;
}
blockquote {
  background: var(--color-bg);
  border-left: 5px solid var(--color-accent);
  padding: 18px 28px 18px 24px;
  border-radius: var(--radius-sm);
  font-style: italic;
  box-shadow: 0 2px 12px 0 rgba(100,124,107,0.07);
}

/* --- Spacing & Section Patterns ---*/
.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-card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 32px 24px;
  flex: 1 1 270px;
}
.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;
  background: var(--color-secondary);
  border-radius: var(--radius-md);
  box-shadow: 0 3px 16px 0 rgba(34,66,77,0.09);
  margin-bottom: 20px;
  flex: 1 1 350px;
  min-width: 0;
  border: 1px solid var(--color-border);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- Main Layout Styles --- */
header {
  background: var(--color-secondary);
  box-shadow: 0 6px 28px 0 rgba(34,66,77,0.09);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 80;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 30px;
  padding-top: 14px;
  padding-bottom: 14px;
  min-height: 70px;
}
.logo img {
  height: 46px;
  width: auto;
  border-radius: 0 14px 14px 0;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  flex: 1 1 auto;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.035em;
  font-weight: 600;
  color: var(--color-primary);
  background: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-display);
  font-size: 1.09rem;
  font-weight: 700;
  border-radius: 30px;
  box-shadow: 0 2px 14px 0 rgba(34, 66, 77, 0.10);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), border var(--transition);
  cursor: pointer;
  text-align: center;
  text-transform: uppercase;
}
.btn-primary {
  color: var(--color-secondary);
  background: var(--color-btn-primary);
  border: 2px solid var(--color-btn-primary);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-btn-primary-hover);
  color: var(--color-secondary);
  box-shadow: 0 4px 18px 2px rgba(34,66,77,0.14);
}
.btn-secondary {
  background: var(--color-btn-secondary);
  color: var(--color-secondary);
  border: 2px solid var(--color-btn-secondary);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-btn-secondary-hover);
  color: var(--color-secondary);
}

/* --- Hero Section --- */
.hero {
  width: 100%;
  background: var(--color-primary);
  color: var(--color-secondary);
  position: relative;
  border-radius: 0 0 42px 42px;
  margin-bottom: 52px;
}
.hero .container {
  padding-top: 62px;
  padding-bottom: 62px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.hero h1, .hero p {
  color: var(--color-secondary);
}
.hero .btn-primary {
  margin-top: 18px;
  border-color: var(--color-secondary);
  background: var(--color-accent);
  color: var(--color-primary);
}
.hero .btn-primary:hover, .hero .btn-primary:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* --- Blog Snippets --- */
.blog-snippet, .blog-preview {
  background: var(--color-card-bg);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  flex: 1 1 340px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--color-border);
}
.blog-snippet h3, .blog-preview h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  margin-bottom: 9px;
}
.blog-snippet .btn-secondary, .blog-preview .btn-secondary {
  align-self: flex-start;
  margin-top: 9px;
}
.categories-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
}
.categories-filter strong {
  font-family: var(--font-display);
  font-size: 1rem;
}
.categories-filter a {
  color: var(--color-accent);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.97rem;
  transition: background var(--transition);
}
.categories-filter a:hover, .categories-filter a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}

/* --- Feature Grids --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 20px;
}
.feature-grid > div {
  background: var(--color-card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 26px 20px;
  flex: 1 1 250px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), border-color var(--transition);
  position: relative;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 34px 0 rgba(100,124,107,0.18);
  border-color: var(--color-accent);
  z-index: 1;
}
.feature-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 7px;
  border-radius: 10px;
  background: #E0E1DF;
  padding: 6px;
}
.feature-grid h3 {
  font-size: 1.13rem;
}

/* --- Content Wrapper --- */
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 24px;
}

/* --- Text Section --- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 800px;
}

/* --- Contact Details --- */
.contact-details img {
  width: 22px;
  height: 22px;
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 4px;
}
.map-embed, .directions {
  background: var(--color-bg);
  padding: 18px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 14px 0 rgba(34,66,77,0.06);
  flex: 1 1 320px;
  min-width: 0;
  margin-bottom: 20px;
}
.map-embed strong, .directions strong {
  color: var(--color-accent);
}

/* --- Footer --- */
footer {
  width: 100%;
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  margin-top: 72px;
  padding: 34px 0 12px 0;
  box-shadow: 0 -2px 18px 0 rgba(34,66,77,0.10);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-bottom: 8px;
}
.footer-nav a {
  color: var(--color-footer-text);
  font-size: 1rem;
  opacity: 0.90;
  padding: 5px 10px;
  transition: opacity var(--transition), background var(--transition);
  border-radius: var(--radius-sm);
}
.footer-nav a:hover, .footer-nav a:focus {
  opacity: 1;
  background: var(--color-accent);
  color: var(--color-footer-bg);
}
footer p {
  color: var(--color-footer-text);
  opacity: 0.75;
  font-size: 0.97rem;
  margin: 0;
}

/* --- Testimonials --- */
.testimonials {
  margin-bottom: 50px;
}
.testimonials .content-wrapper {
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 24px 0 rgba(34,66,77,0.08);
  padding: 26px 26px 22px 26px;
  font-size: 1.16rem;
  border-left: 8px solid var(--color-accent);
  margin-bottom: 20px;
}
.testimonial-card blockquote {
  background: none;
  border: none;
  padding: 0;
  font-size: 1.09rem;
  color: var(--color-primary);
  line-height: 1.6;
}
.testimonial-card strong {
  font-size: 0.96rem;
  color: var(--color-accent);
  font-family: var(--font-display);
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  z-index: 99;
  background: var(--color-bg);
  color: var(--color-primary);
  box-shadow: 0 -2px 18px 0 rgba(34,66,77,0.13);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 18px 20px 18px;
  gap: 16px;
  transition: transform var(--transition);
  transform: translateY(0);
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.cookie-banner button {
  border-radius: 30px;
  padding: 9px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid var(--color-btn-primary);
  background: var(--color-btn-primary);
  color: var(--color-secondary);
  transition: background var(--transition), color var(--transition);
}
.cookie-banner .btn-secondary {
  border-color: var(--color-btn-secondary);
  background: var(--color-btn-secondary);
  color: var(--color-secondary);
}
.cookie-banner button.btn-cookie-settings {
  background: var(--color-bg);
  color: var(--color-btn-primary);
  border: 2px solid var(--color-btn-primary);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--color-btn-primary-hover);
  color: var(--color-secondary);
}
.cookie-banner .btn-cookie-settings:hover, .cookie-banner .btn-cookie-settings:focus {
  background: var(--color-btn-primary);
  color: var(--color-secondary);
}

/* --- Cookie Settings Modal --- */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(34,66,77,0.44);
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.active {
  display: flex;
  animation: fadeIn 0.25s;
}
@keyframes fadeIn {
  from { opacity:0; } to { opacity:1; }
}
.cookie-modal {
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px 0 rgba(34,66,77,0.23);
  min-width: 310px;
  max-width: 95vw;
  padding: 34px 32px 28px 32px;
  position: relative;
}
.cookie-modal h3 {
  margin-bottom: 18px;
  font-size: 1.2rem;
  font-family: var(--font-display);
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}
.cookie-modal-category label {
  font-size: 1rem;
  flex: 1 1 auto;
}
.toggle-switch {
  position: relative;
  width: 44px;
  height: 22px;
  display: inline-block;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: var(--color-border);
  border-radius: 22px;
  transition: background var(--transition);
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--color-accent);
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background: var(--color-bg);
  border-radius: 50%;
  transition: transform var(--transition), background var(--transition);
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(22px);
  background: var(--color-secondary);
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 24px;
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-primary);
  cursor: pointer;
  line-height: 1;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--color-accent);
}

/* --- Mobile Menu --- */
.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  font-size: 2.1rem;
  background: var(--color-card-bg);
  border-radius: 12px;
  border: 2px solid var(--color-border);
  color: var(--color-primary);
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  margin-left: 10px;
  cursor: pointer;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-accent);
  color: var(--color-secondary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-bg);
  z-index: 110;
  transform: translateX(-102vw);
  transition: transform var(--transition);
  box-shadow: 6px 0 36px 0 rgba(34,66,77,0.13);
  display: flex;
  flex-direction: column;
  padding: 0 24px 24px 24px;
}
.mobile-menu.menu-open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-primary);
  z-index: 3;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 16px;
  transition: background var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding-top: 90px;
  width: 100%;
  height: 90vh;
  overflow-y: auto;
}
.mobile-nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.27rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  padding: 13px 6px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}

/* --- Media Queries: Mobile First --- */
@media (max-width: 1140px) {
  .container {
    max-width: 960px;
  }
}
@media (max-width: 980px) {
  .container {
    max-width: 760px;
  }
  .feature-grid {
    gap: 18px;
  }
  .content-wrapper {
    gap: 18px;
  }
}
@media (max-width: 840px) {
  .container {
    max-width: 96vw;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  h1 {
    font-size: 2rem;
    margin-bottom: 14px;
  }
  h2 {
    font-size: 1.3rem;
    margin-bottom: 16px;
  }
  h3 {
    font-size: 1.07rem;
    margin-bottom: 7px;
  }
  .hero .container {
    padding-top: 32px;
    padding-bottom: 32px;
  }
  .section {
    padding: 30px 4vw;
    margin-bottom: 38px;
  }
  header .container {
    gap: 12px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .main-nav {
    display: none;
  }
  .btn-primary, .btn-secondary {
    padding: 10px 16px;
    font-size: 1rem;
  }
  .router-link-exact-active {
    font-weight: bold;
  }
  .feature-grid {
    gap: 12px;
  }
  .content-wrapper, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .card {
    padding: 16px 11px;
    margin-bottom: 14px;
  }
  .testimonial-card {
    padding: 13px 10px 12px 13px;
    font-size: 0.98rem;
    border-left-width: 5px;
  }
  .feature-grid > div {
    min-width: 135px;
    padding: 14px 10px;
  }
  .blog-snippet, .blog-preview {
    padding: 15px 8px;
    font-size: 0.99rem;
  }
  .map-embed, .directions {
    padding: 10px 8px;
  }
  .cookie-modal {
    padding: 18px 8px 16px 12px;
    min-width: 98vw;
    max-width: 99vw;
  }
}
@media (max-width: 590px) {
  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .feature-grid > div {
    min-width: 110px;
    padding: 10px 5px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
}

/* --- Utility --- */
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-accent { color: var(--color-accent) !important; }

/* --- Accessibility --- */
a:focus, button:focus, .btn-primary:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
::-webkit-input-placeholder { color: #9ba6a9; }
::-moz-placeholder { color: #9ba6a9; }
:-ms-input-placeholder { color: #9ba6a9; }
::placeholder { color: #9ba6a9; }

/* --- Micro-interactions & Subtle Animations --- */
.btn-primary, .btn-secondary, .main-nav a, .mobile-nav a, .footer-nav a, .cookie-banner button, .cookie-modal-close {
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), border var(--transition), opacity var(--transition);
}
.card, .feature-grid > div, .testimonial-card, .blog-snippet, .blog-preview {
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.card:hover, .blog-preview:hover {
  box-shadow: 0 8px 36px 0 rgba(34,66,77,0.15);
  transform: translateY(-6px) scale(1.013);
  border-color: var(--color-accent);
}

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