/* --- 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, main, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  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: #121820;
  color: #F2F4F8;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: #72A9C0;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #d6eafd;
  text-decoration: underline;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  outline: none;
}
/* --- VARIABLE FALLBACKS --- */
:root {
  --primary: #193A5A;
  --secondary: #72A9C0;
  --accent: #F2F4F8;
  --dark-bg: #121820;
  --surface: #1a232a;
  --metallic: #b0b8c4;
  --shadow: 0 6px 24px 0 rgba(19,37,56, 0.19);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --card-radius: 14px;
  --border-metal: 1.5px solid #25364a;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: #F2F4F8;
  letter-spacing: 0.04em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #72A9C0;
}
h4, h5, h6 {
  font-size: 1.1rem;
  color: #b0b8c4;
}
p, ul, ol, li, blockquote, span {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #DFE4EC;
  margin-bottom: 10px;
  line-height: 1.7;
}
strong, b {
  color: #F2F4F8;
  font-weight: 700;
}

/* --- LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section {
  background: var(--surface);
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  border: var(--border-metal);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* --- FLEX LAYOUT COMPONENTS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: var(--border-metal);
  border-radius: var(--card-radius);
  padding: 24px 18px;
  transition: box-shadow 0.15s, border-color 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px 0 rgba(39,91,135, 0.24);
  border-color: var(--secondary);
}
.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;
  background: #F2F4F8;
  color: #193A5A;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  border-left: 5px solid var(--secondary);
  flex: 1 1 320px;
  min-width: 260px;
  max-width: 430px;
  position: relative;
}
.testimonial-card p {
  color: #193A5A;
  font-size: 1.08rem;
  font-style: italic;
}
.testimonial-card span {
  color: #444b54;
  font-size: 0.95rem;
  font-weight: 600;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--surface);
  border-radius: var(--card-radius);
  padding: 20px 16px 18px 16px;
  box-shadow: var(--shadow);
  border: var(--border-metal);
  flex: 1 1 215px;
  min-width: 200px;
  transition: box-shadow .18s, border-color .2s;
}
.feature-item:hover {
  box-shadow: 0 8px 32px 0 rgba(39,91,135, 0.25);
  border-color: var(--secondary);
}

/* --- HEADER & NAV --- */
header {
  width: 100%;
  background: #162330;
  border-bottom: 2px solid #263a4f;
  position: relative;
  z-index: 1030;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 86px;
  position: relative;
}
header img[alt="Lucs Nuova Finanse"] {
  height: 42px;
}
nav {
  display: flex;
  gap: 24px;
}
nav a {
  font-family: var(--font-display);
  font-size: 1.13rem;
  font-weight: 500;
  color: #F2F4F8;
  letter-spacing: 0.02em;
  padding: 4px 2px;
  border-bottom: 2.5px solid transparent;
  transition: color 0.2s, border-color 0.25s;
}
nav a:hover, nav a.active {
  color: var(--secondary);
  border-bottom: 2.5px solid var(--secondary);
}
header .btn-primary {
  margin-left: 24px;
}
/* --- BURGER MENU --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #F2F4F8;
  cursor: pointer;
  position: relative;
  z-index: 1501;
  margin-left: 12px;
  transition: color 0.16s;
}
.mobile-menu-toggle:hover { color: var(--secondary); }
.mobile-menu {
  display: none;
}
body.mobile-menu-open {
  overflow: hidden;
}
body.mobile-menu-open .mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #162330ed;
  z-index: 2000;
  animation: slideInMenu .36s cubic-bezier(.62,.12,.38,.94);
  box-shadow: 4px 0 24px rgba(25,58,90,.16);
}
@keyframes slideInMenu {
  from { transform: translateX(-100vw); opacity: 0.5; }
  to { transform: translateX(0); opacity: 1; }
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #F2F4F8;
  font-size: 2.3rem;
  margin: 16px 16px 0 0;
  cursor: pointer;
  transition: color .15s;
  z-index: 2010;
}
.mobile-menu-close:hover { color: var(--secondary); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 28px;
  gap: 24px;
  align-items: flex-start;
  padding-left: 40px;
}
.mobile-nav a {
  color: #F2F4F8;
  font-size: 1.25rem;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  padding: 7px 0;
  border-bottom: 2px solid transparent;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a.active {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
  background: #233146;
}
/* --- PRIMARY BUTTONS --- */
.btn-primary, button[type=submit], .newsletter-form button {
  display: inline-flex;
  align-items: center;
  background-color: var(--secondary);
  color: #193A5A;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.09rem;
  border: none;
  border-radius: 6px;
  padding: 11px 30px;
  cursor: pointer;
  box-shadow: 0 2px 10px 0 rgba(39,91,135, 0.10);
  letter-spacing: 0.01em;
  transition: background 0.19s, color 0.15s, box-shadow 0.18s, transform 0.12s;
}
.btn-primary:hover, .btn-primary:focus, button[type=submit]:hover, .newsletter-form button:hover {
  background: #F2F4F8;
  color: #193A5A;
  box-shadow: 0 6px 21px 0 rgba(114,169,192,0.13);
  transform: translateY(-1.5px) scale(1.02);
  text-decoration: none;
}
.btn-primary:active {
  background: #e7e7ee;
}

/* --- HERO/INTRO SECTION --- */
.content-wrapper > h1 {
  color: var(--secondary);
  text-shadow: 0 2px 13px #10152577, 0 1px 0 #203850;
}
/* --- FEATURE GRID --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}
/* --- TESTIMONIAL SLIDER --- */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}

/* --- TABLES (Pricing etc.) --- */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: #1a232a;
  border-radius: var(--card-radius);
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.pricing-table th, .pricing-table td {
  padding: 18px 16px;
  text-align: left;
  font-size: 1.05rem;
}
.pricing-table th {
  background: #162330;
  color: var(--secondary);
  font-family: var(--font-display);
}
.pricing-table td {
  background: var(--surface);
  color: #F2F4F8;
  font-family: var(--font-body);
  border-top: var(--border-metal);
}

/* --- NEWS/ARTICLE STYLES --- */
.news-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.news-item {
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 22px 18px 18px 18px;
  border-radius: var(--card-radius);
  border: var(--border-metal);
  flex: 1 1 275px;
  min-width: 225px;
  max-width: 370px;
  transition: box-shadow .16s, border-color .16s;
}
.news-item h3 {
  color: #72A9C0;
  margin-bottom: 6px;
  font-size: 1.14rem;
}
.news-item:hover {
  box-shadow: 0 8px 32px 0 rgba(114,169,192, 0.13);
  border-color: var(--secondary);
}

/* --- FORMS --- */
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}
.newsletter-form input[type="email"] {
  background: #303b45;
  color: #F2F4F8;
  border: var(--border-metal);
  padding: 9px 15px;
  border-radius: 6px;
  font-size: 1rem;
  min-width: 200px;
  box-shadow: none;
  margin-right: 8px;
  transition: border-color .18s;
}
.newsletter-form input[type="email"]:focus {
  border-color: var(--secondary);
  background: #232a35;
}

/* --- FILTER BUTTONS (Aktualnosci) --- */
.filters {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.filters button {
  background: #25364a;
  color: #F2F4F8;
  border: 1.2px solid #374b62;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 6px 18px;
  cursor: pointer;
  transition: background 0.17s, border-color 0.17s;
}
.filters button:hover,
.filters button:focus {
  background: #193A5A;
  border-color: var(--secondary);
  color: var(--secondary);
}

/* --- BENEFIT ICONS --- */
.benefit-icons,
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.benefit-icons > div {
  background: var(--surface);
  border-radius: var(--card-radius);
  padding: 16px 10px 12px 10px;
  box-shadow: var(--shadow);
  min-width: 136px;
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.99rem;
  border: var(--border-metal);
}
.benefit-icons img {
  width: 36px; height: 36px;
}

.team-list > div {
  background: var(--surface);
  border-radius: var(--card-radius);
  padding: 18px 14px;
  box-shadow: var(--shadow);
  border: var(--border-metal);
  flex: 1 1 250px;
  min-width: 180px;
  max-width: 350px;
  margin-bottom: 16px;
}
.team-list h3 {
  color: #72A9C0;
}
.team-list span {
  color: #aebbca;
  font-size: 0.96rem;
  display: block;
}

/* --- CONTACT --- */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}
.contact-details span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #F2F4F8;
  font-family: var(--font-body);
  font-size: 1.03rem;
}
.contact-map {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}
.contact-map img {
  width: 120px; height: auto;
}

/* --- FOOTER --- */
footer {
  background: #162330;
  border-top: 2px solid #25364a;
  color: #F2F4F8;
  font-size: 1rem;
  padding: 24px 0 4px 0;
  margin-top: 80px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-nav a {
  color: #b0b8c4;
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 2px 0;
  border-bottom: 1.5px solid transparent;
  transition: color 0.15s, border-color 0.18s;
}
.footer-nav a:hover {
  color: var(--secondary);
  border-bottom: 1.5px solid var(--secondary);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  font-size: 0.97rem;
  color: #aebbca;
}
.footer-contact img {
  width: 18px;
  margin-right: 6px;
}
.footer-brand {
  margin-top: 6px;
  color: #586877;
  font-size: 0.97rem;
}

/* --- COOKIE CONSENT BANNER & MODAL --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4000;
  background: #212e3b;
  color: #F2F4F8;
  box-shadow: 0 -2px 16px 0 rgba(19,37,56, 0.19);
  border-top: 3px solid #263a4f;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  gap: 18px;
  font-size: 1rem;
  animation: cookieBannerIn .32s cubic-bezier(.82,.25,.18,1.05);
}
@keyframes cookieBannerIn {
  from { transform: translateY(120%); opacity: 0.5; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: #F2F4F8;
  margin: 0;
  font-size: 0.98rem;
}
.cookie-buttons {
  display: flex;
  gap: 13px;
}
.cookie-accept, .cookie-reject, .cookie-settings {
  font-size: 0.97rem;
  border-radius: 5px;
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  padding: 8px 18px;
  transition: background .17s, color .11s;
}
.cookie-accept {
  background: var(--secondary);
  color: #193A5A;
}
.cookie-accept:hover { background: #F2F4F8; }
.cookie-reject {
  background: #25364a;
  color: #F2F4F8;
}
.cookie-reject:hover { background: #364b63; }
.cookie-settings {
  background: transparent;
  color: var(--secondary);
  border: 1.3px solid #72A9C0;
}
.cookie-settings:hover { background: #1a232a; color: #F2F4F8; }

.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: #121820d4;
  z-index: 4100;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cookie-modal {
  background: #212e3b;
  padding: 28px 22px 14px 22px;
  border-radius: 18px;
  box-shadow: 0 6px 36px 0 rgba(19,37,56, 0.27);
  max-width: 380px;
  width: 97%;
  color: #F2F4F8;
}
.cookie-modal h2 {
  color: var(--secondary);
  font-size: 1.23rem;
  margin-bottom: 12px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 22px;
}
.cookie-category {
  background: #273849;
  padding: 12px 9px 12px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.cookie-category label {
  flex: 1;
  color: #F2F4F8;
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
}
.cookie-toggle {
  width: 40px;
  height: 22px;
  background: #364b63;
  border-radius: 20px;
  position: relative;
  transition: background .19s;
}
.cookie-toggle input[type="checkbox"] {
  display: none;
}
.cookie-toggle span {
  display: block;
  position: absolute;
  left: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
  background: #F2F4F8;
  border-radius: 50%;
  transition: left .21s, background .13s;
}
.cookie-toggle input[type="checkbox"]:checked + span {
  left: 20px;
  background: var(--secondary);
}
.cookie-modal .cookie-modal-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 7px;
}
.cookie-modal .cookie-accept {
  min-width: 0;
  flex: 1 1 44%;
}
.cookie-modal .cookie-reject {
  min-width: 0;
  flex: 1 1 44%;
}
.cookie-modal .cookie-close-modal {
  display: block;
  margin: 10px auto 0 auto;
  background: transparent;
  color: #A1B4C5;
  border: none;
  font-size: 1.09rem;
  cursor: pointer;
  text-align: center;
  transition: color .13s;
}
.cookie-modal .cookie-close-modal:hover {
  color: #F2F4F8;
}

/* --- SPACING AND ALIGNMENT --- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .content-grid, .feature-grid, .news-list, .testimonial-slider, .benefit-icons, .team-list, .footer-contact, .filters {
  gap: 24px;
}
.card-container, .content-grid, .feature-grid, .news-list, .testimonial-slider, .benefit-icons, .team-list {
  flex-wrap: wrap;
}
.card, .feature-item, .news-item, .testimonial-card, .team-list > div {
  margin-bottom: 20px;
}
.text-image-section {
  gap: 30px;
}
.feature-item {
  gap: 15px;
}
.testimonial-card {
  gap: 20px;
  padding: 20px;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1100px) {
  .container {
    max-width: 98vw;
  }
  .feature-grid, .news-list, .benefit-icons, .team-list {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .container {
    padding-left: 10px; padding-right: 10px;
  }
  .feature-grid, .news-list, .benefit-icons, .team-list {
    gap: 11px;
  }
  .footer-contact {
    gap: 12px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    gap: 8px;
    height: 70px;
    padding: 0 8px;
  }
  nav {
    display: none;
  }
  header .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
    margin-left: 0;
    font-size: 2rem;
  }
  .footer-nav {
    gap: 10px;
    flex-wrap: wrap;
  }
  .footer-contact, .feature-grid, .benefit-icons, .team-list {
    flex-direction: column;
    gap: 7px;
  }
  .team-list > div, .benefit-icons > div {
    max-width: 98vw;
  }
  .testimonial-slider {
    flex-direction: column;
    gap: 15px;
  }
  .content-grid, .card-container, .news-list {
    flex-direction: column;
    gap: 12px;
  }
  .pricing-table th, .pricing-table td {
    padding: 11px 8px;
    font-size: 0.98rem;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .section, section {
    padding: 28px 6px;
    margin-bottom: 32px;
  }
}
@media (max-width: 620px) {
  h1 {font-size: 1.45rem;}
  h2 {font-size: 1.18rem;}
  h3 {font-size: 1.08rem;}
  .testimonial-card, .benefit-icons > div, .team-list > div {
    min-width: 98vw;
    padding-left: 5vw; padding-right: 5vw;
    font-size: 0.97rem;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 12px 15px 12px;
    font-size: 0.96rem;
  }
}
@media (max-width: 430px) {
  .testimonial-card, .feature-item, .news-item {
    padding-left: 5vw; padding-right: 5vw; min-width: 0;
  }
}

/* --- INDUSTRIAL MODERN EXTRAS: METALLIC & SHADOWS --- */
.card, .feature-item, .benefit-icons > div, .news-item, .team-list > div, .testimonial-card {
  box-shadow: 0 6px 21px 0 rgba(25,58,90, 0.15), 0 1px 0 #314351;
  border-right: 2.5px solid #25364a77;
}
.card:after, .feature-item:after, .news-item:after, .team-list > div:after, .testimonial-card:after {
  content: '';
  position: absolute;
  right: 0; top: 8%;
  width: 2.5px;
  height: 84%;
  background: linear-gradient(to bottom, #b0b8c413 60%, #72A9C0 100%);
  border-radius: 3px;
  z-index: 0;
  pointer-events: none;
  display: block;
}
@media (max-width: 768px){
  .card:after, .feature-item:after, .news-item:after, .team-list > div:after, .testimonial-card:after {
    display: none;
  }
}

/*--- Utility Spacing Classes ---*/
.mt-0 { margin-top: 0!important; }
.mt-xs { margin-top: 8px!important; }
.mt-sm { margin-top: 16px!important; }
.mt-md { margin-top: 24px!important; }
.mt-lg { margin-top: 32px!important; }
.mb-0 { margin-bottom: 0!important; }
.mb-xs { margin-bottom: 8px!important; }
.mb-sm { margin-bottom: 16px!important; }
.mb-md { margin-bottom: 24px!important; }
.mb-lg { margin-bottom: 32px!important; }

/*--- SCROLLBAR (Dark Industrial) ---*/
::-webkit-scrollbar {
  width: 10px;
  background: #162330;
}
::-webkit-scrollbar-thumb {
  background: #233146;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* --- FOCUS STATES & ACCESSIBILITY --- */
a:focus, button:focus, input:focus {
  outline: 2.5px solid var(--secondary);
  outline-offset: 2px;
}

/* --- HIDE ELEMENTS UTILITY --- */
.hidden { display: none!important; }

/* --- END OF STYLE.CSS --- */
