/* ============================================================
   ZESTO TECH — COMPONENTS CSS
   Reusable, page-specific UI components
   ============================================================ */

/* ======================== SERVICE CARDS ======================== */

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 40px 32px;
  transition: all 0.5s var(--ease-smooth);
  overflow: hidden;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--green-dark), var(--green-primary));
  transition: width 0.5s var(--ease-out-expo);
}
.service-card:hover::before { width: 100%; }
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 0% 100%, rgba(74,138,30,0.06) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.service-card:hover::after { opacity: 1; }
.service-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(74,138,30,0.08);
}

.service-card__number {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(74,138,30,0.1);
  line-height: 1;
  margin-bottom: 20px;
  transition: color 0.4s ease;
}
.service-card:hover .service-card__number { color: rgba(74,138,30,0.2); }

.service-card__icon {
  width: 52px;
  height: 52px;
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}
.service-card:hover .service-card__icon {
  background: var(--green-subtle);
  border-color: var(--green-primary);
  box-shadow: 0 0 20px rgba(74,138,30,0.3);
}
.service-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--green-primary);
  fill: none;
  stroke-width: 1.5;
}

.service-card__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}
.service-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.service-card__tag {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.service-card:hover .service-card__tag {
  border-color: var(--border-accent);
  color: var(--green-light);
}

/* ======================== HERO ======================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-base);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  animation: heroScale 12s ease-out forwards;
}
@keyframes heroScale {
  from { transform: scale(1.1); }
  to { transform: scale(1.02); }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(8,8,8,0.92) 0%,
    rgba(8,8,8,0.75) 50%,
    rgba(8,8,8,0.4) 100%
  );
}
.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74,138,30,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,138,30,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.hero__label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  animation: fadeInLeft 0.8s ease 0.3s both;
}
.hero__label::before {
  content: '';
  display: block;
  width: 50px;
  height: 1px;
  background: var(--green-primary);
}
.hero__label span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green-primary);
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.hero__title em {
  font-style: italic;
  color: var(--green-light);
}
.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s ease 0.9s both;
}
.hero__cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 1.1s both;
}
.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeIn 1s ease 2s both;
}
.hero__scroll-indicator span {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero__scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--green-primary), transparent);
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.5); }
}

/* ======================== ABOUT STRIP ======================== */

.about-intro__visual {
  position: relative;
}
.about-intro__img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}
.about-intro__img-wrap img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  transition: transform 1s ease;
}
.about-intro__img-wrap:hover img { transform: scale(1.04); }
.about-intro__badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--green-primary);
  padding: 28px 32px;
  border-radius: var(--radius-md);
}
.about-intro__badge .number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  display: block;
}
.about-intro__badge .label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ======================== STATS BAR ======================== */

.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 60px 0;
}
.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stats-bar__item {
  text-align: center;
  padding: 30px 20px;
  border-right: 1px solid var(--border);
  transition: background 0.3s ease;
}
.stats-bar__item:last-child { border-right: none; }
.stats-bar__item:hover { background: var(--bg-elevated); }
.stats-bar__num {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 700;
  color: var(--green-primary);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.stats-bar__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ======================== PROCESS DIAGRAM ======================== */

.process-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-flow::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, var(--green-dark), var(--green-primary), var(--green-light));
  z-index: 0;
}
.process-step {
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}
.process-step__circle {
  width: 72px;
  height: 72px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  transition: all 0.4s ease;
  font-size: 1.4rem;
}
.process-step:hover .process-step__circle {
  background: var(--green-subtle);
  border-color: var(--green-primary);
  box-shadow: 0 0 30px rgba(74,138,30,0.3);
  transform: scale(1.1);
}
.process-step__num {
  position: absolute;
  top: -8px;
  right: 35%;
  width: 20px;
  height: 20px;
  background: var(--green-primary);
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-step__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.process-step__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ======================== CLIENT LOGOS MARQUEE ======================== */

.clients-marquee {
  padding: 50px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.clients-marquee__inner {
  display: flex;
  animation: marqueeLTR 20s linear infinite;
  width: max-content;
}
.clients-marquee__item {
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.45;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s ease, filter 0.3s ease;
  flex-shrink: 0;
}
.clients-marquee__item:hover {
  opacity: 1;
  filter: brightness(1) invert(0) sepia(1) saturate(2) hue-rotate(60deg);
}
.clients-marquee__item img {
  height: 32px;
  width: auto;
  object-fit: contain;
}
.clients-marquee__name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
  white-space: nowrap;
}

/* ======================== PORTFOLIO GRID ======================== */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}
.portfolio-item.large { grid-column: span 2; aspect-ratio: 2/1; }
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-smooth);
}
.portfolio-item:hover img { transform: scale(1.08); }
.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.95) 0%, rgba(8,8,8,0.2) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}
.portfolio-item:hover .portfolio-item__overlay { opacity: 1; }
.portfolio-item__category {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-primary);
  margin-bottom: 8px;
}
.portfolio-item__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}
.portfolio-item__arrow {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.portfolio-item:hover .portfolio-item__arrow {
  background: var(--green-primary);
  border-color: var(--green-primary);
}

/* ======================== SHOP COMPONENTS ======================== */

.shop-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.shop-filter__btn {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 10px 24px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
}
.shop-filter__btn:hover, .shop-filter__btn.active {
  border-color: var(--green-primary);
  color: var(--green-primary);
  background: var(--green-subtle);
}

.shop-product {
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.shop-product:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.shop-product__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.shop-product:hover .shop-product__img { transform: scale(1.05); }
.shop-product__body { padding: 24px; }
.shop-product__cat {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-primary);
  margin-bottom: 8px;
}
.shop-product__name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.shop-product__materials {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.shop-product__material {
  font-size: 0.6rem;
  padding: 3px 8px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 2px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.shop-product__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.shop-product__enquiry {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s ease;
  font-family: var(--font-sans);
}
.shop-product:hover .shop-product__enquiry { gap: 14px; }

/* ======================== QUOTE FORM STEPS ======================== */

.step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 48px;
}
.step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.4s ease;
  flex-shrink: 0;
  z-index: 1;
}
.step-dot.active { border-color: var(--green-primary); color: var(--green-primary); background: var(--green-subtle); }
.step-dot.done { border-color: var(--green-primary); background: var(--green-primary); color: #fff; }
.step-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  transition: background 0.4s ease;
}
.step-line.done { background: var(--green-primary); }

.form-step { display: none; }
.form-step.active { display: block; animation: fadeInUp 0.5s ease both; }

/* ======================== FOUNDER CARDS ======================== */

.founder-card {
  text-align: center;
  padding: 40px 32px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  transition: all 0.4s ease;
}
.founder-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(74,138,30,0.1);
}
.founder-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--border-accent);
  margin: 0 auto 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-subtle);
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green-primary);
}
.founder-card__name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.founder-card__role {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-primary);
  margin-bottom: 16px;
}
.founder-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.founder-card__years {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-light);
}

/* ======================== CONTACT ======================== */

.contact-info__item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info__icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info__icon svg {
  width: 18px; height: 18px;
  stroke: var(--green-primary);
  fill: none;
  stroke-width: 1.5;
}
.contact-info__label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.contact-info__value {
  font-size: 0.95rem;
  color: var(--text-primary);
}

/* ======================== SECTION DIVIDERS ======================== */

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ======================== ENQUIRY CART ======================== */

.enquiry-cart {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 400px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
  z-index: 800;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  padding: 0;
}
.enquiry-cart.open { transform: translateX(0); }
.enquiry-cart__header {
  padding: 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.enquiry-cart__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
}
.enquiry-cart__items { flex: 1; overflow-y: auto; padding: 24px; }
.enquiry-cart__footer { padding: 24px; border-top: 1px solid var(--border); }

/* ======================== RESPONSIVE ======================== */

@media (max-width: 768px) {
  .hero__title { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .process-flow { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process-flow::before { display: none; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; gap: 2px; }
  .portfolio-item.large { grid-column: span 1; aspect-ratio: 1; }
  .enquiry-cart { width: 100%; }
  .founder-card { padding: 28px 20px; }
}
@media (max-width: 480px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .stats-bar__grid { grid-template-columns: 1fr 1fr; }
  .process-flow { grid-template-columns: 1fr; }
}
