/* =============================================================
   INNER PAGE STYLES — THE EDGE CONSTRUCTION CO.
   Page hero, breadcrumbs, gallery, FAQ, process, related cards
   ============================================================= */

/* =============================================================
   PAGE HERO (inner pages — shorter than home hero)
   ============================================================= */

.page-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(3rem, 6vw, 5rem);
  padding-top: 120px; /* nav clearance */
  overflow: hidden;
  background: var(--color-dark-950);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-bg img,
.page-hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(6, 13, 26, 0.50) 0%,
    rgba(6, 13, 26, 0.45) 40%,
    rgba(6, 13, 26, 0.88) 100%
  );
}

.page-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  list-style: none;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  color: rgba(255,255,255,0.25);
}

.breadcrumb a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color var(--transition-base);
}

.breadcrumb a:hover {
  color: var(--color-gold);
}

.breadcrumb li:last-child {
  color: var(--color-gold);
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-5xl);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  text-transform: uppercase;
  color: var(--color-white);
  max-width: 800px;
}

.page-hero-title em {
  font-style: normal;
  color: var(--color-gold);
}

.page-hero-sub {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,0.70);
  line-height: var(--lh-relaxed);
  max-width: 560px;
  margin-top: var(--space-5);
}

/* Page hero short variant — solid dark header, no bg image needed */
.page-hero--short {
  min-height: 0;
  padding-top: 140px;
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

/* Prose content — long-form text pages (privacy policy, etc.) */
.prose-content {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-primary);
}

.prose-content h2 {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-tight);
  color: var(--text-primary);
  margin-top: var(--space-9);
  margin-bottom: var(--space-4);
}

.prose-content h2:first-child {
  margin-top: 0;
}

.prose-content h3 {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.prose-content p {
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.prose-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-4);
}

.prose-content ul li {
  position: relative;
  padding-left: 1.5rem;
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.prose-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
}

.prose-content a {
  color: var(--color-gold);
  text-decoration: none;
}

.prose-content a:hover {
  text-decoration: underline;
}

/* =============================================================
   SERVICE OVERVIEW — 2-column intro
   ============================================================= */

.service-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.service-overview-body h2 {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-5);
  line-height: var(--lh-snug);
}

.service-overview-body h2 em {
  font-style: normal;
  color: var(--color-blue);
}

.service-overview-body p {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-5);
}

.service-overview-body p:last-of-type {
  margin-bottom: var(--space-8);
}

/* Key points list */
.key-points {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.key-point {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-neutral-100);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-gold);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.key-point:hover {
  border-left-color: var(--color-blue);
  box-shadow: var(--shadow-md);
}

.key-point-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--color-blue-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blue);
}

.key-point-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.key-point-title {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--color-dark-900);
  margin-bottom: var(--space-1);
}

.key-point-desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}

/* =============================================================
   PROCESS SECTION
   ============================================================= */

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  counter-reset: step;
}

.process-step {
  position: relative;
  counter-increment: step;
}

.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: var(--fw-extrabold);
  color: rgba(17, 100, 194, 0.10);
  line-height: 1;
  display: block;
  margin-bottom: var(--space-3);
}

.process-step-line {
  width: 48px;
  height: 3px;
  background: var(--color-gold);
  border-radius: 2px;
  margin-bottom: var(--space-4);
}

.process-step-title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.process-step-desc {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.55);
  line-height: var(--lh-relaxed);
}

/* Connector line between steps */
.process-steps .process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  right: -1rem;
  width: calc(100% - 48px - var(--space-6));
  height: 1px;
  background: rgba(168,152,92,0.2);
  display: none; /* Enable for desktop if desired */
}

/* =============================================================
   PHOTO GALLERY
   ============================================================= */

.gallery-grid {
  display: grid;
  gap: var(--space-4);
}

.gallery-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.gallery-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-grid--featured {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
}

.gallery-grid--featured .gallery-item:first-child {
  grid-row: span 2;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-neutral-200);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item--tall {
  aspect-ratio: 3/4;
}

.gallery-item--wide {
  aspect-ratio: 16/9;
}

.gallery-item--square {
  aspect-ratio: 1;
}

.gallery-placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--color-neutral-200), var(--color-neutral-300));
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

.gallery-placeholder span {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--color-neutral-400);
}

/* =============================================================
   FAQ SECTION
   ============================================================= */

.faq-list {
  max-width: 800px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-neutral-200);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-neutral-200);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-6) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--text-primary);
  transition: color var(--transition-base);
}

.faq-question:hover {
  color: var(--color-blue);
}

.faq-question[aria-expanded="true"] {
  color: var(--color-blue);
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--color-neutral-300);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  color: var(--color-neutral-500);
}

.faq-question[aria-expanded="true"] .faq-icon {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: var(--color-white);
  transform: rotate(45deg);
}

.faq-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.faq-answer.open {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer p {
  padding-bottom: var(--space-6);
  font-size: var(--fs-base);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}

/* =============================================================
   RELATED SERVICES
   ============================================================= */

.related-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.related-card {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  background: var(--color-dark-800);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.related-card-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.related-card:hover .related-card-img img {
  transform: scale(1.05);
}

.related-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(10,22,40,0.8) 100%);
}

.related-card-body {
  padding: var(--space-5) var(--space-5) var(--space-6);
  border: 1px solid rgba(168,152,92,0.12);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: border-color var(--transition-base);
}

.related-card:hover .related-card-body {
  border-color: rgba(168,152,92,0.35);
}

.related-card-title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-tight);
  color: var(--color-white);
  margin-bottom: var(--space-2);
  transition: color var(--transition-base);
}

.related-card:hover .related-card-title {
  color: var(--color-gold);
}

.related-card-link {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--color-gold);
  transition: gap var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

/* =============================================================
   RESPONSIVE — INNER PAGES
   ============================================================= */

@media (max-width: 1024px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .service-overview {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .page-hero-title {
    font-size: var(--fs-4xl);
  }

  .gallery-grid--featured {
    grid-template-columns: 1fr;
  }

  .gallery-grid--featured .gallery-item:first-child {
    grid-row: span 1;
  }

  .gallery-grid--3 {
    grid-template-columns: 1fr 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .related-services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .gallery-grid--3,
  .gallery-grid--2 {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }
}


/* =============================================================
   TECHNOLOGY PAGE
   ============================================================= */

/* Two-column layout: body + media */
.tech-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}

.tech-detail--reversed {
  direction: rtl;
}

.tech-detail--reversed > * {
  direction: ltr;
}

/* Media block */
.tech-detail-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.tech-detail-media img,
.tech-detail-media video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* Floating badge on media */
.tech-detail-badge {
  position: absolute;
  bottom: var(--space-6);
  right: var(--space-6);
  background: var(--color-dark-900);
  border: 1px solid rgba(168, 152, 92, 0.35);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  text-align: center;
  min-width: 110px;
}

.tech-detail-badge--gold {
  background: var(--color-gold-700);
  border-color: var(--color-gold-300);
}

.tech-detail-badge-stat {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-2xl);
  color: var(--color-gold);
  line-height: 1.1;
}

.tech-detail-badge-label {
  display: block;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--space-1);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

/* Body text */
.tech-detail-body h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-3xl);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-6);
}

/* Light-bg sections: plain h2 (no section-title class) uses near-black */
.tech-detail-body h2:not(.section-title) {
  color: var(--text-primary);
}

.tech-detail-body h2 em {
  font-style: normal;
  color: var(--color-blue);
}

.tech-detail .section-title--light em {
  color: var(--color-gold);
}

.tech-detail-body p {
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
}

.tech-detail-body .section-body--light {
  margin-bottom: var(--space-5);
}

/* Checklist */
.tech-list {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.tech-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--fs-base);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
}

.tech-list li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-blue);
}

.tech-list--dark li {
  color: var(--text-primary);
}

/* Responsive */
@media (max-width: 900px) {
  .tech-detail,
  .tech-detail--reversed {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .tech-detail--reversed > * {
    direction: ltr;
  }

  .tech-detail-media {
    order: -1;
  }
}
