/* =============================================
   Kontractor Ontario — Custom Styles
   ============================================= */

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

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

html { scroll-behavior: smooth; }

body {
  background: #ffffff;
  color: #1f2937;
  font-family: 'Open Sans', system-ui, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', system-ui, sans-serif; }

/* ── Grid background ── */
.grid-bg {
  background-image: linear-gradient(#1a1a1a 1px, transparent 1px),
                    linear-gradient(90deg, #1a1a1a 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.025;
}

/* ── Gradient text ── */
.gradient-text {
  background: linear-gradient(90deg, #f97316, #ea580c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Spotlight ── */
.spotlight {
  position: absolute;
  top: -160px;
  left: 0;
  width: 680px;
  height: 680px;
  background: radial-gradient(ellipse, rgba(249,115,22,0.14) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: spotlight-in 2s ease 0.75s both;
}
@keyframes spotlight-in {
  from { opacity: 0; transform: translate(-72%, -62%) scale(0.5); }
  to   { opacity: 1; transform: translate(-50%, -40%) scale(1); }
}

/* ── Scroll-triggered fade-in ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.revealed { opacity: 1; transform: none; }
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.revealed { opacity: 1; transform: none; }

/* stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ── Navbar ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s, box-shadow 0.3s;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* ── Mobile menu ── */
#mobile-menu {
  display: none;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0,0,0,0.08);
}
#mobile-menu.open { display: block; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: #f97316;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 30px rgba(249,115,22,0.30);
}
.btn-primary:hover { background: #ea580c; transform: translateY(-1px); box-shadow: 0 12px 36px rgba(249,115,22,0.40); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: transparent;
  color: #1f2937;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  border: 1.5px solid rgba(0,0,0,0.18);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: #f97316; color: #f97316; background: rgba(249,115,22,0.04); }

/* ── Hero ── */
#hero {
  min-height: 100vh;
  background: #fff8f3;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

/* ── Stats strip ── */
#stats { background: #fff1e6; border-top: 1px solid rgba(249,115,22,0.15); border-bottom: 1px solid rgba(249,115,22,0.15); }

/* ── Service panels ── */
.service-panel {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.service-panel .panel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 0.6s ease;
}
.service-panel:hover .panel-img { transform: scale(1.05); }

/* ── Portfolio lightbox ── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(20px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#lightbox.open { display: flex; }

/* ── Testimonial carousel ── */
.testimonial-card { display: none; }
.testimonial-card.active { display: block; }

/* ── Forms ── */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.75rem;
  color: #1f2937;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249,115,22,0.12);
}
.form-input::placeholder { color: #9ca3af; }
.form-input option { background: #ffffff; color: #1f2937; }

label.form-label {
  display: block;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* ── Portfolio card ── */
.portfolio-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #f3f4f6;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.portfolio-card:hover { transform: scale(1.02); box-shadow: 0 20px 60px rgba(0,0,0,0.14); }
.portfolio-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s ease;
}
.portfolio-card:hover img { transform: scale(1.1); }
.portfolio-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.15) 50%, transparent 100%);
  opacity: 0.55;
  transition: opacity 0.3s;
}
.portfolio-card:hover .overlay { opacity: 0.85; }
.portfolio-card .zoom-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.portfolio-card:hover .zoom-icon { opacity: 1; }

/* ── Scroll indicator bounce ── */
@keyframes bounce-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.bounce-y { animation: bounce-y 1.5s ease-in-out infinite; }

/* ── Count-up wrapper ── */
.stat-number { font-size: clamp(2.25rem, 5vw, 3rem); font-weight: 700; color: #f97316; }

/* ── Section labels ── */
.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f97316;
  margin-bottom: 0.75rem;
}

/* ── How it works connector ── */
.hiw-connector {
  display: none;
}
@media (min-width: 1024px) {
  .hiw-connector {
    display: block;
    position: absolute;
    top: 2.5rem;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(249,115,22,0.30), transparent);
  }
}

/* ── Image banner ── */
#image-banner { position: relative; height: 70vh; overflow: hidden; background: #1c1c1c; }
#image-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ── Footer ── */
footer { background: #c2410c; border-top: 1px solid rgba(255,255,255,0.12); }

/* ── Alert ── */
.alert-success {
  background: rgba(249,115,22,0.08);
  border: 1px solid rgba(249,115,22,0.30);
  border-radius: 1rem;
  padding: 3rem 2rem;
  text-align: center;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f5f5f5; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #f97316; }

/* ── Responsive utilities ── */
@media (max-width: 767px) {
  .service-panel { min-height: 70vh; }
}
