/* ===================
   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,
main, 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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background: #f8f8fa;
  color: #212432;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
table { border-collapse: collapse; }

/* ====================
   BASE TYPOGRAPHY
====================== */
:root {
  --primary: #14426b;
  --secondary: #f8f8fa;
  --accent: #b56422;
  --text: #212432;
  --muted: #757575;
  --card-bg: #ffffff;
  --border: #e3e6eb;
  --shadow: rgba(20,66,107,0.07);
  --radius: 8px;
  --serif: 'Merriweather', 'Georgia', serif;
  --sans: 'Montserrat', 'Roboto', Arial, sans-serif;
}
body {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.7;
  background: var(--secondary);
  color: var(--text);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--primary);
  line-height: 1.2;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.3rem; margin-bottom: 16px; color: var(--accent); }
h4 { font-size: 1.1rem; margin-bottom: 12px; }

p, li {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 14px;
}
strong {
  font-weight: 700;
}
small { font-size: 0.92rem; color: var(--muted); }
ul, ol {
  padding-left: 1.5em;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 8px;
  list-style: disc outside;
}

a {
  color: var(--primary);
  transition: color 0.18s;
}
a:hover,
a:focus {
  color: var(--accent);
  text-decoration: underline;
}

/* ===================
   CONTAINER & SECTIONS
===================== */
.container {
  width: 100%;
  max-width: 1090px;
  margin-left: auto;
  margin-right: auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

/* =================
   HEADER & NAVIGATION
================== */
header {
  background: #fff;
  box-shadow: 0 2px 22px var(--shadow);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 1000;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 1090px;
  margin: 0 auto;
  padding: 12px 20px 12px 18px;
  min-height: 72px;
}
.logo img {
  height: 38px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
}
.main-nav li {
  display: flex;
  align-items: center;
}
.main-nav a {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--primary);
  padding: 8px 6px;
  border-radius: 5px;
  position: relative;
  transition: background 0.14s, color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--accent);
  background: #f2f0ed;
}
.cta-button {
  background: var(--accent);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.09rem;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: var(--radius);
  border: none;
  box-shadow: 0 1px 8px rgba(181,100,34,0.06);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.2s, transform 0.11s;
  display: inline-block;
}
.cta-button:hover, .cta-button:focus {
  background: #8d491a;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 3px 16px rgba(181,100,34,0.17);
}

/* ===== MOBILE NAV ===== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--primary);
  cursor: pointer;
  margin-left: 14px;
  z-index: 1202;
}
.mobile-menu {
  display: none;
}
@media (max-width: 1024px) {
  nav {
    padding-right: 10px;
  }
  .main-nav { gap: 20px; }
}
@media (max-width: 900px) {
  .main-nav { gap: 12px; }
}
@media (max-width: 840px) {
  nav {
    gap: 12px;
  }
  .main-nav {
    display: none;
  }
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .mobile-menu {
    display: flex;
    position: fixed;
    left: 0; top: 0;
    height: 100vh;
    width: 100vw;
    background: rgba(20,66,107, .88);
    z-index: 1201;
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(.75,0,.18,1), opacity 0.25s;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    overflow-y: auto;
  }
  .mobile-menu.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
  }
  .mobile-menu-close {
    position: absolute;
    top: 22px;
    right: 22px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    z-index: 1302;
    transition: color 0.17s;
  }
  .mobile-menu-close:hover, .mobile-menu-close:focus {
    color: var(--accent);
  }
  .mobile-nav {
    margin-top: 65px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    padding: 0 36px;
  }
  .mobile-nav a {
    color: #fff;
    font-family: var(--serif);
    font-size: 1.23rem;
    font-weight: 500;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.11);
    transition: color 0.16s;
  }
  .mobile-nav a:last-child {
    border-bottom: none;
  }
  .mobile-nav a:hover, .mobile-nav a:focus {
    color: var(--accent);
    background: none;
  }
}

/* =====================
   HERO / HEAD SECTIONS
====================== */
.hero {
  background: linear-gradient(120deg, #f8f8fa 60%, #f2ebe3 100%);
  padding-top: 44px; padding-bottom: 44px;
  margin-bottom: 60px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 22px;
}
.hero h1 {
  font-size: 2.2rem;
}
.hero p {
  max-width: 510px;
  margin-left: auto;
  margin-right: auto;
}

/* =====================
   FLEXBOX PATTERNS
======================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 2px 16px var(--shadow);
  padding: 32px 22px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.21s;
}
.card:hover {
  box-shadow: 0 6px 32px rgba(20,66,107,0.14);
}
.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;
  background: #fff;
  color: var(--primary);
  gap: 20px;
  border-radius: 18px;
  padding: 20px 32px;
  margin-bottom: 28px;
  box-shadow: 0 2px 12px var(--shadow);
  min-width: 0;
  transition: box-shadow 0.17s;
  font-size: 1.08rem;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 24px rgba(20,66,107,0.21);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--card-bg);
  padding: 18px 16px;
  border-radius: 10px;
  box-shadow: 0 2px 12px var(--shadow);
}

/* CUSTOM FLEX CONTAINERS ON PAGES */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}
.feature {
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 1px 7px var(--shadow);
  flex: 1 1 210px;
  min-width: 210px;
  max-width: 265px;
  padding: 28px 18px 20px 18px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.18s, transform 0.16s;
}
.feature img { width: 46px; height: 46px; margin-bottom: 12px; }
.feature:hover {
  box-shadow: 0 6px 26px rgba(181,100,34,0.13);
  transform: translateY(-2px) scale(1.04);
}

.service-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 16px;
}
.service-highlights > div {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 7px var(--shadow);
  padding: 16px 20px;
  flex: 1 1 200px;
  min-width: 200px;
  transition: box-shadow 0.18s, transform 0.15s;
}
.service-highlights > div:hover {
  box-shadow: 0 6px 23px rgba(181,100,34,0.11);
  transform: translateY(-2px) scale(1.02);
}
.service-highlights h3 {
  color: var(--primary);
}

.address-snippet {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.13rem;
  margin-bottom: 16px;
}
.address-snippet img { width: 26px; height: 26px; }

.certificates, .certifications {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}
.certificates img, .certifications img { width: 38px; height: 38px; }

.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.team-member-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: flex-start;
  margin-top: 14px;
  margin-bottom: 24px;
}
.team-member {
  flex: 1 1 230px;
  min-width: 220px;
  max-width: 260px;
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 1px 7px var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 18px 20px 18px;
  gap: 14px;
  transition: box-shadow 0.18s, transform 0.11s;
}
.team-member img { width: 66px; height: 66px; }
.team-member h2 { margin-bottom: 0; font-size: 1.17rem; }
.team-member span {
  font-family: var(--sans);
  color: var(--muted);
  font-size: 0.99rem;
}
.team-member:hover {
  box-shadow: 0 6px 24px rgba(20,66,107,0.14);
  transform: translateY(-2px) scale(1.03);
}

.case-study-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 24px;
}
.case-study {
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 1px 7px var(--shadow);
  padding: 24px 18px 18px 18px;
  flex: 1 1 240px;
  min-width: 230px;
  max-width: 310px;
  transition: box-shadow 0.18s, transform 0.13s;
}
.case-study:hover {
  box-shadow: 0 8px 30px rgba(20,66,107,0.16);
  transform: translateY(-2px) scale(1.03);
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 30px;
}
.service {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px var(--shadow);
  padding: 26px 21px 18px 21px;
  flex: 1 1 235px;
  min-width: 225px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.18s, transform 0.16s;
  gap: 8px;
}
.service img { width: 48px; height: 48px; margin-bottom: 10px; }
.service:hover {
  box-shadow: 0 8px 32px rgba(181,100,34,0.14);
  transform: scale(1.03);
}

.consulting-fields ul, .value-statements {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.consulting-fields li, .value-statements li {
  background: #fff;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 1rem;
  box-shadow: 0 1px 5px var(--shadow);
  display: flex;
  align-items: center;
  gap: 9px;
}
.value-statements img { width: 25px; height: 25px; margin-right: 6px; }

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-bottom: 20px;
}
.contact-details > div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.08rem;
}
.contact-details img { width: 26px; height: 26px; }

.hours-table {
  width: 100%;
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 1px 7px var(--shadow);
  margin-top: 12px;
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: 1.07rem;
}
.hours-table td {
  padding: 13px 10px;
  border-bottom: 1px solid #ececec;
}
.hours-table tr:last-child td {
  border-bottom: none;
}

.map-hint {
  display: flex;
  align-items: center;
  gap: 28px;
  background: #fff;
  border-radius: 9px;
  box-shadow: 0 1px 8px var(--shadow);
  padding: 18px 24px;
}
.map-hint p {
  margin-bottom: 0;
}
.map-hint img {
  width: 54px;
  height: 54px;
}

.blog-overview {
  margin-bottom: 20px;
}
.categories {
  margin-bottom: 18px;
}
.categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}
.categories li {
  background: #fff;
  color: var(--primary);
  border-radius: 7px;
  padding: 7px 13px;
  font-size: 1rem;
  box-shadow: 0 1px 4px var(--shadow);
}
.featured-article {
  background: #fff;
  border-left: 5px solid var(--accent);
  border-radius: 9px;
  box-shadow: 0 1px 8px var(--shadow);
  padding: 16px 24px;
  margin-bottom: 20px;
}
.featured-article h2 {
  font-size: 1.18rem;
  color: var(--accent);
}
.featured-article a {
  color: var(--primary);
  font-weight: 600;
  transition: color .17s;
}
.featured-article a:hover { color: var(--accent); }

.post-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 8px;
}
.post-list h3 a {
  color: var(--primary);
  text-decoration: underline;
  transition: color .16s;
}
.post-list h3 a:hover { color: var(--accent); }

/* ===================
   FOOTER
===================== */
footer {
  background: var(--primary);
  color: #fff;
  padding: 48px 0 0 0;
  font-family: var(--serif);
}
footer p {
  color: white;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1090px;
  margin: 0 auto;
  padding: 0 20px 32px 20px;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  flex: 1 1 230px;
}
.footer-brand img {
  width: 118px;
  margin-bottom: 6px;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 2px;
}
.footer-menu a {
  color: #fff;
  font-size: 1rem;
  opacity: 0.95;
  transition: color 0.18s, text-decoration 0.21s;
}
.footer-menu a:hover { color: var(--accent); text-decoration: underline; }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 1.02rem;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 6px;
}
.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
}
.footer-social a img {
  width: 28px;
  height: 28px;
  transition: filter .19s, transform .16s;
  filter: grayscale(12%);
}
.footer-social a:hover img {
  filter: grayscale(0%);
  transform: scale(1.09) rotate(-6deg);
}

@media (max-width: 900px) {
  .footer-content {
    flex-direction: column;
    gap: 27px;
    padding: 0 15px 25px 15px;
  }
  .footer-brand img { width: 86px; }
}

/* =============================
   COOKIE CONSENT BANNER & MODAL
=============================== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  z-index: 9999;
  background: #fff;
  color: var(--primary);
  border-top: 1px solid #e7e3e1;
  box-shadow: 0 -3px 22px rgba(20,66,107,0.10);
  padding: 18px 18px 18px 22px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  justify-content: space-between;
  transition: transform 0.32s cubic-bezier(.64,0,0,1) 0.07s, opacity 0.28s;
  opacity: 1;
  transform: translateY(0);
  font-family: var(--serif);
}
#cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
}
#cookie-banner p {
  font-size: 1rem;
  margin-bottom: 0;
  color: var(--primary);
}
#cookie-banner .cookie-buttons {
  display: flex;
  gap: 13px;
  align-items: center;
}
.cookie-btn {
  background: var(--accent);
  color: #fff;
  font-family: var(--serif);
  font-size: 1rem;
  border: none;
  border-radius: 7px;
  padding: 8px 19px;
  margin: 0 2px;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, box-shadow .16s;
  box-shadow: 0 2px 7px var(--shadow);
}
.cookie-btn.secondary {
  background: #f8f8fa;
  color: var(--primary);
  border: 1px solid #e7e3e1;
  font-weight: 600;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #8d491a;
  color: #fff;
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: #f2ebe3;
  color: var(--accent);
}

#cookie-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10000;
  background: rgba(20,66,107,0.50);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
#cookie-modal.open {
  display: flex;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 50px rgba(20,66,107,0.19);
  max-width: 390px;
  width: 98%;
  padding: 32px 24px 26px 24px;
  text-align: left;
  color: var(--primary);
  font-family: var(--serif);
  animation: popin 0.34s cubic-bezier(.6,0,.2,1);
}
@keyframes popin {
  from { opacity: 0; transform: scale(0.92) translateY(30px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal-content h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.21rem;
  color: var(--accent);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 11px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--accent);
}
#cookie-modal .modal-actions {
  margin-top: 16px;
  display: flex;
  gap: 11px;
  justify-content: flex-end;
}

/* ============
   UTILITY
============ */
.mt-32 { margin-top: 32px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mt-16 { margin-top: 16px !important; }
.mb-16 { margin-bottom: 16px !important; }
.gap-16 { gap: 16px !important; }

/* =====================
   RESPONSIVE DESIGN
====================== */
@media (max-width: 1100px) {
  .container { max-width: 93vw; }
  nav { max-width: 98vw; }
  .footer-content { max-width: 97vw; }
}
@media (max-width: 900px) {
  .container { max-width: 99vw; }
  .feature-grid, .service-list, .case-study-cards, .team-member-grid {
    gap: 16px;
  }
  .feature, .service, .case-study, .team-member {
    min-width: 160px;
    max-width: 94vw;
    flex: 1 1 150px;
  }
}
@media (max-width: 768px) {
  body { font-size: 15px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.05rem; }
  .container { padding-left: 0px; padding-right: 0px; }
  .card-container, .content-grid, .feature-grid, .service-list, .case-study-cards, .testimonial-slider, .team-member-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature, .service, .case-study, .team-member {
    max-width: 100%;
    margin-right: 0;
    min-width: 0;
  }
  .hero .content-wrapper {
    align-items: flex-start;
    text-align: left;
  }
  .service-highlights {
    flex-direction: column;
    gap: 16px;
  }
  .contact-details {
    flex-direction: column;
    gap: 13px;
    align-items: flex-start;
  }
  .testimonial-slider {
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column !important;
    gap: 19px;
    align-items: flex-start;
  }
  .map-hint { flex-direction: column; gap: 11px; padding: 12px 14px; }
}
@media (max-width: 500px) {
  html { font-size: 95%; }
  .container { padding: 0 4px; }
  .section { padding: 18px 4px; }
  .footer-content { padding: 0 2px 10px 2px; }
  #cookie-banner { flex-direction: column; align-items: flex-start; gap: 14px; padding: 13px 6px 10px 10px; }
  .cookie-modal-content { padding: 20px 6vw; }
}
/* =====================
   TABLES
====================== */
table {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 7px var(--shadow);
  margin-bottom: 18px;
}
th, td {
  padding: 13px 11px;
  text-align: left;
  font-size: 1.03rem;
  font-family: var(--serif);
  color: var(--text);
}
th {
  background: #f8f8fa;
  font-weight: 700;
}

/* ====================
   INTERACTIONS & FOCUS
======================= */
:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  z-index: 2;
}
button[tabindex="-1"]:focus { outline: none; }

/* ===================
   CUSTOM SCROLLBAR
==================== */
::-webkit-scrollbar {
  width: 12px;
  background: #f8f8fa;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb {
  background: #e8e7e3;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d6d2c3;
}

/* ==========
   MISC
========== */
.text-section {
  margin-bottom: 24px;
}
.text-section h2 { color: var(--accent); font-size: 1.17rem; margin-top: 14px; }

.address, .phone, .email {
  color: var(--primary); font-size: 1.04rem;
}

/* =======
  PRINT
======= */
@media print {
  header, footer, #cookie-banner, .mobile-menu { display: none !important; }
  body { background: #fff; color: #122031; }
}
