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

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #234159;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #234159;
  text-decoration: none;
  transition: color 0.2s;
}
ol, ul {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ==============================
   1. BRAND COLOR VARIABLES
   ============================== */
:root {
  --primary: #234159;
  --secondary: #E1E7EC;
  --accent: #EDC155;
  --text: #234159;
  --background: #fff;
  --border: #E1E7EC;
  --shadow: 0 2px 16px rgba(35,65,89,0.05);
  --shadow-elevated: 0 4px 32px rgba(35,65,89,0.09);
  --radius: 12px;
}

/* ==============================
   2. TYPOGRAPHY
   ============================== */
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--background);
  font-size: 16px;
  letter-spacing: 0.05em;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
h1 {font-size: 2.25rem; line-height: 1.13; margin-bottom: 16px;}
h2 {font-size: 1.5rem; line-height: 1.21; margin-bottom: 12px;}
h3 {font-size: 1.125rem; line-height: 1.4; margin-bottom: 8px;}
h4 {font-size: 1rem; line-height: 1.5; margin-bottom: 8px;}

p, ul, ol {
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}
strong, b {
  font-weight: 700;
  color: var(--primary);
}

/* ==============================
   3. CONTAINER & GRID FLEX LAYOUTS
   ============================== */
.container {
  width: 100%;
  margin: 0 auto;
  max-width: 1100px;
  padding: 0 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.content-wrapper.text-section,
.text-section {
  max-width: 760px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: 28px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
}

.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;
  flex-direction: column;
  align-items: flex-start;
  background: var(--secondary);
  color: var(--primary);
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  max-width: 480px;
  border-left: 4px solid var(--accent);
}
.testimonial-card p {
  color: var(--primary);
  font-style: italic;
  margin-bottom: 6px;
}
.testimonial-details span {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 4px;
  display: block;
}
.testimonial-details strong {
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 18px 20px 18px;
  min-width: 210px;
  flex: 1 1 210px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-item:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-3px);
}
.feature-item img {
  width: 40px;
  height: 40px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}

.quality-statements,
.usp-badges,
.benefits-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 16px 0 0 0;
}
.usp-badges span,
.benefits-grid span {
  background: var(--secondary);
  color: var(--primary);
  border-radius: 16px;
  padding: 6px 16px;
  font-size: 0.93rem;
  font-weight: 500;
  border: 1px solid var(--border);
}

.projects-list, .team-grid, .job-listings {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.project-summary, .team-member, .job-listing {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  min-width: 220px;
  max-width: 350px;
  flex: 1 1 220px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.project-summary h3,
.team-member h3,
.job-listing h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.contact-details {
  background: var(--secondary);
  border-radius: var(--radius);
  padding: 18px 16px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-details img {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-right: 6px;
  opacity: 0.84;
}

.map-embed {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 14px;
  margin: 12px 0;
  font-size: 1rem;
  box-shadow: var(--shadow);
}

.client-logos {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 24px;
}
.client-logos img {
  width: 80px;
  height: auto;
}

/* ==============================
   4. BUTTONS & CALL TO ACTIONS
   ============================== */
.cta, .cta.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 145px;
  padding: 12px 28px;
  border-radius: 24px;
  border: none;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: center;
  transition: background 0.22s, color 0.16s, box-shadow 0.18s, transform 0.22s;
  outline: none;
  margin-top: 4px;
  background: var(--secondary);
  color: var(--primary);
}
.cta.primary, a.cta.primary {
  background: var(--primary);
  color: #fff !important;
}
.cta.primary:hover,
.cta.primary:focus {
  background: #1b3142;
  color: #fff;
  box-shadow: var(--shadow-elevated);
}
.cta:hover,
.cta:focus {
  background: #eef2f6;
  color: var(--primary);
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-elevated);
}
a.cta, button.cta {
  text-decoration: none;
  border: none;
}

/* ==============================
   5. HEADER + NAVIGATION
   ============================== */
header {
  width: 100%;
  background: #fff;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 40;
}
.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 18px 0 18px 0;
}
.desktop-nav img {
  height: 38px;
  margin-right: 22px;
}
.desktop-nav a {
  font-size: 1rem;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  color: var(--primary);
  padding: 7px 14px;
  border-radius: 18px;
  transition: background 0.16s, color 0.16s;
}
.desktop-nav a:hover, .desktop-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.desktop-nav a.cta.primary {
  margin-left: auto;
}
@media (max-width: 1150px) {
  .desktop-nav {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* Hamburger Button */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  border-radius: 16px;
  font-size: 2rem;
  height: 44px;
  width: 44px;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  transition: background 0.18s;
  z-index: 60;
  cursor: pointer;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--accent);
  color: var(--primary);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(35,65,89,0.96);
  box-shadow: 0 6px 60px rgba(35,65,89,0.15);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.62,0.05,0.36,1.0);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  color: #fff;
  border: none;
  font-size: 2rem;
  align-self: flex-end;
  margin: 18px 18px 0 0;
  cursor: pointer;
  transition: color 0.15s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 48px 0 0 0;
  padding: 0 32px;
  align-items: flex-start;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 9px 8px;
  border-radius: 12px;
  transition: background 0.13s, color 0.13s;
  width: 100%;
  min-width: 180px;
  display: inline-block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--primary);
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    position: absolute;
    right: 18px;
    top: 13px;
  }
}
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ==============================
   6. HERO SECTIONS
   ============================== */
.hero {
  padding: 48px 0 32px 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  margin-bottom: 60px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.hero h1,
.hero h2 {
  text-shadow: 0 2px 8px rgba(35,65,89,0.04);
}
.hero a.cta {
  margin-top: 10px;
}

@media (max-width: 650px) {
  .hero .container {
    min-height: 200px;
  }
}

/* ==============================
   7. FOOTER
   ============================== */
footer {
  background: #f9fafb;
  border-top: 1px solid var(--border);
  color: var(--text);
  padding: 0 0 26px 0;
  margin-top: 80px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 32px;
}
.footer-nav {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.footer-nav nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: var(--primary);
  font-size: 1rem;
  padding: 2px 0;
  opacity: 0.94;
  border-radius: 8px;
  transition: color 0.13s, background 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--accent);
  color: var(--primary);
  opacity: 1;
}
.footer-info {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin: 0 0 8px 0;
}
.footer-info img {
  width: 42px;
  margin-top: 0;
}
.footer-info p {
  margin-bottom: 2px;
  font-size: 0.98rem;
}
.footer-copyright {
  text-align: left;
  color: #6f7c86;
  font-size: 0.98rem;
  margin-top: 12px;
}

@media (max-width: 768px) {
  .footer-nav {
    flex-direction: column;
    gap: 16px;
  }
  .footer-info {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}

/* ==============================
   8. COOKIE CONSENT BANNER
   ============================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 18px rgba(35,65,89,0.06);
  padding: 24px 16px 24px 16px;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  transition: transform 0.38s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner p {
  color: #234159;
  font-size: 1rem;
  max-width: 560px;
  margin: 0;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
}
.cookie-banner .cookie-btn {
  padding: 8px 22px;
  border-radius: 16px;
  border: none;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, box-shadow 0.13s;
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner .cookie-btn.accept {
  background: var(--primary);
  color: #fff;
}
.cookie-banner .cookie-btn.reject {
  background: #fffbe9;
  color: #d69a09;
  border: 1px solid #eed257;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 2px 8px #eddba0;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    padding: 24px 8px;
    align-items: flex-start;
  }
  .cookie-banner .cookie-actions {
    gap: 10px;
  }
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35,65,89,0.39);
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.cookie-modal.open {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal-dialog {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-elevated);
  max-width: 410px;
  width: 94vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: slideInModal 0.38s cubic-bezier(0.78,0.01,0.19,0.99);
}
@keyframes slideInModal {
  0% { transform: translateY(32px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-modal-dialog h3 { font-size: 1.18rem; }
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 8px 0 12px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}
.cookie-category input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  border-radius: 5px;
}
.cookie-category label {
  color: var(--primary);
}
.cookie-category.essential label {
  font-weight: 700;
  color: #234159;
}
.cookie-category.essential input[type='checkbox'] {
  accent-color: var(--secondary);
  pointer-events: none;
}
.cookie-modal-dialog .cookie-btn {
  min-width: 120px;
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 22px;
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.7rem;
  cursor: pointer;
  z-index: 1;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: var(--accent);
}

/* ==============================
   9. RESPONSIVE FLEX LAYOUTS
   ============================== */
@media (max-width: 1020px) {
  .feature-grid, .projects-list, .team-grid, .job-listings {
    flex-direction: column;
    gap: 20px;
  }
  .project-summary, .team-member, .job-listing, .feature-item {
    max-width: 100%;
  }
}
@media (max-width: 900px) {
  .card-container, .testimonial-slider, .quality-statements, .usp-badges, .benefits-grid, .client-logos, .footer-info {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 38px;
  }
  .container {
    padding: 0 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-slider {
    flex-direction: column;
    gap: 16px;
  }
}

/* ==============================
   10. ADDITIONAL STYLES & UTILITIES
   ============================== */
html { scroll-behavior: smooth; }
main { width: 100vw; overflow-x: hidden; }

ul li::before {
  content: '•';
  color: var(--accent);
  margin-right: 8px;
  font-size: 1.1em;
  vertical-align: middle;
  display: inline-block;
}
.feature-item ul li::before,
.team-member ul li::before,
.job-listing ul li::before {
  color: var(--accent);
}
ul, ol {
  padding-left: 0;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

/* Visually hide elements for accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

/* ==============================
   11. TRANSITIONS & MICRO-INTERACTIONS
   ============================== */
.card, .feature-item, .testimonial-card, .cta, .cta.primary, a.cta, button.cta {
  transition: box-shadow 0.2s, background 0.18s, color 0.18s, transform 0.18s;
}
a, .mobile-nav a, .footer-nav a {
  transition: background 0.13s, color 0.13s;
}
.card:active, .feature-item:active {
  transform: scale(0.98);
}

/* ==============================
   12. SPECIAL FLEX SPACING FOR ALL PAGES
   ============================== */
.section, .feature-grid, .projects-list, .testimonial-slider, .job-listings, .team-grid, .card-container, .card {
  margin-bottom: 20px;
}

/* ==============================
   13. CONTACT CTA
   ============================== */
.contact-cta {
  background: var(--secondary);
  border-radius: var(--radius);
  margin-bottom: 50px;
  padding: 38px 18px;
  text-align: left;
}
.contact-cta h2 {
  margin-bottom: 14px;
}
.contact-cta p {
  margin: 6px 0;
  display: flex;
  align-items: center;
  gap: 7px;
}
.contact-cta img {
  width: 20px;
  height: 20px;
}

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


/* ==============================
   15. FOCUS STATES (Accessibility)
   ============================== */
a:focus, button:focus, .cookie-btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  background: #fffde7;
}

/* ==============================
   16. PLACEHOLDER JS HOOKS (hide/show)
   ============================== */
[hidden] {display: none !important;}

/* End CSS */
