/* ==========================================
   BYTEX — Bold & Editorial + Warm Craft
   Typography: Archivo + DM Sans
   Colors: Warm Amber #E8A624 + Warm Darks
   ========================================== */

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

html {
  --primary: #E8A624;
  --primary-dark: #C98E1A;
  --secondary: #2B2118;
  --dark: #1C1610;
  --light: #FFF9F0;
  --surface: #F5EDE0;
  --white: #FFFFFF;
}

::selection { background: var(--primary); color: var(--dark); }

/* Archivo 900 weight */
.font-900 { font-weight: 900; }


/* ==========================================
   NAVBAR
   ========================================== */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(255,255,255,0.97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

/* When navbar is transparent (over hero) — white text */
#navbar:not(.scrolled) .nav-link { color: rgba(255,255,255,0.85); }
#navbar:not(.scrolled) .nav-link:hover { color: var(--primary); }
#navbar:not(.scrolled) #mobile-toggle { color: white; }

/* When scrolled — dark text */
#navbar.scrolled .nav-link { color: var(--secondary); }
#navbar.scrolled .nav-link:hover { color: var(--primary); }
#navbar.scrolled #mobile-toggle { color: var(--secondary); background: rgba(0,0,0,0.05); }
#navbar.scrolled #nav-logo-img { filter: none; }
#navbar:not(.scrolled) #nav-logo-img { filter: brightness(10); }

.nav-link {
  font-family: 'Archivo', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-decoration: none;
  padding: 6px 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.mobile-nav-link {
  display: block;
  padding: 14px 16px;
  font-family: 'Archivo', sans-serif;
  font-size: 1rem; font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
}
.mobile-nav-link:hover { background: rgba(232,166,36,0.1); color: var(--primary); }

/* ==========================================
   HERO
   ========================================== */
#hero_1 { min-height: 100vh; }

.hero-overlay {
  background:
    linear-gradient(135deg, rgba(28,22,16,0.92) 0%, rgba(28,22,16,0.6) 50%, rgba(28,22,16,0.3) 100%);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

/* Floating card with yellow accent border */
.hero-floating-card {
  position: relative;
  transform: rotate(2deg);
  transition: transform 0.4s ease;
}
.hero-floating-card:hover { transform: rotate(0deg) scale(1.02); }

.hero-card-accent {
  position: absolute;
  inset: -10px;
  border: 3px solid var(--primary);
  border-radius: 20px;
  z-index: -1;
  transform: rotate(-3deg);
}

.hero-angle-cut {
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 90px;
  background: var(--white);
  -webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
  z-index: 5;
}

/* ==========================================
   ABOUT
   ========================================== */
.about-section {
  padding: 100px 0 80px;
}

/* Decorative SVGs — very subtle on white bg */
.about-deco-circle {
  position: absolute;
  top: -40px; right: -60px;
  width: 300px; height: 300px;
  pointer-events: none;
}
.about-deco-circle circle { stroke: rgba(232,166,36,0.08); }

.about-deco-dots {
  position: absolute;
  bottom: 60px; left: 40px;
  width: 120px; height: 120px;
  pointer-events: none;
}
.about-deco-dots circle { fill: rgba(232,166,36,0.07); }

.about-deco-lines {
  position: absolute;
  top: 80px; right: 35%;
  width: 60px; height: 200px;
  pointer-events: none;
}
.about-deco-lines line { stroke: rgba(232,166,36,0.05); }

/* Image container */
.about-img-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(28,22,16,0.1);
}

.about-img-container::before {
  content: '';
  position: absolute;
  bottom: -12px; right: -12px;
  width: 60%; height: 60%;
  background: var(--primary);
  border-radius: 16px;
  z-index: -1;
}

/* Label tag */
.about-label-tag {
  display: inline-block;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 12px;
}

/* CTA button */
.about-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--dark);
  text-decoration: none;
  background: var(--primary);
  padding: 14px 36px;
  border-radius: 50px;
  transition: all 0.3s ease;
}
.about-cta-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,166,36,0.25);
}


/* ==========================================
   SERVICES
   ========================================== */
.service-block {
  position: relative;
  overflow: hidden;
}

.svc-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.service-block.reversed .svc-inner { direction: rtl; }
.service-block.reversed .svc-inner > * { direction: ltr; }

/* Decorative diagonal stripes */
.svc-deco-stripes {
  position: absolute;
  pointer-events: none;
  opacity: 0.35;
}

.service-block:nth-child(odd) .svc-deco-stripes {
  right: -20px; top: 20%; width: 120px; height: 60%;
}
.service-block:nth-child(even) .svc-deco-stripes {
  left: -20px; top: 15%; width: 120px; height: 70%;
}

/* After cream header: white, cream, white, cream */
.service-block:nth-child(odd) { background: var(--white); }
.service-block:nth-child(even) { background: var(--surface); }

.svc-img-col {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.svc-img-col img {
  width: 100%; height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.svc-img-col:hover img { transform: scale(1.04); }

.svc-text-col {
  position: relative;
}

.svc-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.svc-desc {
  color: rgba(43,33,24,0.6);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 0.9375rem;
}

.svc-details-label {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--secondary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.svc-details-label .svc-label-icon {
  color: var(--primary);
}

.svc-details-list { margin-bottom: 24px; }

.svc-detail-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 5px 0;
  padding-left: 8px;
}

.svc-detail-text {
  font-size: 0.875rem;
  color: rgba(43,33,24,0.55);
  line-height: 1.5;
}

.svc-cta-link {
  display: inline-flex;
  align-items: center; gap: 8px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--dark);
  text-decoration: none;
  background: var(--primary);
  padding: 12px 28px;
  border-radius: 50px;
  transition: all 0.3s ease;
}
.svc-cta-link:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Hide unused elements */
.svc-number, .svc-icon-wrap { display: none; }

/* ==========================================
   GALLERY
   ========================================== */
.gallery-cell {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-cell img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-cell:hover img { transform: scale(1.06); }

.gallery-cell-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,22,16,0.6) 0%, transparent 40%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex; align-items: flex-end;
  padding: 14px;
}
.gallery-cell:hover .gallery-cell-overlay { opacity: 1; }

.gallery-cell-caption {
  color: white;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
}

/* ==========================================
   TESTIMONIALS
   ========================================== */
.testimonial-bg-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(232,166,36,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.testimonial-card {
  background: var(--light);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  border: 1px solid rgba(232,166,36,0.1);
  transition: all 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

.testimonial-quote {
  position: absolute; top: 16px; right: 24px;
  font-family: 'Archivo', sans-serif;
  font-weight: 900; font-size: 4rem;
  color: rgba(232,166,36,0.1);
  line-height: 1;
  pointer-events: none;
}

.testimonial-stars { display: flex; gap: 2px; margin-bottom: 16px; }
.testimonial-star { color: var(--primary); }

.testimonial-text {
  font-size: 0.9375rem;
  color: var(--secondary);
  opacity: 0.7;
  line-height: 1.7;
  margin-bottom: 20px;
}

.testimonial-author { display: flex; align-items: center; gap: 12px; }

.testimonial-avatar {
  width: 44px; height: 44px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  color: var(--dark);
  font-size: 0.875rem;
}

.testimonial-name {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  color: var(--secondary);
  font-size: 0.9375rem;
}

.testimonial-source {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.75rem; color: rgba(43,33,24,0.4);
}

.testimonial-source img { height: 14px; }

/* ==========================================
   CONTACT
   ========================================== */
.contact-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid rgba(43,33,24,0.06);
  border-radius: 12px;
  text-decoration: none; color: inherit;
  transition: all 0.3s ease;
}
.contact-card:hover {
  border-color: rgba(232,166,36,0.3);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.contact-card-icon {
  width: 40px; height: 40px;
  background: rgba(232,166,36,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.contact-card-icon i { width: 18px; height: 18px; }

.contact-card-label {
  font-size: 0.6875rem;
  color: rgba(43,33,24,0.35);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.contact-card-value {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  color: var(--secondary);
  font-size: 0.875rem;
}

/* Form — light bg version */
.form-input {
  width: 100%;
  padding: 13px 16px;
  background: var(--white);
  border: 1px solid rgba(43,33,24,0.1);
  border-radius: 10px;
  color: var(--secondary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  outline: none;
  transition: all 0.3s ease;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,166,36,0.12);
}
.form-input::placeholder { color: rgba(43,33,24,0.25); }
.form-input.error { border-color: #ef4444; }

.form-label {
  display: block;
  font-size: 0.7rem; font-weight: 600;
  color: rgba(43,33,24,0.4);
  margin-bottom: 4px;
  font-family: 'Archivo', sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

textarea.form-input { min-height: 90px; resize: vertical; }

/* ==========================================
   FOOTER
   ========================================== */
#footer-logo {
  filter: brightness(1.5);
}

.footer-link {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}
.footer-link:hover { color: var(--primary); }

.footer-contact-row {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.4);
  font-size: 0.8125rem;
}
.footer-contact-row i { width: 14px; height: 14px; color: var(--primary); }
.footer-contact-row a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-contact-row a:hover { color: var(--primary); }

/* ==========================================
   SCROLL TO TOP
   ========================================== */
#scroll-top.show {
  display: flex !important;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .svc-inner {
    grid-template-columns: 1fr;
    padding: 48px 20px;
    gap: 32px;
  }
  .service-block.reversed .svc-inner { direction: ltr; }
  .svc-img-col img { height: 280px; }
  .svc-deco-stripes { display: none; }

  .gallery-cell img { height: 180px; }
}

@media (max-width: 768px) {
  #gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-section { padding: 60px 0 60px; }
  .about-stat-value { font-size: 1.5rem; }
  .about-stat-card { padding: 20px 12px; }
  .about-stats-strip { margin-top: 32px; }
  .about-deco-circle, .about-deco-lines { display: none; }
  .about-img-container::before { bottom: -8px; right: -8px; }

  .hero-angle-cut { height: 50px; }
}

@media (max-width: 480px) {
  #gallery-grid { grid-template-columns: 1fr; }
}

/* ==========================================
   REDUCED MOTION
   ========================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================
   HERO ENTRANCE ANIMATIONS (CSS keyframes, no GSAP)
   ========================================== */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroSlideIn {
  from { opacity: 0; transform: translateX(60px) rotate(6deg); }
  to { opacity: 1; transform: translateX(0) rotate(2deg); }
}

.hero-anim {
  opacity: 0;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-anim-1 { animation: heroFadeUp 0.8s 0.1s forwards cubic-bezier(0.22,1,0.36,1); }
.hero-anim-2 { animation: heroFadeUp 0.7s 0.3s forwards cubic-bezier(0.22,1,0.36,1); }
.hero-anim-3 { animation: heroFadeUp 0.6s 0.5s forwards cubic-bezier(0.22,1,0.36,1); }
.hero-anim-4 { animation: heroSlideIn 0.9s 0.4s forwards cubic-bezier(0.22,1,0.36,1); }

/* ==========================================
   SCROLL ANIMATIONS (IntersectionObserver)
   ========================================== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.slide-left.visible { opacity: 1; transform: translateX(0); }

.slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.slide-right.visible { opacity: 1; transform: translateX(0); }

.scale-in {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.scale-in.visible { opacity: 1; transform: scale(1); }

/* Stagger children */
.stagger-parent .stagger-item {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-parent.visible .stagger-item { opacity: 1; transform: translateY(0); }
.stagger-parent.visible .stagger-item:nth-child(1) { transition-delay: 0.05s; }
.stagger-parent.visible .stagger-item:nth-child(2) { transition-delay: 0.1s; }
.stagger-parent.visible .stagger-item:nth-child(3) { transition-delay: 0.15s; }
.stagger-parent.visible .stagger-item:nth-child(4) { transition-delay: 0.2s; }
.stagger-parent.visible .stagger-item:nth-child(5) { transition-delay: 0.25s; }
.stagger-parent.visible .stagger-item:nth-child(6) { transition-delay: 0.3s; }
.stagger-parent.visible .stagger-item:nth-child(7) { transition-delay: 0.35s; }
.stagger-parent.visible .stagger-item:nth-child(8) { transition-delay: 0.4s; }

