/* --- 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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F2F2F2;
  color: #28344A;
}
img, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* --- BRAND VARIABLES (with solid fallback) --- */
:root {
  --color-primary: #28344A;
  --color-secondary: #6D8B99;
  --color-accent: #F2F2F2;
  --color-white: #ffffff;
  --color-black: #101622;
  --color-cta: #357ae8; /* Strong blue for CTAs */
  --color-cta-hover: #1a57bc;
  --color-error: #e53a3a;
  --shadow-card: 0 4px 20px rgba(40, 52, 74, 0.06), 0 1.5px 3px rgba(40,52,74,0.06);
  --radius-small: 8px;
  --radius-medium: 16px;
}

/* --- TYPOGRAPHY --- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600&display=swap');

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  background: var(--color-accent);
  color: var(--color-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  color: var(--color-primary);
}
h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 18px; }
h2 { font-size: 2rem; line-height: 1.22; margin-bottom: 14px; }
h3 { font-size: 1.35rem; line-height: 1.27; margin-bottom: 10px; }
h4, h5, h6 { font-size: 1rem; margin-bottom: 8px; }
p, li { font-size: 1rem; color: var(--color-primary); font-weight: 400; }
strong, b {
  font-weight: 700;
  color: var(--color-primary);
}
.subheadline {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.18rem;
  color: var(--color-secondary);
  margin-bottom: 30px;
  font-weight: 600;
}

/* --- CONTAINER AND LAYOUT --- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  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: var(--color-accent);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card);
}
@media (max-width: 768px) {
  .section {
    padding: 28px 6vw;
    margin-bottom: 32px;
  }
}

/* --- HEADER --- */
header {
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(40, 52, 74, 0.045);
  padding: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 0;
}

header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 10px 0px;
  border-radius: 3px;
  transition: background 0.14s, color 0.14s;
  position: relative;
}
header nav a:hover {
  background: var(--color-secondary);
  color: var(--color-white);
}

header nav a.cta {
  background: var(--color-cta);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-small);
  margin-left: 12px;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  transition: background 0.18s, color 0.14s, box-shadow 0.18s;
  box-shadow: 0 2px 10px rgba(48, 93, 225, 0.07);
  font-weight: 800;
}
header nav a.cta:hover,
header nav a.cta:focus {
  background: var(--color-cta-hover);
  color: var(--color-white);
  box-shadow: 0 4px 18px rgba(48, 93, 225, 0.14);
}

/* --- MOBILE BURGER MENU --- */
.mobile-menu-toggle {
  display: none;
  background: var(--color-cta);
  color: #fff;
  border-radius: var(--radius-small);
  width: 46px;
  height: 46px;
  font-size: 2rem;
  line-height: 1;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background .18s;
}
.mobile-menu-toggle:hover {
  background: var(--color-cta-hover);
}

/* Hide nav on mobile, show burger */
@media (max-width: 992px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  z-index: 999;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-primary);
  color: #fff;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.85,0,0.15,1);
  box-shadow: 6px 0 28px rgba(40,52,74,.27);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 28px 28px 10px 0;
  cursor: pointer;
  transition: color 0.15s;
}
.mobile-menu-close:hover {
  color: var(--color-cta);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 32px;
  margin-top: 60px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.22rem;
  color: #fff;
  font-weight: 700;
  padding: 12px;
  border-radius: var(--radius-small);
  transition: background 0.13s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-white);
}

/*--- HERO ---*/
.hero {
  background: var(--color-primary);
  color: var(--color-white);
  min-height: 380px;
  display: flex;
  align-items: center;
  margin-bottom: 50px;
  border-radius: 0 0 var(--radius-medium) var(--radius-medium);
  padding: 0;
}
.hero .container {
  flex-direction: column;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
  padding: 60px 0 50px 0;
}
.hero h1,
.hero .subheadline {
  color: var(--color-white);
}
.hero a.cta {
  background: var(--color-cta);
  color: #fff;
  font-size: 1.15rem;
}
.hero a.cta:hover {
  background: var(--color-cta-hover);
  color: #fff;
}

/* --- FEATURES GRID --- */
.features {
  margin-bottom: 60px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  justify-content: flex-start;
}
.feature-grid > div {
  flex: 1 1 270px;
  min-width: 220px;
  background: #fff;
  border-radius: var(--radius-small);
  padding: 26px 20px 18px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow .22s, transform .14s;
  margin-bottom: 20px;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 32px rgba(40,52,74,.13);
  transform: translateY(-4px) scale(1.02);
}
.feature-grid img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-accent);
  padding: 7px;
  margin-bottom: 8px;
}
.feature-grid h3 {
  color: var(--color-cta);
  font-weight: 800;
}

/* --- USP LIST --- */
.usp-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 15px;
}
.usp-list li {
  background: var(--color-secondary);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 7px 16px;
  border-radius: 22px;
  letter-spacing: .03em;
}

/* --- TESTIMONIALS/PREVIEWS --- */
.testimonial-grid,
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.testimonial-card {
  background: #fff;
  color: var(--color-primary);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  min-width: 230px;
  flex: 1 1 290px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .25s, transform .2s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(40,52,74,.15);
  transform: scale(1.03);
}
.testimonial-card p {
  color: var(--color-black);
  font-size: 1.05rem;
  font-style: italic;
}
.testimonial-card span {
  font-size: .98rem;
  color: var(--color-secondary);
  font-weight: 700;
  align-self: flex-end;
}

/* -- Project List / About / Text Sections -- */
.project-list, .service-list, .accordion-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.project-list .text-section,
.service-list > div,
.accordion-list .text-section {
  background: #fff;
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-card);
  padding: 20px 24px;
  margin-bottom: 20px;
  flex: 1 1 320px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  position: relative;
}
.project-list .text-section blockquote {
  font-style: italic;
  color: var(--color-secondary);
  margin: 10px 0 0 0;
  border-left: 4px solid var(--color-secondary);
  padding-left: 1em;
}

.text-section ul li {
  margin-bottom: 8px;
}

/* --- CTA BANNER --- */
.cta-banner {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card);
  margin-bottom: 40px;
  padding: 44px 24px;
}
.cta-banner h2 {
  color: #fff;
}
.cta-banner p {
  color: white;
}
.cta-banner a.cta {
  background: var(--color-secondary);
  color: #fff;
  font-weight: bold;
  border-radius: var(--radius-small);
  margin-top: 20px;
}
.cta-banner a.cta:hover {
  background: var(--color-white);
  color: var(--color-secondary);
}

/* --- BUTTONS & LINKS --- */
.cta,
.button, 
input[type=submit],
input[type=button] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  background: var(--color-cta);
  color: #fff;
  border: none;
  border-radius: var(--radius-small);
  font-size: 1.08rem;
  padding: 12px 28px;
  margin-top: 12px;
  cursor: pointer;
  box-shadow: 0 3px 14px rgba(48,93,225,.07);
  letter-spacing: .02em;
  transition: background .16s, color .13s, box-shadow .18s, transform .12s;
}
.cta:hover, .cta:focus,
.button:hover, .button:focus,
input[type=submit]:hover, input[type=button]:hover {
  background: var(--color-cta-hover);
  color: #fff;
  box-shadow: 0 5px 25px rgba(48,93,225,.12);
  transform: translateY(-2px) scale(1.03);
}
a.cta:active {
  background: var(--color-secondary);
}

/* --- ADDRESS & CONTACT -- */
.contact-hero ul, .footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.contact-hero ul li, .footer-contact ul li {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.contact-hero ul li a, .footer-contact ul li a {
  color: var(--color-cta);
  font-weight: 700;
  transition: color 0.17s;
}
.contact-hero ul li a:hover, .footer-contact ul li a:hover {
  color: var(--color-cta-hover);
  text-decoration: underline;
}

/* --- MAP PLACEHOLDER --- */
.map-placeholder {
  background: var(--color-accent);
  border-radius: var(--radius-small);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  color: var(--color-secondary);
  font-style: italic;
  font-size: 1rem;
  border: 2px dashed var(--color-secondary);
}

/* --- FOOTER --- */
footer {
  background: var(--color-primary);
  color: #fff;
  margin-top: 60px;
  padding: 0;
}
footer li {
  color: white !important;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 48px 20px 32px 20px;
}
.footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  margin-bottom: 12px;
}
.footer-brand img {
  width: 55px;
  height: 55px;
}
.footer-brand strong {
  color: #fff;
  font-size: 1.11rem;
  letter-spacing: .01em;
}
.footer-brand p {
  color: var(--color-secondary);
  font-size: .97rem;
  margin-top: 4px;
}
.footer-navigation {
  display: flex;
  flex-direction: row;
  gap: 60px;
}
.footer-navigation nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-navigation nav a {
  color: #fff;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 5px 0;
  transition: color .16s;
}
.footer-navigation nav a:hover {
  color: var(--color-secondary);
}
.footer-contact ul {
  gap: 8px;
  color: #fff;
}
.footer-contact img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* ---- Cookie Consent Banner ---- */
.cookie-banner {
  position: fixed;
  z-index: 1200;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-primary);
  color: #fff;
  padding: 28px 20px 20px 20px;
  box-shadow: 0 -6px 30px rgba(40,52,74,.19);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: cookieSlideUp 0.38s cubic-bezier(0.77,0,0.18,1) 1;
}
@keyframes cookieSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin-bottom: 6px;
  max-width: 520px;
  text-align: center;
  color: white;
}
.cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: center;
  margin-top: 6px;
}
.cookie-btns button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  padding: 11px 24px;
  border-radius: var(--radius-small);
  border: none;
  background: var(--color-cta);
  color: #fff;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, transform .11s;
}
.cookie-btns button:hover,
.cookie-btns button:focus {
  background: var(--color-cta-hover);
  color: #fff;
  transform: translateY(-1px) scale(1.04);
}
.cookie-btns .cookie-settings {
  background: var(--color-secondary);
}
.cookie-btns .cookie-settings:hover {
  background: #4e6e7d;
}
.cookie-btns .cookie-reject {
  background: var(--color-error);
}
.cookie-btns .cookie-reject:hover {
  background: #991a1a;
}

/* Cookie Consent Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 1300;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(16,22,34,0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: var(--color-primary);
  min-width: 320px;
  max-width: 96vw;
  padding: 32px 28px 24px 28px;
  border-radius: var(--radius-medium);
  display: flex;
  flex-direction: column;
  gap: 23px;
  box-shadow: 0 10px 40px rgba(40,52,74,0.17);
  animation: modalPop 0.29s;
}
@keyframes modalPop {
  from { opacity: 0; transform: translateY(40px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal h2 {
  margin-bottom: 6px;
  color: var(--color-primary);
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin: 6px 0 9px 0;
}
.cookie-modal input[type=checkbox] {
  accent-color: var(--color-cta);
  width: 20px;
  height: 20px;
}
.cookie-modal .category-label {
  font-weight: bold;
  color: var(--color-secondary);
}
.cookie-modal .modal-btns {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal .modal-btns button {
  background: var(--color-cta);
  color: #fff;
  border-radius: var(--radius-small);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  padding: 10px 32px;
  border: none;
  font-size: 1rem;
  transition: background 0.12s;
}
.cookie-modal .modal-btns button:hover {
  background: var(--color-cta-hover);
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 1100px) {
  .container { max-width: 99vw; }
  .footer-navigation { gap: 28px; }
}
@media (max-width: 900px) {
  .feature-grid, .project-list, .service-list {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .content-wrapper { gap: 19px; }
  .container { padding: 0 7vw; }
  .footer-contact ul { font-size: .98rem; }

  .feature-grid, .project-list, .service-list {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div, .project-list .text-section, .service-list > div {
    margin-bottom: 16px;
    min-width: 0;
    width: 100%;
  }
  .testimonial-grid, .testimonial-slider {
    flex-direction: column;
    gap: 17px;
  }
  .footer-brand {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .footer-navigation {
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 600px) {
  .hero .content-wrapper {
    padding: 32px 0 22px 0;
  }
  .footer-brand img {
    width: 40px;
    height: 40px;
  }
  .cookie-modal {
    padding: 17px 6vw 20px 6vw;
  }
}

/* --- ACCESSIBILITY FOCUS STATES --- */
a:focus,
button:focus {
  outline: 2px solid var(--color-cta);
  outline-offset: 2px;
}

/* --- MISC CARD & CONTENT CLASSES (for CMS flexibility) --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-card);
  background: #fff;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- PAGE SPECIFIC: THANK YOU/JUSTIFICATION/FAQ --- */
.thanks, .privacy-policy, .gdpr, .terms, .cookie-policy {
  background: #fff;
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card);
  margin: 58px 0 40px 0;
  padding: 44px 18px;
}
@media (max-width: 600px) {
  .thanks, .privacy-policy, .gdpr, .terms, .cookie-policy {
    margin: 20px 0 16px 0;
    padding: 24px 8px;
  }
}

/* --- FORMS (visual consistency) --- */
.contact-form .text-section ul li {
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: var(--radius-small);
  padding: 8px 12px;
  margin-bottom: 7px;
  font-weight: 600;
  font-family: 'Open Sans', Arial, sans-serif;
  letter-spacing: .01em;
}

/* --- ANIMATION/MICRO-INTERACTIONS --- */
.cta, .button, input[type=submit], input[type=button], .feature-grid > div, .testimonial-card, .card {
  will-change: transform, box-shadow;
}

/* --- Z-INDEX MANAGEMENT --- */
.mobile-menu, .cookie-banner, .cookie-modal-overlay {
  z-index: 999 !important;
}

/* --- Prevent overlapping and enforce spacing --- */
.section, .card, .testimonial-card, .feature-grid > div, .service-list > div, .project-list .text-section, .text-section {
  margin-bottom: 20px;
}
.card-container > *,
.content-grid > * {
  margin-bottom: 20px;
}

/* --- Utility classes --- */
.text-center { text-align: center !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }
.gap-20 { gap: 20px !important; }
