/* ================================
   STYLE.CSS — Homepage Only
   ================================ */

/* --- Hero Section (Slider) --- */
.section-hero {
  position: relative;
  height: clamp(50rem, 90vh, 100rem);
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: slideshow 15s infinite;
}

.hero-slider img:nth-child(2) {
  animation-delay: 5s;
}

.hero-slider img:nth-child(3) {
  animation-delay: 10s;
}

@keyframes slideshow {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  5% {
    opacity: 1;
    transform: scale(1);
  }
  28% {
    opacity: 1;
    transform: scale(1.05);
  }
  33.33% {
    opacity: 0;
    transform: scale(1.05);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10rem 3.2rem 8rem;
  text-align: center;
}

.heading-primary {
  font-size: clamp(5rem, 6vw, 6.2rem);
  font-weight: 900;
  letter-spacing: 0.6rem;
  text-transform: uppercase;
  margin-bottom: 2.4rem;
  text-shadow:
   0 4px 12px rgba(56, 125, 71, 0.65),   /* main green glow */
    0 2px 6px rgba(56, 125, 71, 0.45),    /* softer green layer */
    3px 3px 8px rgba(0, 0, 0, 0.35),      /* dark drop for depth */
    -1px -1px 4px rgba(255, 255, 255, 0.2);
}

.hero-heading-secondary {
  font-size: clamp(2.4rem, 3.5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 3.2rem;
  color: var(--color-white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

/* Hero tagline */
.hero-tagline {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-primary-lighter, #7ab88a);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1.6rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 6.4rem;
  margin-bottom: 4.8rem;
  justify-content: center;
}

.hero-stat {
  text-align: center;
  color: var(--color-white);
}

.hero-stat-number {
  font-family: "Playfair Display", serif;
  font-size: clamp(3.2rem, 4vw, 5.2rem);
  font-weight: 700;
  line-height: 1;
  display: inline;
}

.hero-stat-plus {
  font-family: "Playfair Display", serif;
  font-size: clamp(3.2rem, 4vw, 5.2rem);
  font-weight: 700;
  color: var(--color-accent-light, #f0957a);
}

.hero-stat-label {
  display: block;
  font-size: 1.4rem;
  font-weight: 500;
  margin-top: 0.8rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.5px;
}

.hero-buttons {
  display: flex;
  gap: 2.4rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- How It Works Section --- */
.section-how {
  padding: 9.6rem 0;
}

.step-number {
  font-size: 7.4rem;
  font-weight: 600;
  color: #ddd;
  margin-bottom: 1.2rem;
}

.step-description {
  font-size: 1.6rem;
  line-height: 1.8;
}

.step-image-box {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.step-image-box::before,
.step-image-box::after {
  content: "";
  display: block;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.step-image-box::before {
  width: 68%;
  padding-bottom: 68%;
  background-color: var(--color-bg-light);
  z-index: -2;
}

.step-image-box::after {
  width: 60%;
  padding-bottom: 60%;
  background-color: var(--color-bg-lighter);
  z-index: -1;
}

.step-img {
  border-radius: 6%;
  width: 50%;
}

/* --- Services Section --- */
.section-service {
  padding: 9.6rem 0;
}

.usluga {
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 8rem;
  background: var(--color-white);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.usluga:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.service-img {
  transition: transform 0.6s var(--ease-out-expo);
}

.usluga:hover .service-img {
  transform: scale(1.05);
}

.service-content {
  padding: 3.2rem 4.8rem 4.8rem 3.2rem;
  position: relative;
}

.service-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 3.2rem;
  width: 4rem;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

.service-tags {
  margin-bottom: 1.2rem;
}

.tag,
.pricing-tag {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  font-size: 1.2rem;
  text-transform: uppercase;
  background-color: #51cf66;
  color: var(--color-text-dark);
  border-radius: var(--radius-full);
  font-weight: 600;
}

.service-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.service-title {
  font-size: 2.4rem;
  color: var(--color-text-dark);
  font-weight: 600;
  margin-bottom: 2.4rem;
}

.service-attributes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-attribute {
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.service-icon {
  height: 2.4rem;
  width: 2.4rem;
  flex-shrink: 0;
}

.btn-service:link,
.btn-service:visited {
  display: block;
  width: fit-content;
  margin: 2.4rem auto 0 auto;
  background-color: var(--color-bg-light);
}

.btn-service:hover,
.btn-service:active {
  background-color: var(--color-primary-light);
}

/* --- Professional Manager Section --- */
.prof-upravnik-section {
  background-image: linear-gradient(rgba(34, 34, 34, 0.6), rgba(34, 34, 34, 0.6)),
    url("../Slike1/zlUp.png");
  background-size: cover;
  background-position: center;
  padding-bottom: 4.8rem;
}

.upravnik-header {
  padding-top: 3.2rem;
  color: var(--color-white);
  margin-bottom: 4rem;
  text-align: center;
}

.upravnik-section-cols {
  grid-template-columns: 3fr 1fr;
}

.upravnik-section-cols span {
  color: var(--color-primary-lighter, #7ab88a);
  font-weight: bold;
}

.upravnik-section-col p {
  padding-bottom: 2.4rem;
  color: var(--color-white);
  font-size: clamp(1.4rem, 2vw, 2.4rem);
  line-height: 1.6;
}

.upravnik-section-col a {
  margin-top: 3.2rem;
}

.upravnik-section-cols img {
  margin: auto;
  width: 30rem;
  transition: all 0.6s;
}

.upravnik-section-cols img:hover {
  box-shadow: var(--shadow-md);
  transform: matrix(1, 0, 0.04, 1, 0, 0);
}

/* --- Testimonials Section --- */
.section-testimonials {
  background-color: var(--color-bg-light);
  display: grid;
  grid-template-columns: 55fr 45fr;
  align-items: center;
}

.testimonials-container {
  padding: 9.6rem;
}

.testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 4.8rem;
  column-gap: 4.8rem;
}

.testimonial {
  background: var(--color-white);
  padding: 3.2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease-out-expo);
  position: relative;
}

.testimonial::before {
  content: '\201C';
  font-family: 'Playfair Display', serif;
  font-size: 6rem;
  color: var(--color-primary-lighter, #7ab88a);
  position: absolute;
  top: 1.2rem;
  left: 2.4rem;
  line-height: 1;
  opacity: 0.5;
}

.testimonial:hover {
  box-shadow: var(--shadow-md);
}

.testimonial-img {
  width: 6.4rem;
  height: 6.4rem;
  border-radius: 50%;
  margin-bottom: 1.2rem;
  border: 3px solid var(--color-bg-lighter);
}

.testimonial-text {
  font-size: 1.8rem;
  line-height: 1.8;
  margin-bottom: 1.6rem;
}

.testimonial-name {
  font-size: 1.6rem;
  color: var(--color-text-muted, #636e72);
  font-weight: 500;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  padding: 1.6rem;
}

.gallery-item {
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s;
}

.gallery-item img:hover {
  transform: scale(1.1);
}

/* --- Pricing / Investments Section --- */
.section-pricing {
  padding: 9.6rem 0;
  box-shadow: var(--shadow-md);
}

.pricing-txt {
  color: var(--color-text-dark);
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.5;
  margin-bottom: 3.2em;
}

.pricing-pre {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2.4rem;
  row-gap: 1.6rem;
  text-align: center;
  padding: 1.2rem 0.8rem;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
  transition: transform 0.6s;
  grid-column: 1 / 3;
}

.pricing-pre:last-child {
  grid-column: 3 / 5;
}

.pricing-pre:hover {
  transform: scale(1.05);
}

.pricing-header {
  grid-column: span 2;
  font-size: 2.4rem;
  font-weight: 600;
}

.pricing-pre img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pricing-tag {
  background-color: var(--color-primary);
  color: var(--color-white);
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
}

.price {
  font-size: 2.4rem;
  font-weight: 700;
}

.pricing-content {
  grid-column: span 2;
}

.pricing-image {
  position: relative;
  overflow: hidden;
}

.price-text {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: absolute;
  background: rgba(0, 0, 0, 0.4);
  color: var(--color-bg-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s;
}

.price-text:hover {
  opacity: 1;
}

.price-text1 {
  font-size: 1.8rem;
  font-weight: 500;
  text-align: center;
  letter-spacing: -0.5px;
}

.red-header {
  color: #ff3333;
}

.green-header {
  color: #00ff00;
}

.uradjeni-poslovi {
  font-size: 1.6rem;
  list-style: square;
  line-height: 2;
}

.uradjeni-poslovi span {
  color: var(--color-primary);
  font-weight: 700;
}

.sz {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
}

/* --- CTA Section --- */
.section-cta {
  padding: 4.8rem 0 12.8rem;
}

.cta {
  display: grid;
  grid-template-columns: 2fr 1fr;
  background-image: linear-gradient(to right bottom, var(--color-primary-light), var(--color-primary));
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.cta-text-box {
  padding: 4.8rem 6.4rem 6.4rem 6.4rem;
  color: #001405;
}

.cta .heading-secondary {
  color: #001405;
  margin-bottom: 3.2rem;
}

.cta-text {
  font-size: 1.8rem;
  line-height: 1.8;
  margin-bottom: 4.8rem;
}

.cta-image-box {
  background-image: linear-gradient(
      to right bottom,
      rgba(77, 148, 93, 0.35),
      rgba(0, 102, 24, 0.35)
    ),
    url("../Slike1/frepik/businessman-using-mobile-phone.jpg");
  background-size: cover;
  background-position: center;
}

.cta-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 3.2rem;
  row-gap: 2.4rem;
}

.cta-form label {
  display: block;
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
}

.cta-form input,
.cta-form select {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.8rem;
  font-family: inherit;
  color: inherit;
  border: none;
  background-color: var(--color-bg-light);
  border-radius: var(--radius-default);
  box-shadow: var(--shadow-sm);
}

.cta-form input::placeholder {
  color: #aaa;
}

.cta *:focus {
  outline: none;
  box-shadow: 0 0 0 0.8rem rgba(204, 224, 209, 0.478);
}

/* --- Form Validation Styles --- */
.form-group {
  position: relative;
}

.form-error {
  display: block;
  color: #e74c3c;
  font-size: 1.2rem;
  margin-top: 0.4rem;
  min-height: 1.8rem;
}

.cta-form input.invalid {
  border: 2px solid #e74c3c;
  background-color: #fff5f5;
}

.cta-form input.valid {
  border: 2px solid var(--color-primary);
}

.btn-form {
  position: relative;
}

.btn-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

.btn-form.loading .btn-text {
  opacity: 0;
}

.btn-form.loading .btn-loading {
  opacity: 1;
}

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-success {
  text-align: center;
  padding: 4.8rem;
  animation: fadeInUp 0.5s var(--ease-out-expo);
}

.form-success svg {
  margin-bottom: 2rem;
}

.form-success p {
  font-size: 1.8rem;
  line-height: 1.6;
  color: var(--color-white);
}

.form-submit-error {
  color: #e74c3c;
  font-size: 1.4rem;
  text-align: center;
  margin-top: 1.2rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================
   LIGHTBOX
   ================================ */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  animation: fadeIn 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.8rem;
  transition: transform 0.2s;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

.lightbox-img {
  max-width: 90%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-default);
}

.lightbox-download {
  color: var(--color-white);
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 500;
  padding: 1rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-default);
  transition: background-color 0.2s;
}

.lightbox-download:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Pricing color improvements --- */
.green-header {
  color: #4caf50;
}

.red-header {
  color: #ef5350;
}
