/* ========================================================================
   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;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background-color: #F9F9F6;
  color: #25251f;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============ CSS VARIABLES (with Fallbacks) ============== */
:root {
  --primary: #164C60;
  --secondary: #00A75D;
  --accent: #FFFFFF;
  --muted: #F1F3F1;
  --muted-dark: #D3D8CD;
  --serif: 'Georgia', 'Times New Roman', Times, serif;
  --sans: 'Roboto', Arial, sans-serif;
  --display: 'Montserrat', var(--serif);
  --shadow: 0 4px 20px rgba(22,76,96,0.08), 0 1.5px 6px rgba(0,0,0,0.06);
  --radius: 10px;
  --border: 1px solid #E4E7E0;
  --footer-bg: #EFEFE6;
}

/* ===========================================
   BASE TYPOGRAPHY & HIERARCHY (Elegant Classic)
   =========================================== */
body {
  font-family: var(--sans);
  font-size: 16px;
  color: #25251f;
  background: #F9F9F6;
  letter-spacing: 0.02em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.6rem;
  margin-bottom: 28px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 24px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p, li, ul {
  font-family: var(--sans);
  font-size: 1rem;
  color: #25251F;
  margin-bottom: 10px;
}
strong, b {
  font-weight: 600;
  color: var(--primary);
}

hr {
  border: none;
  border-top: 1px solid #E9E7DF;
  margin: 36px 0 30px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin: 24px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
table th, table td {
  padding: 14px 18px;
  text-align: left;
  font-size: 1rem;
}
table thead {
  background: var(--muted);
  font-family: var(--serif);
  color: var(--primary);
}
table th {
  font-weight: 700;
}
table tr:not(:last-child) td {
  border-bottom: 1px solid #ECEAE3;
}
table caption {
  caption-side: top;
  text-align: left;
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-family: var(--serif);
  color: var(--primary);
  font-weight: 600;
}

/* ===========================================
   LAYOUT CONTAINERS & SPACING
   =========================================== */
.container {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 18px;
  width: 100%;
}
.content-wrapper {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* Cards & grid layouts using Flexbox */
.card-container, .card-grid, .feature-grid, .service-list-grid, .team-grid, .industry-list, .news-teasers, .open-positions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card, .feature-item, .service-item, .team-member, .industry-item, .news-item, .position-item {
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 18px;
  border: var(--border);
  position: relative;
  flex: 1 1 260px;
  min-width: 260px;
  transition: box-shadow 0.23s cubic-bezier(.9,.01,.22,.99), transform .18s;
}
.card:hover, .feature-item:hover, .service-item:hover, .team-member:hover, .industry-item:hover, .news-item:hover, .position-item:hover {
  box-shadow: 0 7px 32px rgba(22,76,96,0.13), 0 2px 8px rgba(0,0,0,0.06);
  transform: translateY(-2px) scale(1.012);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.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;
}
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 36px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  margin-bottom: 20px;
  background: #F9F9F6;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(22,76,96,0.065);
  border: 1px solid #E7E2D8;
  min-width: 270px;
  flex: 1 1 270px;
}
.testimonial-card p {
  font-style: italic;
  color: #222;
  font-size: 1rem;
}
.testimonial-info span {
  font-family: var(--serif);
  font-size: .98rem;
  color: var(--primary);
  margin-right: 8px;
}
.client-logos {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 16px;
  margin-bottom: 12px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F6FAF8;
  border: 1px solid #E3ECE9;
}
.feature-item h3 {
  color: var(--primary);
}

.mini-stats {
  display: flex;
  gap: 32px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.mini-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #F4F7FA;
  border-radius: var(--radius);
  padding: 22px 18px;
}
.mini-stat h3 {
  color: var(--secondary);
  font-size: 2.2rem;
}
.mini-stat span {
  font-size: 1rem;
  color: var(--primary);
  font-family: var(--sans);
}

.text-section, .policy-text, .address-block, .apply-now-cta {
  margin-bottom: 30px;
}
.next-steps-suggestions ul, .faq-list, .resource-links {
  padding-left: 22px;
}

/* Links & Typography for Lists */
ul li {
  margin-bottom: 10px;
  line-height: 1.7;
  list-style-type: circle;
  margin-left: 18px;
}
ul.resource-links li, ul.faq-list li {
  list-style-type: disc;
  margin-left: 22px;
}
ul.faq-list li strong {
  font-family: var(--serif);
  color: var(--primary);
}

/* ===========================================
   HEADER & NAVIGATION
   =========================================== */
header {
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(22,76,96,0.03);
  border-bottom: 1px solid #E4E7E0;
  position: relative;
  z-index: 22;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  padding: 0 16px;
  height: 76px;
  min-height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  margin-right: 38px;
  height: 52px;
  transition: opacity .12s;
}
.logo img {
  height: 45px;
  margin-right: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--serif);
  font-size: 1.04rem;
  margin-left: 12px;
}
.main-nav a {
  color: var(--primary);
  padding: 5px 0;
  transition: color 0.12s, border-bottom 0.17s;
  border-bottom: 2px solid transparent;
  font-weight: 650;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 28px;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 10px 32px;
  margin-left: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(22,76,96,0.10);
  transition: background 0.19s, color 0.16s, transform .13s;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-2px) scale(1.025);
}

/* ============= Mobile Navigation =============== */
.mobile-menu-toggle {
  display: none;
  padding: 8px 14px;
  border-radius: 4px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 1.65rem;
  cursor: pointer;
  margin-left: 20px;
  z-index: 103;
  transition: background 0.13s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--secondary);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(22,76,96,0.92);
  color: #fff;
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.81,.01,.28,.99);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100vw;
  height: 100vh;
  padding: 0;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  align-self: flex-end;
  margin: 18px 26px 10px 0;
  cursor: pointer;
  z-index: 10002;
  transition: color 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100vw;
  margin-top: 40px;
  padding-left: 38px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.32rem;
  font-family: var(--serif);
  font-weight: 600;
  padding: 10px 0;
  transition: color 0.12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  background: linear-gradient(120deg, #F1F5F6 65%, #E7F4EC 100%);
  padding: 56px 0 30px 0;
  margin-bottom: 50px;
  border-bottom: 1px solid #E7E7DE;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  box-shadow: none;
  background: transparent;
  padding: 0;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.hero h1 {
  font-family: var(--serif);
  color: var(--primary);
  font-size: 2.7rem;
  margin-bottom: 18px;
}
.hero p {
  font-size: 1.16rem;
  margin-bottom: 24px;
  color: #38403B;
  font-family: var(--sans);
}
.hero .btn-primary {
  font-size: 1.18rem;
  padding: 12px 38px;
  margin-top: 12px;
}

/* =============================================
   SPECIAL PAGES
   ============================================= */
.certifications {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 22px;
  margin-bottom: 16px;
  font-size: .98rem;
  color: var(--primary);
  font-family: var(--serif);
}
.certifications img {
  height: 30px;
  width: auto;
  margin-right: 7px;
}

.apply-now-cta {
  background: #E7F4EC;
  padding: 20px 22px;
  border-radius: 10px;
  border-left: 4px solid var(--secondary);
  color: #164C60;
}
.apply-now-cta strong a {
  color: var(--primary);
  text-decoration: underline;
}
.next-steps-suggestions ul {
  padding-left: 18px;
  list-style: disc;
}

.address-block {
  background: #F4F8F3;
  border-left: 4px solid var(--primary);
  border-radius: 6px;
  padding: 16px 19px;
  margin: 18px 0 8px 0;
  font-size: 1rem;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.contact-details-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
}
.contact-details-list img {
  height: 22px;
  width: 22px;
  margin-right: 2px;
}

.map-embed {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}
.map-embed img {
  height: 42px;
  width: 42px;
}

.contact-cta p {
  font-size: 1.08rem;
  font-style: italic;
  margin-top: 10px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--footer-bg);
  border-top: 1px solid #E4E7E0;
  margin-top: 48px;
  padding: 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  padding: 32px 18px;
}
.footer-logo {
  margin-bottom: 6px;
  height: 38px;
}
.footer-logo img {
  height: 38px;
  width: auto;
}
.footer-menus {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
  font-size: 1rem;
}
.footer-menus nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--serif);
  color: var(--primary);
}
.footer-menus nav a {
  color: var(--primary);
  font-weight: 620;
  font-size: 1rem;
  transition: color .10s;
}
.footer-menus nav a:hover,
.footer-menus nav a:focus {
  color: var(--secondary);
  text-decoration: underline;
}
.contact-summary {
  font-size: 1rem;
  color: #25251F;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 4px 0 5px 0;
}
.contact-summary img {
  height: 18px;
  width: 18px;
}
.geo-note {
  font-size: .97rem;
  color: #737773;
  font-style: italic;
  margin-bottom: 6px;
}
.social-links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}
.social-links img {
  height: 33px;
  width: 33px;
  transition: filter .12s;
  filter: grayscale(20%) brightness(0.95);
  cursor: pointer;
}
.social-links img:hover {
  filter: none;
  opacity: .82;
}

/* =============================================
   COOKIE CONSENT BANNER & MODAL
   ============================================= */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: rgba(255,255,250, 0.97);
  box-shadow: 0 -2px 16px rgba(22,76,96,0.13);
  border-top: 1px solid #e7e2da;
  z-index: 30000;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  padding: 18px 18px 18px 26px;
  font-size: 0.99rem;
  transition: transform .32s cubic-bezier(.81,.01,.22,.95), opacity .23s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-consent-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-consent-banner p {
  color: #25251F;
  flex: 1 1 auto;
}
.cookie-button,
.cookie-settings-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 8px 24px;
  font-size: 1rem;
  margin-left: 10px;
  font-family: var(--serif);
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s, transform .13s;
}
.cookie-settings-btn {
  background: var(--secondary);
}
.cookie-button.reject {
  background: #A7042E;
}
.cookie-button:hover, .cookie-settings-btn:hover {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-1px) scale(1.02);
}
.cookie-button.reject:hover {
  background: #D44452;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  z-index: 31000;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(31, 46, 58, .42);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity .23s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-inner {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 7px 34px rgba(22,76,96,0.14);
  max-width: 420px;
  min-width: 310px;
  padding: 34px 38px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1rem;
  font-family: var(--sans);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 13px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--primary);
  margin-right: 2px;
}
.cookie-category .cookie-category-label {
  font-weight: 600;
  font-family: var(--serif);
}
.cookie-modal-buttons {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 15px; right: 20px;
  background: none;
  border: none;
  color: #636;
  font-size: 1.3rem;
  cursor: pointer;
}

/* =============================================
   RESPONSIVE DESIGN & MEDIA QUERIES
   ============================================= */
@media (max-width: 1200px) {
  .container {
    max-width: 98vw;
    padding: 0 12px;
  }
}
@media (max-width: 950px) {
  .container {
    max-width: 100vw;
    padding: 0 6px;
  }
  .main-nav {
    gap: 17px;
    font-size: 1rem;
  }
}
@media (max-width: 800px) {
  .content-wrapper, .section {
    margin-bottom: 35px;
    padding: 28px 12px;
  }
  .card, .feature-item, .service-item, .team-member, .industry-item {
    min-width: 210px;
    padding: 18px 12px;
  }
  .hero h1 {
    font-size: 2.1rem;
  }
  .hero {
    padding: 32px 0 22px 0;
  }
  h1 {
    font-size: 2.05rem;
  }
  h2 {
    font-size: 1.45rem;
  }
  .mini-stats {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  header .container {
    height: 62px;
    min-height: 62px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .footer-menus {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  .mini-stats {
    flex-direction: column;
    gap: 11px;
  }
  .card-container, .card-grid, .feature-grid, .service-list-grid, .team-grid, .industry-list, .news-teasers, .open-positions-list {
    flex-direction: column;
    gap: 20px;
  }
  .content-grid, .testimonials, .client-logos {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
@media (max-width: 600px) {
  .container, .content-wrapper, .section {
    padding: 0 3vw;
  }
  .content-wrapper {
    padding: 18px 3vw;
    margin-bottom: 22px;
  }
  .section {
    margin-bottom: 34px;
    padding: 18px 3vw;
  }
  .footer-menus {
    gap: 14px;
  }
  .cookie-modal-inner {
    max-width: 97vw;
    min-width: 80vw;
    padding: 18px 8vw 16px 7vw;
  }
}
@media (max-width: 500px) {
  h1 {
    font-size: 1.35rem;
  }
  h2 {
    font-size: 1.08rem;
  }
  .hero h1 {
    font-size: 1.32rem;
  }
}

/* =============================================
   MICRO-INTERACTIONS & TRANSITIONS
   ============================================= */
.btn-primary, .cookie-button, .cookie-settings-btn, .mobile-menu-toggle, .mobile-menu-close, .footer-menus nav a, .main-nav a, .mobile-nav a {
  transition: background .18s, color .12s, transform .13s, opacity .13s, border-bottom .17s;
}

.card, .feature-item, .service-item, .team-member, .industry-item, .news-item, .position-item {
  transition: box-shadow 0.23s, transform .18s;
}

footer .social-links img {
  transition: filter .16s, opacity .13s;
}

/* =============================================
   ACCESSIBILITY & SELECTION
   ============================================= */
:focus {
  outline: 2px dashed var(--secondary);
  outline-offset: 2px;
}
::-webkit-scrollbar {
  width: 11px;
  background: #F0F2F0;
}
::-webkit-scrollbar-thumb {
  background: #E2E5E2;
  border-radius: 12px;
}
::-webkit-input-placeholder { color: #B5B8B6; }
::-moz-placeholder { color: #B5B8B6; }
:-ms-input-placeholder { color: #B5B8B6; }
::placeholder { color: #B5B8B6; }

/* =============================================
   PRINT FRIENDLY (Optionally)
   ============================================= */
@media print {
  body, .content-wrapper, .section {
    background: #fff;
    color: #000;
  }
  .btn-primary, .btn-primary:visited {
    color: #fff !important;
    background: #444 !important;
  }
  header, .main-nav, .mobile-menu, footer, .cookie-consent-banner {
    display: none !important;
    height: 0 !important;
  }
}

/* ========================
   END OF STYLE SHEET
   ======================== */
