/* ============================================================
   CONCRETE SUPPLIER EDMONTON — PAGE STYLES
   Page-specific only. Global styles in global/base.css,
   shared component styles reused from home.css
   (.about-layout, .services-grid/.services-card, .quote-section, .contact-list…)
   ============================================================ */


/* ════════════════════════════════════════════
   1. PAGE HERO — dark navy, breadcrumb + H1
════════════════════════════════════════════ */
.page-hero {
  position: relative;
  background: var(--color-navy);
  padding-top: calc(var(--header-h) + var(--space-14));
  padding-bottom: var(--space-20);
  overflow: hidden;
}

/* ── Background image carousel — 3 slides, CSS-only crossfade ── */
.page-hero__carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: pageHeroFade 15s ease-in-out infinite;
}

.page-hero__slide:nth-child(1) { animation-delay: 0s; }
.page-hero__slide:nth-child(2) { animation-delay: 5s; }
.page-hero__slide:nth-child(3) { animation-delay: 10s; }

@keyframes pageHeroFade {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  30%  { opacity: 1; }
  38%  { opacity: 0; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero__slide { animation: none; opacity: 1; }
}

/* Dark overlay so text stays readable over the photos */
.page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(10, 15, 28, 0.78) 0%,
    rgba(10, 15, 28, 0.84) 55%,
    rgba(10, 15, 28, 0.9) 100%
  );
}

.page-hero__pattern {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 60px,
    rgba(201, 169, 98, 0.035) 60px,
    rgba(201, 169, 98, 0.035) 61px
  );
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 3;
  max-width: 900px;
}

.page-hero .breadcrumb {
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-8);
}

.page-hero .breadcrumb a { color: rgba(255, 255, 255, 0.7); }
.page-hero .breadcrumb a:hover { color: var(--color-primary); }
.page-hero .breadcrumb li:last-child { color: var(--color-primary); }
.page-hero .breadcrumb li + li::before { color: rgba(255, 255, 255, 0.3); }

.page-hero h1 {
  font-size: var(--text-h1);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #ffffff;
  margin-bottom: var(--space-8);
}

.page-hero__intro p {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.78;
  max-width: 70ch;
}

.page-hero__cta { margin-top: var(--space-8); }

/* ── Gold CTA on dark bg — matches homepage hero button ── */
.page-hero .btn-primary {
  background: var(--color-primary);
  color: var(--color-navy);
  border: 2px solid var(--color-primary);
  font-weight: var(--weight-bold);
}

.page-hero .btn-primary:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-navy);
}

@media (max-width: 640px) {
  .page-hero { padding-top: calc(var(--header-h) + var(--space-10)); }
}


/* ════════════════════════════════════════════
   2. SECTION HEADINGS (H2 / H3 reused pattern)
════════════════════════════════════════════ */
.csp-h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
}

.csp-h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}

.csp-lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 90ch;
  margin-bottom: var(--space-6);
}

.csp-lead.text-center { margin-inline: auto; }


/* ════════════════════════════════════════════
   3. CHECKLIST
════════════════════════════════════════════ */
.checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-block: var(--space-8);
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.checklist li svg {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 3px;
}

.checklist--closing {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
}


/* ════════════════════════════════════════════
   4. WHY-CHOOSE INTRO SECTION
════════════════════════════════════════════ */
.why-choose-section { background: var(--color-bg); }
.why-choose-section .container { max-width: 980px; }


/* ════════════════════════════════════════════
   5. FEATURE BLOCK (Commercial / Residential)
   Reuses .about-layout / .about-text / .about-images
════════════════════════════════════════════ */
.feature-block .about-images .about-img-main img { height: 440px; }


/* ════════════════════════════════════════════
   6. DELIVERY FEATURES
════════════════════════════════════════════ */
.delivery-section .container { max-width: 900px; }

.delivery-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.delivery-feature {
  text-align: center;
  padding: var(--space-8) var(--space-6);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

.delivery-feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.delivery-feature__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-primary-glow);
  color: var(--color-primary);
}

.delivery-feature__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

@media (max-width: 768px) {
  .delivery-features { grid-template-columns: 1fr; }
}


/* ════════════════════════════════════════════
   7. SERVICE AREAS
════════════════════════════════════════════ */
.area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-block: var(--space-8);
}

.area-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.65rem 1.35rem;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}

.area-chip svg { color: var(--color-primary); flex-shrink: 0; }

.area-chip--primary {
  background: var(--color-navy);
  color: #ffffff;
  border-color: var(--color-navy);
}

.area-chip--primary svg { color: var(--color-primary); }

.area-chips-section .container { max-width: 980px; }


/* ════════════════════════════════════════════
   8. FAQ ACCORDION
════════════════════════════════════════════ */
.faq-section .container { max-width: 860px; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  counter-reset: faq-counter;
}

.faq-item {
  counter-increment: faq-counter;
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-elevated);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    border-color var(--dur-base) var(--ease-out),
    box-shadow   var(--dur-base) var(--ease-out),
    transform    var(--dur-base) var(--ease-out);
}

.faq-item:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.faq-item.open {
  border-color: rgba(201, 169, 98, 0.4);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  transform: translateY(0);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-6) var(--space-8);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
}

/* Numbered gold badge (01, 02, 03…) */
.faq-trigger::before {
  content: counter(faq-counter, decimal-leading-zero);
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.02em;
  color: var(--color-primary);
  background: var(--color-primary-glow);
  border: 1px solid rgba(201, 169, 98, 0.3);
  transition:
    background var(--dur-base) var(--ease-out),
    color      var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}

.faq-item.open .faq-trigger::before {
  background: var(--color-primary);
  color: var(--color-navy);
  border-color: var(--color-primary);
}

.faq-trigger span:not(.faq-icon-btn) {
  flex: 1;
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: 1.4;
  color: var(--color-text);
}

/* Chevron — circular icon button */
.faq-icon-btn {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-bg-tertiary);
  transition: background var(--dur-base) var(--ease-out);
}

.faq-trigger[aria-expanded="true"] .faq-icon-btn {
  background: var(--color-primary);
}

.faq-icon {
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  color: var(--color-navy);
  transform: rotate(180deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-out);
}

.faq-body__inner {
  padding: 0 var(--space-8) var(--space-8) calc(40px + var(--space-5) + var(--space-8));
  border-top: 1px solid var(--color-border-subtle);
  margin-top: var(--space-1);
  padding-top: var(--space-5);
}

.faq-body__inner p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 100%;
}

@media (max-width: 600px) {
  .faq-trigger { gap: var(--space-3); padding: var(--space-5); }
  .faq-trigger::before { width: 32px; height: 32px; }
  .faq-body__inner { padding-left: var(--space-5); padding-right: var(--space-5); }
}


/* ════════════════════════════════════════════
   9. FINAL QUOTE CTA — reuses .quote-section
════════════════════════════════════════════ */
.final-quote-section .quote-contact-strip { margin-bottom: var(--space-6); }

.final-quote-section .quote-areas {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.final-quote-section .quote-areas svg { color: var(--color-primary); flex-shrink: 0; }
