/* ============================================
   Superior Tile Installation
   additions.css — blocks for inner pages only.
   New class names only; uses existing variables from css/style.css.
   ============================================ */

/* Section wrappers */
.pg-section {
  padding: var(--section-padding);
  background: var(--color-bg);
}

.pg-section--alt {
  background: var(--color-bg-alt);
}

.pg-head {
  text-align: center;
  margin-bottom: 3rem;
}

.pg-head .section-subtitle {
  margin: 0 auto;
}

/* Breadcrumbs (inside .hero-content) */
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  opacity: 0.85;
}

.breadcrumbs li + li::before {
  content: '\203A';
  margin-right: 0.4rem;
}

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

.breadcrumbs a:hover {
  color: #fff;
}

/* Hero action buttons */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* Text + photo split */
.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.split-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.prose p {
  color: var(--color-text-light);
  margin-bottom: 1.1rem;
}

.prose h2 {
  margin-bottom: 1.25rem;
}

/* Check list */
.check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
  margin-top: 1.5rem;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.5;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--color-accent-light);
  box-shadow: inset 0 0 0 4px var(--color-accent-dark);
}

/* Text cards */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.info-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.info-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.info-card p {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.info-card .info-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent-dark);
}

.info-card .info-link:hover {
  color: var(--color-accent);
}

/* Numbered process (6 items) */
.num-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  counter-reset: num;
}

.num-item {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem 4.25rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.num-item::before {
  counter-increment: num;
  content: counter(num);
  position: absolute;
  left: 1.25rem;
  top: 1.6rem;
  width: 2.1rem;
  height: 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

.num-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}

.num-item p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* Photo gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

/* FAQ accordion (native details/summary, no JS) */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-group-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  max-width: 820px;
  margin: 2.5rem auto 1rem;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
}

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

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-accent-dark);
  transition: transform var(--transition-fast);
}

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

.faq-item summary h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.45;
}

.faq-item .faq-answer {
  padding: 0 1.25rem 1.2rem;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* Inline link row */
.link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.link-row a {
  padding: 0.55rem 1.1rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-primary);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.link-row a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-dark);
}

.note-line {
  text-align: center;
  margin-top: 1.25rem;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* Long-form text (privacy) */
.legal {
  max-width: 820px;
  margin: 0 auto;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-primary);
  margin: 2rem 0 0.75rem;
}

.legal p,
.legal li {
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
}

.legal ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.legal a {
  color: var(--color-accent-dark);
}

.todo {
  background: #fff3cd;
  color: var(--color-text);
  padding: 0 0.25rem;
  border-radius: var(--radius-sm);
}

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

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

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

  .hero-actions,
  .breadcrumbs ol {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .info-grid,
  .num-grid,
  .check-list {
    grid-template-columns: 1fr;
  }
}

/* Accent button for hero CTAs (.header-cta is hidden on mobile by style.css) */
.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn-accent:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
  color: #fff;
}

.btn-accent svg {
  width: 16px;
  height: 16px;
}

/* Footer: 4 columns (info, quick links, services, areas) */
.footer-inner.footer-cols {
  grid-template-columns: 1.5fr 1.3fr 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 1024px) {
  .footer-inner.footer-cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-inner.footer-cols {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Trust badges in hero */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.trust-badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

.trust-badges svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-accent-light);
}

@media (max-width: 1024px) {
  .trust-badges {
    justify-content: center;
  }
}

/* Header: keep 6 nav items on one line at tablet/laptop widths */
@media (min-width: 769px) and (max-width: 1199px) {
  .header-nav.nav-compact {
    gap: 1.1rem;
  }

  .header-nav.nav-compact a {
    white-space: nowrap;
    font-size: 0.85rem;
  }

  .header-cta.cta-nowrap {
    white-space: nowrap;
  }
}

@media (min-width: 769px) and (max-width: 999px) {
  .header-nav.nav-compact .nav-opt {
    display: none;
  }
}

/* Metrics strip (homepage, under hero) */
.metrics-band {
  padding: 3rem 0;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-accent-dark);
  line-height: 1.1;
}

.metric .metric-label {
  display: block;
  margin: 0.35rem 0 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.metric p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* Footer bottom legal links */
.footer-legal {
  margin-left: 0.75rem;
}

.footer-legal a:hover {
  color: var(--color-accent-light);
}

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

@media (max-width: 480px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .footer-legal {
    display: block;
    margin: 0.5rem 0 0;
  }
}

/* ============================================
   Mobile polish
   ============================================ */

.footer-info p + p {
  margin-top: 0.75rem;
}

.footer-info a,
.legal a {
  overflow-wrap: anywhere;
}

.info-card h3 a {
  display: inline-block;
  padding: 0.3rem 0;
}

.how-cta .phone-link {
  display: inline-block;
  padding: 0.4rem 0;
}

/* Service area cards on homepage: whole card is the link */
#areas .service-card {
  position: relative;
}

#areas .service-card-body h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
}

@media (max-width: 1024px) {
  /* form cards fill the column instead of shrinking to content */
  .hero-inner > .lead-form-card,
  .final-cta-inner > .lead-form-card {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hamburger.hamburger-tap {
    padding: 0.85rem 0.6rem;
    margin-right: -0.6rem;
  }

  .footer-inner.footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }

  .footer-cols > .footer-info,
  .footer-cols > :nth-child(2) {
    grid-column: 1 / -1;
  }

  .footer-cols .footer-links ul {
    gap: 0.15rem;
  }

  .footer-cols .footer-links a {
    display: inline-block;
    padding: 0.55rem 0;
  }

  .footer-legal a {
    display: inline-block;
    padding: 0.4rem 0;
  }

  /* keep the floating estimate button from covering the last footer links */
  .footer-inner.footer-cols ~ .footer-bottom {
    padding-bottom: 4.5rem;
  }

  .pg-head {
    margin-bottom: 2rem;
  }

  .info-card,
  .num-item {
    padding-top: 1.4rem;
    padding-bottom: 1.4rem;
  }

  .info-grid,
  .num-grid {
    gap: 1rem;
  }

  .hero-actions a {
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .header-logo.logo-fit {
    min-width: 0;
    flex: 1 1 auto;
    margin-right: 0.75rem;
  }

  .header-logo.logo-fit span {
    white-space: normal;
    font-size: 1rem;
    line-height: 1.15;
  }

  .header-logo.logo-fit img {
    width: 32px;
    height: 32px;
  }

  .metrics-band {
    padding: 2.25rem 0;
  }

  .metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1rem;
  }

  .faq-item summary {
    padding: 1rem;
  }

  .faq-item .faq-answer {
    padding: 0 1rem 1rem;
  }
}

/* Mobile menu: fit short screens */
.mobile-nav.mobile-nav-fit {
  overflow-y: auto;
}

@media (max-width: 768px) and (max-height: 700px) {
  .mobile-nav.mobile-nav-fit {
    gap: 1.1rem;
    justify-content: flex-start;
    padding: calc(var(--header-height) + 1rem) 0 2rem;
  }

  .mobile-nav.mobile-nav-fit a {
    font-size: 1.45rem;
  }
}

/* Keep the header (and the hamburger, which turns into a close "X")
   above the open mobile menu; modal (z-index 2000) stays on top. */
.site-header.header-top {
  z-index: 1060;
}

@media (max-width: 768px) and (min-height: 701px) {
  .mobile-nav.mobile-nav-fit {
    padding-top: var(--header-height);
  }
}

/* ============================================
   Superior Tile theme layer
   Tile-grid motifs, square markers and sharper geometry.
   ============================================ */

:root {
  --grout: rgba(30, 43, 55, 0.07);
  --grout-light: rgba(255, 255, 255, 0.06);
}

h1, h2, h3, .section-title, .header-logo span {
  letter-spacing: -0.015em;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-accent-dark);
}

.section-label::before {
  content: '';
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  background:
    linear-gradient(var(--color-accent), var(--color-accent)) 0 0 / 4px 4px no-repeat,
    linear-gradient(var(--color-primary), var(--color-primary)) 6px 0 / 4px 4px no-repeat,
    linear-gradient(var(--color-primary), var(--color-primary)) 0 6px / 4px 4px no-repeat,
    linear-gradient(var(--color-accent), var(--color-accent)) 6px 6px / 4px 4px no-repeat;
}

.final-cta-content .section-label,
.hero .section-label {
  color: var(--color-accent-light);
}

/* Header: thin terracotta grout line under the bar */
.site-header {
  border-bottom: 0;
  box-shadow: inset 0 -3px 0 var(--color-accent);
}

.site-header.scrolled {
  box-shadow: inset 0 -3px 0 var(--color-accent), var(--shadow-md);
}

.header-logo span {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

/* Hero: navy wash with a faint tile grid over the photo */
.hero-bg::after {
  background:
    linear-gradient(var(--grout-light) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, var(--grout-light) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(105deg, rgba(20, 29, 38, 0.9) 0%, rgba(20, 29, 38, 0.68) 48%, rgba(20, 29, 38, 0.35) 100%);
}

.hero-content h1 {
  font-weight: 800;
  text-wrap: balance;
}

.hero-content h1::after {
  content: '';
  display: block;
  width: 72px;
  height: 6px;
  margin-top: 1.1rem;
  background: linear-gradient(90deg, var(--color-accent) 0 30px, transparent 30px 36px, var(--color-accent-light) 36px 72px);
}

@media (max-width: 1024px) {
  .hero-content h1::after {
    margin-left: auto;
    margin-right: auto;
  }
}

.lead-form-card {
  border-top: 5px solid var(--color-accent);
}

.modal-content .lead-form-card {
  border-top: 0;
}

.btn-submit,
.header-cta,
.btn-accent,
.mobile-nav .mobile-cta {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}

.btn-submit {
  font-size: 0.95rem;
}

/* Metrics band: dark navy slab with grout grid */
.metrics-band {
  background:
    linear-gradient(var(--grout-light) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--grout-light) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--color-primary);
  border-bottom: 0;
}

.metric {
  padding-left: 1rem;
  border-left: 3px solid var(--color-accent);
}

.metric strong {
  color: #fff;
}

.metric .metric-label {
  color: var(--color-accent-light);
}

.metric p {
  color: rgba(255, 255, 255, 0.72);
}

/* Cards: square corners, terracotta base line on hover */
.service-card,
.info-card,
.num-item {
  position: relative;
}

.service-card::after,
.info-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.service-card:hover::after,
.info-card:hover::after {
  transform: scaleX(1);
}

#areas .service-card-body h3 a::after {
  z-index: 1;
}

/* Process steps: square tile icons instead of circles */
.step-icon {
  border-radius: var(--radius-lg);
  background: var(--color-primary);
  transform: rotate(45deg);
}

.step-icon svg {
  color: var(--color-accent-light);
  transform: rotate(-45deg);
}

.step-number {
  transform: rotate(-45deg);
  background: var(--color-accent);
  border-radius: 2px;
}

.step:not(:last-child)::after {
  background: repeating-linear-gradient(90deg, var(--color-accent) 0 10px, transparent 10px 16px);
}

.num-item::before {
  border-radius: 2px;
  background: var(--color-primary);
  color: #fff;
}

.check-list li::before {
  border-radius: 2px;
  background: var(--color-accent);
  box-shadow: none;
  width: 0.8rem;
  height: 0.8rem;
  top: 0.4rem;
}

/* Alternate sections get a faint grout grid */
.pg-section--alt,
.how-it-works {
  background:
    linear-gradient(var(--grout) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--grout) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--color-bg-alt);
}

.how-cta {
  border: 0;
  border-left: 6px solid var(--color-accent);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.how-cta p {
  margin-bottom: 0;
  max-width: 640px;
}

@media (max-width: 768px) {
  .how-cta {
    text-align: center;
    justify-content: center;
  }
}

/* Before & after photo grid (replaces the video block) */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.ba-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ba-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.ba-card figcaption {
  padding: 1rem 1.25rem 1.2rem;
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.55;
}

.ba-card figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-primary);
  margin-bottom: 0.2rem;
}

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

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

.split-media img {
  box-shadow: 14px 14px 0 var(--color-accent-light);
}

.gallery-grid img {
  aspect-ratio: 4 / 5;
}

/* Final CTA on navy */
.final-cta {
  background:
    linear-gradient(var(--grout-light) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, var(--grout-light) 1px, transparent 1px) 0 0 / 64px 64px,
    var(--color-primary);
}

.final-cta-content h2 {
  color: #fff;
}

.final-cta-content p {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  border-top: 4px solid var(--color-accent);
}

.faq-item[open] {
  border-color: var(--color-accent-light);
  box-shadow: inset 4px 0 0 var(--color-accent);
}

.floating-cta {
  border-radius: var(--radius-md);
}

@media (max-width: 768px) {
  .floating-cta {
    border-radius: var(--radius-md);
  }
}
