/* -------------------------------------------------- */
/* CLUJ TECH AVANGARD - Vibrant Energetic 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;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #222E3A;
  background: #F0EDEE;
  min-height: 100vh;
  font-size: 1rem;
  line-height: 1.6;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #0654F6;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FD2179;
  outline: none;
}
ul, ol {
  padding-left: 24px;
}
strong, b {
  font-weight: 700;
}
button {
  font-family: inherit;
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  border: 1px solid #E1E5EE;
  padding: 12px;
  text-align: left;
}
th {
  background: #65B867;
  color: #fff;
  font-weight: 600;
}

/* ==== SCROLLBAR ==== */
::-webkit-scrollbar {
  width: 8px;
  background: #F0EDEE;
}
::-webkit-scrollbar-thumb {
  background: #65B867;
  border-radius: 6px;
}

/* ==== CONTAINER ==== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

/* ==== TYPOGRAPHY ==== */
h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #222E3A;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
  text-shadow: 0 2px 24px #B7F9F1, 0 2px 4px #65B86733;
}
h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #0654F6;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #222E3A;
  margin-bottom: 12px;
}
h4,h5,h6 {
  font-family: 'Montserrat', Arial, sans-serif;
}
.subheadline {
  color: #FD2179;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}
p {
  margin-bottom: 16px;
}
blockquote {
  font-style: italic;
  color: #222E3A;
  background: #fff;
  border-left: 5px solid #65B867;
  padding: 16px 20px;
  border-radius: 10px 20px 20px 10px;
  box-shadow: 0 2px 10px #222E3A11;
  margin-bottom: 12px;
}
blockquote .testimonial-author {
  display: block;
  font-weight: 700;
  font-style: normal;
  color: #0654F6;
  margin-top: 8px;
}

/* Typography scale for sections */
@media (min-width: 600px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  .subheadline { font-size: 1.5rem; }
}
@media (min-width: 900px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.5rem; }
}

/* ==== HEADER/NAVIGATION ==== */
header {
  background: #fff;
  box-shadow: 0 2px 10px #65B86722;
  padding: 0;
  width: 100%;
  z-index: 100;
  position: sticky;
  top: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 24px;
}
.main-nav {
  display: flex;
  flex-shrink: 1;
  gap: 18px;
  align-items: center;
  margin-left: 16px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #222E3A;
  letter-spacing: 0.25px;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #65B867;
  color: #fff;
}
.cta-btn {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  background: #FD2179;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 12px 32px;
  margin-left: 20px;
  box-shadow: 0 4px 24px #FD217944, 0 2px 4px #00000018;
  cursor: pointer;
  letter-spacing: 1px;
  transition: background 0.25s, color 0.25s, box-shadow 0.2s;
  text-shadow: 0 1px 2px #222E3A11;
}
.cta-btn:hover, .cta-btn:focus {
  background: #0654F6;
  color: #fff;
  box-shadow: 0 2px 8px #0654F644, 0 1px 1px #0001;
}

.mobile-menu-toggle {
  background: #222E3A;
  color: #fff;
  border-radius: 16px;
  font-size: 1.6rem;
  padding: 6px 14px;
  margin-left: 18px;
  border: none;
  box-shadow: 0 2px 8px #222E3A33;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  display: none;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #65B867;
  color: #fff;
}

@media (max-width: 1050px) {
  .main-nav,
  .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

/* ==== MOBILE MENU ==== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #222E3Aee;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.52,1.64,.37,.94);
  z-index: 201;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 4px 0 32px #222E3A44;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #FD2179;
  color: #fff;
  border-radius: 16px;
  font-size: 2.2rem;
  margin: 24px 18px 0 24px;
  align-self: flex-end;
  padding: 0 14px;
  border: none;
  box-shadow: 0 2px 16px #FD217933;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #65B867;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin-top: 32px;
}
.mobile-nav a {
  display: block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  color: #fff;
  padding: 18px 30px 12px 36px;
  border-bottom: 1px solid #0654F655;
  font-weight: 600;
  transition: background 0.21s, color 0.19s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FD2179;
  color: #fff;
}
@media (max-width: 700px) {
  .mobile-nav a {
    font-size: 1.08rem;
    padding: 14px 24px 9px 26px;
  }
}

/* ==== HERO SECTION ==== */
.hero {
  background: linear-gradient(90deg, #F0EDEE 70%, #65B86711 100%);
  padding: 70px 0 40px 0;
  box-shadow: 0 6px 24px #222E3A0b;
  margin-bottom: 40px;
}
@media (max-width: 600px) {
  .hero {
    padding: 40px 0 22px 0;
  }
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* ==== SECTIONS & FLEX LAYOUTS ==== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.features-grid,
.insight-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 8px;
}
.features-grid .feature,
.insight-grid li {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px #65B86722, 0 1px 2px #222E3A14;
  padding: 32px 24px 24px 24px;
  min-width: 250px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.22s, transform 0.16s;
  border: 2px solid #65B86744;
}
.features-grid .feature:hover,
.insight-grid li:hover {
  box-shadow: 0 6px 32px #FD217944, 0 1px 8px #222E3A26;
  transform: translateY(-3px) scale(1.015);
}
.features-grid .feature img {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  filter: drop-shadow(0 2px 10px #0654F633) brightness(1.20);
}

/* Card/Review lists - used in recenzii-smartphone, etc. */
.review-list, .service-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 18px;
}
.review-list li, .service-list li {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px #222E3A18;
  padding: 20px 22px 16px 22px;
  font-size: 1rem;
  position: relative;
  transition: box-shadow 0.2s, transform 0.12s;
  margin-bottom: 4px;
  border-left: 5px solid #FD2179;
}
.review-list li strong, .service-list li strong {
  color: #222E3A;
}
.service-list li span {
  float: right;
  font-weight: 700;
  color: #0654F6;
  font-size: 1.02rem;
}

/* Card container for further flexibility & spacing pattern */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 2px 10px #222E3A0a;
  padding: 24px 22px;
  min-width: 230px;
  transition: box-shadow 0.18s, transform 0.14s;
}
.card:hover {
  box-shadow: 0 6px 24px #FD217963, 0 2px 8px #0654F611;
  transform: translateY(-2px) scale(1.01);
}

.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: 22px;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Testimonial card */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F0EDEE;
  padding: 20px;
  border-radius: 22px;
  box-shadow: 0 2px 16px #222E3A18;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, transform 0.16s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 24px #65B86733, 0 1px 8px #FD217922;
  transform: translateY(-2px) scale(1.01);
}
.testimonial-rating {
  font-size: 1.6rem;
  font-weight: bold;
  color: #FD2179;
  margin-right: 14px;
  text-shadow: 0 1px 4px #fff2,0 0 3px #FD217922;
  min-width: 78px;
  text-align: center;
}
.testimonial-card blockquote {
  background: none;
  border-left: none;
  box-shadow: none;
  font-style: italic;
  color: #222E3A;
  font-size: 1.02rem;
}
@media (max-width: 700px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .testimonial-rating {
    margin-bottom: -10px;
  }
}

/* ==== TABLES ==== */
table {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px #0654F618;
  margin-bottom: 18px;
  overflow: hidden;
  font-size: 15px;
}
th, td {
  border: 1px solid #65B86744;
}
th {
  color: #fff;
  background: #65B867;
}
tr:nth-child(even) td {
  background: #F0EDEE88;
}

/* ==== BUTTONS ==== */
button,
input[type="button"],
input[type="submit"] {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  background: #0654F6;
  color: #fff;
  border: none;
  border-radius: 23px;
  padding: 12px 28px;
  margin-top: 12px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px #65B86733;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.18s, color 0.18s, box-shadow 0.22s;
}
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
  background: #FD2179;
  color: #fff;
  box-shadow: 0 6px 16px #FD217933;
}

/* ==== FOOTER ==== */
footer {
  background: #222E3A;
  color: #fff;
  padding: 48px 0 24px 0;
  box-shadow: 0 -4px 40px #0654F623;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
}
.footer-logo img {
  width: 68px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-nav a {
  color: #65B867;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin: 0;
  font-size: 1rem;
  padding: 6px 0;
  transition: color 0.17s;
}
.footer-nav a:hover {
  color: #FD2179;
}
.footer-contact {
  font-size: 15px;
  margin-bottom: 8px;
}
.footer-contact strong {
  font-weight: 700;
  color: #fff;
}
.footer-cta {
  margin-top: 14px;
}
.footer-cta .cta-btn {
  background: #0654F6;
  color: #fff;
  box-shadow: 0 4px 16px #65B86755;
}
.footer-cta .cta-btn:hover {
  background: #FD2179;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
}

/* ==== CONTACT PAGE ==== */
.contact-info {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px #0654F618;
  padding: 20px 24px;
  margin-bottom: 18px;
}
.map-embed img {
  width: 56px;
  height: auto;
  filter: drop-shadow(0 2px 6px #0654F633);
  margin-top: 6px;
}

/* ==== SPACING PATTERNS (MANDATORY) ==== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.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;
}

/* ==== RESPONSIVE DESIGN ==== */
@media (max-width: 1050px) {
  .main-nav, .cta-btn {
    display: none !important;
  }
}
@media (max-width: 900px) {
  .features-grid,
  .insight-grid,
  .content-grid,
  .footer-nav {
    flex-direction: column;
    gap: 14px;
  }
  .features-grid .feature,
  .insight-grid li {
    min-width: unset;
    width: 100%;
  }
}
@media (max-width: 700px) {
  .container { padding: 0 8px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.32rem; }
  .section { padding: 18px 4px; }
  .hero { padding: 24px 0 14px 0; }
  .feature, .insight-grid li { padding: 18px 10px; }
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 500;
  background: #222E3A;
  color: #fff;
  padding: 22px 18px 24px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  box-shadow: 0 -2px 18px #000a,0 1px 4px #65B86722;
  font-size: 1.05rem;
  animation: cookieSlideUp 0.58s cubic-bezier(.66,1.04,.50,.99);
}
@keyframes cookieSlideUp {
  from { transform: translateY(100%); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  margin-left: 10px;
  margin-right: 4px;
  margin-bottom: 0;
  border-radius: 22px;
  padding: 11px 22px;
  font-weight: 600;
  box-shadow: 0 1px 4px #0002;
  border: none;
  cursor: pointer;
  background: #FD2179;
  color: #fff;
  transition: background 0.19s, color 0.19s, box-shadow 0.24s;
}
.cookie-banner button.cookie-accept { background: #65B867; }
.cookie-banner button.cookie-accept:hover { background: #0654F6; }
.cookie-banner button.cookie-reject { background: #FD2179; }
.cookie-banner button.cookie-reject:hover { background: #222E3A; }
.cookie-banner button.cookie-settings { background: #0654F6; }
.cookie-banner button.cookie-settings:hover { background: #65B867; }

/* Cookie Settings Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #222E3A99;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1001;
  animation: modalFadeIn 0.33s ease;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #F0EDEE;
  color: #222E3A;
  border-radius: 22px;
  box-shadow: 0 4px 32px #222E3A34;
  padding: 34px 32px 30px 32px;
  max-width: 375px;
  min-width: 255px;
  width: 85vw;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 26px;
  animation: modalSlideUp 0.38s cubic-bezier(.62,1.44,.46,.97);
  position: relative;
}
@keyframes modalSlideUp {
  from { transform: translateY(60px) scale(.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 11px; right: 16px;
  background: none;
  color: #FD2179;
  font-size: 2rem;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-modal-close:hover {
  color: #0654F6;
}
.cookie-modal h3 {
  font-size: 1.25rem; color: #0654F6;
  margin-bottom: 3px;
}
.cookie-category {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 10px;
}
.cookie-category label {
  font-size: 1rem;
  cursor: pointer;
}
/* Switch Toggle */
.cookie-switch {
  display: inline-block;
  width: 40px;
  height: 22px;
  background: #ddd;
  border-radius: 22px;
  position: relative;
  vertical-align: middle;
  margin-left: 12px;
}
.cookie-switch input {
  display: none;
}
.cookie-switch span {
  position: absolute;
  left: 2px; top: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #222E3A;
  transition: left 0.22s, background 0.17s;
}
.cookie-switch input:checked + span {
  left: 20px;
  background: #65B867;
}

/* ==== ANIMATIONS & MICROINTERACTIONS ==== */
.cta-btn, button, .service-list li, .testimonial-card, .feature {
  transition: box-shadow 0.2s, background 0.18s, color 0.17s, transform 0.17s;
}
.cta-btn:hover, .cta-btn:focus {
  animation: ctaPulse 0.48s alternate;
}
@keyframes ctaPulse {
  0% { box-shadow: 0 4px 24px #FD217944, 0 2px 4px #00000018; }
  100% { box-shadow: 0 1px 2px #0654F644, 0 1px 1px #0001; }
}

/* ==== UTILITIES & MISC ==== */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }

/* ==== COLOR UTILITIES FOR VIBRANT/ENERGETIC DESIGN ==== */
.bg-primary { background: #222E3A !important; color: #fff !important; }
.bg-secondary { background: #65B867 !important; color: #fff !important; }
.bg-accent { background: #F0EDEE !important; color: #222E3A !important; }
.text-primary { color: #222E3A !important; }
.text-secondary { color: #65B867 !important; }
.text-accent { color: #FD2179 !important; }
.text-highlight { color: #0654F6 !important; }

/* ==== CUSTOM SCROLL ANIMATIONS (CARDS, SECTIONS) ==== */
@media (prefers-reduced-motion: no-preference) {
  .card, .feature, .testimonial-card {
    will-change: transform, box-shadow, background;
  }
}

/* ==== PRINT ==== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  html, body {
    background: #fff !important;
    color: #222E3A !important;
  }
}

/* ==== END OF CSS ==== */