/* ============================================================
   layout.css — Navigation, Hero, Section Structure
   ============================================================ */

/* ------------------------------------------------------------
   Navigation
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-gray-light);
  box-shadow: 0 2px 16px rgba(0, 57, 100, 0.06);
  transition: box-shadow var(--transition-base);
}

.navbar {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.nav-logo {
  width: 160px;
  height: auto;
}

.navbar-nav .nav-link {
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--color-navy-dark);
  padding: 0.4rem 0.6rem;
  transition: color var(--transition-base);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus-visible {
  color: var(--color-blue);
  text-decoration: none;
}

.navbar-toggler {
  border-color: var(--color-navy-dark);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23003964' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ------------------------------------------------------------
   Hero Section
   ------------------------------------------------------------ */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
  min-height: 92vh;
  display: flex;
  align-items: center;
}

.hero-gradient-bg {
  position: absolute;
  inset: 0;
  background: var(--hero-gradient);
  z-index: 0;
}

.hero-gradient-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 15% 25%, rgba(0, 207, 248, 0.13) 0%, transparent 65%),
    radial-gradient(ellipse 75% 80% at 85% 75%, rgba(231, 58, 75, 0.09) 0%, transparent 65%),
    radial-gradient(ellipse 65% 65% at 55% 15%, rgba(98, 90, 237, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 90%, rgba(0, 57, 100, 0.25) 0%, transparent 70%);
}

.hero-container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto 3rem;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin-bottom: 1.25rem;
}

.hero-heading {
  font-size: clamp(2.2rem, 4.5vw, 3.375rem);
  font-weight: 300;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-heading-accent {
  display: block;
  font-weight: 700;
  color: var(--color-cyan);
  font-size: 0.6em;
}

.hero-subheading {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ------------------------------------------------------------
   Hero Mockup Stage (Carousel)
   ------------------------------------------------------------ */
.hero-mockup-stage {
  position: relative;
  margin: 2.5rem auto 2.5rem;
  max-width: 860px;
  min-height: 380px;
}

.hero-mockup-track {
  position: relative;
  width: 100%;
  min-height: 340px;
}

.hero-mockup-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

.hero-mockup-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.hero-mockup-slide.slide-out {
  opacity: 0;
  transform: translateX(-60px);
}

/* Placeholder frames – replace with real transparent PNG device mockups */
.mockup-placeholder {
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 780px;
  aspect-ratio: 16 / 9;
}

.mockup-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.mockup-placeholder-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Real device mockup images: replace .mockup-placeholder with a plain <img> using these styles */
.mockup-device-img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.5));
}

/* Carousel Dots */
.hero-mockup-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background var(--transition-base), border-color var(--transition-base);
}

.mockup-dot.active {
  background: var(--color-cyan);
  border-color: var(--color-cyan);
}

.mockup-dot:hover {
  border-color: var(--color-white);
}

/* CTA Group */
.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ------------------------------------------------------------
   Stats Section
   ------------------------------------------------------------ */
.stats-section {
  background-color: var(--color-navy-deep);
  padding: 3.5rem 0;
}

.stats-row {
  text-align: center;
}

.stat-item {
  padding: 1.5rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-plus {
  font-size: 0.65em;
  color: var(--color-cyan);
  vertical-align: super;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0;
}

/* ------------------------------------------------------------
   Deliverables Section
   ------------------------------------------------------------ */
.deliverables-section {
  padding: var(--section-padding-y) 0;
  background-color: var(--color-white);
}

/* ------------------------------------------------------------
   Pricing Section
   ------------------------------------------------------------ */
.pricing-section {
  padding: var(--section-padding-y) 0;
  background-color: var(--color-off-white);
}

/* ------------------------------------------------------------
   Timeline Section
   ------------------------------------------------------------ */
.timeline-section {
  padding: var(--section-padding-y) 0;
  background-color: var(--color-navy-dark);
}

.timeline-section .section-eyebrow {
  color: var(--color-cyan);
}

.timeline-section .section-heading {
  color: var(--color-white);
}

.timeline-section .section-subheading {
  color: rgba(255, 255, 255, 0.65);
}

/* ------------------------------------------------------------
   Process Section
   ------------------------------------------------------------ */
.process-section {
  padding: var(--section-padding-y) 0;
  background-color: var(--color-white);
}

/* ------------------------------------------------------------
   Portfolio Section
   ------------------------------------------------------------ */
.portfolio-section {
  padding: var(--section-padding-y) 0;
  background-color: var(--color-off-white);
}

/* ------------------------------------------------------------
   Testimonials Section
   ------------------------------------------------------------ */
.testimonials-section {
  padding: var(--section-padding-y) 0;
  background-color: var(--color-navy-deep);
}

.testimonials-section .section-eyebrow {
  color: var(--color-cyan);
}

.testimonials-section .section-heading {
  color: var(--color-white);
}

/* ------------------------------------------------------------
   Differentiation Section
   ------------------------------------------------------------ */
.differentiation-section {
  padding: var(--section-padding-y) 0;
  background-color: var(--color-white);
}

/* ------------------------------------------------------------
   Guarantee Section
   ------------------------------------------------------------ */
.guarantee-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy-deep) 100%);
  border-top: 4px solid var(--color-green);
}

/* ------------------------------------------------------------
   FAQ Section
   ------------------------------------------------------------ */
.faq-section {
  padding: var(--section-padding-y) 0;
  background-color: var(--color-white);
}

/* ------------------------------------------------------------
   Estimate Form Section
   ------------------------------------------------------------ */
.estimate-section {
  padding: var(--section-padding-y) 0;
  background: linear-gradient(160deg, var(--color-navy-deep) 0%, #12105a 60%, var(--color-navy-dark) 100%);
  position: relative;
  overflow: hidden;
}

.estimate-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 10% 80%, rgba(0, 207, 248, 0.1) 0%, transparent 70%),
    radial-gradient(ellipse 45% 55% at 90% 20%, rgba(98, 90, 237, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.estimate-section .section-eyebrow {
  color: var(--color-cyan);
}

.estimate-section .section-heading {
  color: var(--color-white);
}

.estimate-section .section-subheading {
  color: rgba(255, 255, 255, 0.65);
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
  background-color: var(--color-navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

.footer-logo {
  width: 150px;
  height: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 260px;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: center;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  transition: color var(--transition-base);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--color-cyan);
  text-decoration: none;
}

.footer-contact-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.75rem;
}

.footer-top {
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2rem;
  row-gap: 2.5rem;
}

.footer-bottom {
  text-align: center;
}

.footer-legal {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal a:hover {
  color: var(--color-cyan);
  text-decoration: none;
}

/* ------------------------------------------------------------
   Responsive Adjustments
   ------------------------------------------------------------ */
@media (max-width: 767px) {
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .hero-section {
    padding: 3rem 0;
    min-height: auto;
  }

  .hero-mockup-stage {
    min-height: 220px;
  }

  .hero-mockup-track {
    min-height: 200px;
  }
}

/* ------------------------------------------------------------
   Gantt Chart
   ------------------------------------------------------------ */

/* Phase color tokens */
:root {
  --gantt-discovery:   linear-gradient(90deg, #007cb5 0%, #00cff8 100%);
  --gantt-design:      linear-gradient(90deg, #625aed 0%, #9b5de5 100%);
  --gantt-development: linear-gradient(90deg, #e73a4b 0%, #ff6b6b 100%);
  --gantt-review:      linear-gradient(90deg, #f77f00 0%, #fcbf49 100%);
  --gantt-launch:      linear-gradient(90deg, #269B7A 0%, #52d9a6 100%);

  --gantt-discovery-solid:   #007cb5;
  --gantt-design-solid:      #625aed;
  --gantt-development-solid: #e73a4b;
  --gantt-review-solid:      #f77f00;
  --gantt-launch-solid:      #269B7A;

  --gantt-cols: 10;
}

.gantt-wrap {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 1.75rem 0 0.5rem;
  margin-bottom: 0;
  overflow: hidden;
}

/* Month header row */
.gantt-months {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.75rem;
}

.gantt-month {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  position: relative;
}

.gantt-month:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: -0.75rem;
  bottom: -100vh;
  width: 1px;
  background: rgba(255, 255, 255, 0.06);
}

/* Bar rows */
.gantt-rows {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.gantt-row {
  display: grid;
  grid-template-columns: repeat(var(--gantt-cols), 1fr);
  height: 36px;
  align-items: center;
}

/* Bar positioning via CSS custom properties set inline */
.gantt-bar-wrap {
  grid-column-start: calc(var(--bar-start) + 1);
  grid-column-end:   span var(--bar-span);
  height: 100%;
  display: flex;
  align-items: center;
}

.gantt-bar {
  width: 100%;
  height: 32px;
  border-radius: var(--radius-input);
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  position: relative;
  overflow: hidden;
  /* bars start at zero-width and expand on scroll trigger */
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              opacity   0.3s ease;
}

.gantt-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, transparent 60%);
  pointer-events: none;
}

.gantt-bar.is-visible {
  transform: scaleX(1);
  opacity: 1;
}

/* Staggered animation delays */
.gantt-row:nth-child(1) .gantt-bar { transition-delay: 0.05s; }
.gantt-row:nth-child(2) .gantt-bar { transition-delay: 0.2s;  }
.gantt-row:nth-child(3) .gantt-bar { transition-delay: 0.35s; }
.gantt-row:nth-child(4) .gantt-bar { transition-delay: 0.5s;  }
.gantt-row:nth-child(5) .gantt-bar { transition-delay: 0.65s; }

/* Phase color assignments */
.gantt-bar-discovery   { background: var(--gantt-discovery);   }
.gantt-bar-design      { background: var(--gantt-design);      }
.gantt-bar-development { background: var(--gantt-development); }
.gantt-bar-review      { background: var(--gantt-review);      }
.gantt-bar-launch      { background: var(--gantt-launch);      }

.gantt-bar-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-white);
  white-space: nowrap;
  position: relative;
  z-index: 1;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

/* ------------------------------------------------------------
   Timeline Phase Pips (color-coded dot replacing the number)
   ------------------------------------------------------------ */
.timeline-phase-pip {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.35rem;
}

.gantt-pip-discovery   { background: var(--gantt-discovery-solid);   }
.gantt-pip-design      { background: var(--gantt-design-solid);      }
.gantt-pip-development { background: var(--gantt-development-solid); }
.gantt-pip-review      { background: var(--gantt-review-solid);      }
.gantt-pip-launch      { background: var(--gantt-launch-solid);      }

/* Mobile: hide Gantt chart, show only phase list */
@media (max-width: 767px) {
  .gantt-wrap {
    display: none;
  }
}