/* ==========================================
   GAVIS BAU — Blueprint Construction Aesthetic
   Typography: Plus Jakarta Sans + Inter
   Colors: Steel Blue #1E40AF + Navy #0F172A + Amber #F59E0B
   No gradients (except hero overlay), no shadows, no generic lines
   ========================================== */

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

html {
  --primary: #1E40AF;
  --primary-dark: #1E3A8A;
  --accent: #06B6D4;
  --dark: #0F172A;
  --secondary: #334155;
  --white: #FFFFFF;
  --light: #F8FAFC;
  --surface: #EFF6FF;
  scroll-behavior: smooth;
}

body { overflow-x: hidden; position: relative; }
::selection { background: var(--accent); color: var(--dark); }
.font-800 { font-weight: 800; }

/* Global blueprint grid that covers entire page */
.global-blueprint-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Ensure all content sits above the grid */
nav, main, footer, #scroll-top, .fixed {
  position: relative;
  z-index: 1;
}

/* ==========================================
   NAVIGATION — Clean, no shadows
   ========================================== */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.nav-link {
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  position: relative;
  transition: all 0.3s ease;
}
.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.nav-link.active {
  color: var(--accent);
  background: rgba(6,182,212,0.08);
}
.nav-link::after { display: none; }

.mobile-nav-link {
  display: block;
  padding: 14px 20px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}
.mobile-nav-link:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
  border-left-color: var(--accent);
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 9px 22px;
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.825rem;
  text-decoration: none;
  transition: all 0.3s ease;
}
.nav-cta-btn:hover {
  background: #0891b2;
  transform: translateY(-1px);
}

/* ==========================================
   HERO — Full-screen centered, animated
   ========================================== */
#hero_1 { min-height: 100vh; }

.hero-overlay {
  background: linear-gradient(180deg,
    rgba(15,23,42,0.95) 0%,
    rgba(15,23,42,0.7) 35%,
    rgba(30,64,175,0.35) 65%,
    rgba(15,23,42,0.85) 100%
  );
}

.hero-gradient-anim {
  background: rgba(30,64,175,0.08);
  animation: heroGradientPulse 8s ease-in-out infinite;
}

@keyframes heroGradientPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 24px;
  background: rgba(30,64,175,0.15);
  border: 1px solid rgba(30,64,175,0.25);
  border-radius: 100px;
  margin-bottom: 32px;
}
.hero-badge span {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(147,197,253,0.8);
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  text-shadow: 0 4px 40px rgba(0,0,0,0.3);
}

.hero-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: #fff;
  padding: 16px 40px;
  border-radius: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-cta-button:hover {
  background: #0891b2;
  transform: translateY(-3px);
}

.hero-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 5;
  line-height: 0;
}
.hero-divider svg {
  width: 100%;
  height: 80px;
}

/* Hero entrance animations */
.hero-anim {
  opacity: 0;
  transform: translateY(35px);
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-anim-1 { animation: heroReveal 0.9s 0.2s forwards cubic-bezier(0.22,1,0.36,1); }
.hero-anim-2 { animation: heroReveal 0.8s 0.4s forwards cubic-bezier(0.22,1,0.36,1); }
.hero-anim-3 { animation: heroReveal 0.7s 0.6s forwards cubic-bezier(0.22,1,0.36,1); }
.hero-anim-4 { animation: heroReveal 0.7s 0.8s forwards cubic-bezier(0.22,1,0.36,1); }

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

/* ==========================================
   ABOUT — Clean two-column
   ========================================== */
.about-section {
  padding: 90px 0 100px;
}

.about-img-frame {
  border-radius: 12px;
  overflow: hidden;
}

.about-label-tag {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
}

.about-label-marker {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
  transform: rotate(45deg);
}

.about-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
  text-decoration: none;
  background: var(--accent);
  padding: 14px 36px;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.about-cta-btn:hover {
  background: #0891b2;
}

/* ==========================================
   SERVICES — Alternating blocks, minimal
   ========================================== */
.svc-block {
  overflow: hidden;
}
.svc-block.bg-light { background: rgba(255,255,255,0.8); }
.svc-block.bg-primary { background: var(--dark); }

.svc-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.svc-inner.reversed .svc-img-col { order: 2; }
.svc-inner.reversed .svc-text-col { order: 1; }

.svc-img-col {
  overflow: hidden;
}
.svc-img-col img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  display: block;
}

.svc-text-col {
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.svc-text-col .svc-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 20px;
  color: transparent;
  -webkit-text-stroke: 1.5px;
}

.svc-block.bg-light .svc-number { -webkit-text-stroke-color: rgba(30,64,175,0.12); }
.svc-block.bg-primary .svc-number { -webkit-text-stroke-color: rgba(6,182,212,0.15); }

.svc-block.bg-light .svc-text-col h3 { color: var(--dark); }
.svc-block.bg-light .svc-text-col p { color: var(--secondary); opacity: 0.6; }
.svc-block.bg-light .svc-details li { color: var(--secondary); opacity: 0.6; }
.svc-block.bg-light .svc-details li::before { background: var(--primary); opacity: 0.4; }

.svc-block.bg-primary .svc-text-col h3 { color: #fff; }
.svc-block.bg-primary .svc-text-col p { color: rgba(255,255,255,0.5); }
.svc-block.bg-primary .svc-details li { color: rgba(255,255,255,0.5); }
.svc-block.bg-primary .svc-details li::before { background: var(--accent); opacity: 0.5; }
.svc-block.bg-primary .svc-cta { background: var(--accent); color: var(--dark);
}
.svc-block.bg-primary .svc-cta:hover {
  background: #0891b2;
}

.svc-text-col h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.4;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.svc-text-col p {
  line-height: 1.9;
  font-size: 0.82rem;
  margin-bottom: 24px;
}

.svc-details {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.svc-details li {
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 500;
  border-radius: 4px;
  position: relative;
  padding-left: 16px;
}
.svc-details li::before {
  content: '';
  position: absolute;
  left: 6px; top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.svc-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--primary);
  text-decoration: none;
  background: none;
  padding: 0;
  transition: all 0.3s ease;
  align-self: flex-start;
  letter-spacing: 0.3px;
}
.svc-cta:hover {
  opacity: 0.7;
}
.svc-block.bg-primary .svc-cta {
  color: var(--accent);
  background: none;
}
.svc-block.bg-primary .svc-cta:hover {
  opacity: 0.7;
  background: none;
}

/* ==========================================
   GALLERY — Simple 3-column grid
   ========================================== */
.gallery-cell {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

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

.gallery-cell-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.gallery-cell:hover .gallery-cell-overlay { opacity: 1; }

.gallery-cell-overlay span {
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
}

/* ==========================================
   TESTIMONIALS — Clean flat cards
   ========================================== */
.testimonial-card {
  background: var(--dark);
  border-radius: 12px;
  padding: 32px 28px;
  border: 1px solid rgba(30,64,175,0.08);
}

.testimonial-quote {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.12;
  line-height: 1;
  margin-bottom: -10px;
}

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

.testimonial-text {
  color: rgba(255,255,255,0.55);
  line-height: 1.85;
  font-size: 0.85rem;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
  letter-spacing: 0.3px;
}

/* ==========================================
   CONTACT — Flat dark panel, thin borders, no glass
   ========================================== */
.contact-dark-panel {
  background: var(--dark);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

.contact-hatch-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.contact-header-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.contact-accent-bar {
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.contact-label-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}
.contact-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(30,64,175,0.25);
  transform: translateY(-2px);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-card-icon i { width: 18px; height: 18px; color: #fff; }

.contact-card-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 2px;
}

.contact-card-value {
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  outline: none;
}
.form-input:focus {
  border-color: var(--primary);
  background: rgba(255,255,255,0.06);
}
.form-input::placeholder { color: rgba(255,255,255,0.2); }
.form-input.error { border-color: #ef4444; }

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

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.contact-submit-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  padding: 16px;
  border-radius: 12px;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
}
.contact-submit-btn:hover {
  background: #0891b2;
  transform: translateY(-2px);
}

/* ==========================================
   FOOTER — Clean dark, no shadows
   ========================================== */
.footer-dark {
  background: #050810;
  padding-top: 72px;
  padding-bottom: 32px;
}

#footer-logo {
  filter: brightness(1.5);
}

.footer-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(30,64,175,0.12);
  display: inline-block;
}

.footer-company-details p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.2);
  line-height: 1.6;
}

.footer-link {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  padding: 4px 0;
  display: inline-block;
}
.footer-link:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
}
.footer-contact-row i {
  width: 16px;
  height: 16px;
  color: var(--primary);
}
.footer-contact-row span,
.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(--accent); }

.footer-social-link {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.35);
  transition: all 0.3s ease;
}
.footer-social-link:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

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

/* ==========================================
   SCROLL ANIMATIONS
   ========================================== */
.fade-up {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.slide-left {
  opacity: 0;
  transform: translateX(-45px);
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.slide-left.visible { opacity: 1; transform: translateX(0); }

.slide-right {
  opacity: 0;
  transform: translateX(45px);
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.slide-right.visible { opacity: 1; transform: translateX(0); }

.stagger-parent .stagger-item {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.5s cubic-bezier(0.22,1,0.36,1), transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.stagger-parent.visible .stagger-item,
.stagger-item.visible {
  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.12s; }
.stagger-parent.visible .stagger-item:nth-child(3) { transition-delay: 0.19s; }
.stagger-parent.visible .stagger-item:nth-child(4) { transition-delay: 0.26s; }
.stagger-parent.visible .stagger-item:nth-child(5) { transition-delay: 0.33s; }
.stagger-parent.visible .stagger-item:nth-child(6) { transition-delay: 0.4s; }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1023px) {
  .about-img-frame img {
    height: 360px;
  }

  .svc-inner {
    grid-template-columns: 1fr;
  }
  .svc-inner.reversed .svc-img-col { order: unset; }
  .svc-inner.reversed .svc-text-col { order: unset; }
  .svc-img-col img {
    min-height: 280px;
    height: 280px;
  }
  .svc-text-col {
    padding: 40px 24px;
  }
  .svc-text-col .svc-number {
    font-size: 2.5rem;
  }
  .contact-dark-panel { padding: 36px 24px; }

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

@media (max-width: 640px) {
  .hero-title { font-size: clamp(2rem, 7vw, 3rem); }
  .hero-cta-button { padding: 14px 28px; font-size: 0.9rem; }

  .svc-img-col img { min-height: 220px; height: 220px; }

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

  .about-img-frame img {
    height: 280px;
  }
}

/* ==========================================
   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-gradient-anim { animation: none; opacity: 0.5; }
}
