/* ════════════════════════════════════════════════════════════
   ECOVAZ — Futuristic Corporate Theme
   ════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Syne:wght@700;800&display=swap');

:root {
  --primary:        #4a9e3f;
  --primary-light:  #8dc63f;
  --primary-glow:   #5cb85c;
  --primary-dark:   #2d6e24;
  --accent:         #00e676;
  --accent-dim:     rgba(0,230,118,.15);
  --bg:             #080e08;
  --bg-2:           #0d150d;
  --bg-card:        #111c11;
  --bg-card-2:      #162016;
  --border:         rgba(74,158,63,.18);
  --border-strong:  rgba(74,158,63,.35);
  --text:           #e8f5e8;
  --text-muted:     #7a9e7a;
  --text-dim:       #4a6e4a;
  --white:          #ffffff;
  --shadow-green:   0 0 40px rgba(74,158,63,.25);
  --shadow-card:    0 4px 24px rgba(0,0,0,.5);
  --radius:         12px;
  --radius-lg:      20px;
  --trans:          all .3s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary-dark); border-radius: 3px; }

/* ── Selection ── */
::selection { background: var(--primary); color: #fff; }

/* ════════════ TYPOGRAPHY ════════════ */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Syne', sans-serif;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary-light);
  background: var(--accent-dim);
  border: 1px solid var(--border-strong);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 16px;
}
.section-title span { color: var(--primary-light); }

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  line-height: 1.7;
}

/* ════════════ LAYOUT ════════════ */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.section { padding: 100px 0; }
.section:first-of-type { padding-top: 120px; }
.section-sm { padding: 60px 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ════════════ BUTTONS ════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  border: none;
  cursor: pointer;
  transition: var(--trans);
  white-space: nowrap;
  letter-spacing: .01em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(74,158,63,.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(74,158,63,.55); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover { border-color: var(--primary-light); color: var(--primary-light); background: var(--accent-dim); }

.btn-ghost { background: transparent; color: var(--primary-light); padding: 10px 0; }
.btn-ghost:hover { color: var(--accent); }
.btn-ghost svg { transition: transform .3s; }
.btn-ghost:hover svg { transform: translateX(4px); }

.btn-sm { padding: 10px 20px; font-size: .82rem; }
.btn-lg { padding: 18px 36px; font-size: 1rem; }

/* ════════════ CARDS ════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--trans);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(74,158,63,.06) 0%, transparent 60%);
  pointer-events: none;
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-green);
  transform: translateY(-4px);
}

/* ════════════ NAV ════════════ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: var(--trans);
}
#nav.scrolled {
  background: rgba(8,14,8,.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,.5);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 72px;
  gap: 40px;
}
.nav-logo img { height: 42px; }
.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 500;
  border-radius: 8px;
  transition: var(--trans);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); background: rgba(74,158,63,.12); }

.nav-cta { margin-left: 8px; }

.nav-burger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

/* ── Mobile nav ── */
#mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8,14,8,.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
#mobile-nav.open { display: flex; }
#mobile-nav a { font-size: 1.5rem; font-weight: 700; color: var(--text); }
#mobile-nav a:hover { color: var(--primary-light); }
#mobile-close { position: absolute; top: 24px; right: 24px; background: none; border: none; color: var(--text); cursor: pointer; }

/* ════════════ HERO SLIDER ════════════ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(74,158,63,.12) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(141,198,63,.08) 0%, transparent 50%),
              linear-gradient(180deg, #080e08 0%, #0d170d 100%);
}

/* Grid lines */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74,158,63,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,158,63,.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.slider-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity .8s ease;
}
.slide.active { opacity: 1; z-index: 2; }

.slide-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.slide-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,14,8,.85) 40%, rgba(8,14,8,.4) 100%);
}

.slide-content {
  position: relative;
  z-index: 3;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.slide-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(0,230,118,.3);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
  animation: fadeUp .6s ease both;
}
.slide-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
  max-width: 700px;
  animation: fadeUp .7s .1s ease both;
}
.slide-title span { color: var(--primary-light); }
.slide-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.65);
  max-width: 520px;
  margin-bottom: 36px;
  animation: fadeUp .7s .2s ease both;
}
.slide-actions {
  display: flex;
  gap: 16px;
  animation: fadeUp .7s .3s ease both;
}

/* Slider controls */
.slider-arrows {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 10;
  display: flex;
  gap: 12px;
}
.slider-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(8,14,8,.6);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans);
  backdrop-filter: blur(10px);
}
.slider-arrow:hover { background: var(--primary); border-color: var(--primary); }

.slider-dots {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  transition: var(--trans);
}
.slider-dot.active {
  width: 28px;
  background: var(--primary-light);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: .72rem;
  letter-spacing: .1em;
}
.scroll-indicator span { writing-mode: vertical-rl; }
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--primary-light), transparent);
  animation: scrollDown 1.5s ease-in-out infinite;
}

/* ════════════ STATS ════════════ */
.stats-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 60px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 20px;
  position: relative;
}
.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--border);
}
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-label { color: var(--text-muted); font-size: .85rem; margin-top: 8px; font-weight: 500; }

/* ════════════ PRODUCTS/CATEGORIES ════════════ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--trans);
  cursor: pointer;
  group: true;
}
.cat-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-green); transform: translateY(-4px); }
.cat-card-img {
  height: 200px;
  background: var(--bg-2);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.cat-card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,14,8,.8) 0%, transparent 60%); }
.cat-card-img .cat-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  font-size: 3rem;
  opacity: .2;
  z-index: 1;
}
.cat-card-body { padding: 20px; }
.cat-card-body h3 { font-size: 1.1rem; color: var(--white); margin-bottom: 8px; }
.cat-card-body p { color: var(--text-muted); font-size: .85rem; line-height: 1.5; }
.cat-card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--primary-light);
  font-size: .82rem;
  font-weight: 600;
}

/* Product cards */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--trans);
}
.product-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-green); transform: translateY(-4px); }
.product-card-img {
  height: 220px;
  background: var(--bg-2) center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--text-dim);
}
.product-card-body { padding: 20px; }
.product-card-body .tag {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 8px;
}
.product-card-body h3 { font-size: 1rem; color: var(--white); margin-bottom: 8px; }
.product-card-body p { color: var(--text-muted); font-size: .83rem; line-height: 1.5; }
.product-card-footer { padding: 14px 20px; border-top: 1px solid var(--border); }

/* ════════════ ABOUT SECTION ════════════ */
.about-section { background: var(--bg-2); }
.about-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 480px;
  background: var(--bg-card);
}
.about-visual img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(8,14,8,.9);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 16px 20px;
  backdrop-filter: blur(10px);
}
.about-badge-num { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; color: var(--primary-light); }
.about-badge-label { color: var(--text-muted); font-size: .8rem; }

.feature-list { list-style: none; display: flex; flex-direction: column; gap: 16px; margin: 32px 0; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--text-muted);
  font-size: .9rem;
}
.feature-list li::before {
  content: '';
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: var(--accent-dim);
  border: 1px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%234a9e3f' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 2px;
}

/* ════════════ PROJECTS ════════════ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.project-card {
  position: relative;
  height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}
.project-card-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-card) center/cover;
  transition: transform .5s ease;
}
.project-card:hover .project-card-bg { transform: scale(1.05); }
.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,14,8,.95) 0%, rgba(8,14,8,.3) 100%);
}
.project-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
}
.project-card-country { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary-light); margin-bottom: 8px; }
.project-card-title { font-size: 1.2rem; color: #fff; font-family: 'Syne', sans-serif; }

/* ════════════ REFERENCES ════════════ */
.references-section { background: var(--bg-card); }
.ref-map-wrap { position: relative; margin-bottom: 60px; }
.ref-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.ref-logo-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 60px;
  transition: var(--trans);
  font-size: .85rem;
  color: var(--text-muted);
  font-weight: 600;
}
.ref-logo-item:hover { border-color: var(--border-strong); color: var(--text); }
.ref-logo-item img { max-height: 40px; max-width: 120px; object-fit: contain; filter: grayscale(1); opacity: .6; transition: var(--trans); }
.ref-logo-item:hover img { filter: grayscale(0); opacity: 1; }

/* ════════════ CTA ════════════ */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--bg-2) 50%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 100px 24px;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(74,158,63,.15) 0%, transparent 70%);
}
.cta-section h2 { font-size: clamp(2rem, 4vw, 3rem); color: #fff; margin-bottom: 16px; position: relative; }
.cta-section p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 36px; position: relative; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ════════════ FORMS ════════════ */
.form-section { background: var(--bg-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; letter-spacing: .02em; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: .9rem;
  transition: var(--trans);
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74,158,63,.15);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-icon {
  width: 44px; height: 44px; min-width: 44px;
  background: var(--accent-dim);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
}
.contact-info-text h4 { color: var(--white); font-size: .9rem; margin-bottom: 4px; }
.contact-info-text p { color: var(--text-muted); font-size: .85rem; }

/* ════════════ FOOTER ════════════ */
#footer {
  background: #050a05;
  border-top: 1px solid var(--border);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-brand img { height: 36px; margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); font-size: .85rem; line-height: 1.7; max-width: 260px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .85rem;
  transition: var(--trans);
}
.social-link:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.footer-col h4 { color: var(--white); font-size: .9rem; font-family: 'Syne', sans-serif; margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--text-muted); font-size: .85rem; transition: var(--trans); }
.footer-links a:hover { color: var(--primary-light); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: var(--text-dim); font-size: .8rem; }
.footer-bottom a { color: var(--text-muted); }




/* ════════════ GALLERY ════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--bg-card);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,14,8,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--trans);
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.95);
  align-items: center;
  justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius); }
#lightbox-close { position: absolute; top: 24px; right: 24px; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; }

/* ════════════ CORPORATE ════════════ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}
.value-icon { font-size: 2.5rem; margin-bottom: 16px; }
.value-card h3 { color: var(--white); margin-bottom: 10px; }
.value-card p { color: var(--text-muted); font-size: .88rem; line-height: 1.6; }

/* ════════════ QUOTE FORM ════════════ */
.quote-wrap { max-width: 820px; margin: 0 auto; }
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 48px;
}
.step-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--trans);
  background: var(--bg-card);
  position: relative;
  z-index: 1;
}
.step-dot.active { border-color: var(--primary); color: var(--primary-light); background: var(--accent-dim); }
.step-line { flex: 1; height: 1px; background: var(--border); }

/* ════════════ ALERTS / FLASH ════════════ */
.alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 500;
  margin-bottom: 20px;
}
.alert-success { background: rgba(74,158,63,.12); border: 1px solid rgba(74,158,63,.3); color: #a8d8a8; }
.alert-error { background: rgba(220,53,69,.1); border: 1px solid rgba(220,53,69,.3); color: #f8a8b0; }
.alert-info { background: rgba(0,150,255,.1); border: 1px solid rgba(0,150,255,.3); color: #a0c8f8; }

/* ════════════ ANIMATIONS ════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(1.5); }
}
@keyframes scrollDown {
  0%   { opacity: 1; transform: scaleY(1) translateY(0); }
  100% { opacity: 0; transform: scaleY(.8) translateY(20px); }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes glowPulse {
  0%,100% { box-shadow: 0 0 20px rgba(74,158,63,.3); }
  50%      { box-shadow: 0 0 40px rgba(74,158,63,.6); }
}

.fade-in { animation: fadeUp .6s ease both; }
.anim-delay-1 { animation-delay: .1s; }
.anim-delay-2 { animation-delay: .2s; }
.anim-delay-3 { animation-delay: .3s; }

/* ════════════ PARTICLES ════════════ */
.particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--primary-light);
  opacity: .06;
  animation: float linear infinite;
}

/* ════════════ BADGE / TAG ════════════ */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  background: var(--accent-dim);
  color: var(--primary-light);
  border: 1px solid var(--border-strong);
}

/* ════════════ DIVIDER ════════════ */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  margin: 60px 0;
}

/* ════════════ RESPONSIVE ════════════ */


/* ════════════ PRELOADER ════════════ */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s ease;
}
#preloader.done { opacity: 0; pointer-events: none; }
.loader-ring {
  width: 48px; height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--primary-light);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ════════════ COOKIE BANNER ════════════ */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 520px;
  background: var(--bg-card-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  z-index: 900;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  display: none;
}
#cookie-banner.show { display: block; }
#cookie-banner p { color: var(--text-muted); font-size: .83rem; margin-bottom: 14px; }
#cookie-banner .btn-row { display: flex; gap: 10px; }

/* ════════════ WHATSAPP ════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 54px;
  height: 54px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 800;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: var(--trans);
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,.6); }
.whatsapp-float svg { color: #fff; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile First
   Breakpoints: 480 | 640 | 768 | 1024 | 1280
   ════════════════════════════════════════════════════════════ */

/* ── Tablet Büyük (≤1280px) ─────────────────────────────────── */
@media (max-width: 1280px) {
  .container { padding: 0 20px; }
  .nav-inner { gap: 24px; }
}

/* ── Tablet (≤1024px) ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4            { grid-template-columns: repeat(2,1fr); }
  .footer-grid       { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-grid        { grid-template-columns: repeat(2,1fr); }
  .form-grid         { grid-template-columns: 1fr; gap: 40px; }
  .about-section .grid-2 { gap: 40px; }
  .section           { padding: 80px 0; }
  .slider-arrows     { right: 20px; bottom: 20px; }
}

/* ── Tablet Küçük / Büyük Telefon (≤768px) ─────────────────── */
@media (max-width: 768px) {

  /* === Global === */
  html { font-size: 15px; }
  .section { padding: 56px 0; }
  .section-sm { padding: 40px 0; }
  .container { padding: 0 16px; }

  /* === Nav === */
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-inner  { height: 60px; gap: 12px; }
  .nav-logo img { height: 34px; }

  /* === Mobile Nav overlay === */
  #mobile-nav a { font-size: 1.3rem; }

  /* === Hero Slider === */
  #hero { height: 100svh; min-height: 520px; }
  .slide-content { padding: 0 16px; }
  .slide-tag  { font-size: .68rem; padding: 4px 10px; }
  .slide-title { font-size: clamp(1.6rem, 7vw, 2.2rem); margin-bottom: 12px; }
  .slide-sub  { font-size: .9rem; margin-bottom: 24px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .slide-actions { flex-direction: column; align-items: flex-start; gap: 10px; }
  .slide-actions .btn { width: 100%; justify-content: center; }
  .btn-lg { padding: 14px 24px; font-size: .9rem; }
  .slider-dots { bottom: 16px; }
  .slider-arrows { display: none; }
  .scroll-indicator { display: none; }

  /* === Stats === */
  .stats-section { padding: 40px 0; }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 0; }
  .stat-item + .stat-item::before { display: none; }
  .stat-num { font-size: 2.2rem; }
  .stat-label { font-size: .78rem; }

  /* === Grids === */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }

  /* === About === */
  .about-visual { height: 300px; }
  .about-badge { padding: 12px 16px; }
  .about-badge-num { font-size: 1.5rem; }

  /* === CTA === */
  .cta-section { padding: 56px 16px; }
  .cta-section h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .cta-actions { flex-direction: column; gap: 10px; }
  .cta-actions .btn { width: 100%; justify-content: center; }

  /* === Forms === */
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-group input,
  .form-group textarea,
  .form-group select { font-size: 16px; } /* iOS zoom önleme */
  .step-indicator { gap: 0; }
  .step-dot { width: 30px; height: 30px; font-size: .75rem; }

  /* === Footer === */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand p { max-width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* === Section title === */
  .section-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }

  /* === Cards === */
  .card { padding: 20px; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .cat-card-img { height: 150px; }

  /* === Gallery === */
  .gallery-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }

  /* === WhatsApp + Cookie === */
  .whatsapp-float { bottom: 16px; right: 16px; width: 48px; height: 48px; }
  #cookie-banner { left: 12px; right: 12px; bottom: 12px; }
}

/* ── Küçük Telefon (≤640px) ─────────────────────────────────── */
@media (max-width: 640px) {

  /* === Products sidebar === */
  .products-layout { flex-direction: column !important; }
  .products-sidebar { min-width: unset !important; max-width: 100% !important; }
  .sidebar-cats { display: flex; flex-wrap: wrap; gap: 6px; }
  .sidebar-cats a { padding: 6px 12px !important; border-radius: 100px !important; border: 1px solid var(--border); font-size: .78rem !important; }

  /* === Product cards === */
  .cat-grid { grid-template-columns: 1fr; }
  .product-card-img { height: 200px; }

  /* === Quote steps === */
  .step-indicator { margin-bottom: 28px; }
  .quote-wrap { padding: 0; }

  /* === Admin cards === */
  .stats-row { grid-template-columns: 1fr 1fr; }
}

/* ── iPhone SE / Küçük (≤480px) ────────────────────────────── */
@media (max-width: 480px) {
  html { font-size: 14px; }
  .section { padding: 48px 0; }

  /* === Hero === */
  .slide-title { font-size: 1.5rem; }
  .slide-sub   { display: none; } /* Çok küçük ekranda gizle */
  #hero { min-height: 480px; }

  /* === Stats === */
  .stats-grid { grid-template-columns: 1fr 1fr; }

  /* === Gallery === */
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; }

  /* === Cat grid === */
  .cat-grid { grid-template-columns: 1fr; }

  /* === Section title === */
  .section-title { font-size: 1.5rem; }

  /* === Refs === */
  .ref-logos { gap: 10px; }
  .ref-logo-item { min-width: 120px; padding: 12px 16px; font-size: .78rem; }

  /* === Nav === */
  .nav-inner { height: 56px; }
  .nav-logo img { height: 30px; }

  /* === Buttons === */
  .btn { min-height: 44px; } /* Touch target */
  .btn-sm { min-height: 38px; }
}

/* ════════════ PRELOADER ════════════ */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s ease;
}
#preloader.done { opacity: 0; pointer-events: none; }
.loader-ring {
  width: 48px; height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--primary-light);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ════════════ COOKIE BANNER ════════════ */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 520px;
  background: var(--bg-card-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  z-index: 900;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  display: none;
}
#cookie-banner.show { display: block; }
#cookie-banner p { color: var(--text-muted); font-size: .83rem; margin-bottom: 14px; }
#cookie-banner .btn-row { display: flex; gap: 10px; }

/* ════════════ WHATSAPP ════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 54px;
  height: 54px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 800;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: var(--trans);
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { color: #fff; }

/* ════════════ TOUCH IMPROVEMENTS ════════════ */
@media (hover: none) and (pointer: coarse) {
  /* Touch cihazlarda hover animasyonları kaldır */
  .cat-card:hover,
  .product-card:hover,
  .card:hover { transform: none; }

  /* Tüm tıklanabilir alanlar min 44px touch target */
  .btn, a.btn, button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .nav-links a { min-height: 44px; display: flex; align-items: center; }
  .footer-links a { min-height: 36px; display: flex; align-items: center; }
}

/* ════════════ SAFE AREA (iPhone X+ notch) ════════════ */
@supports (padding: max(0px)) {
  #nav { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
  #footer .footer-bottom { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .whatsapp-float { bottom: max(28px, calc(env(safe-area-inset-bottom) + 16px)); right: max(28px, env(safe-area-inset-right)); }
}
