/* ================================================
   HORTIDA – Modern Horticulture Website
   Design System & Styles
   ================================================ */

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --green-900: #1b4332;
  --green-800: #2d6a4f;
  --green-700: #40916c;
  --green-600: #52b788;
  --green-500: #74c69d;
  --green-400: #95d5b2;
  --green-100: #d8f3dc;
  --green-50:  #f0faf2;

  --blue-600: #1e88e5;
  --blue-100: #e3f2fd;

  --dark-900: #0d1117;
  --dark-800: #161b22;
  --dark-700: #21262d;
  --dark-600: #30363d;
  --dark-400: #8b949e;
  --dark-200: #c9d1d9;
  --dark-100: #e6edf3;

  --white: #ffffff;
  --off-white: #f8faf9;

  /* Typography */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* Spacing */
  --section-py: 100px;
  --container-max: 1280px;
  --container-px: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12), 0 4px 16px rgba(0,0,0,.06);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.15), 0 8px 24px rgba(0,0,0,.08);

  /* Border Radius */
  --radius-sm:  8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--dark-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  touch-action: manipulation;
}

a {
  touch-action: manipulation;
}

/* ===== UTILITIES ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.section {
  padding: var(--section-py) 0;
}

.section-light { background: var(--off-white); }
.section-dark  { background: var(--dark-900); }
.section-green { background: linear-gradient(135deg, var(--green-800) 0%, var(--green-900) 100%); }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-100);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-tag.light { color: var(--green-400); background: rgba(255,255,255,.1); }
.section-tag.white { color: var(--white); background: rgba(255,255,255,.15); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--dark-900);
  margin-bottom: 16px;
}
.section-title.light { color: var(--white); }
.section-title.white { color: var(--white); }
.section-title em { font-style: italic; color: var(--green-700); }

.section-desc {
  font-size: 18px;
  color: var(--dark-400);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-800) 100%);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(64, 145, 108, 0.4);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(64, 145, 108, 0.5);
  background: linear-gradient(135deg, var(--green-600) 0%, var(--green-700) 100%);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary svg { width: 20px; height: 20px; }

.btn-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,.3);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-phone:hover {
  background: rgba(255,255,255,.25);
  transform: translateY(-2px);
}
.btn-phone svg { width: 20px; height: 20px; }

/* ===== FLOATING CALL BUTTON ===== */
#float-call {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  color: var(--white);
  padding: 14px 22px 14px 18px;
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(45, 106, 79, 0.5);
  transition: var(--transition);
  animation: pulse-green 2.5s infinite;
  pointer-events: auto;
  touch-action: manipulation;
}
#float-call:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 12px 40px rgba(45, 106, 79, 0.6);
  animation: none;
}
.float-call-icon svg { width: 22px; height: 22px; }
.float-call-label {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 8px 32px rgba(45,106,79,.5); }
  50%       { box-shadow: 0 8px 48px rgba(45,106,79,.75), 0 0 0 12px rgba(45,106,79,.12); }
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  transition: var(--transition);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}
#navbar.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0,0,0,.1);
}
.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-leaf {
  font-size: 26px;
  line-height: 1;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--dark-900);
  transition: color var(--transition);
  letter-spacing: -0.5px;
}
#navbar.scrolled .logo-text { color: var(--dark-900); }

.nav-links {
  display: flex;
  gap: 8px;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--dark-700);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--green-600);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav-links a:hover::after { width: 60%; }
.nav-links a:hover { color: var(--green-700); }
#navbar.scrolled .nav-links a { color: var(--dark-700); }
#navbar.scrolled .nav-links a:hover { color: var(--green-700); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-call {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--green-700);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.btn-call:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--green-800);
}
#navbar.scrolled .btn-call {
  background: var(--green-700);
  color: var(--white);
}
#navbar.scrolled .btn-call:hover {
  background: var(--green-800);
}
.btn-call svg { width: 16px; height: 16px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--dark-900);
  border-radius: 2px;
  transition: var(--transition);
}
#navbar.scrolled .hamburger-line { background: var(--dark-900); }

/* Mobile Nav */
.mobile-nav {
  display: block;
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: var(--transition);
}
.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav-link {
  display: block;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--dark-800);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.mobile-nav-link:hover {
  background: var(--green-50);
  color: var(--green-700);
}
.mobile-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  padding: 16px;
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-md);
}
.mobile-call-btn svg { width: 20px; height: 20px; }

/* ===== HERO ===== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  animation: hero-zoom 20s ease-in-out infinite alternate;
}
@keyframes hero-zoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(13,19,23,.75) 0%,
    rgba(27,67,50,.7) 50%,
    rgba(13,19,23,.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 140px 24px 80px;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  color: var(--green-400);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.2);
  margin-bottom: 28px;
  animation: fade-up 0.8s ease both;
}
.hero-badge svg { width: 16px; height: 16px; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
  animation: fade-up 0.8s ease 0.15s both;
}
.hero-title em {
  font-style: italic;
  color: var(--green-400);
}

.hero-subtitle {
  font-size: clamp(17px, 2vw, 20px);
  color: rgba(255,255,255,.8);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
  animation: fade-up 0.8s ease 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
  animation: fade-up 0.8s ease 0.45s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-xl);
  padding: 24px 40px;
  animation: fade-up 0.8s ease 0.6s both;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.stat-suffix {
  font-size: 28px;
  font-weight: 700;
  color: var(--green-400);
}
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  margin-top: 4px;
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,.2);
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.6);
  animation: bounce 2s infinite;
}
.hero-scroll svg { width: 28px; height: 28px; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(10px); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== QUICK BANNER ===== */
.quick-banner {
  background: linear-gradient(90deg, var(--green-800), var(--green-700));
  padding: 20px;
}
.quick-banner-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.quick-banner-text {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
}
.quick-banner-text svg { width: 22px; height: 22px; flex-shrink: 0; }
.quick-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--green-800);
  padding: 12px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.quick-banner-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,.06);
  position: relative;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.service-card.featured {
  border: 2px solid var(--green-600);
}

.service-img-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
}
.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-card:hover .service-img-wrap img {
  transform: scale(1.05);
}
.service-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27,67,50,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.service-card:hover .service-img-overlay { opacity: 1; pointer-events: auto; }
.service-cta {
  background: var(--white);
  color: var(--green-800);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 100px;
  transform: translateY(10px);
  transition: var(--transition);
}
.service-card:hover .service-cta { transform: translateY(0); }

.service-body {
  padding: 28px 32px 32px;
  position: relative;
}

.service-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 100px;
}

.service-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(var(--icon-color, 45,106,79), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: color-mix(in srgb, var(--icon-color) 12%, transparent);
}
.service-icon-wrap svg {
  width: 26px;
  height: 26px;
  color: var(--icon-color);
  stroke: var(--icon-color);
}

.service-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark-900);
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-desc {
  font-size: 15px;
  color: var(--dark-400);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--dark-700);
}
.service-list li svg {
  width: 16px;
  height: 16px;
  color: var(--green-600);
  flex-shrink: 0;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}
.about-img {
  width: 100%;
  border-radius: var(--radius-xl);
  object-fit: cover;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-xl);
}
.about-img-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-lg);
}
.about-img-badge svg {
  width: 32px;
  height: 32px;
  color: var(--green-700);
}
.about-img-badge strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark-900);
}
.about-img-badge span {
  font-size: 13px;
  color: var(--dark-400);
}

.about-content {
  padding-left: 8px;
}
.about-text {
  font-size: 17px;
  color: rgba(255,255,255,.75);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 36px 0;
}
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(82, 183, 136, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg {
  width: 22px;
  height: 22px;
  color: var(--green-500);
}
.about-feature strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}
.about-feature span {
  font-size: 14px;
  color: rgba(255,255,255,.55);
}

/* ===== PROCESS ===== */
.process-steps {
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.process-step {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow-md);
  flex: 1;
  min-width: 180px;
  max-width: 240px;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,.06);
}
.process-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-400);
}

.hero-title em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  color: var(--green-600);
}

.animated-passion {
  position: relative;
  display: inline-block;
}

.floating-leaf {
  position: absolute;
  width: 24px;
  height: 24px;
  opacity: 0;
  z-index: -1;
  transform-origin: center bottom;
}

.lf-1 {
  bottom: 10px;
  left: 10%;
  animation: floatUp 4s ease-in-out infinite;
}
.lf-2 {
  bottom: 0px;
  left: 50%;
  animation: floatUp 5s ease-in-out infinite 1s;
}
.lf-3 {
  bottom: 20px;
  right: 10%;
  animation: floatUp 4.5s ease-in-out infinite 2s;
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.5) rotate(0deg);
  }
  20% {
    opacity: 1;
    transform: translateY(-10px) scale(1) rotate(15deg);
  }
  80% {
    opacity: 0.8;
    transform: translateY(-40px) scale(1) rotate(-15deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-50px) scale(0.5) rotate(0deg);
  }
}

.step-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--green-600);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.step-icon {
  width: 56px;
  height: 56px;
  background: var(--green-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step-icon svg {
  width: 26px;
  height: 26px;
  color: var(--green-700);
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--dark-900);
  margin-bottom: 10px;
}
.process-step p {
  font-size: 14px;
  color: var(--dark-400);
  line-height: 1.6;
}

.process-arrow {
  color: var(--green-500);
  flex-shrink: 0;
}
.process-arrow svg { width: 28px; height: 28px; }

/* ===== GALLERY ===== */

/* Filter buttons */
.gallery-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.gf-btn {
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  border: 1.5px solid var(--dark-100);
  background: var(--white);
  color: var(--dark-600);
  cursor: pointer;
  transition: var(--transition);
}
.gf-btn:hover,
.gf-btn.active {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--white);
}

/* Instagram Grid */
.gallery-insta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px; /* Small gap like Instagram */
}

.gi-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
}
.gi-item.hidden {
  display: none;
}
.gi-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gi-item:hover img { transform: scale(1.05); }

.gi-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.gi-item:hover .gi-overlay { opacity: 1; pointer-events: auto; }
.gi-overlay svg {
  color: var(--white);
  width: 32px;
  height: 32px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}
.gi-item:hover .gi-overlay svg {
  opacity: 1;
  transform: scale(1);
}

.gallery-more-wrap {
  display: none; /* Hide button */
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border-radius: var(--radius-sm);
}
.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.4); }
.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

@media (max-width: 768px) {
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close { top: 10px; right: 10px; background: rgba(0,0,0,0.5); border-radius: 50%; }
}

.gallery-tag {
  display: inline-block;
  background: var(--green-700);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}

.gallery-more-wrap {
  text-align: center;
  margin-top: 40px;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}
.testimonial-card:hover {
  background: rgba(255,255,255,.15);
  transform: translateY(-4px);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}
.testimonial-stars svg {
  width: 18px;
  height: 18px;
  color: #ffd700;
  fill: #ffd700;
}

.testimonial-text {
  font-size: 15px;
  color: rgba(255,255,255,.85);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
.testimonial-author strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}
.testimonial-author span {
  font-size: 13px;
  color: rgba(255,255,255,.55);
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: flex-start;
}

.contact-info {
  padding-right: 8px;
}
.contact-intro {
  font-size: 17px;
  color: var(--dark-400);
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--off-white);
  border-radius: var(--radius-md);
  transition: var(--transition);
  border: 1px solid transparent;
}
a.contact-item:hover {
  background: var(--green-50);
  border-color: var(--green-400);
  transform: translateX(4px);
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--green-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg {
  width: 20px;
  height: 20px;
  color: var(--green-700);
}
.contact-item strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.contact-item span {
  font-size: 15px;
  font-weight: 500;
  color: var(--dark-900);
}

.contact-social {
  display: flex;
  gap: 12px;
}
.social-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--off-white);
  border: 1px solid var(--dark-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-700);
  transition: var(--transition);
}
.social-btn:hover {
  background: var(--green-700);
  color: var(--white);
  border-color: var(--green-700);
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--dark-100);
}
.form-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--dark-900);
  margin-bottom: 28px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark-700);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--dark-100);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--dark-900);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--dark-400); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238b949e' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }

.btn-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(64, 145, 108, 0.3);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(64, 145, 108, 0.4);
}
.btn-submit svg { width: 20px; height: 20px; }

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: var(--green-100);
  color: var(--green-800);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  margin-top: 16px;
}
.form-success svg { width: 20px; height: 20px; }

/* ===== MAP SECTION ===== */
.map-section {
  width: 100%;
  line-height: 0;
  filter: grayscale(20%) saturate(110%);
}
.map-section iframe {
  display: block;
  width: 100%;
}

/* ===== FOOTER ===== */
#footer {
  background: var(--dark-900);
}
.footer-top {
  padding: 72px 0 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand .logo-text { color: var(--white); }
.footer-tagline {
  font-size: 15px;
  color: var(--dark-400);
  line-height: 1.7;
  margin-bottom: 24px;
}
.footer-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green-400);
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
}
.footer-call:hover { color: var(--green-300); }
.footer-call svg { width: 18px; height: 18px; }

.footer-links h4,
.footer-contact h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  font-size: 15px;
  color: var(--dark-400);
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--green-400);
  padding-left: 4px;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--dark-400);
  margin-bottom: 12px;
}
.footer-contact svg { width: 16px; height: 16px; color: var(--green-600); flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid var(--dark-700);
  padding: 24px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p {
  font-size: 14px;
  color: var(--dark-400);
}

/* ===== BACK TO TOP ===== */
#back-to-top {
  position: fixed;
  bottom: 120px;
  right: 32px;
  z-index: 999;
  width: 44px;
  height: 44px;
  background: var(--dark-700);
  color: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  border: none;
}
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#back-to-top:hover {
  background: var(--green-700);
  transform: translateY(-2px);
}
#back-to-top svg { width: 20px; height: 20px; }

/* ===== SCROLL ANIMATION ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  :root { --section-py: 80px; }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-image-wrap { max-width: 600px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .gallery-insta { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 768px) {
  :root { --section-py: 64px; }

  .menu-toggle { display: flex; }
  .mobile-nav  { display: block; }
  .nav-links   { display: none; }
  .btn-call span { display: none; }
  .btn-call { padding: 10px; }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
    padding: 24px;
  }
  .stat-divider { width: 60px; height: 1px; }
  .hero-actions { flex-direction: column; align-items: center; }

  .services-grid { grid-template-columns: 1fr; }

  .about-img-badge {
    bottom: -14px;
    right: 12px;
  }

  .process-steps {
    flex-direction: column;
    align-items: center;
  }
  .process-arrow { transform: rotate(90deg); }
  .process-step { max-width: 100%; width: 100%; }

  .gallery-insta { grid-template-columns: repeat(2, 1fr); gap: 4px; }

  .testimonials-grid { grid-template-columns: 1fr; }

  .contact-form-wrap { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-inner { flex-direction: column; gap: 8px; text-align: center; }

  #float-call .float-call-label { display: none; }
  #float-call { padding: 14px; }
  #back-to-top { bottom: 96px; right: 20px; }
  #float-call { bottom: 20px; right: 20px; }

  .quick-banner-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 40px; }
  .section-title { font-size: 28px; }
  .hero-badge { font-size: 11px; }
  .stat-num { font-size: 32px; }
}

/* ================================================================
   NOVOSTI / NEWS FEED (dinamički iz API-a)
   ================================================================ */

/* Feed wrapper */
.novosti-feed {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 720px;
  margin: 0 auto;
}

/* Single post card – Facebook style */
.novosti-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,.06);
  overflow: hidden;
  transition: var(--transition);
  animation: fade-up 0.5s ease both;
}

.novosti-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* Card header – avatar + meta */
.novosti-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px 12px;
}

.novosti-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  color: var(--white);
  box-shadow: 0 3px 10px rgba(45,106,79,0.3);
}

.novosti-meta { flex: 1; }

.novosti-author {
  font-weight: 700;
  font-size: 15px;
  color: var(--dark-900);
}

.novosti-date-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.novosti-date {
  font-size: 13px;
  color: var(--dark-400);
}

.novosti-cat-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.novosti-cat-sadnja     { background: var(--green-100); color: var(--green-800); }
.novosti-cat-odrzavanje { background: #fef9c3; color: #854d0e; }
.novosti-cat-navodnjavanje { background: #dbeafe; color: #1e40af; }
.novosti-cat-krajobraz  { background: #ede9fe; color: #5b21b6; }
.novosti-cat-novo       { background: #fce7f3; color: #9d174d; }
.novosti-cat-default    { background: var(--green-100); color: var(--green-800); }

/* Card body */
.novosti-card-body {
  padding: 0 24px;
}

.novosti-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--dark-900);
  margin-bottom: 10px;
  line-height: 1.35;
}

.novosti-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--dark-700);
  white-space: pre-line;
}

.novosti-text.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.novosti-read-more {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green-700);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  transition: color var(--transition);
}
.novosti-read-more:hover { color: var(--green-800); }

/* Card image */
.novosti-card-img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  margin-top: 16px;
  border-radius: var(--radius-sm);
  display: block;
}

/* Multi-image grid */
.novosti-image-grid {
  display: grid;
  gap: 3px;
  margin-top: 16px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 380px;
}

.novosti-image-grid.grid-2 {
  grid-template-columns: 1fr 1fr;
}

.novosti-image-grid.grid-3 {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.novosti-image-grid.grid-3 .novosti-grid-img:nth-child(1) {
  grid-row: span 2;
}

.novosti-image-grid.grid-4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.novosti-grid-img {
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.novosti-grid-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  font-weight: 600;
}

/* Card footer */
.novosti-card-footer {
  padding: 14px 24px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.novosti-divider {
  height: 1px;
  background: rgba(0,0,0,.06);
  margin: 0 24px;
}

/* Empty state */
.novosti-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--dark-400);
}

.novosti-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--green-600);
}

.novosti-empty-icon svg { width: 28px; height: 28px; }

.novosti-empty p {
  font-size: 17px;
  color: var(--dark-400);
}

/* Gallery dynamic items – same style as static gi-items */
#gallery-dynamic .gi-item {
  animation: fade-up 0.5s ease both;
}
