/* === CSS RESET & NORMALIZATION === */
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,
main,
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, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F7FAFC;
  color: #1a2536;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  border-style: none;
  max-width: 100%;
  display: block;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
:focus {
  outline: 2px solid #28B7EC;
  outline-offset: 2px;
}

/* === BRAND COLOR VARIABLES (with fallbacks) === */
:root {
  --brand-primary: #163364;
  --brand-secondary: #28B7EC;
  --brand-accent: #F7FAFC;
  --brand-bg-deep: #dce3ec;
  --gray-100: #F7FAFC;
  --gray-200: #e6edf4;
  --gray-300: #c4d1df;
  --gray-700: #304669;
  --text-color: #192336;
  --heading-color: #163364;
  --card-bg: #fff;
  --card-shadow: 0 4px 24px rgba(22, 51, 100, 0.08);
  --border-radius: 12px;
}

/* === ROOT TYPOGRAPHY === */
h1,
h2,
h3,
h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--heading-color);
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.75rem;
  line-height: 1.1;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.3rem;
  line-height: 1.2;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p, li, address {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 12px;
}
p:last-child,
li:last-child,
address:last-child,
ul:last-child {
  margin-bottom: 0;
}
.subheadline {
  font-size: 1.25rem;
  color: var(--brand-secondary);
  font-weight: 500;
  margin-bottom: 26px;
  letter-spacing: 0.01em;
}
strong {
  font-weight: 700;
}

/* === CONTAINER & PAGE STRUCTURE === */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

/* === HEADER === */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 8px rgba(33, 56, 91, 0.03);
  z-index: 120;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  gap: 20px;
  min-height: 56px;
}
.logo img {
  height: 38px;
  width: auto;
  vertical-align: middle;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 26px;
}
.main-nav a {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--brand-primary);
  font-weight: 500;
  padding: 6px 2px;
  border-radius: 5px;
  transition: color 0.18s, background 0.18s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--brand-secondary);
  background: var(--gray-100);
}
.cta-btn {
  background: var(--brand-secondary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 11px 30px;
  margin-left: 20px;
  box-shadow: 0 2px 12px rgba(40,183,236,0.08);
  transition: background 0.18s, box-shadow 0.18s, transform 0.14s;
  letter-spacing: 0.01em;
  display: inline-block;
}
.cta-btn:hover,
.cta-btn:focus {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 4px 18px rgba(22,51,100,0.14);
  transform: translateY(-2px) scale(1.03);
}

/* --- Mobile menu toggle button --- */
.mobile-menu-toggle {
  display: none;
  position: relative;
  height: 40px;
  width: 40px;
  background: transparent;
  color: var(--brand-primary);
  border-radius: 5px;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  z-index: 125;
  margin-left: 12px;
  transition: background 0.15s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--gray-200);
  color: var(--brand-secondary);
}

/* --- Mobile menu panel --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(22, 51, 100, 0.98);
  transform: translateX(-110%);
  transition: transform 0.34s cubic-bezier(.37,1.01,.99,.68);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100vw;
  height: 100vh;
  padding: 32px 28px 30px 28px;
  box-sizing: border-box;
  pointer-events: none;
  opacity: 0.98;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 7px 14px;
  border-radius: 6px;
  transition: background .16s;
  z-index: 10001;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--brand-secondary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin-top: 12px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1px solid rgba(247,250,252,0.12);
  transition: color 0.2s;
}
.mobile-nav a:hover,
.mobile-nav a:active,
.mobile-nav a:focus {
  color: var(--brand-secondary);
}

@media (max-width: 1023px) {
  .main-nav, .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
}

@media (min-width: 1024px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* === MAIN HERO SECTIONS === */
.hero {
  background: linear-gradient(110deg, #F7FAFC 60%, var(--gray-200) 100%);
  min-height: 340px;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  padding: 32px 0 20px 0;
}
.hero .container {
  align-items: center;
  justify-content: center;
  gap: 0;
}
.hero .content-wrapper {
  text-align: left;
  align-items: flex-start;
  gap: 24px;
  max-width: 580px;
}

@media (max-width: 768px) {
  .hero {
    padding: 22px 0 6px 0;
    min-height: 210px;
  }
  .hero .content-wrapper {
    padding-top: 8px;
  }
}

/* === STRUCTURED SECTIONS & CARD STYLES === */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px rgba(22,51,100,0.04);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 26px 24px;
  flex: 1 1 320px;
  transition: box-shadow .18s, transform .13s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 6px 31px 0 rgba(22,51,100,0.14);
  transform: translateY(-2px) scale(1.015);
}

.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 10px;
  background: var(--gray-100);
  box-shadow: 0 2px 14px rgba(22,51,100,0.09);
  margin-bottom: 24px;
  flex: 1 1 350px;
  color: var(--brand-primary);
  font-size: 1.1rem;
  transition: box-shadow .15s;
}
.testimonial-card p {
  color: var(--brand-primary);
  font-size: 1.1rem;
  margin-bottom: 0;
}
.testimonial-card .testimonial-info {
  color: var(--gray-700);
  font-size: .97rem;
  font-style: italic;
  margin-left: 16px;
  font-weight: 500;
}
.testimonial-card:hover {
  box-shadow: 0 4px 20px rgba(22,51,100,0.16);
}

.project-story {
  background: #fff;
  border-left: 5px solid var(--brand-primary);
  padding: 22px 24px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 2px 12px rgba(22,51,100,0.05);
}
.project-story h3 {
  color: var(--brand-secondary);
  margin-bottom: 8px;
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--gray-100);
  border-radius: var(--border-radius);
  padding: 18px 18px 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(196,209,223,0.09);
}

/* Feature (icons/texts in grid) */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 4px;
}
.features-grid > div {
  background: var(--gray-100);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(40, 183, 236, 0.03);
  padding: 22px 18px;
  flex: 1 1 232px;
  max-width: 260px;
  min-width: 170px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow .15s, transform .13s;
}
.features-grid > div:hover {
  box-shadow: 0 8px 26px rgba(40,183,236,0.13);
  transform: translateY(-2px) scale(1.018);
}
.features-grid img {
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
}
.features-grid h3 {
  font-size: 1rem;
  color: var(--brand-primary);
}

/* Services list (ul) */
.services-list {
  padding-left: 0;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.services-list li {
  background: var(--gray-100);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 0;
  font-size: 1.02rem;
  border-left: 5px solid var(--brand-secondary);
  font-weight: 400;
}
.services-list .price {
  float: right;
  background: var(--brand-primary);
  color: #fff;
  border-radius: 6px;
  padding: 3px 9px;
  margin-left: 10px;
  font-size: .98rem;
  font-weight: 600;
}

.text-section {
  margin-bottom: 10px;
  max-width: 700px;
  line-height: 1.7;
}

ul, ol {
  margin-bottom: 16px;
  margin-left: 16px;
}
ul li, ol li {
  list-style-position: inside;
  margin-bottom: 7px;
  color: var(--text-color);
}

/* === BUTTONS & MICRO-INTERACTIONS === */
button, .cta-btn, input[type="submit"], .cookie-btn {
  transition: background .18s, color .15s, box-shadow .18s, transform .14s;
}

a, button, .cta-btn, [tabindex] {
  outline: none;
}

/* === LINKS === */
a {
  color: var(--brand-secondary);
  transition: color .16s;
}
a:hover, a:focus {
  color: var(--brand-primary);
}

/* === FOOTER === */
footer {
  background: var(--brand-primary);
  color: #fff;
  padding: 38px 0 20px 0;
  margin-top: 60px;
  font-size: 1rem;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 26px 36px;
  justify-content: space-between;
  align-items: flex-start;
}
.logo-footer img {
  height: 44px;
  margin-bottom: 16px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  opacity: 0.88;
  transition: color .18s, opacity .19s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--brand-secondary);
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-contact address,
.footer-contact a,
.footer-contact div {
  color: #F7FAFC;
  font-size: 1rem;
  font-style: normal;
  opacity: 0.95;
}
.footer-copy {
  font-size: .97rem;
  color: var(--gray-200);
  width: 100%;
  margin-top: 30px;
  text-align: right;
  opacity: .92;
}

@media (max-width: 1024px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px 0;
    padding: 0 4px;
  }
  .footer-copy {
    text-align: left;
  }
}

/* === CONTACT / ADDRESS SECTIONS === */
.contact-map {
  margin-top: 16px;
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .features-grid {
    justify-content: flex-start;
    gap: 14px;
  }
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 38px;
    padding: 28px 5px 26px 5px;
  }
  .features-grid {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .testimonial-card, .card {
    flex: 1 1 100%;
    min-width: 0;
    padding: 14px 8px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.7rem;
    margin-bottom: 12px;
  }
  h2 {
    font-size: 1.19rem;
    margin-bottom: 11px;
  }
  .footer-copy { font-size: .93rem; }
  .container { padding: 0 7px; }
  .features-grid, .content-grid { gap: 10px; }
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  color: var(--brand-primary);
  border-top: 2px solid var(--brand-secondary);
  box-shadow: 0 -2px 22px rgba(22,51,100,0.10);
  padding: 18px 32px;
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(110%);
  transition: opacity 0.31s cubic-bezier(.72,0,.5,1), transform 0.31s cubic-bezier(.72,0,.5,1);
  font-size: 1.05rem;
  gap: 24px;
  min-height: 75px;
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner__msg {
  flex: 1 1 auto;
  margin-right: 20px;
  font-size: 1rem;
  color: var(--brand-primary);
}
.cookie-banner__actions {
  display: flex;
  gap: 18px;
  flex-shrink: 0;
}
.cookie-btn,
.cookie-banner button {
  background: var(--brand-secondary);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 9px 20px;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.17s, transform 0.13s;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(40,183,236,0.06);
}
.cookie-btn.reject {
  background: #d53535;
}
.cookie-btn.settings {
  background: var(--brand-primary);
}
.cookie-btn:hover,
.cookie-btn:focus {
  background: var(--brand-primary);
  color: #fff;
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: #852525;
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: var(--brand-secondary);
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    padding: 15px 8px 15px 12px;
    align-items: flex-start;
    gap: 13px;
  }
  .cookie-banner__actions {
    gap: 8px;
  }
}

/* === COOKIE MODAL === */
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%) scale(0.98);
  z-index: 1000001;
  background: #fff;
  color: var(--brand-primary);
  border-radius: 15px;
  padding: 36px 34px 28px 34px;
  box-shadow: 0 6px 48px rgba(22,51,100,0.21);
  min-width: 308px;
  max-width: calc(100vw - 32px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.20s, transform 0.27s;
  width: 96vw;
  max-width: 440px;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,-50%) scale(1.02);
}
.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.cookie-modal__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand-primary);
}
.cookie-modal__close {
  font-size: 2rem;
  color: var(--brand-secondary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 7px 13px;
  border-radius: 5px;
  transition: background .13s;
}
.cookie-modal__close:hover,
.cookie-modal__close:focus {
  background: var(--gray-200);
}
.cookie-modal__content {
  margin-bottom: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  position: relative;
  margin-bottom: 13px;
}
.cookie-category input[type='checkbox'] {
  min-width: 24px;
  min-height: 24px;
  margin-right: 0;
  accent-color: var(--brand-secondary);
}
.cookie-category label {
  font-size: 1rem;
  color: var(--brand-primary);
}
.cookie-category.essential label {
  font-weight: 600;
}
.cookie-category.essential input[type='checkbox'] {
  opacity: 0.5;
  pointer-events: none;
}
.cookie-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 14px;
}
@media (max-width: 480px) {
  .cookie-modal { padding: 19px 7px 16px 9px; }
  .cookie-modal__title { font-size: 1.05rem; }
}

/* === MISC & UTILITIES === */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.48s cubic-bezier(.31,.87,.59,1.27) 1; }

/* === PRINT & SELECTION === */
@media print {
  header, nav, footer, .cookie-banner, .cookie-modal { display: none !important; }
  *, *:before, *:after { background: #fff !important; color: #000 !important; box-shadow: none !important; }
}

::selection {
  background: var(--brand-secondary);
  color: #fff;
}

/* === QUOTES & INFO BLOCKS === */
blockquote {
  font-style: italic;
  background: var(--gray-100);
  color: var(--brand-primary);
  border-left: 4px solid var(--brand-secondary);
  padding: 14px 22px;
  border-radius: 8px;
  margin: 20px 0;
}

/* === FORMS (if any present) === */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  color: var(--brand-primary);
  font-size: 1rem;
  border-radius: 7px;
  padding: 10px 14px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: none;
  transition: border .14s, box-shadow .11s;
  margin-bottom: 18px;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
  border: 1.5px solid var(--brand-secondary);
  background: #fff;
  box-shadow: 0 1px 12px rgba(40,183,236,0.10);
}

/* === BRAND FONTS === */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');
body, input, textarea, select {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

/* === ACCESSIBILITY: SKIP LINK === */
.skip-link {
  position: absolute;
  left: -1000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  color: #fff;
  background: var(--brand-primary);
  padding: 10px 18px;
  border-radius: 6px;
  z-index: 10001;
}
.skip-link:focus { left: 16px; top: 10px; width: auto; height: auto; }
