/* --- 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: #222F3E;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 400;
  min-height: 100vh;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  background: none;
  transition: color 0.2s cubic-bezier(.77,0,.18,1);
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1em;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', serif;
  color: #222F3E;
  font-weight: 900;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.75rem; line-height: 1.1; margin-bottom: 20px; }
h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 16px; }
h3 { font-size: 1.3rem; line-height: 1.3; margin-bottom: 12px; }
h4, h5, h6 { font-weight: 700; }
p, ul, ol, blockquote { font-size: 1.05em; margin-bottom: 14px; }
strong { font-weight: 700; }

/* --- BRAND COLORS --- */
:root {
  --primary: #222F3E;
  --secondary: #4D77FF;
  --accent: #E9F1FB;
  --white: #fff;
  --black: #111B23;
  --grey: #F6F8FB;
  --grey-border: #E4E7EF;
  --danger: #EB5757;
  --success: #21A179;
}

/* --- LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 18px;
  margin: 0 auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.trust-badges {
  margin-top: 12px;
  color: var(--secondary);
  font-weight: 700;
  font-size: 1em;
}

/* --- HEADER --- */
header {
  background: var(--white);
  box-shadow: 0 2px 22px 0 rgba(34,47,62,0.04);
  position: sticky;
  top: 0;
  z-index: 1010;
}
header .container {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo img {
  height: 40px;
  transition: filter 0.2s;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.main-nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.05em;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 6px 14px;
  border-radius: 6px;
  transition: background 0.16s, color 0.16s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--accent);
  color: var(--secondary);
}
.main-nav .cta.primary {
  background: var(--secondary);
  color: var(--white);
  font-weight: 900;
  border-radius: 8px;
  padding: 10px 24px;
  margin-left: 10px;
  box-shadow: 0 2px 8px 0 rgba(77,119,255,0.07);
  transition: background 0.18s cubic-bezier(.77,0,.18,1), box-shadow 0.18s;
}
.main-nav .cta.primary:hover,
.main-nav .cta.primary:focus {
  background: #2546c8;
  box-shadow: 0 3px 18px 0 rgba(77,119,255,0.20);
}
button.mobile-menu-toggle {
  display: none;
}

/* --- MOBILE MENU --- */
.mobile-menu { 
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--primary);
  color: var(--white);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 28px;
  gap: 16px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  font-size: 2.2rem;
  color: var(--white);
  border: none;
  cursor: pointer;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 20px;
}
.mobile-nav a {
  color: var(--white);
  font-size: 1.24em;
  font-weight: 800;
  letter-spacing: 0.015em;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  transition: color 0.15s, border-bottom 0.14s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--secondary);
  border-bottom: 2.5px solid var(--secondary);
}


/* --- HERO & BOLD CTA --- */
section:first-of-type,
.hero-section {
  background: var(--accent);
  border-radius: 0 0 44px 44px;
  box-shadow: 0 4px 28px 0 rgba(34,47,62,0.05);
}
.cta, .cta.primary {
  display: inline-block;
  font-family: 'Roboto Slab', serif;
  font-size: 1.12em;
  font-weight: 800;
  background: var(--secondary);
  color: var(--white);
  border-radius: 10px;
  padding: 14px 32px;
  margin-top: 8px;
  box-shadow: 0 3px 12px 0 rgba(77,119,255,0.09);
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  cursor: pointer;
  border: none;
  letter-spacing: 0.01em;
}
.cta:hover,
.cta:focus {
  background: #2546c8;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 22px 0 rgba(77,119,255,0.18);
  color: #fff;
}
.cta.secondary {
  background: var(--primary);
  color: var(--accent);
  border: 2px solid var(--secondary);
}
.cta.secondary:hover,
.cta.secondary:focus {
  background: var(--secondary);
  color: var(--white);
}

/* --- FEATURE GRID / CARDS --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 20px;
}
.feature-grid li {
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 3px 10px 0 rgba(34,47,62,0.08);
  padding: 24px 22px 18px 22px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 330px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.16s, transform 0.20s;
  margin-bottom: 20px;
}
.feature-grid li:hover {
  box-shadow: 0 8px 34px 0 rgba(77,119,255,0.15);
  transform: translateY(-4px) scale(1.035);
}
.feature-grid img {
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
}
.feature-grid h3 {
  color: var(--secondary);
  font-weight: 900;
  margin-bottom: 6px;
  font-size: 1.17em;
}

/* --- CARDS & FLEX CONTAINERS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 3px 18px 0 rgba(34,47,62,0.10);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 18px;
  gap: 18px;
  min-width: 260px;
  flex: 1 1 300px;
  transition: box-shadow 0.14s, transform 0.14s;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(77,119,255,0.13);
  transform: translateY(-2px) scale(1.02);
}
.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 --- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  background: var(--accent);
  border-left: 6px solid var(--secondary);
  border-radius: 15px;
  margin-bottom: 20px;
  margin-top: 12px;
  box-shadow: 0 2px 16px 0 rgba(34,47,62,0.07);
  max-width: 700px;
}
.testimonial-card blockquote {
  font-size: 1.19em;
  color: var(--primary);
  font-family: 'Roboto Slab',serif;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}
.testimonial-card span {
  font-size: 1em;
  font-weight: 600;
  color: var(--primary);
  opacity: 0.93;
}

/* --- PROJECT & SERVICE LISTS --- */
.service-list, .project-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 10px;
}
.service-list li, .project-highlights li {
  background: var(--grey);
  border-radius: 14px;
  padding: 18px 17px;
  flex: 1 1 250px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px 0 rgba(77,119,255,0.04);
  border: 1.7px solid var(--accent);
  transition: box-shadow 0.17s, border 0.17s;
}
.service-list li:hover,
.project-highlights li:hover {
  box-shadow: 0 9px 38px 0 rgba(77,119,255,0.11);
  border: 1.7px solid var(--secondary);
}

/* --- FEATURE ITEM --- */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- FOOTER --- */
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 34px 0 15px 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: center;
  font-size: 1em;
  font-weight: 700;
  margin-bottom: 15px;
}
.footer-nav a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--secondary);
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  justify-content: center;
  font-size: 1em;
  font-weight: 600;
  opacity: 0.93;
}

/* --- TABLE STYLE --- */
table {
  width: 100%;
  border-collapse: collapse;
  box-shadow: 0 2px 7px 0 rgba(34,47,62,0.07);
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
}
thead th {
  background: var(--secondary);
  color: #fff;
  font-weight: 900;
  padding: 13px;
  font-size: 1.07em;
  border-bottom: 2.5px solid #fff;
}
tbody td {
  padding: 12px 14px;
  font-size: 1.05em;
  border-bottom: 1.7px solid var(--accent);
}
tr:last-child td {
  border-bottom: none;
}
.notice {
  color: var(--danger);
  font-size: 1em;
  margin: 8px 0 0 0;
  font-weight: 600;
}

/* --- ACCORDION / FAQ --- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 12px;
}
.faq-accordion > div {
  background: var(--grey);
  border-radius: 10px;
  padding: 18px 16px;
  box-shadow: 0 2px 10px 0 rgba(77,119,255,0.06);
  margin-bottom: 8px;
  transition: box-shadow 0.14s;
}
.faq-accordion > div:hover {
  box-shadow: 0 6px 24px 0 rgba(77,119,255,0.09);
}
.faq-accordion h3 {
  color: var(--secondary);
  margin-bottom: 6px;
  font-size: 1.12em;
}

/* --- MAP STATIC --- */
.map-static {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  border-radius: 10px;
  padding: 15px 19px;
  margin-top: 12px;
  max-width: 440px;
}
.map-static img {
  height: 48px;
  opacity: 0.90;
}
.map-static span {
  color: var(--secondary);
  font-weight: 700;
}

/* --- FORM ELEMENTS (FORMS MAY BE ADDED LATER) --- */
input, textarea, select {
  width: 100%;
  border: 1.5px solid var(--accent);
  border-radius: 7px;
  padding: 11px 14px;
  margin-bottom: 14px;
  font-size: 1em;
  background: var(--grey);
  color: var(--primary);
  transition: border 0.15s, box-shadow 0.14s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--secondary);
  box-shadow: 0 1px 6px 0 rgba(77,119,255,0.17);
}
label {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

/* --- RESPONSIVE DESIGN (MOBILE-FIRST) --- */
@media (max-width: 1024px) {
  .container {
    max-width: 98vw;
  }
  .feature-grid, .service-list, .project-highlights, .card-container, .content-grid {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 10px;
  }
  .footer-nav {
    gap: 8px;
  }
  h1 { font-size: 2.05rem; }
  h2 { font-size: 1.4rem; }
}
@media (max-width: 768px) {
  .container {
    padding: 0 7px;
  }
  header .container {
    height: 56px;
  }
  .main-nav {
    display: none !important;
  }
  .logo img { height: 32px; }
  button.mobile-menu-toggle {
    display: block;
    background: var(--secondary);
    color: #fff;
    font-size: 1.8rem;
    border-radius: 9px;
    padding: 4px 15px;
    cursor: pointer;
    border: none;
    box-shadow: 0 0.5px 6px 0 rgba(77,119,255,0.07);
    margin-left: auto;
    margin-right: 2px;
    transition: background 0.17s;
  }
  button.mobile-menu-toggle:hover,
  button.mobile-menu-toggle:focus {
    background: #2546c8;
  }
  .mobile-menu {
    padding: 10px 13px;
  }
  .card-container, .content-grid, .feature-grid, .service-list, .project-highlights {
    flex-direction: column;
  }
  .project-highlights li,
  .service-list li,
  .feature-grid li,
  .card {
    min-width: 0;
    max-width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .section {
    padding: 18px 6px;
    margin-bottom: 38px;
  }
}
@media (max-width: 500px) {
  h1 { font-size: 1.27rem; margin-bottom: 12px; }
  h2 { font-size: 1.08rem; margin-bottom: 9px; }
  h3 { font-size: 0.98rem; }
  .testimonial-card { padding: 12px 8px; }
  .footer-contact { font-size: 0.87em; }
  .content-wrapper { gap: 12px; }
  .card, .feature-grid li, .service-list li { padding: 12px 7px; }
}

/* --- SPACING BETWEEN CARDS AND SECTIONS --- */
section + section {
  margin-top: 12px;
}
.content-wrapper > * + * {
  margin-top: 10px;
}

/* --- Z-INDEX STANDARDS --- */
header, .mobile-menu { z-index: 1200; }
.cookie-banner, .cookie-modal-backdrop, .cookie-modal { z-index: 2300; }

/* --- BUTTONS --- */
button,
[type="button"],
[type="submit"] {
  cursor: pointer;
  transition: background 0.18s, color 0.14s, box-shadow 0.14s;
}
button:focus, a:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 1.5px;
  box-shadow: 0 0 0 2px var(--accent);
}

/* --- TABLES, LINKS & MISC --- */
a {
  transition: color 0.12s;
  text-underline-offset: 0.14em;
}
a:active { color: var(--secondary); }
.text-section img {
  vertical-align: middle;
  margin-right: 5px;
  width: 21px;
  height: 21px;
  display: inline-block;
  margin-bottom: -3px;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 2000;
  background: var(--primary);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 18px 18px 24px;
  box-shadow: 0 -3px 22px 0 rgba(34,47,62,0.15);
  font-size: 1.06em;
  flex-wrap: wrap;
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
}
.cookie-banner.hide {
  transform: translateY(120%) scale(0.98);
  opacity: 0;
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cookie-banner .cookie-btn {
  font-family: 'Roboto Slab', serif;
  font-size: 1em;
  font-weight: 900;
  padding: 9px 18px;
  border-radius: 8px;
  margin-left: 0;
  border: none;
  outline: none;
  transition: background 0.14s, color 0.12s;
  margin-right: 8px;
}
.cookie-banner .cookie-btn.accept {
  background: var(--secondary);
  color: #fff;
}
.cookie-banner .cookie-btn.accept:hover,
.cookie-banner .cookie-btn.accept:focus {
  background: #2546c8;
}
.cookie-banner .cookie-btn.reject {
  background: #fff;
  color: var(--danger);
  border: 2px solid var(--danger);
}
.cookie-banner .cookie-btn.reject:hover,
.cookie-banner .cookie-btn.reject:focus {
  background: var(--danger);
  color: #fff;
}
.cookie-banner .cookie-btn.settings {
  background: none;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.cookie-banner .cookie-btn.settings:hover,
.cookie-banner .cookie-btn.settings:focus {
  background: var(--accent);
  color: var(--secondary);
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 13px 12px;
    font-size: 1em;
  }
}

/* --- COOKIE CONSENT MODAL --- */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 2200;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,47,62,0.45);
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.2s;
}
.cookie-modal-backdrop.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 48vh;
  transform: translate(-50%,-50%) scale(1);
  z-index: 2300;
  min-width: 320px;
  max-width: 99vw;
  background: var(--white);
  color: var(--primary);
  border-radius: 16px;
  box-shadow: 0 9px 54px 0 rgba(77,119,255,0.13);
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 38px 30px 30px 30px;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.29s, transform 0.34s cubic-bezier(.77,0,.18,1);
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%,-47%) scale(0.97);
}
.cookie-modal h2 {
  font-size: 1.45em;
  color: var(--secondary);
  margin-bottom: 5px;
  font-weight: 900;
}
.cookie-modal h3 {
  margin-top: 12px;
  margin-bottom: 4px;
  color: var(--primary);
  font-size: 1.07em;
  font-weight: 700;
}
.cookie-modal-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 11px;
}
.cookie-toggle {
  width: 38px; height: 21px;
  background: var(--accent);
  border-radius: 15px;
  border: 1.5px solid var(--secondary);
  position: relative;
  cursor: pointer;
  transition: background 0.17s, border 0.19s;
}
.cookie-toggle input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-toggle-slider {
  position: absolute;
  height: 15px;
  width: 15px;
  left: 3px; top: 2.5px;
  background: var(--secondary);
  border-radius: 50%;
  transition: left 0.18s cubic-bezier(.7,0,.18,1);
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  left: 20px;
  background: var(--success);
}
.cookie-toggle.disabled {
  opacity: 0.45;
  pointer-events: none;
}
.cookie-modal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 13px;
}
.cookie-modal .cookie-btn {
  font-size: 1em;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 7px;
  border: none;
  outline: none;
  background: var(--secondary);
  color: #fff;
}
.cookie-modal .cookie-btn.cancel {
  background: #fff;
  border: 2px solid var(--secondary);
  color: var(--secondary);
}
.cookie-modal .cookie-btn.cancel:hover,
.cookie-modal .cookie-btn.cancel:focus {
  background: var(--secondary);
  color: #fff;
}

@media (max-width: 600px) {
  .cookie-modal {
    min-width: 0;
    width: 95vw;
    padding: 23px 10px 17px 10px;
  }
}

/* --- UTILITIES / HIGHLIGHTS --- */
.section-accent {
  background: var(--accent);
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(77,119,255,0.04);
  padding: 18px 10px;
}
.feature-item strong {
  color: var(--secondary);
}

/* --- PRINT/ACCESSIBILITY IMPROVEMENTS --- */
@media print {
  header, footer, nav, .cookie-banner, .mobile-menu, .mobile-menu-toggle { display: none !important; }
  body { color: #000; background: #fff; }
}
/* --- END CSS --- */
