/* --- CSS RESET & NORMALIZE --- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  background-color: #181C27;
  color: #E8F6FF;
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.6;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #F4B400;
  text-decoration: none;
  transition: color 0.3s;
}
a:hover, a:focus {
  color: #03C9A9;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font: inherit;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 12px;
  color: #fff;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

/* --- BRAND COLORS & TYPOGRAPHY --- */
:root {
  --color-primary: #25618A;
  --color-secondary: #F4B400;
  --color-accent: #FFFFFF;
  --color-dark-bg: #161A24;
  --color-dark-alt: #232F3E;
  --color-text: #E8F6FF;
  --color-card-bg: #21293a;
  --color-testi-bg: #f6fafe;
  --color-testi-txt: #0A213A;
  --color-neon: #02D9FE;
  --color-neon-yellow: #FFD600;
  --radius: 14px;
  --shadow-lg: 0 4px 32px 0 rgba(7,227,255,0.08), 0 1.5px 7px 0 rgba(40, 160, 255, 0.13);
  --shadow-md: 0 2px 14px 0 rgba(40,160,255,0.10);
  --shadow-pop: 0 0 0 2px var(--color-neon);
  --transition-std: 0.25s cubic-bezier(.66,.03,.29,.99);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

/* --- BASE CONTAINER --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
}

/* --- HEADER STYLING --- */
header {
  width: 100%;
  background: var(--color-dark-alt);
  box-shadow: 0 2px 18px 0 rgba(16,84,154,0.10);
  position: sticky;
  top: 0; z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 70px;
}
header img {
  height: 44px;
  margin-right: 20px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
header nav a {
  font-weight: 500;
  font-family: var(--font-display);
  color: var(--color-text);
  padding: 4px 6px;
  position: relative;
  font-size: 17px;
  transition: color var(--transition-std);
}
header nav a:after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: var(--color-neon);
  border-radius: 1px;
  transition: width 0.2s cubic-bezier(.66,.03,.29,.99);
  position: absolute;
  left: 0; bottom: 0;
}
header nav a:hover:after, header nav a:focus:after {
  width: 100%;
}
.btn-primary {
  background: linear-gradient(90deg,#25618A 60%,#03C9A9 100%);
  color: var(--color-accent);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 12px 30px;
  box-shadow: 0 2px 18px 0 rgba(3,201,169,0.16);
  font-size: 18px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background var(--transition-std),box-shadow var(--transition-std);
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg,#03C9A9 0%, #25618A 100%);
  box-shadow: 0 0 0 3px var(--color-neon);
  text-decoration: none;
  color: #fff;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 32px;
  cursor: pointer;
  margin-left: 18px;
  z-index: 70;
  transition: color var(--transition-std);
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: var(--color-neon);
}
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(22,26,36,0.96);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.66,.03,.29,.99);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 0;
  visibility: hidden;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  margin-top: 24px;
  margin-right: 28px;
  cursor: pointer;
  z-index: 102;
  align-self: flex-end;
  transition: color var(--transition-std);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-neon);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  margin: 40px 0 0 38px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 20px;
  color: #fff;
  transition: color 0.25s;
  padding: 12px 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
}

/* --- MAIN WRAPPER --- */
main {
  margin-top: 0px;
  min-height: 70vh;
  background: linear-gradient(112deg,#222B3C 60%,#25618A 100%);
}

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

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card-bg);
  border-radius: var(--radius);
  margin-bottom: 20px;
  position: relative;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-std), transform var(--transition-std);
}
.card:hover, .card:focus-within {
  box-shadow: 0 0 0 3px var(--color-neon);
  transform: translateY(-3px) scale(1.015);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 24px;
  gap: 16px;
}

.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
  justify-content: space-between;
}
.service-card {
  background: #202F46;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  flex: 1 0 320px;
  min-width: 260px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 22px 20px 22px;
  justify-content: flex-start;
  transition: box-shadow var(--transition-std), transform var(--transition-std);
}
.service-card:hover, .service-card:focus-within {
  box-shadow: 0 0 0 2.5px var(--color-neon);
  transform: translateY(-5px) scale(1.02);
  z-index: 2;
}
.service-card h3 {
  font-size: 20px;
  color: var(--color-accent);
}
.service-card .price-tag {
  font-weight: 700;
  font-size: 17px;
  color: var(--color-neon-yellow);
  margin: 13px 0 0 0;
}
.service-card a {
  margin-top: 13px;
  color: var(--color-neon);
  font-weight: 700;
  text-decoration: underline;
  transition: color var(--transition-std);
}
.service-card a:hover, .service-card a:focus {
  color: #03C9A9;
}

.card-grid, .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;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --- FEATURE LIST --- */
.features, .feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.features li, .feature-list li, .content-wrapper ul li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 12px;
  color: #C5E7FF;
  font-size: 17px;
  font-weight: 500;
}
.features li:before,
.feature-list li:before,
.content-wrapper ul li:before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 10px;
  height: 10px;
  background: var(--color-neon);
  box-shadow: 0 0 6px 1px var(--color-neon);
  border-radius: 50%;
}

/* --- TESTIMONIAL CARDS --- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  background: var(--color-testi-bg);
  color: var(--color-testi-txt);
  margin-bottom: 20px;
  transition: box-shadow var(--transition-std), transform var(--transition-std);
  position: relative;
  border-left: 4px solid var(--color-secondary);
}
.testimonial-card p {
  font-size: 18px;
  color: var(--color-testi-txt);
  font-family: var(--font-body);
  font-weight: 500;
  margin-bottom: 8px;
  margin-right: 16px;
}
.testimonial-card div {
  font-size: 15px;
  color: #294073;
  font-weight: 600;
  font-family: var(--font-display);
}
.testimonial-card span {
  color: var(--color-neon);
  margin-left: 8px;
}

/* --- SOCIAL LINKS STYLING --- */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin: 10px 0 0 0;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  transition: filter 0.2s;
  border-radius: 50%;
  padding: 5px;
}
.social-links img {
  width: 32px;
  height: 32px;
}
.social-links a:hover, .social-links a:focus {
  filter: drop-shadow(0 0 3px var(--color-neon));
  background: #0B2436;
}

/* --- FOOTER --- */
footer {
  background: var(--color-dark-alt);
  color: #a3e2f8;
  padding: 38px 0 18px 0;
  width: 100%;
  position: relative;
  margin-top: 40px;
}
footer .container {
  display: flex;
  flex-direction: column;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
footer img {
  height: 48px;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 4px var(--color-neon));
}
footer .text-section {
  font-size: 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #dfedff;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}
footer nav a {
  color: #C0E6FE;
  transition: color 0.2s;
  font-size: 16px;
}
footer nav a:hover, footer nav a:focus {
  color: #FFD600;
}
footer .social-links {
  margin-top: 0;
}

/* --- TYPOGRAPHY SCALES --- */
h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-neon);
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
}
h4 {
  font-size: 1.1rem;
  font-weight: 600;
}
@media (max-width: 700px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.06rem; }
}

p, li, a, div, span {
  font-size: 1rem;
}

strong {
  font-weight: 700;
  color: var(--color-secondary);
}

/* --- RESPONSIVENESS --- */
@media (max-width: 1200px) {
  .container {
    max-width: 1000px;
  }
  .service-cards {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 95vw;
  }
  .content-grid, .card-container, .service-cards, .features {
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 18px;
  }
  .service-card {
    max-width: 100%;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 22px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 60px;
  }
  header nav {
    display: none;
  }
  .btn-primary {
    font-size: 16px;
    padding: 10px 22px;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .service-card {
    min-width: unset;
    padding: 19px 10px 16px 12px;
    font-size: 15px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px;
    font-size: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .section {
    padding: 28px 7px;
    margin-bottom: 42px;
  }
}
@media (max-width: 520px) {
  .container {
    padding: 0 7px;
  }
  section {
    padding-left: 0;
    padding-right: 0;
  }
  .service-card {
    padding: 14px 6px 12px 6px;
  }
  .testimonial-card {
    padding: 10px;
  }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1100;
  background: rgba(34, 43, 60, 1);
  color: #fff;
  box-shadow: 0 -2px 22px 0 rgba(3,201,169,0.14);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 20px 18px;
  font-size: 16px;
  animation: cookieSlideIn 0.5s var(--transition-std) 1;
}
@keyframes cookieSlideIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cookie-banner button {
  border: none;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  border-radius: 6px;
  padding: 8px 22px;
  font-size: 15px;
  font-weight: 600;
  margin-left: 0;
  cursor: pointer;
  transition: background var(--transition-std), color 0.18s;
}
.cookie-banner button.accept {
  background: linear-gradient(90deg, var(--color-neon), var(--color-secondary) 85%);
  color: #080C18;
}
.cookie-banner button.reject {
  background: #383F51;
  color: #fff;
}
.cookie-banner button.settings {
  background: none;
  border: 1.5px solid #34B3FF;
  color: #34B3FF;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  box-shadow: 0 0 0 2.5px var(--color-neon);
  background: #222B3C;
  color: var(--color-neon);
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 1200;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(14,19,32,0.87);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  animation: fadeInOverlay 0.5s cubic-bezier(.66,.03,.29,.99) 1;
}
@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  width: 95vw;
  max-width: 400px;
  background: #22305F;
  border-radius: 15px;
  box-shadow: 0 2px 40px 0 rgba(3, 102, 230, 0.20);
  padding: 36px 22px 20px 22px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalPopUp 0.5s var(--transition-std) 1;
}
@keyframes modalPopUp {
  from { transform: scale(0.83); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal-title {
  font-size: 21px;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-neon);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
.cookie-category .toggle {
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: #17376E;
  position: relative;
  cursor: pointer;
  transition: background 0.23s;
  border: 1.5px solid #0E84ED;
}
.cookie-category .toggle.enabled {
  background: var(--color-neon);
  border-color: var(--color-secondary);
}
.cookie-category .toggle:after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  top: 1.5px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.2s;
}
.cookie-category .toggle.enabled:after {
  left: 20px;
}
.cookie-category label {
  font-size: 17px;
  color: #fff;
  font-family: var(--font-body);
}
.cookie-category .essential-msg {
  font-size: 13px;
  color: #BEE7FF;
  margin-left: 6px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal button {
  padding: 8px 22px;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 17px;
  cursor: pointer;
  background: var(--color-neon);
  color: #22305F;
  transition: background 0.2s, color 0.2s;
}
.cookie-modal button.cancel {
  background: #133165;
  color: #fff;
  border: 1.5px solid var(--color-neon);
}
.cookie-modal button.save:hover, .cookie-modal button.save:focus,
.cookie-modal button.cancel:hover, .cookie-modal button.cancel:focus {
  box-shadow: 0 0 10px 0 var(--color-neon);
  color: #FFD600;
}

/* --- SPECIAL ELEMENTS & EFFECTS --- */
.team-photo-placeholder {
  background: repeating-linear-gradient(135deg, #0D243F, #17376E 20px);
  border-radius: 18px;
  height: 127px;
  width: 100%;
  max-width: 410px;
  margin-top: 16px;
  margin-bottom: 4px;
  box-shadow: 0 4px 18px 0 rgba(40,160,255,0.11);
  filter: blur(0.1px) brightness(1.16);
  display: flex;
  align-items: center;
  justify-content: center;
}
.price-tag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--color-secondary);
  margin-top: 6px;
}

/* --- ANIMATIONS/MICRO-INTERACTIONS --- */
.btn-primary, button, .service-card, .card, .testimonial-card, .cookie-banner, .cookie-modal {
  transition: box-shadow 0.25s, background 0.23s, transform 0.2s;
}
.service-card:active, .btn-primary:active {
  transform: scale(0.97) translateY(2px);
}

/* --- MINIMUM MARGINS BETWEEN CARDS AND SECTIONS --- */
.section, .service-card, .testimonial-card, .card {
  margin-bottom: 20px;
}
.section:last-child, .service-card:last-child, .testimonial-card:last-child, .card:last-child {
  margin-bottom: 0;
}
.content-wrapper > *:not(:last-child) {
  margin-bottom: 20px;
}

/* --- UTILITY CLASSES --- */
.center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.flex-col {
  display: flex;
  flex-direction: column;
}
.flex-row {
  display: flex;
  flex-direction: row;
}

/* --- SCROLLBAR --- */
body::-webkit-scrollbar {
  width: 12px;
  background: #22305F;
}
body::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg,#25618A 50%,#03C9A9 100%);
  border-radius: 6px;
}

/* --- HIDE/SHOW MOBILE NAVIGATION --- */
@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 900px) {
  .mobile-menu, .mobile-menu.open, .mobile-menu-close, .mobile-nav, .mobile-menu-toggle {
    display: none !important;
    visibility: hidden;
  }
}

/* --- ACCESSIBILITY --- */
:focus {
  outline: 2px solid var(--color-neon);
  outline-offset: 0.5px;
}

/* --- PRINT (simple) --- */
@media print {
  nav, header, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  main, footer {
    box-shadow: none;
    background: #fff;
    color: #222;
  }
  body {
    background: #fff;
    color: #111;
  }
}
