/* RESET & BASE ----------------------------------------------------------- */
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, menu, 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 {
  box-sizing: border-box;
  font-size: 16px;
  height: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  background: #fff;
  color: #222;
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  background-color: #F6F4EF;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #17304F;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #111;
}

strong {
  font-weight: 700;
}

/* BRAND COLORS ----------------------------------------------------------- */
:root {
  --brand-primary: #17304F;
  --brand-secondary: #F6F4EF;
  --brand-accent: #D6AF48;
  --gray-900: #111111;
  --gray-700: #22262c;
  --gray-600: #5b5e64;
  --gray-400: #b8b9bc;
  --gray-200: #ededed;
  --white: #fff;
}

/* TYPOGRAPHY ------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: -0.01em;
  color: #111;
  font-weight: 700;
  margin-bottom: 18px;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.13;
  color: var(--brand-primary);
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  line-height: 1.18;
  color: var(--gray-900);
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--gray-700);
  margin-bottom: 11px;
}
h4, h5, h6 {
  font-size: 1.0625rem;
  color: var(--gray-600);
  margin-bottom: 8px;
}
p, ul, ol, blockquote {
  margin-bottom: 15px;
  font-size: 1rem;
  color: #222;
}
ul, ol {
  padding-left: 22px;
  margin-bottom: 18px;
}
ul {
  list-style: disc outside;
}
ol {
  list-style: decimal outside;
}
li {
  margin-bottom: 8px;
}
blockquote {
  font-size: 1.175rem;
  font-style: italic;
  border-left: 3px solid var(--brand-accent);
  padding-left: 18px;
  color: var(--gray-700);
  margin: 20px 0 20px 0;
}

/* CONTAINERS & LAYOUT ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  width: 100%;
  padding: 30px 0;
}
.text-section {
  max-width: 800px;
  margin: 0 auto;
}

/* FLEXBOX LAYOUTS -------------------------------------------------------- */
.card-container, .feature-grid, .service-list, .industry-grid, .team-member-list, .resource-list, .contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.feature-item, .service-item, .industry-item, .team-member, .resource-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--white);
  border-radius: 13px;
  box-shadow: 0 2px 11px 0 rgba(17, 17, 17, 0.07);
  padding: 24px 24px 22px 24px;
  min-width: 230px;
  flex: 1 1 250px;
  margin-bottom: 0;
  transition: box-shadow 0.18s, transform 0.21s;
  border: 1px solid var(--gray-200);
}
.feature-item:hover, .service-item:hover, .industry-item:hover, .team-member:hover, .resource-item:hover {
  box-shadow: 0 7px 32px 0 rgba(23,48,79,0.13);
  transform: translateY(-5px) scale(1.017);
  z-index: 2;
}

.card {
  margin-bottom: 20px;
  position: relative;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border-left: 4px solid var(--brand-accent);
  border-radius: 9px;
  box-shadow: 0 3px 18px 0 rgba(120,120,127,0.12);
  padding: 20px 30px;
  margin-bottom: 20px;
}
.testimonials .testimonial-card:last-child {
  margin-bottom: 0;
}
.testimonial-card p {
  color: #111;
  font-size: 1.08rem;
  font-style: italic;
  margin-bottom: 0;
  flex: 1;
}
.testimonial-card span {
  color: var(--gray-700);
  font-size: 0.97rem;
  margin-left: 12px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* NAVIGATION ------------------------------------------------------------- */
header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 19;
  width: 100%;
}
header .container {
  padding-top: 12px;
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  color: var(--gray-700);
  padding: 6px 7px;
  border-radius: 5px;
  position: relative;
  transition: color 0.17s, background 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--brand-primary);
  background: var(--gray-200);
}
.button.primary {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--brand-primary);
  color: #fff;
  padding: 11px 25px;
  border-radius: 23px;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  box-shadow: 0 2px 11px rgba(23,48,79,0.13);
  cursor: pointer;
  outline: none;
  transition: background 0.18s, color 0.13s, box-shadow 0.13s, transform 0.17s;
  margin-left: 10px;
  display: inline-block;
}
.button.primary:active, .button.primary:focus {
  box-shadow: 0 0 0 2px var(--brand-accent);
}
.button.primary:hover {
  background: var(--brand-accent);
  color: var(--brand-primary);
}

/* MOBILE NAVIGATION ------------------------------------------------------ */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--brand-primary);
  cursor: pointer;
  margin-left: 18px;
  padding: 6px 8px;
  border-radius: 7px;
  transition: background 0.15s;
  z-index: 32;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--gray-200);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(29,33,37,0.96);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(0.64,0.01,0.37,1.05);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 22px 25px 0 0;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: var(--brand-accent);
  cursor: pointer;
  z-index: 40;
  padding: 10px 15px;
  border-radius: 6px;
  transition: background 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #282828;
}
.mobile-nav {
  margin-top: 40px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding-left: 36px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.28rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 1px;
  padding: 10px 4px 10px 5px;
  transition: color 0.16s, background 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--brand-accent);
}

/* MAIN: HERO + SECTION STYLES ------------------------------------------- */
.hero {
  background: linear-gradient(127deg, var(--brand-secondary) 72%, #e9e9e9 100%);
  padding: 80px 0 70px 0;
  margin-bottom: 0;
}
.hero h1 {
  color: var(--brand-primary);
  font-size: 2.7rem;
  margin-bottom: 20px;
  line-height: 1.16;
}
.hero p {
  color: #333;
  font-size: 1.19rem;
  line-height: 1.6;
  margin-bottom: 27px;
}
.cta {
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 2px 13px 0 rgba(23,48,79,0.15);
  margin-bottom: 50px;
  padding: 50px 0;
}
.cta h2 {
  color: var(--brand-primary);
  margin-bottom: 8px;
}
.cta p {
  color: #222;
  margin-bottom: 22px;
}
.cta .button.primary {
  margin-left: 0;
  margin-top: 3px;
}

.legal {
  padding: 60px 0 70px 0;
}
.legal h1 {
  color: var(--brand-primary);
  margin-bottom: 11px;
}
.legal h2 {
  margin-bottom: 17px;
}
.legal h3 {
  margin-top: 24px;
  margin-bottom: 8px;
}

/* TEAM TAGS -------------------------------------------------------------- */
.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 8px;
}
.expertise-tags li {
  background: var(--brand-accent);
  color: #fff;
  font-size: 0.87rem;
  padding: 5px 11px;
  border-radius: 18px;
  font-family: 'Montserrat',Arial,sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  list-style: none;
  margin-bottom: 0;
}

/* CARDS & LISTS ---------------------------------------------------------- */
.team-member, .service-item, .industry-item, .resource-item, .feature-item {
  min-height: 180px;
}
.resource-list {
  margin-bottom: 28px;
}
.resource-item h3 {
  color: var(--brand-primary);
  font-size: 1.1rem;
}

div.map-placeholder {
  background: var(--gray-200);
  border-radius: 8px;
  padding: 22px 18px;
  margin: 18px 0 0 0;
  color: #222;
  min-height: 50px;
  font-size: 1.01rem;
}
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  align-items: center;
  margin-bottom: 24px;
}
.contact-details > div {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1.08rem;
  background: #fff;
  padding: 9px 18px;
  border-radius: 8px;
  box-shadow: 0 1px 5px 0 rgba(42,44,50,0.05);
}
.contact-details strong {
  color: var(--brand-primary);
  margin-right: 4px;
}
.contact-details a {
  color: var(--brand-primary);
  text-underline-offset: 2.5px;
}

/* FOOTER ----------------------------------------------------------------- */
footer {
  background: var(--brand-primary);
  color: #fff;
  padding: 35px 0 25px 0;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-nav a {
  color: var(--brand-accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.99rem;
  transition: color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
}
footer p {
  font-size: 0.98rem;
  color: var(--gray-200);
  margin-bottom: 0;
}
footer img {
  max-width: 44px;
  margin-right: 12px;
}

/* COOKIE CONSENT BANNER + MODAL ------------------------------------------ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--brand-primary);
  color: #fff;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  justify-content: space-between;
  padding: 24px 16px 22px 26px;
  box-shadow: 0 -4px 19px rgba(22,27,43,0.10);
  z-index: 200;
  font-size: 1rem;
  animation: fadeInSlideUp 0.51s;
}
@keyframes fadeInSlideUp {
  0% { opacity: 0; transform: translateY(50px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  color: #fff;
  flex: 2;
  margin-bottom: 0;
  font-size: 0.98rem;
}
.cookie-banner-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-banner .cookie-btn {
  border: none;
  padding: 9px 24px;
  border-radius: 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.99rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.13s;
}
.cookie-btn.accept {
  background: var(--brand-accent);
  color: var(--brand-primary);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #bb972a;
  color: var(--white);
}
.cookie-btn.reject {
  background: #fff;
  color: var(--brand-primary);
  border: 1.5px solid var(--brand-accent);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--gray-200);
}
.cookie-btn.settings {
  background: none;
  color: #fff;
  border: 1.5px solid #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: rgba(255,255,255,0.08);
}

/* COOKIE MODAL ----------------------------------------------------------- */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,23,30,0.85);
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  color: #222;
  border-radius: 15px;
  max-width: 400px;
  min-width: 250px;
  min-height: 160px;
  box-shadow: 0 7px 32px rgba(23,48,79,0.19);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: fadeInPop 0.3s;
}
@keyframes fadeInPop {
  from { opacity: 0; transform: scale(0.96) translateY(40px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--brand-primary);
  margin-bottom: 13px;
}
.cookie-categories {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1rem;
}
.cookie-category label {
  font-family: 'Roboto', Arial, sans-serif;
  color: #222;
  font-size: 1rem;
  cursor: pointer;
}
.cookie-category .category-toggle {
  margin-left: 4px;
  accent-color: var(--brand-accent);
}
.cookie-category[data-essential] label {
  color: var(--brand-accent);
  font-weight: bold;
  cursor: not-allowed;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}
.cookie-modal .cookie-btn {
  min-width: 100px;
}
.cookie-modal-close {
  position: absolute;
  top: 17px;
  right: 23px;
  font-size: 1.4rem;
  background: none;
  border: none;
  color: var(--gray-700);
  cursor: pointer;
  z-index: 220;
  padding: 4px 9px;
  border-radius: 6px;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--gray-200);
}

/* ANIMATIONS ------------------------------------------------------------- */
.button, .button.primary, .cookie-btn {
  transition: background 0.19s, color 0.15s, box-shadow 0.17s, transform 0.16s;
}

/* RESPONSIVE DESIGN ------------------------------------------------------ */
@media (max-width: 1024px) {
  .container {
    max-width: 900px;
  }
  .feature-grid, .service-list, .industry-grid, .team-member-list, .resource-list, .contact-details {
    gap: 14px;
  }
  .feature-item, .service-item, .industry-item, .team-member, .resource-item {
    padding: 18px 12px 16px 12px;
  }
}
@media (max-width: 828px) {
  .container {
    max-width: 99vw;
    padding-left: 12px;
    padding-right: 12px;
  }
  .feature-item, .service-item, .industry-item, .team-member, .resource-item {
    min-width: 180px;
    font-size: 0.97rem;
  }
  .footer-nav {
    gap: 10px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 62px 0 40px 0; }
  header .main-nav, header .button.primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .content-wrapper {
    gap: 15px;
  }
  .card-container, .feature-grid, .service-list, .industry-grid, .team-member-list, .resource-list, .contact-details {
    flex-direction: column;
    gap: 13px;
  }
  .feature-item, .service-item, .industry-item, .team-member, .resource-item {
    min-width: 100%;
    width: 100%;
    border-radius: 11px;
  }
  .testimonial-card, .contact-details > div {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 14px 14px 14px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
@media (max-width: 530px) {
  .hero {
    padding: 40px 0 30px 0;
  }
  .cta {
    padding: 18px 0;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 19px 7px 10px 14px;
    font-size: 0.96rem;
    gap: 13px;
  }
}
@media (max-width:440px) {
  h1 { font-size: 1.34rem; }
  h2 { font-size: 1.1rem; }
  .button, .button.primary { font-size: 0.93rem; }
  .footer-nav { font-size: 0.91rem; }
}

/* OTHER UTILS ------------------------------------------------------------ */
::-webkit-scrollbar {
  width: 7px;
  background: #eee;
}
::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 14px;
}

/* Print-compat: Hide nav/footer on print */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  .container {
    padding: 0;
    max-width: 100vw;
  }
}
