/* ============================================
   Prodabiertas - Modern Light Theme (Original Palette)
   ============================================ */

:root {
  --primary: #18d26e;
  --primary-hover: #13a456;
  --dark: #111111;
  --light-bg: #ffffff;
  --section-bg: #f7f7f7;
  --text: #666666;
  --text-dark: #333333;
  --white: #ffffff;
  --shadow: 0px 2px 12px rgba(0, 0, 0, 0.08);
  --transition: 0.5s;
}

/* --- Base --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  background: var(--white);
  color: var(--text);
  font-family: "Open Sans", sans-serif;
  overflow-x: hidden;
}

a { color: var(--primary); transition: var(--transition); text-decoration: none; }
a:hover { color: var(--primary-hover); text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  margin: 0 0 20px 0;
  padding: 0;
}

/* --- Header --- */
#header {
  position: fixed;
  left: 0; top: 0; right: 0;
  height: 90px;
  display: flex;
  align-items: center;
  transition: all 0.5s;
  z-index: 997;
  background: transparent;
}

#header.scrolled {
  background: rgba(0, 0, 0, 0.9);
  height: 70px;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img { height: 40px; display: block; }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-link {
  display: inline-block;
  padding: 0 15px;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  font-family: "Montserrat", sans-serif;
}

.nav-link:hover, .nav-link.active { color: var(--primary); }



/* --- Hero / Carousel --- */
#hero {
  width: 100%;
  height: 100vh;
  position: relative;
  background: #000;
  overflow: hidden;
}

.carousel-item {
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.carousel-item::before {
  content: '';
  background-color: rgba(0, 0, 0, 0.7);
  position: absolute;
  inset: 0;
}

.carousel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  inset: 0;
  text-align: center;
}

.carousel-content { max-width: 800px; padding: 0 15px; }

#hero h2 {
  color: #fff;
  margin-bottom: 30px;
  font-size: 48px;
  font-weight: 700;
}

#hero p {
  width: 80%;
  margin: 0 auto 30px auto;
  color: #fff;
}

.btn-get-started {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 8px 32px;
  border-radius: 50px;
  transition: 0.5s;
  margin: 10px;
  color: #fff;
  background: var(--primary);
  border: 2px solid var(--primary);
}

.btn-get-started:hover {
  background: none;
  color: var(--primary);
}

/* --- Section Headers --- */
section { padding: 60px 0; }
.section-bg { background: var(--section-bg); }

.section-header h3 {
  font-size: 32px;
  color: #111;
  text-transform: uppercase;
  text-align: center;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.section-header h3::before {
  content: '';
  position: absolute;
  display: block;
  width: 120px;
  height: 1px;
  background: #ddd;
  bottom: 1px;
  left: calc(50% - 60px);
}

.section-header h3::after {
  content: '';
  position: absolute;
  display: block;
  width: 40px;
  height: 3px;
  background: var(--primary);
  bottom: 0;
  left: calc(50% - 20px);
}

.section-header p {
  text-align: center;
  padding-bottom: 30px;
  color: #333;
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.about-col {
  background: #fff;
  border-radius: 0 0 4px 4px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.about-img { position: relative; }
.about-img img { border-radius: 4px 4px 0 0; width: 100%; }

.about-icon {
  width: 64px; height: 64px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 4px solid #fff;
  position: absolute;
  left: calc(50% - 32px);
  bottom: -32px;
  color: #fff;
  font-size: 24px;
  transition: 0.3s;
}

.about-col:hover .about-icon { background: #fff; color: var(--primary); }

.about-col h2 {
  color: #000;
  text-align: center;
  font-weight: 700;
  font-size: 20px;
  margin: 40px 0 12px 0;
}

.about-col p {
  font-size: 14px;
  line-height: 24px;
  color: #333;
  padding: 0 20px 20px 20px;
  text-align: center;
}

/* --- Services --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.service-box {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.service-box i { color: var(--primary); font-size: 36px; line-height: 1; }

.service-box h4 {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 18px;
}

.service-box h4 a { color: #111; }
.service-box:hover h4 a { color: var(--primary); }

.service-box p { font-size: 14px; line-height: 24px; }

/* --- Stats --- */
#stats {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/call-to-action-bg.jpg') fixed center center;
  background-size: cover;
  padding: 80px 0;
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-item i { font-size: 48px; color: var(--primary); margin-bottom: 15px; display: block; }
.stat-number { font-size: 48px; font-weight: 700; font-family: "Montserrat", sans-serif; display: block; }
.stat-label { font-size: 14px; text-transform: uppercase; font-family: "Montserrat", sans-serif; }

/* --- Footer --- */
#footer { background: #000; padding: 60px 0 30px 0; color: #eee; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-info h3 {
  font-size: 34px;
  margin: 0 0 20px 0;
  padding: 2px 0 2px 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 3px;
  border-left: 4px solid var(--primary);
}

.footer-col h4 {
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 12px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 60px; height: 2px;
  background: var(--primary);
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { border-bottom: 1px solid #333; padding: 10px 0; }
.footer-links a { color: #eee; }
.footer-links a:hover { color: var(--primary); }

.footer-bottom { text-align: center; border-top: 1px solid #333; padding-top: 30px; }

/* --- Back to top --- */
.back-to-top {
  position: fixed;
  bottom: 15px; right: 15px;
  background: var(--primary);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: 0.5s;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; }

/* Mobile Menu */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    right: -100%; top: 0;
    width: 260px; height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    padding-top: 60px;
    transition: 0.4s;
  }
  .nav-links.open { right: 0; }
  .mobile-toggle { display: block !important; position: absolute; right: 20px; top: 25px; color: #fff; font-size: 24px; background: none; border: none; z-index: 1001; }
  #hero h2 { font-size: 28px; }
}