/* =====================================================
   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-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.4;
  background: #fff;
  color: #252835;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
button, input[type="submit"] {
  all: unset;
  font-family: inherit;
  cursor: pointer;
}
input, textarea, button, select {
  font-family: inherit;
}

/* =====================================================
   BRAND COLORS & TYPOGRAPHY
====================================================== */
:root {
  --primary: #252835;
  --secondary: #A1A1A1;
  --accent: #FFD700;
  --bg: #fff;
  --text: #252835;
  --heading: #252835;
  --border: #ededed;
  --shadow-sm: 0 1px 4px rgba(37,40,53,0.03);
  --shadow-md: 0 6px 32px rgba(37,40,53,0.08);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: var(--heading);
  font-weight: 600;
  letter-spacing: -0.03em;
}
h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 24px; }
h2 { font-size: 2rem;   line-height: 1.2;  margin-bottom: 20px; }
h3 { font-size: 1.25rem; line-height: 1.3;  margin-bottom: 16px; }
h4 { font-size: 1.1rem;  line-height: 1.3;  margin-bottom: 12px; }
p, ul, ol, li { font-size: 1rem; line-height: 1.75; color: var(--text); }
strong { font-weight: 600; }

/* Typography scaling for mobile */
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }
}

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

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

/* SPECIAL LAYOUT CLASSES & FLEXBOX RULES */
.card-container, .brand-grid, .blog-list, .service-cards, .service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card, .brand-grid > div, .service-cards > div, .service-grid > div, .blog-list > article {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border:1px solid var(--border);
  transition: box-shadow 0.2s, border 0.2s;
}
.card:hover, .brand-grid > div:hover, .service-cards > div:hover, .service-grid > div:hover, .blog-list > article:hover {
  box-shadow: var(--shadow-md);
  border: 1px solid var(--accent);
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* GRID-LIKE FLEX CONTAINERS, NEVER GRID */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.feature-grid > li {
  flex: 1 1 220px;
  min-width: 200px;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  padding: 28px 18px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, border 0.2s;
  margin-bottom: 0;
}
.feature-grid > li:hover {
  box-shadow: var(--shadow-md);
  border: 1px solid var(--accent);
}

.brand-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 0;
}
.brand-grid > div {
  flex: 1 1 240px;
  min-width: 200px;
  align-items: flex-start;
  text-align: left;
}

.service-cards, .service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 24px;
  margin-bottom: 24px;
}
.service-cards > div, .service-grid > div {
  flex: 1 1 240px;
  min-width: 200px;
}

.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.blog-list > article {
  flex: 1 1 300px;
  min-width: 260px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 32px;
  margin: 0 0 20px 0;
  background: #FAFAFA;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  font-size: 1.05rem;
  transition: box-shadow 0.2s;
  max-width: 620px;
}
.testimonial-card strong {
  color: var(--primary);
  font-weight: 700;
}
.testimonial-card .stars {
  display: flex;
  gap: 2px;
  align-items: center;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
}

@media (max-width: 900px) {
  .blog-list, .brand-grid, .card-container, .service-grid, .service-cards {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 700px) {
  .feature-grid, .brand-grid, .service-cards, .service-grid {
    flex-direction: column;
    gap: 16px;
  }
  .container {
    padding: 0 12px;
  }
}
/* General Form Fields */
input[type="email"],
input[type="text"],
input[type="password"],
textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fafbfc;
  font-size: 1rem;
  color: var(--primary);
  transition: border 0.2s;
}
input[type="email"]:focus,
input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
  border: 1.5px solid var(--accent);
  outline: none;
}

/* BUTTONS & CTA */
.cta-btn, button, .mobile-menu-close, .cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 32px;
  padding: 12px 32px;
  border: none;
  box-shadow: 0 1px 4px rgba(37,40,53,0.08);
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
  outline: none;
}
.cta-btn:hover, button:hover, .cookie-btn:hover, .mobile-menu-close:hover {
  background: var(--accent);
  color: var(--primary);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

button[type="submit"], .cta-btn[type="submit"] {
  min-width: 100px;
  justify-content: center;
}

/* Accent style for other special buttons */
.cookie-btn.accept {
  background: var(--accent);
  color: var(--primary);
}
.cookie-btn.accept:hover {
  background: var(--primary);
  color: var(--accent);
}
.cookie-btn.reject {
  background: #ededed;
  color: var(--primary);
  border: 1px solid var(--border);
}
.cookie-btn.reject:hover {
  background: var(--primary);
  color: #fff;
}
.cookie-btn.settings {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--border);
}
.cookie-btn.settings:hover {
  background: var(--accent);
  color: var(--primary);
}

/* --- HEADER STYLES --- */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 30;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 20px;
}
header img {
  height: 48px;
  width: auto;
}
nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav a {
  font-size: 1rem;
  color: var(--primary);
  opacity: 0.85;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border 0.2s, color 0.18s;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
}
nav a:hover, nav a:focus {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  opacity: 1;
}

header .cta-btn {
  margin-left: 16px;
}
header .mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: #fff;
  color: var(--primary);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(37,40,53,.04);
  transition: background 0.18s, color 0.18s;
  z-index: 1002;
}
header .mobile-menu-toggle:active, header .mobile-menu-toggle:focus {
  color: var(--accent);
  background: #F4F6FA;
}

@media (max-width: 900px) {
  nav {
    display: none;
  }
  header .cta-btn {
    display: none;
  }
  header .mobile-menu-toggle {
    display: inline-flex;
  }
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #fff;
  box-shadow: -2px 0 24px rgba(37,40,53,.16);
  z-index: 1100;
  transform: translateX(100vw);
  transition: transform 0.38s cubic-bezier(.62,.2,.27,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 32px 24px 32px;
  gap: 24px;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: -4px 0 56px rgba(37,40,53,.22);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.1rem;
  padding: 0 12px;
  color: var(--primary);
  background: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: var(--primary);
  opacity: 0.92;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  transition: color 0.18s, border 0.18s, background 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  background: #FFFAE5;
}
@media (max-width: 600px) {
  .mobile-menu {
    padding: 14px 12px 20px 14px;
  }
  .mobile-menu-close { font-size: 2rem; }
  .mobile-nav a { font-size: 1.05rem; }
}

/* --- SECTIONS --- */
section {
  width: 100%;
  background: transparent;
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
}
section:last-child {
  margin-bottom: 0;
}

/* --- HERO, CALL TO ACTION --- */
section > .container > .content-wrapper > .cta-btn {
  margin-top: 16px;
  align-self: flex-start;
}

/* --- TABLES (comparison on oferta.html) --- */
table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  border-radius: 8px;
  overflow: hidden;
  font-size: 1rem;
}
thead, th {
  background: #F4F6FA;
  font-weight: 600;
}
th, td {
  border-bottom: 1px solid var(--border);
  padding: 12px 18px;
  text-align: left;
}
tr:last-child td {
  border-bottom: none;
}
@media (max-width: 500px) {
  th, td {
    padding: 8px 8px;
    font-size: 0.93rem;
  }
}

/* --- FOOTER --- */
footer {
  width: 100%;
  background: #fff;
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding-top: 24px;
  font-size: 1rem;
}
footer .container {
  flex-direction: column;
  gap: 0;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.footer-links {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
  margin-bottom: 12px;
}
.footer-links a {
  color: var(--secondary);
  font-size: 0.95rem;
  transition: color 0.15s;
}
.footer-links a:hover {
  color: var(--accent);
}

.newsletter {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 230px;
  max-width: 330px;
}
.newsletter h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--primary);
}
.newsletter form {
  display: flex;
  flex-direction: row;
  gap: 10px;
  width: 100%;
}
.newsletter input[type="email"] {
  flex: 1 1 auto;
  min-width: 110px;
}
.newsletter button[type="submit"] {
  padding: 10px 24px;
}
.newsletter .socials {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 8px;
}
.newsletter .socials a img {
  width: 32px;
  height: 32px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 200px;
  min-width: 180px;
  color: var(--primary);
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-contact img {
  width: 18px;
  height: 18px;
}

.footer-legal {
  font-size: 0.95rem;
  color: var(--secondary);
  margin-top: 18px;
  flex: 1 1 100%;
}

@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 14px;
  }
}

/* =====================================================
   COOKIE BANNER & MODAL
====================================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 32px rgba(37,40,53,0.08);
  z-index: 1200;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 24px 32px;
  font-size: 1rem;
  animation: cookieSlideIn 0.6s cubic-bezier(.4,1.5,.7,1);
}
@keyframes cookieSlideIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: var(--primary);
  font-size: 1rem;
  flex: 2 1 60%;
  margin: 0;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 12px;
    font-size: 0.97rem;
  }
  .cookie-banner .cookie-actions {
    width: 100%;
    gap: 8px;
    flex-direction: row;
    justify-content: flex-end;
  }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(37,40,53,.45);
  z-index: 1350;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.5s cubic-bezier(.5,.1,.08,1);
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 64px rgba(37,40,53,0.18);
  border: 1px solid var(--border);
  padding: 38px 30px 28px 30px;
  width: 98vw;
  max-width: 420px;
  font-family: 'Roboto', Arial, sans-serif;
  animation: popupAppear 0.38s cubic-bezier(.38,1.57,.67,1);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
@keyframes popupAppear {
  from { transform: scale(0.94) translateY(32px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h4 {
  font-size: 1.22rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  padding: 6px 0;
  color: var(--primary);
  cursor: pointer;
}
.cookie-modal input[type="checkbox"][disabled] {
  accent-color: var(--accent);
  cursor: not-allowed;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 8px;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  right: 16px;
  top: 10px;
  font-size: 1.8rem;
  background: none;
  color: var(--primary);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  justify-content: center;
  align-items: center;
}
.cookie-modal .close-cookie-modal:hover {
  background: #F4F4F4;
  color: var(--accent);
}
@media (max-width: 500px) {
  .cookie-modal {
    padding: 20px 6vw 14px 6vw;
    min-width: 0;
    font-size: 0.97rem;
  }
}

/* =====================================================
   ANIMATIONS FOR MICRO-INTERACTIONS
====================================================== */
a, .cta-btn, button, .card, .feature-grid > li, .testimonial-card,
.card, .service-cards > div, .service-grid > div, .blog-list > article {
  transition: box-shadow 0.19s, border 0.19s, color 0.18s, background 0.17s, transform 0.18s;
}
.card:hover, .feature-grid > li:hover, .brand-grid > div:hover, .blog-list > article:hover {
  transform: translateY(-3px) scale(1.015);
}
.cta-btn:active, button:active {
  transform: scale(0.97);
}

/* =====================================================
   MISCELLANEOUS CLASSES
====================================================== */
::-webkit-scrollbar { width: 8px; background: #fafafa; }
::-webkit-scrollbar-thumb { background: #eee; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #ddd; }

hr {
  border: none;
  border-bottom: 1px solid var(--border);
  margin: 20px 0;
}

/* Utility classes */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-24 { margin-bottom: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.flex-col { flex-direction: column; }

/* Hide visually but keep accessible */
.sr-only {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  height: 1px !important;
  width: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
}

/* Make sure no flex overlap on mobile */
@media (max-width: 480px) {
  .section { padding: 22px 0px; }
}
