/* ========================
   CSS RESET + BASE STYLES
   ======================== */
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, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #141C27;
  color: #E6EBF3;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  max-width: 100%;
  vertical-align: middle;
  height: auto;
}
input, button, textarea, select {
  font: inherit;
}
a {
  color: #57B893;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #6EFBC8;
}

/* ========================
    BRANDING VARIABLES
   ======================== */
:root {
  --primary: #15416C;
  --secondary: #E6EBF3;
  --accent: #57B893;
  --accent-spectrum: #24C3DD;
  --bg-dark: #141C27;
  --bg-faded: #1B2533;
  --text-main: #E6EBF3;
  --text-dark: #15416C;
  --text-light: #F8FBFF;
  --danger: #DB3654;
  --shadow-lg: 0 8px 32px 0 rgba(39,79,173,0.14);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 6px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
}

/* ========================
      TYPOGRAPHY
   ======================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--secondary);
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: var(--space-2);
}
h2 {
  font-size: 2rem;
  margin-bottom: var(--space-2);
}
h3 {
  font-size: 1.375rem;
  margin-bottom: var(--space-1);
}
h4 {
  font-size: 1.125rem;
  margin-bottom: var(--space-1);
}
h5, h6 { font-size: 1rem; }
p, ul, ol, li, table, th, td, blockquote {
  font-size: 1rem;
  line-height: 1.7;
}
ul, ol {
  margin-left: 1.4em;
  margin-bottom: var(--space-2);
}
strong, b {
  color: var(--accent);
  font-weight: 700;
}
em, i {
  font-style: italic;
}

/* ========================
   LAYOUT AND CONTAINERS
   ======================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
main {
  flex: 1 1 0;
}

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: var(--bg-faded);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3);
}
.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: var(--radius-md);
  background: var(--secondary);
  color: var(--text-dark);
  box-shadow: 0 2px 24px 0 rgba(44,209,191,0.08);
  margin-bottom: 20px;
  min-width: 0;
  flex: 1 0 320px;
  transition: box-shadow 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 32px 0 rgba(44,209,191,0.18), var(--shadow-lg);
}
.feature-item,
.feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ========================
      HEADER & NAVIGATION
   ======================== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: var(--primary);
  box-shadow: 0 2px 10px 0 rgba(20,65,108,0.05);
  padding: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 0;
}
header a img {
  height: 40px;
}
nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
nav a {
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  position: relative;
  transition: background 0.15s, color 0.15s;
}
nav a:hover,
nav a:focus {
  background: var(--accent);
  color: #193560;
}
nav .btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-spectrum));
  color: #193560;
  padding: 10px 20px;
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: 0 0 16px 0 rgba(87,184,147,0.2);
  position: relative;
  border: none;
  transition: background 0.15s, color 0.15s, box-shadow 0.2s;
}
nav .btn-primary:hover,
nav .btn-primary:focus {
  background: linear-gradient(90deg, #36F5C7, var(--accent));
  color: var(--primary);
  box-shadow: 0 0 32px 0 rgba(87,184,147,0.32);
}

.mobile-menu-toggle {
  background: transparent;
  color: var(--secondary);
  font-size: 2rem;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-left: 1rem;
  border-radius: var(--radius-sm);
  transition: background 0.12s;
  display: none;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: rgba(87,184,147,0.12);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right:0; bottom:0;
  background: rgba(20,65,108,0.98);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.86,0,.07,1);
  width: 100vw;
  height: 100vh;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 24px 8px 0;
  background: transparent;
  color: var(--accent);
  border: none;
  font-size: 2.2rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 8px;
  transition: background 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(87,184,147,0.16);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 36px;
  width: 100%;
  margin-top: 40px;
}
.mobile-nav a {
  color: var(--secondary);
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.02em;
  font-weight: 600;
  padding: 12px 0;
  transition: color 0.16s, background 0.16s;
}
.mobile-nav a:active,
.mobile-nav a:focus,
.mobile-nav a:hover {
  color: var(--accent);
}

@media (max-width: 1020px) {
  nav {
    gap: 12px;
  }
  header .container {
    min-height: 58px;
  }
}
@media (max-width: 880px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ========================
      HERO/CTA/TEASERS
   ======================== */
.hero {
  background: linear-gradient(110deg, #203D55 0%, #172B40 95%);
  padding: 64px 0 40px 0;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: var(--space-3);
}
.hero h1, .hero h2, .hero p {
  color: var(--text-light);
}
.cta {
  background: var(--primary);
  border-top: 2px solid #162747;
  border-bottom: 2px solid #162747;
  padding: 40px 0;
  box-shadow: 0 4px 16px 0 rgba(44,209,191,0.04);
}
.cta .content-wrapper {
  align-items: center;
  text-align: center;
  gap: var(--space-2);
}
.cta h2 {
  color: var(--accent);
  font-size: 2rem;
}
/* ========================
      FEATURES
   ======================== */
.features {
  background: var(--bg-faded);
  margin-bottom: 60px;
  padding: 40px 0;
}
.features .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: var(--space-2);
}
.feature {
  background: #18263B;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 16px 1px rgba(87,184,147,0.08), var(--shadow-lg);
  padding: var(--space-4) var(--space-3);
  min-width: 240px;
  max-width: 370px;
  flex: 1 1 240px;
  border: 1px solid rgba(57,255,171,0.08);
  transition: border 0.22s, box-shadow 0.22s;
  position: relative;
  z-index: 1;
}
.feature img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 14px #57B89344);
  margin-bottom: 8px;
}
.feature:hover,
.feature:focus-within {
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 36px 2px #57B89333, var(--shadow-lg);
  z-index: 2;
}
.feature h3 {
  color: var(--accent);
  font-size: 1.125rem;
}
.feature p {
  color: var(--text-main);
  font-size: 1rem;
}

/* ========================
    PROJECTS & CARDS
   ======================== */
.project-card {
  background: #18263B;
  border: 1px solid rgba(87,184,147,0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 6px 0 rgba(20,65,108,0.04);
  padding: var(--space-3) var(--space-3);
  margin-bottom: 20px;
  transition: box-shadow 0.16s, border 0.19s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.project-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 18px 2px #57B8933a;
}
.project-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: var(--space-2);
}

/* ========================
    TESTIMONIALS
   ======================== */
.testimonials {
  background: #F8FBFF;
  padding: 56px 0 48px 0;
}
.testimonials h2 {
  color: var(--primary);
  margin-bottom: var(--space-3);
}
.testimonial-card {
  background: var(--secondary);
  color: var(--text-dark);
  border: 1.5px solid #E6EBF3;
  box-shadow: 0 2px 24px 0 #57B89311;
  min-width: 290px;
  margin-bottom: 20px;
  padding: 24px 28px;
  gap: 18px;
  font-size: 1.07rem;
  font-style: italic;
}
.testimonial-card span {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  margin-top: 6px;
  display: block;
}

/* ========================
      BUTTONS & LINKS
   ======================== */
.btn-primary, .btn-secondary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.01em;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 28px;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, box-shadow 0.22s;
  text-align: center;
}
.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-spectrum));
  color: var(--primary);
  box-shadow: 0 0 16px 0 rgba(87,184,147,0.18);
  text-shadow: 0 0 2.5px #24C3DD22;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, #40FFD7, #57B893);
  color: var(--bg-dark);
  box-shadow: 0 0 36px 0 #57B89388;
}
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: none;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--accent);
  color: var(--primary);
}

/* ========================
      FOOTER
   ======================== */
footer {
  background: #162747;
  padding: 40px 0 24px 0;
  color: var(--secondary);
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 38px 24px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-logo {
  flex: 1 1 120px;
}
.footer-nav {
  flex: 2 1 280px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
  min-width: 200px;
}
.footer-nav a {
  color: var(--secondary);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px;
  transition: color .13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
}
.footer-contact {
  flex: 3 1 280px;
  font-size: 0.97rem;
  color: #DFE9EF;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  opacity: 0.8;
}
footer p {
  display: flex;
  align-items: center;
  margin: 0 0 2px 0;
}

/* ========================
    FORMS, TABLES, DETAILS
   ======================== */
table {
  width: 100%;
  border-collapse: collapse;
  background: #202F43;
  margin-bottom: var(--space-3);
  border-radius: var(--radius-md);
  overflow: hidden;
}
thead tr {
  background: #172B40;
}
th, td {
  border: none;
  padding: 12px 14px;
  color: var(--text-main);
  text-align: left;
}
th {
  color: var(--accent);
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
tr:nth-child(even) td {
  background: #171E2C;
}
tr:nth-child(odd) td {
  background: #18263B;
}

/* ========================
        FAQ ACCORDION
   ======================== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: var(--space-2);
}
.faq-accordion > div {
  background: #E6EBF3;
  color: var(--primary);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 14px 0 #24C3DD11;
  padding: 20px 28px;
  cursor: pointer;
  transition: box-shadow 0.14s, border 0.17s;
}
.faq-accordion > div:hover, .faq-accordion > div:focus-within {
  box-shadow: 0 6px 26px 0 #24C3DD33, var(--shadow-lg);
  border: 1.5px solid var(--accent);
}
.faq-accordion h3 {
  font-size: 1.1em;
  margin-bottom: 7px;
  color: var(--primary);
}
.faq-accordion div > div {
  color: #29466B;
  font-size: 1em;
  margin-top: 2px;
  font-style: normal;
}

/* ========================
      LEGAL & STATIC
   ======================== */
.legal {
  background: #202F43;
  color: var(--secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-top: 46px;
  margin-bottom: 64px;
  padding: 48px 24px;
}
.legal h1, .legal h2, .legal h3 {
  color: var(--accent);
}
.legal ul {
  margin-left: 1.6em;
}

/* ========================
        COOKIE BANNER
   ======================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 600;
  background: #1B2533;
  color: var(--text-main);
  box-shadow: 0 -2px 24px 0 #15416C44;
  padding: 22px 18px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 1.04rem;
  animation: slideUpBanner 0.6s cubic-bezier(.7,0,.28,1);
}
@keyframes slideUpBanner {
  from { transform: translateY(50%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.cookie-banner .btn-primary, .cookie-banner .btn-secondary {
  font-size: 1rem;
  padding: 9px 18px;
}
.cookie-banner .btn-danger {
  background: var(--danger);
  color: #FFF;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: 0 0 10px 0 #DB365455;
  padding: 9px 18px;
  font-weight: 700;
  transition: background 0.18s, box-shadow 0.18s;
}
.cookie-banner .btn-danger:hover, .cookie-banner .btn-danger:focus {
  background: #A72039;
  box-shadow: 0 0 16px 0 #DB365488;
}

.cookie-preferences-modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(20,65,108,0.75);
  justify-content: center;
  align-items: center;
  animation: fadeInModal 0.34s cubic-bezier(.7,0,.28,1);
}
.cookie-preferences-modal.open {
  display: flex;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #202F43;
  color: var(--secondary);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px 0 #203D5588;
  padding: 32px 28px;
  max-width: 400px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal-content h2 {
  color: var(--accent);
  margin-bottom: 12px;
  font-size: 1.42rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.cookie-category label {
  flex: 1;
  color: #B8E4DB;
  font-size: 1.05em;
}
.cookie-toggle {
  appearance: none;
  width: 34px;
  height: 20px;
  background: #263B56;
  border-radius: 20px;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: background 0.18s;
  box-shadow: 0 1px 4px 0 #002A4D2A;
}
.cookie-toggle:checked {
  background: var(--accent);
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.18s;
}
.cookie-toggle:checked:before {
  left: 17px;
}
.cookie-close {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 1.5rem;
  align-self: flex-end;
  cursor: pointer;
  margin-top: -16px;
}
.cookie-close:hover {
  color: #6EFBC8;
}

/* ========================
      MEDIA QUERIES
   ======================== */
@media (max-width: 1180px) {
  .container {
    max-width: 1000px;
  }
  .footer-contact { min-width: 220px; }
}
@media (max-width: 900px) {
  .footer-logo { display: none; }
}
@media (max-width: 760px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.37rem; }
  .container {
    max-width: 96vw;
    padding: 0 var(--space-1);
  }
  .features .feature-grid, .project-previews, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature, .testimonial-card, .project-card {
    min-width: 100% !important;
    max-width: 100% !important;
    padding: var(--space-3) var(--space-2);
  }
  .about-intro, .hero, .cta, .features {
    padding: 32px 0 24px 0;
  }
  .testimonials {
    padding: 32px 0 24px 0;
  }
  .section {
    margin-bottom: 38px;
    padding: 20px 6px;
  }
  .legal {
    margin-top: 24px;
    margin-bottom: 24px;
    padding: 28px 6px;
    border-radius: var(--radius-md);
  }
  .footer-contact { font-size: 0.95rem; }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .footer-nav {
    gap: 10px;
    min-width: 120px;
  }
  .footer-contact {
    gap: 4px;
  }
  .cta .content-wrapper {
    align-items: flex-start;
    text-align: left;
  }
}

/* Extra mobile nav & spacing tweaks */
@media (max-width: 600px) {
  header .container {
    padding-left: 6px;
    padding-right: 6px;
    min-height: 52px;
  }
  .mobile-nav {
    padding: 16px 18px;
    gap: 15px;
    margin-top: 22px;
  }
  .footer-contact {
    font-size: 0.86rem;
  }
}

/* Utility (spacing, visibility, helper) */
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }

/* ========================
    ACCESSIBILITY & FOCUS
   ======================== */
a, button {
  outline: none;
}
a:focus, button:focus {
  outline: 2px dash var(--accent);
  outline-offset: 2px;
}
::selection {
  background: var(--accent-spectrum);
  color: var(--primary);
}

/* ========================
     MICRO-INTERACTIONS
   ======================== */
.btn-primary, .btn-secondary, .btn-danger, nav a, .feature, .project-card, .testimonial-card, .faq-accordion > div, .cookie-toggle {
  transition: 
    background 0.16s cubic-bezier(.6,.01,.2,1),
    color 0.16s cubic-bezier(.7,0,.28,1),
    box-shadow 0.15s,
    border 0.18s cubic-bezier(.7,0,.28,1),
    transform 0.14s cubic-bezier(.7,0,.28,1);
}
.btn-primary:active, .feature:active, .project-card:active, .testimonial-card:active, .faq-accordion > div:active {
  transform: scale(0.98);
}

/* ========================
    PRINT & MISC
   ======================== */
@media print {
  header, footer, .cookie-banner, .mobile-menu {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
