/* =======================
   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;
}
html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  line-height: 1.5;
  background: #f5f7fb;
  color: #212121;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img, svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
a {
  color: #3949AB;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #212121;
  outline: none;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 24px;
}
li {
  margin-bottom: 8px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #212121;
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; letter-spacing: -1px; }
h2 { font-size: 2rem; letter-spacing: -0.5px; margin-bottom: 16px; }
h3 { font-size: 1.5rem; letter-spacing: -0.25px; margin-bottom: 12px; }
h4 { font-size: 1.125rem; }
h5, h6 { font-size: 1rem; }
p {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #383d4b;
}
strong { font-weight: 700; }

/* Typography hierarchy for geometric_structured */
.category-tags, .special-tag {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.9rem;
  background: #e3e8ff;
  color: #3949AB;
  display: inline-block;
  padding: 2px 12px;
  border-radius: 12px;
  margin: 6px 4px 0 0;
  letter-spacing: 0.07em;
  font-weight: 600;
}

/* ================
   LAYOUT CONTAINERS
   ================ */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 32px 0 rgba(41,57,137,0.07), 0 1.5px 7px 0 rgba(57,73,171,0.05);
}

.main-section {
  background: #e3e8ff;
}

/* Flex containers */
.card-container, .skills-grid, .card-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.content-grid { 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: 20px;
  }
}
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #f7f9fe;
  padding: 20px 24px;
  border-radius: 16px;
  min-width: 220px;
  flex: 1 1 220px;
  box-shadow: 0 2px 8px rgba(57,73,171,0.06);
}

/* ==============
   CARD STYLES
   ============== */
.card-container { margin-bottom: 32px; }
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2.5px 14px rgba(57,73,171,0.08);
  margin-bottom: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 260px;
  flex: 1 1 260px;
  transition: box-shadow 0.2s, transform 0.13s;
}
.card:hover {
  box-shadow: 0 4.5px 24px rgba(57,73,171,0.13);
  transform: translateY(-3px) scale(1.015);
}

/* TESTIMONIAL CARDS */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f7f9fe;
  color: #212121;
  padding: 20px 28px;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 3px 14px 0 rgba(39,43,86,0.07);
  border-left: 5px solid #3949AB;
  font-style: italic;
}
.testimonial-card strong {
  font-style: normal;
  color: #3949AB;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.07rem;
}
.testimonial-card div {
  font-size: 0.97rem;
  opacity: 0.78;
  margin-left: 18px;
}
@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 14px;
    gap: 8px;
  }
  .testimonial-card div {
    margin-left: 0;
  }
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 14px;
}
.skills-grid ul {
  flex: 1 1 220px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.skills-grid li {
  margin-bottom: 10px;
  padding-left: 24px;
  position: relative;
  font-size: 1rem;
  color: #3949AB;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.01em;
}
.skills-grid li:before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #FFC107;
  border-radius: 3px;
  position: absolute;
  left: 0;
  top: 4px;
}

/* ===========
   BUTTONS
   =========== */
.btn-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  background: #3949AB;
  border: none;
  border-radius: 12px;
  padding: 14px 30px 13px 30px;
  letter-spacing: 0.03em;
  box-shadow: 0 6px 26px rgba(57,73,171,0.13);
  cursor: pointer;
  transition: background 0.17s, box-shadow 0.17s, transform 0.10s;
  outline: none;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: #212121;
  color: #FFC107;
  box-shadow: 0 2.5px 14px rgba(57,73,171,0.13),0 4px 28px rgba(41,57,137,0.10);
  transform: translateY(-2px) scale(1.025);
}

.btn-secondary {
  background: #FFC107;
  color: #3949AB;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.01rem;
  border-radius: 10px;
  padding: 12px 26px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 12px;
  transition: background 0.17s, box-shadow 0.16s, color 0.15s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #3949AB;
  color: #fff;
}

.btn-tertiary {
  background: #fff;
  color: #3949AB;
  border: 2px solid #3949AB;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, color 0.16s, border-color 0.15s;
}
.btn-tertiary:hover, .btn-tertiary:focus {
  background: #e3e8ff;
  color: #212121;
  border-color: #212121;
}

/* Inputs (search, forms) */
input[type="text"], 
input[type="email"],
input[type="password"] {
  font-family: 'Open Sans', Arial, sans-serif;
  padding: 12px 18px;
  border-radius: 9px;
  border: 1.5px solid #e3e8ff;
  background: #f7f9fe;
  font-size: 1rem;
  outline: none;
  margin-bottom: 16px;
  width: 100%;
  transition: border-color 0.15s;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus {
  border-color: #3949AB;
}

/* ============
   HEADER
   ============ */
header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(32,36,61,0.07);
  position: relative;
  z-index: 20;
}
header .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 0;
}
header nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 600;
  color: #3949AB;
  letter-spacing: 0.03em;
  padding: 0 2px;
  transition: color 0.19s;
  border-radius: 5px;
  opacity: 0.93;
}
header nav a:hover, header nav a:focus {
  color: #212121;
  background: #e3e8ff;
}
header img {
  max-height: 46px;
  margin-right: 30px;
}
.btn-primary {
  margin-left: 28px;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #3949AB;
  cursor: pointer;
  margin-left: 20px;
  padding: 0 5px;
}
@media (max-width: 1024px) {
  header .container nav { gap: 14px; }
  header img { margin-right: 14px; }
  .btn-primary { margin-left: 18px; padding: 12px 22px; font-size: 1rem; }
}
@media (max-width: 850px) {
  header nav,
  header .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* =============
   MOBILE NAV MENU
   ============= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(33,33,33,0.97);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  box-shadow: -6px 0 32px rgba(32,36,61,0.10);
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  margin: 28px 26px 10px 0;
  cursor: pointer;
  z-index: 2100;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #FFC107;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  width: 100%;
  margin-top: 32px;
  padding: 0 28px;
  gap: 20px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.18rem;
  padding: 8px 0;
  letter-spacing: 0.06em;
  border-bottom: 2px solid transparent;
  transition: color 0.17s, border-color 0.13s;
  width: 100%;
  display: block;
  text-align: right;
  border-radius: 4px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #FFC107;
  border-bottom: 2px solid #FFC107;
  background: rgba(57,73,171,0.15);
}

@media (max-width: 700px) {
  .mobile-nav { padding: 0 16px; }
  .mobile-menu-close { font-size: 2rem; margin: 18px 10px 0 0; }
}


/* =============
   FOOTER
   ============= */
footer {
  background: #212121;
  color: #fff;
  padding: 50px 0 32px 0;
  margin-top: 60px;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 1.5px 15px rgba(41,57,137,0.11);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 40px 72px;
  justify-content: space-between;
  align-items: flex-start;
}
footer img {
  height: 34px;
  margin-bottom: 18px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
footer nav a {
  color: #FFC107;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.14s;
}
footer nav a:hover, footer nav a:focus {
  color: #fff;
}
footer address {
  font-style: normal;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #e3eaf6;
  font-size: 1rem;
  margin-top: 10px;
  line-height: 1.6;
}
footer strong { color: #FFC107; font-weight: 700; }
footer p { color: #b8bdd9; font-size: 0.97rem; }

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

/* ===================
   RESPONSIVE SPACING
   =================== */
@media (max-width: 820px) {
  .container { max-width: 98vw; padding: 0 10px; }
  .section { padding: 28px 10px; margin-bottom: 38px; }
}
@media (max-width: 600px) {
  .section { padding: 14px 4px; margin-bottom: 28px; border-radius: 10px; }
}

/* =====================
   COOKIE CONSENT BANNER
   ===================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  color: #212121;
  border-top: 3.5px solid #3949AB;
  box-shadow: 0 -2.5px 18px rgba(57,73,171,0.11);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 22px 32px;
  z-index: 3000;
  gap: 26px;
  animation: cookieDropIn 0.55s cubic-bezier(.17,.89,.32,1.29);
}
@keyframes cookieDropIn {
  from { transform: translateY(120px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
.cookie-banner__text { font-size: 1rem; max-width: 560px; font-family: 'Open Sans', Arial, sans-serif;  }
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-banner .btn-primary { padding: 8px 22px; font-size: 0.97rem; }
.cookie-banner .btn-secondary { padding: 8px 18px; font-size: 0.97rem; }
.cookie-banner .btn-tertiary { padding: 8px 14px; font-size: 0.97rem; }
@media (max-width: 830px) {
  .cookie-banner {   flex-direction: column; align-items: flex-start; gap: 18px; padding: 14px 10px;  }
  .cookie-banner__actions { width: 100%; }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 4000;
  background: rgba(33,33,33,0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInModalBg .22s linear;
}
@keyframes fadeInModalBg {
  from { background: rgba(33,33,33,0.0); }
  to   { background: rgba(33,33,33,0.65); }
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  min-width: 330px;
  max-width: 95vw;
  padding: 38px 28px 30px 28px;
  box-shadow: 0 4px 26px 0 rgba(57,73,171,0.18);
  animation: modalIn .38s cubic-bezier(.65,-0.12,.41,1.25);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@keyframes modalIn {
  from { transform: scale(.91) translateY(80px); opacity: 0; }
  to   { transform: scale(1) translateY(0);      opacity: 1; }
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.22rem;
  margin-bottom: 10px;
  color: #3949AB;
}
.cookie-modal .close-modal-btn {
  position: absolute;
  top: 15px; right: 15px;
  background: none;
  border: none;
  font-size: 1.45rem;
  color: #3949AB;
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-modal .close-modal-btn:hover {
  color: #212121;
}
.cookie-category {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #212121;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}
.cookie-category input[type="checkbox"] {
  accent-color: #3949AB;
  width: 20px;
  height: 20px;
  border-radius: 5px;
}
.cookie-category--essential input[type="checkbox"] {
  accent-color: #3949AB !important;
  pointer-events: none;
}
.cookie-modal .category-desc {
  font-size: 0.97rem;
  color: #757575;
  padding-left: 27px;
  margin-bottom: 8px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  justify-content: flex-end;
}
.cookie-modal .btn-primary, .cookie-modal .btn-secondary, .cookie-modal .btn-tertiary {
  font-size: 1rem;
}


/* ============
   GEOMETRIC DECOR (STYLE)
   ============ */
/* Decorative geometric pattern using only flex, emulate triangular header mark */
.geometric-divider {
  width: 80px;
  height: 4px;
  background: #FFC107;
  border-radius: 2px;
  margin-bottom: 20px;
}

/* ================
   VISUAL ELEMENTS
   ================ */
::-webkit-scrollbar {
  width: 12px; background: #e3e8ff; border-radius: 6px;
}
::-webkit-scrollbar-thumb {
  background: #b3bedc;
  border-radius: 10px;
}

/* Box highlighting on focus for accessibility */
a:focus, button:focus, input:focus, .btn-primary:focus, .btn-secondary:focus {
  outline: 2.5px solid #3949AB;
  outline-offset: 0.5px;
  z-index: 10;
}

/* ================
   TYPOGRAPHY & STYLE
   ================ */
body {
  background-color: #f5f7fb;
  font-weight: 400;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #23263e;
}

h1, h2, h3, .category-tags, nav a, .btn-primary, .btn-secondary, .btn-tertiary {
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.03em;
}

/* Angular font details for geometric_structured */
h1, h2, .btn-primary, .btn-secondary {
  text-transform: uppercase;
  font-variation-settings: "wght" 700;
}

hr, .geometric-hr {
  border: none;
  border-top: 3px solid #3949AB;
  width: 70px;
  margin: 24px 0;
}

/* Headings within sections */
.section h1, .section h2 {
  margin-bottom: 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
}

.section p, .section ul, .section li {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #212121;
}

.section ul {
  padding-left: 20px;
}

.section ul li::marker {
  color: #3949AB;
  font-size: 1.25em;
}

.section ul li strong {
  color: #3949AB;
}

/* Table Styles */
table { width: 100%; border-collapse: collapse; margin: 16px 0; }
th, td {
  border: 1.5px solid #e3e8ff;
  padding: 12px 10px;
  font-family: 'Open Sans', Arial, sans-serif;
}
th {
  background: #e3e8ff;
  color: #3949AB;
}

/* ===============
   SPECIAL RIBBONS & BADGES
   =============== */
.special-tag {
  background: #FFC107;
  color: #212121;
  font-weight: 700;
  padding: 1.5px 10px;
  border-radius: 7px;
}

/* =================
   VISUAL HIERARCHY
   ================= */
.section > .container > .content-wrapper > h2 {
  border-left: 7px solid #3949AB;
  padding-left: 13px;
  margin-bottom: 20px;
  font-size: 2rem;
  color: #3949AB;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.section > .container > .content-wrapper > h1 {
  color: #212121;
}

/* Responsive Type Scaling */
@media (max-width: 700px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.36rem; }
  .section > .container > .content-wrapper > h2 { font-size: 1.24rem; }
}

/* ====================
   SPACING (MANDATORY PATTERNS)
   ==================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card { margin-bottom: 20px; position: relative; }
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =================
   ACCESSIBILITY
   ================= */
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    transition: none !important;
    animation: none !important;
  }
}

/* Hide visually but keep accessible */
.sr-only {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========
   PRINT OPTIMIZATION
   ========== */
@media print {
  header, footer, .cookie-banner, .cookie-modal-overlay, .mobile-menu { display: none !important; }
  body { background: #fff; color: #000; }
  .section, .card, .testimonial-card { box-shadow: none !important; background: #fff !important; }
}
