/* ==========================================================================
   RESET & NORMALIZE (mobile first, cross-browser)
   ========================================================================== */
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: #f5f7fa;
  min-height: 100vh;
  color: #1a2633;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: #275778;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #FFD900;
  outline-offset: 2px;
}

/* =========================
   TYPOGRAPHY & PALETTE
   ========================= */
:root {
  --color-primary: #275778;
  --color-secondary: #FFD900;
  --color-accent: #FFFFFF;
  --color-text: #1a2633;
  --color-bg: #f5f7fa;
  --color-card: #ffffff;
  --color-subtle: #e5eaf0;
  --color-shadow: rgba(39,87,120,0.07);
  --color-border: #d1d6dd;
  --color-heading: #233142;
  --color-link-hover: #16324b;
}

body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  background: var(--color-bg);
  color: var(--color-text);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  color: var(--color-heading);
  font-weight: 700;
  margin-bottom: 18px;
}
h1 { font-size: 2.25rem; line-height: 1.15; margin-bottom: 28px; }
h2 { font-size: 1.5rem; margin-bottom: 22px; }
h3 { font-size: 1.125rem; font-weight: 600; }
h4, h5, h6 { font-weight: 500; }

p, li, ul, ol, blockquote {
  font-size: 1rem;
  color: var(--color-text);
}

blockquote {
  font-style: italic;
  color: #234566;
  margin: 0 0 8px 0;
  padding-left: 16px;
  border-left: 3px solid var(--color-primary);
}

strong {
  font-weight: bold;
  color: var(--color-primary);
}

small {
  font-size: 0.93em;
  color: #5a6a83;
}

/* =========================
   CONTAINERS & LAYOUTS
   ========================= */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

.card-container, .card-grid, .blog-list, .team-list, .case-list, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: var(--color-card);
  box-shadow: 0 2px 10px var(--color-shadow);
  border-radius: 14px;
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  min-width: 250px;
  flex: 1 1 260px;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .team-list > div:hover, .service-list > div:hover, .blog-list > div:hover {
  box-shadow: 0 6px 26px rgba(39,87,120,0.12);
  transform: translateY(-3px) scale(1.015);
  z-index: 1;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e7ef;
  box-shadow: 0 1px 5px rgba(32,60,88,0.08);
  padding: 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
}
.testimonial-card blockquote {
  color: #2c4057;
  font-style: italic;
}
.testimonial-card strong {
  color: var(--color-primary);
  font-size: 1.07em;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: stretch;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.text-section {
  max-width: 700px;
  margin: 0 auto;
}

/* =========================
   NAVIGATION (DESKTOP)
   ========================= */
header {
  background: var(--color-accent);
  box-shadow: 0 2px 10px var(--color-shadow);
  position: relative;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 14px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
.main-nav a {
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.17s, color 0.2s;
}
.main-nav a.btn-primary {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  padding: 8px 20px;
  margin-left: 16px;
  box-shadow: 0 2px 6px rgba(39,87,120,0.11);
  border: none;
  letter-spacing: 0.5px;
}
.main-nav a:hover, .main-nav a:focus {
  background: #eaf1fa;
  color: var(--color-link-hover);
}
.main-nav a.btn-primary:hover, .main-nav a.btn-primary:focus {
  background: #16324b;
  color: #fff;
}

/* Burger menu button */
.mobile-menu-toggle {
  display: flex;
  font-size: 2rem;
  color: var(--color-primary);
  background: none;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  align-items: center;
  transition: background .18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #eaf1fa;
}

/* =========================
   MOBILE MENU
   ========================= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(39,87,120, 0.95);
  color: #fff;
  z-index: 98;
  transform: translateX(-102vw);
  transition: transform 0.35s cubic-bezier(0.74,0.2,0.5,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0;
  visibility: hidden;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: all;
}

.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 22px 8px 0;
  font-size: 2rem;
  color: #FFD900;
  background: none;
  border: none;
  cursor: pointer;
  padding: 7px 14px;
  border-radius: 50%;
  transition: background .18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(255,255,255,0.08);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 30px 30px 0 30px;
  gap: 18px;
  font-family: 'Montserrat', 'Roboto', sans-serif;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.18rem;
  padding: 12px 0 10px 0;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.16s, color 0.16s;
  margin-bottom: 4px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #1a2633;
  color: #FFD900;
  text-decoration: underline;
}

/* Hide desktop nav on mobile, show mobile toggle */
@media(max-width: 1000px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media(min-width: 1001px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* =========================
   HERO SECTIONS
   ========================= */
.hero {
  background: linear-gradient(140deg, #eaf1fa 72%, #f5f7fa 100%);
  padding: 40px 0 36px 0;
  margin-bottom: 60px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.hero h1 {
  color: var(--color-primary);
  font-size: 2.5rem;
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.hero p {
  font-size: 1.20rem;
  color: #2c4057;
}

/* =========================
   BUTTONS
   ========================= */
.btn-primary, a.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  border: none;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 1.11rem;
  box-shadow: 0 2px 8px rgba(39,87,120,0.09);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow .22s;
  margin-top: 4px;
  letter-spacing: 0.6px;
}
.btn-primary:hover, .btn-primary:focus, a.btn-primary:hover, a.btn-primary:focus {
  background: #16324b;
  color: #FFD900;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 24px rgba(39,87,120,0.16);
}

.btn-link, a.btn-link {
  color: var(--color-primary);
  font-weight: 600;
  padding-left: 0;
  background: none;
  border: none;
  font-family: inherit;
  transition: color 0.18s;
}
.btn-link:hover, .btn-link:focus, a.btn-link:hover, a.btn-link:focus {
  color: var(--color-link-hover);
  text-decoration: underline;
}

/* =========================
   LISTS
   ========================= */
ul, ol {
  margin-left: 21px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
ul li, ol li {
  position: relative;
  padding-left: 0.7em;
}
ul li img, ol li img {
  width: 22px; height: 22px; vertical-align: middle; margin-right: 7px;
  margin-top: -3px;
}

ol {
  list-style-type: decimal;
}
ul {
  list-style-type: disc;
}

/* =========================
   BLOG & TEAM LISTS, CARDS
   ========================= */
.blog-list > div, .case-list > div, .service-list > div, .team-list > div {
  background: var(--color-card);
  box-shadow: 0 1px 8px rgba(39,87,120,0.07);
  border: 1px solid var(--color-border);
  border-radius: 13px;
  padding: 28px 22px 22px 22px;
  flex: 1 1 270px;
  min-width: 245px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .13s, transform .14s;
}

/* =========================
   FAQ
   ========================= */
.faq {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq h3 {
  margin: 0 0 6px 0;
  color: var(--color-primary);
  font-size: 1.08rem;
}

/* =========================
   FOOTER
   ========================= */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 0;
  margin-top: 80px;
  font-size: 1rem;
}
footer a { color: #FFD900; font-weight: 500; }
footer a:hover, footer a:focus { color: #fff; text-decoration: underline; }
footer .container {
  padding: 28px 18px;
}
footer .content-wrapper {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 34px;
  flex-wrap: wrap;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  min-width: 200px;
}
.footer-nav a {
  color: #FFD900;
  font-size: 1.01rem;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  padding: 2px 0;
  border-radius: 4px;
  transition: color 0.17s, background 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
  background: #264f6e;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 140px;
  font-size: 1.1rem;
  text-align: center;
}
.brand img {
  width: 85px; height: auto;
}
.footer-contact {
  font-size: 0.99rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  color: #fff;
}
.footer-contact img {
  width: 20px; height: 20px; margin-right: 5px; vertical-align: middle;
}

/* =========================
   MAP PLACEHOLDER (Contact)
   ========================= */
.map-placeholder {
  border-radius: 11px;
  background: #eaf1fa;
  border: 1px solid #d3d9e2;
  margin-top: 14px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-placeholder img {
  width: 220px;
  height: auto;
  opacity: 0.85;
}

/* =========================
   UTILITIES
   ========================= */
.img-round {
  border-radius: 50%;
  border: 2px solid #d7e7fa;
  width: 58px; height: 58px;
}
.text-center {
  text-align: center;
}

/* =========================
   COOKIE CONSENT BANNER
   ========================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  background: #fff;
  box-shadow: 0 -2px 16px 0 rgba(32, 60, 88, 0.13);
  color: #1a2633;
  display: flex;
  align-items: center;
  flex-direction: row;
  padding: 20px 24px 20px 18px;
  gap: 18px;
  font-size: 1rem;
  border-top: 1px solid #e9ecf2;
  max-width: 100vw;
  transition: transform 0.4s cubic-bezier(.7,.02,.38,.86);
}
.cookie-banner.hide {
  transform: translateY(130%);
}
.cookie-banner__info {
  flex: 1 1 0;
  font-size: 1rem;
  color: var(--color-heading);
}
.cookie-banner__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn, .cookie-banner .btn-primary {
  padding: 10px 22px;
  border-radius: 5px;
  border: none;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.19s, color 0.14s, box-shadow 0.16s;
}
.cookie-btn.accept {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #16324b;
  color: #FFD900;
}
.cookie-btn.reject {
  background: #f5f7fa;
  color: #1a2633;
  border: 1px solid #c8d2e2;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #eaf1fa;
  color: #1a2633;
}
.cookie-btn.settings {
  background: #FFD900;
  color: #233142;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #ffe24a;
  color: #275778;
}

/* Cookie modal overlay */
.cookie-modal__overlay {
  position: fixed;
  z-index: 120;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(39,87,120, .36);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: opacity 0.18s;
}
.cookie-modal__body {
  background: #fff;
  min-width: 320px;
  max-width: 97vw;
  border-radius: 11px 11px 0 0;
  box-shadow: 0 8px 32px rgba(39,87,120,0.16);
  padding: 32px 24px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 0;
  animation: popup-slideup 0.34s cubic-bezier(.74,.22,.49,1);
}
@keyframes popup-slideup {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.cookie-modal__header h2 {
  font-size: 1.18rem;
  margin-bottom: 0;
}
.cookie-modal__close {
  background: none;
  border: none;
  color: #275778;
  font-size: 1.4rem;
  padding: 0 5px;
  align-self: flex-end;
  cursor: pointer;
  transition: background .15s;
  border-radius: 6px;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  background: #eaf1fa;
}
.cookie-modal__group {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e9f0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
}
.cookie-modal__group:last-child {
  border-bottom: none;
}
.cookie-modal__group label {
  font-weight: 500;
  color: #275778;
}
.cookie-modal__group input[type="checkbox"] {
  accent-color: #275778;
  width: 18px; height: 18px;
  margin-right: 7px;
}
.cookie-modal__desc {
  color: #35455f;
  font-size: 0.97rem;
}

/* =========================
   RESPONSIVENESS
   ========================= */
@media (max-width: 1100px) {
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  .container { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 768px) {
  .container { padding: 0 4vw; }
  .section { margin-bottom: 40px; padding: 28px 10px; }
  .content-wrapper, .text-section {
    gap: 22px;
  }
  .content-grid, .card-container, .blog-list, .team-list, .case-list, .service-list, .footer-nav {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .footer-nav {
    flex-direction: column;
    gap: 8px;
  }
  .footer-contact, .brand {
    align-items: flex-start;
    text-align: left;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.98rem;
    padding: 20px 8vw;
  }
  .cookie-banner__actions {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  .cookie-modal__body {
    min-width: unset;
    padding: 18px 8px 18px 8px;
  }
}
@media (max-width: 470px) {
  .container { padding: 0 2vw; }
  .section { padding: 18px 3px; }
  .brand img { width: 60px; }
  .footer-contact img { width: 14px; }
  .card, .blog-list > div, .team-list > div, .case-list > div, .service-list > div {
    min-width: 90vw;
    padding: 16px 7px;
  }
  .hero h1 { font-size: 1.25rem; }
}

/* =========================
   MICROINTERACTIONS & TRANSITIONS
   ========================= */
button, .btn-primary, .cookie-btn, .cookie-modal__close {
  transition: background 0.16s, color 0.11s, box-shadow 0.13s, transform 0.12s;
  outline: none;
}
button:active, .btn-primary:active, .cookie-btn:active {
  transform: scale(0.97);
}

/* =========================
   HIDE / SHOW UTILS
   ========================= */
.hide {
  display: none !important;
}

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