/* Below Grade — multi-page components (service pages, gallery, about, contact, footer) */

/* --- Active nav state --- */
.nav a.is-active,
.menu-links a.is-active {
  color: var(--accent-strong);
}

.nav a.is-active::after {
  width: 100%;
}

/* --- Page hero (interior pages) --- */
.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center 40%;
  filter: saturate(1.05) contrast(1.03);
}

.page-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    115deg,
    rgba(6, 7, 10, 0.95) 0%,
    rgba(6, 7, 10, 0.85) 42%,
    rgba(10, 12, 18, 0.6) 100%
  );
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  padding: clamp(34px, 6vw, 64px) 0 clamp(30px, 5vw, 52px);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.06;
  margin: 10px 0 12px;
  max-width: 18ch;
}

.page-hero p {
  color: var(--muted);
  max-width: 46rem;
  font-size: 1.04rem;
  line-height: 1.6;
  margin: 0 0 20px;
}

.page-hero .hero-actions {
  margin-bottom: 0;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

.breadcrumbs a {
  color: var(--accent-strong);
}

.breadcrumbs span {
  opacity: 0.6;
}

/* --- Two-column content layout (service detail) --- */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.detail-main h2 {
  font-size: 1.4rem;
  margin: 0 0 12px;
}

.detail-main h2:not(:first-child) {
  margin-top: 30px;
}

.detail-main p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 14px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: grid;
  gap: 10px;
}

.checklist li {
  position: relative;
  padding-left: 30px;
  color: rgba(245, 247, 251, 0.9);
  line-height: 1.5;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange-dim);
  border: 1px solid rgba(232, 93, 26, 0.5);
}

.checklist li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 6px;
  height: 9px;
  border-right: 2px solid var(--accent-strong);
  border-bottom: 2px solid var(--accent-strong);
  transform: rotate(40deg);
}

/* --- Process steps --- */
.steps {
  display: grid;
  gap: 14px;
  margin: 4px 0 0;
}

.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1a1200;
  background: linear-gradient(135deg, var(--orange), #ff7a35);
}

.step-body h4 {
  margin: 4px 0 4px;
  font-size: 1rem;
}

.step-body p {
  margin: 0;
  font-size: 0.92rem;
}

/* --- Sticky sidebar quote card --- */
.detail-aside {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 16px;
}

.quote-card {
  background: radial-gradient(circle at top, rgba(232, 93, 26, 0.16), rgba(12, 14, 24, 0.95));
  border: 1px solid rgba(232, 93, 26, 0.22);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.quote-card h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.quote-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 14px;
}

.quote-card .btn {
  margin-bottom: 8px;
}

.quote-card .phone-line {
  font-size: 0.84rem;
  color: var(--muted);
  text-align: center;
  margin: 6px 0 0;
}

.aside-fact {
  background: rgba(5, 6, 12, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--muted);
}

.aside-fact strong {
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

/* --- Gallery grid (service + projects) --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.gallery-item {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  background: #0a0b0f;
}

.gallery-item--empty {
  cursor: default;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.18);
}

.gallery-item--empty figcaption {
  opacity: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 12px 10px;
  font-size: 0.8rem;
  color: rgba(245, 247, 251, 0.92);
  background: linear-gradient(to top, rgba(6, 7, 10, 0.85), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-item:hover figcaption {
  opacity: 1;
}

/* --- Project group heading (projects page) --- */
.group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 8px 0 14px;
  flex-wrap: wrap;
}

.group-head h2 {
  font-size: 1.35rem;
  margin: 0;
}

.group-head a {
  font-size: 0.85rem;
  color: var(--accent-strong);
}

.project-group + .project-group {
  margin-top: 40px;
}

/* --- FAQ (native details) --- */
.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  background: rgba(5, 6, 12, 0.6);
  padding: 0 16px;
  overflow: hidden;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--accent-strong);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.94rem;
}

/* --- Service overview cards become links --- */
a.service-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-card .service-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent-strong);
}

/* --- CTA band --- */
.cta-band {
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 10px;
}

.cta-band p {
  color: var(--muted);
  max-width: 46rem;
  margin: 0 auto 18px;
}

.cta-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Expanded footer --- */
.footer-main {
  padding: 40px 0 26px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 30px;
}

.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin: 0 0 14px;
}

.footer-col p,
.footer-col li {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-brand .logo {
  font-size: 1rem;
  margin-bottom: 12px;
}

.footer-brand a.foot-phone {
  color: var(--accent-strong);
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(3, 4, 7, 0.92);
  backdrop-filter: blur(8px);
}

.lightbox[data-open="true"] {
  display: grid;
}

.lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 86vh;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-nav.prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav.next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

/* --- Contact page extras --- */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.info-card {
  background: rgba(5, 6, 12, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 16px;
}

.info-card .ic-label {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin: 0 0 6px;
}

.info-card .ic-value {
  font-size: 1.02rem;
  color: var(--text);
  margin: 0;
}

.info-card .ic-value a {
  color: var(--accent-strong);
}

@media (max-width: 980px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-aside {
    position: static;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ===========================================================
   2026 professional upgrades
   =========================================================== */

/* --- Header click-to-call --- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap;
}

.header-phone svg {
  width: 17px;
  height: 17px;
  stroke: var(--accent-strong);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-phone:hover {
  color: var(--accent-strong);
}

@media (max-width: 880px) {
  .header-phone {
    display: none;
  }
}

/* --- Trust band (below hero) --- */
.trust-band {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(5, 6, 12, 0.5);
}

.trust-band-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 28px;
  padding: 16px 0;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  color: rgba(245, 247, 251, 0.9);
  font-weight: 600;
}

.trust-item svg {
  width: 19px;
  height: 19px;
  stroke: var(--accent-strong);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* --- Why choose us --- */
.why-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.why-card {
  padding: 22px 20px;
}

.why-card .why-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--orange-dim);
  border: 1px solid rgba(232, 93, 26, 0.25);
  margin-bottom: 14px;
}

.why-card .why-icon svg {
  width: 23px;
  height: 23px;
  stroke: var(--accent-strong);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.why-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* --- Problems we solve --- */
.problems-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.problem-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
}

.problem-card .p-mark {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(232, 93, 26, 0.12);
  border: 1px solid rgba(232, 93, 26, 0.22);
}

.problem-card .p-mark svg {
  width: 21px;
  height: 21px;
  stroke: var(--accent-strong);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.problem-card h3 {
  margin: 2px 0 5px;
  font-size: 1rem;
}

.problem-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* --- Service area + map --- */
.area-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: center;
}

.area-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

.area-list li {
  position: relative;
  padding-left: 20px;
  color: rgba(245, 247, 251, 0.88);
  font-size: 0.92rem;
}

.area-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-strong);
}

.area-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-soft);
  min-height: 320px;
  position: relative;
}

.area-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  filter: grayscale(0.3) contrast(1.05);
}

/* --- Star ratings on testimonials --- */
.stars {
  display: inline-flex;
  gap: 3px;
  margin-bottom: 10px;
  color: var(--accent-strong);
}

.stars svg {
  width: 17px;
  height: 17px;
  fill: var(--accent-strong);
  stroke: none;
}

.reviews-note {
  text-align: center;
  margin: 18px auto 0;
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 40rem;
}

/* --- Enhanced (qualifying) form --- */
.form-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 12px;
  width: 100%;
}

.form-grid-2 > .form-row {
  min-width: 0;
}

.form-grid-2 select,
.form-grid-2 input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.form-file {
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 10px;
  background: rgba(5, 6, 12, 0.6);
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
}

.form-file::file-selector-button {
  background: rgba(232, 93, 26, 0.16);
  border: 1px solid rgba(232, 93, 26, 0.3);
  color: var(--accent-strong);
  border-radius: 8px;
  padding: 6px 12px;
  margin-right: 10px;
  cursor: pointer;
  font-size: 0.82rem;
}

@media (max-width: 860px) {
  .area-layout {
    grid-template-columns: 1fr;
  }

  .area-map {
    order: -1;
  }
}

@media (max-width: 460px) {
  .form-grid-2,
  .area-list {
    grid-template-columns: 1fr;
  }
}

/* --- Contact page (Downright-style split layout) --- */
.contact-split-section {
  background: #f3f2ef;
  color: #1a1a1a;
  padding: clamp(48px, 7vw, 80px) 0;
}

.contact-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.contact-split-info h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 20px;
  color: #111;
  letter-spacing: -0.02em;
}

.contact-split-info p {
  color: #333;
  line-height: 1.65;
  font-size: 1rem;
  margin: 0 0 16px;
}

.contact-call-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 14px 28px;
  border-radius: 6px;
  background: #6b7c3a;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  text-decoration: none;
}

.contact-call-btn:hover {
  background: #5a6930;
  color: #fff;
}

.contact-quote-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 24px;
  color: #111;
  letter-spacing: -0.02em;
}

.contact-quote-form {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.contact-quote-form .form-row label {
  color: #222;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.contact-quote-form input,
.contact-quote-form select,
.contact-quote-form textarea {
  background: #faf8f5;
  border: 1px solid #ddd9d2;
  color: #111;
  border-radius: 4px;
}

.contact-quote-form input:focus,
.contact-quote-form select:focus,
.contact-quote-form textarea:focus {
  border-color: var(--orange);
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 93, 26, 0.15);
}

.contact-quote-form .btn-submit {
  width: 100%;
  padding: 14px 24px;
  border-radius: 6px;
  background: #6b7c3a;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  margin-top: 8px;
}

.contact-quote-form .btn-submit:hover {
  background: #5a6930;
}

.contact-quote-form .form-note {
  color: #666;
  font-size: 0.82rem;
  margin-top: 12px;
}

@media (max-width: 900px) {
  .contact-split-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Footer credibility links --- */
.credibility-bar {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.credibility-label {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.credibility-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.credibility-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(245, 247, 251, 0.9);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.credibility-link:hover {
  border-color: rgba(232, 93, 26, 0.35);
  background: rgba(232, 93, 26, 0.1);
  color: var(--accent-strong);
}

.credibility-badge {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 6px;
  background: rgba(24, 119, 242, 0.2);
  color: #6eb1ff;
  font-size: 0.75rem;
  font-weight: 800;
}

.credibility-badge-bbb {
  background: rgba(0, 98, 155, 0.25);
  color: #7ec8ef;
  font-size: 0.65rem;
  letter-spacing: 0.02em;
}

.credibility-badge-eca {
  background: rgba(232, 93, 26, 0.18);
  color: var(--accent-strong);
  font-size: 0.62rem;
}
