/*
  Photo Preservation Shared Site Styles
  ------------------------------------
  This file contains layout/component styling shared by index.html and template.html.
  Keep page-specific CSS in each page only when needed.
*/

main {
  display: block;
}

body {
  margin: 0;
  overflow-x: hidden;
}

.site-shell {
  width: min(100%, var(--site-shell-max));
  margin-inline: auto;
  padding-inline: clamp(1rem, 2.2vw, 2.5rem);
}

/* Shared include containers keep layout stable while partials are loading. */
#site-header,
#site-footer {
  width: 100%;
}

/* Header / Navigation loaded from includes/header.html */
#site-header .site-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  min-height: 62px;
  background: #ffffff;
  border-bottom: 1px solid #e4ddd0;
  box-shadow: 0 2px 12px rgba(44, 40, 32, 0.08);
}

#site-header .site-navbar.is-scrolled {
  box-shadow: 0 6px 18px rgba(44, 40, 32, 0.14);
}

#site-header .site-navbar .container-fluid {
  max-width: 1400px;
}

#site-header .nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0;
  text-decoration: none;
}

#site-header .nav-logo-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.12);
  padding: 2px;
}

#site-header .brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

#site-header .brand-name {
  font-family: var(--pp-heading-font);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  color: var(--pp-charcoal);
}

#site-header .brand-sub {
  font-family: var(--bs-font-monospace);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pp-charcoal-light);
}

#site-header .site-nav-toggle {
  border: 1px solid var(--pp-cream-dark);
  border-radius: 2px;
}

#site-header .site-nav-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(46, 125, 122, 0.25);
}

#site-header .site-nav-toggle .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='rgba%2844, 36, 22, 0.78%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#site-header .nav-links {
  gap: 0.2rem;
}

#site-header .nav-links .nav-link {
  color: var(--pp-teal);
  font-family: var(--bs-font-monospace);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.42rem 0.9rem;
  border-radius: 2px;
  transition: color 0.2s ease, background 0.2s ease;
}

#site-header .nav-links .nav-link:hover {
  color: var(--pp-orange);
  background: rgba(200, 105, 46, 0.08);
}

#site-header .nav-links .nav-link.active {
  color: var(--pp-orange);
}

#site-header .nav-links .nav-link.cta {
  background: var(--pp-orange);
  color: var(--pp-cream);
}

#site-header .nav-links .nav-link.cta:hover {
  background: var(--pp-orange-light);
  color: var(--pp-cream);
}

/* Core home sections pulled from the original design */
.hero {
  min-height: 100vh;
  background: #ffffff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 62px;
  position: relative;
  overflow: hidden;
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.6;
}

.hero-left {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 5rem 5rem 0.1rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
  font-family: var(--bs-font-monospace);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pp-orange);
}

.hero-tag::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--pp-orange);
  opacity: 0.6;
}

.hero h1 {
  margin-bottom: 1.8rem;
  font-family: var(--pp-heading-font);
  font-size: clamp(2.8rem, 4.5vw, 4.2rem);
  line-height: 1.08;
  color: var(--pp-charcoal);
  font-weight: 700;
}

.hero h1 em {
  color: var(--pp-orange);
  font-style: italic;
}

.hero-sub {
  max-width: 420px;
  margin-bottom: 3rem;
  color: var(--pp-charcoal-light);
  font-size: 1rem;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid var(--pp-orange);
  border-radius: 2px;
  background: var(--pp-orange);
  color: var(--pp-cream);
  padding: 0.9rem 2.2rem;
  text-decoration: none;
  font-family: var(--bs-font-monospace);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--pp-orange-light);
  border-color: var(--pp-orange-light);
  color: var(--pp-cream);
  transform: translateY(-2px);
}

.btn-ghost {
  border: 2px solid var(--pp-cream-dark);
  border-radius: 2px;
  background: transparent;
  color: var(--pp-charcoal-mid);
  padding: 0.9rem 2.2rem;
  text-decoration: none;
  font-family: var(--bs-font-monospace);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.btn-ghost:hover {
  border-color: var(--pp-charcoal);
  color: var(--pp-charcoal);
  transform: translateY(-2px);
}

.hero-find {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.4rem;
  color: var(--pp-teal);
  font-family: var(--bs-font-monospace);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.hero-find::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--pp-orange);
  opacity: 0.5;
  flex-shrink: 0;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--pp-cream-dark);
}

.stat .n {
  display: block;
  color: var(--pp-orange);
  font-family: var(--pp-heading-font);
  font-size: 2rem;
  line-height: 1;
}

.stat .l {
  display: block;
  margin-top: 0.35rem;
  color: var(--pp-charcoal-light);
  font-family: var(--bs-font-monospace);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-right {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8.5rem 2rem 3rem 4rem;
}

.hero-logo-main {
  width: 300px;
  height: 300px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.5));
}

.trust {
  border-bottom: 2px solid var(--pp-teal-deep);
  background: var(--pp-teal-dark);
  padding: 1.4rem 4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
  align-items: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(245, 240, 232, 0.7);
  font-family: var(--bs-font-monospace);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.t-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--pp-gold);
}

.intro {
  background: #ffffff;
  padding: 3rem 5rem 7rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.intro-label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
  color: var(--pp-orange);
  font-family: var(--bs-font-monospace);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.intro-label::before {
  content: "";
  width: 32px;
  height: 1.5px;
  background: var(--pp-orange);
}

.intro h2 {
  margin-bottom: 1.5rem;
  color: var(--pp-charcoal);
  font-family: var(--pp-heading-font);
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  line-height: 1.2;
}

.intro h2 em {
  color: #bda67a;
  font-style: italic;
}

.intro p {
  margin-bottom: 1rem;
  color: var(--pp-charcoal-light);
  line-height: 1.8;
  font-size: 0.97rem;
}

.compare-box {
  border: 1.5px solid var(--pp-cream-dark);
  border-radius: 3px;
  overflow: hidden;
  background: var(--pp-cream);
}

.compare-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--pp-charcoal);
}

.compare-header div {
  padding: 0.6rem 1.2rem;
  color: rgba(245, 240, 232, 0.5);
  border-right: 1px solid rgba(245, 240, 232, 0.08);
  font-family: var(--bs-font-monospace);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.compare-header div:last-child {
  border-right: 0;
  color: var(--pp-teal-light);
}

.compare-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.before-img,
.after-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--pp-heading-font);
  font-size: 0.9rem;
  font-style: italic;
}

.before-img {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #9b8878 0%, #7a6550 60%, #6b5840 100%);
  color: rgba(255, 255, 255, 0.3);
}

.before-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.06) 3px,
    rgba(0, 0, 0, 0.06) 4px
  );
}

.after-img {
  border-left: 2px solid var(--pp-orange);
  background: linear-gradient(135deg, #8b7b6b 0%, #a08878 60%, #b09080 100%);
  color: rgba(255, 255, 255, 0.6);
}

.compare-footer {
  background: var(--pp-cream-mid);
  text-align: center;
  padding: 1rem 1.2rem;
  color: var(--pp-charcoal-light);
  font-family: var(--bs-font-monospace);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.compare-footer span {
  color: var(--pp-teal);
}

.services {
  background: #ffffff;
  padding: 2.5rem 5rem 7rem;
}

.section-head {
  text-align: center;
  margin-bottom: 4.5rem;
}

.section-head-left {
  text-align: left;
  margin-bottom: 2.5rem;
}

.section-eye {
  display: block;
  margin-bottom: 1rem;
  color: var(--pp-orange);
  font-family: var(--bs-font-monospace);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-h {
  color: var(--pp-charcoal);
  font-family: var(--pp-heading-font);
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  line-height: 1.2;
}

.section-h em {
  color: var(--pp-teal);
  font-style: italic;
}

.section-p {
  max-width: 500px;
  margin: 1.2rem auto 0;
  color: var(--pp-charcoal-light);
  line-height: 1.75;
  font-size: 0.95rem;
}

.svc-grid {
  background: var(--pp-cream-dark);
  border: 2px solid var(--pp-cream-dark);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.svc-grid.single-column {
  grid-template-columns: 1fr;
}

.svc {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--pp-cream);
  padding: 1.5rem 2.5rem;
  transition: background 0.25s ease;
}

.svc:hover {
  background: var(--pp-white);
}

.svc::before {
  content: attr(data-num);
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: rgba(42, 122, 123, 0.06);
  font-family: var(--pp-heading-font);
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.svc-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 2px;
  background: var(--pp-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: background 0.2s ease;
}

.svc:hover .svc-icon-wrap {
  background: var(--pp-teal-dark);
}

.svc-icon-wrap svg {
  width: 22px;
  height: 22px;
  stroke: var(--pp-cream);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svc-icon-wrap img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.svc h3 {
  margin-bottom: 0.8rem;
  color: var(--pp-charcoal);
  font-family: var(--pp-heading-font);
  font-size: 1.3rem;
}

.svc p {
  color: var(--pp-charcoal-light);
  font-size: 0.88rem;
  line-height: 1.75;
}

.svc-bullet-list {
  margin: 0.6rem 0 0.8rem 1.2rem;
  color: var(--pp-charcoal-light);
  font-size: 0.92rem;
  line-height: 1.8;
}

.svc-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  color: var(--pp-orange);
  text-decoration: none;
  font-family: var(--bs-font-monospace);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.svc:hover .svc-more {
  opacity: 1;
  transform: translateX(0);
}

.process {
  background: #ffffff;
  padding: 3rem 5rem 7rem;
}

.process .section-eye {
  color: var(--pp-orange);
}

.process .section-h {
  color: var(--pp-charcoal);
}

.process .section-h em {
  color: var(--pp-orange);
}

.process .section-p {
  margin-left: 0;
  max-width: 100%;
}

.steps {
  position: relative;
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 1px;
  background: var(--pp-cream-dark);
}

.step {
  position: relative;
  text-align: center;
  padding: 0 1.5rem;
}

.step-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--pp-orange);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  color: var(--pp-orange);
  font-family: var(--pp-heading-font);
  font-size: 1.2rem;
  position: relative;
  z-index: 2;
}

.step h4 {
  margin-bottom: 0.6rem;
  color: var(--pp-charcoal);
  font-family: var(--pp-heading-font);
  font-size: 1rem;
}

.step p {
  color: var(--pp-charcoal-light);
  font-size: 0.82rem;
  line-height: 1.7;
}

.testimonials {
  background: #ffffff;
  padding: 3rem 5rem 7rem;
}

.testimonials .section-eye {
  color: var(--pp-orange);
}

.testimonials .section-h {
  color: var(--pp-charcoal);
}

.testimonials .section-h em {
  color: var(--pp-orange);
  font-style: italic;
}

.testi-grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.tcard {
  border: 1px solid var(--pp-cream-dark);
  border-radius: 2px;
  background: var(--pp-cream);
  padding: 2rem 1.8rem;
}

.tcard-quote {
  margin-bottom: 1.5rem;
  color: var(--pp-charcoal-mid);
  font-family: var(--pp-heading-font);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.7;
}

.tcard-quote::before {
  content: '"';
  display: block;
  margin-bottom: 0.3rem;
  color: var(--pp-orange);
  font-size: 2.5rem;
  line-height: 1;
  opacity: 0.5;
}

.tcard-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
}

.star {
  width: 11px;
  height: 11px;
  background: var(--pp-orange);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.tcard-name {
  color: var(--pp-charcoal-light);
  font-family: var(--bs-font-monospace);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.cta-band {
  background: var(--pp-orange);
  padding: 4.5rem 5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.cta-band h2 {
  color: var(--pp-cream);
  font-family: var(--pp-heading-font);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  line-height: 1.2;
}

.cta-band p {
  margin-top: 0.6rem;
  color: rgba(245, 240, 232, 0.75);
  font-size: 0.92rem;
  line-height: 1.6;
}

.btn-cream {
  border: 2px solid var(--pp-cream);
  border-radius: 2px;
  background: var(--pp-cream);
  color: var(--pp-orange);
  padding: 1rem 2.5rem;
  white-space: nowrap;
  text-decoration: none;
  font-family: var(--bs-font-monospace);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.btn-cream:hover {
  background: transparent;
  color: var(--pp-cream);
}

/* Footer loaded from includes/footer.html */
#site-footer .site-footer {
  background: var(--pp-teal-deep);
  border-top: 3px solid var(--pp-teal);
  padding: 4.5rem 0 2rem;
}

#site-footer .site-footer .container-fluid {
  max-width: 1400px;
}

#site-footer .footer-top {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(245, 240, 232, 0.08);
}

#site-footer .footer-brand {
  display: inline-block;
  text-decoration: none;
}

#site-footer .footer-logo-img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  display: block;
}

#site-footer .f-brand-sub {
  max-width: 300px;
  margin-top: 0.8rem;
  color: #ffffff;
  font-size: 0.85rem;
  line-height: 1.7;
}

#site-footer .f-col h5 {
  margin-bottom: 1.2rem;
  color: #ffffff;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 5px;
  font-family: var(--bs-font-monospace);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

#site-footer .f-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

#site-footer .f-col a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.78rem;
  transition: color 0.2s ease;
}

#site-footer .f-col a:hover {
  color: var(--pp-orange);
}

#site-footer .footer-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

#site-footer .footer-bot p {
  margin: 0;
  color: #ffffff;
  font-family: var(--bs-font-monospace);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Template page helpers */
.template-hero {
  margin-top: 62px;
  background: #ffffff;
  border-bottom: 1px solid var(--pp-cream-dark);
}

.template-hero .template-kicker {
  color: var(--pp-orange);
  font-family: var(--bs-font-monospace);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.template-hero h1 {
  color: var(--pp-charcoal);
}

.template-hero p {
  max-width: 60ch;
  color: var(--pp-charcoal-light);
}

.template-card {
  border: 1px solid var(--pp-cream-dark);
  border-radius: 3px;
  background: var(--pp-white);
  padding: 1.4rem;
  height: 100%;
}

@media (max-width: 991.98px) {
  #site-header .site-navbar {
    min-height: auto;
  }

  #site-header .nav-logo-img {
    width: 42px;
    height: 42px;
  }

  #site-header .brand-name {
    font-size: 0.85rem;
  }

  #site-header .brand-sub {
    font-size: 0.52rem;
  }

  #site-header .navbar-collapse {
    margin-top: 0.75rem;
    padding: 0.85rem;
    border-radius: 3px;
    background: #ffffff;
    border: 1px solid var(--pp-cream-dark);
  }

  #site-header .nav-links .nav-link {
    padding-inline: 0.55rem;
  }

  #site-header .nav-links .nav-item + .nav-item {
    margin-top: 0.2rem;
  }

  #site-header .nav-links .nav-link.cta {
    margin-top: 0.2rem;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-right {
    display: none;
  }

  .hero-left {
    padding: 4rem 2rem;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 4rem 2rem;
  }

  .services,
  .process,
  .testimonials {
    padding: 4rem 2rem;
  }

  .svc-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .steps::before {
    display: none;
  }

  .testi-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    grid-template-columns: 1fr;
    padding: 3rem 2rem;
  }

  .trust {
    padding-inline: 1.4rem;
    justify-content: flex-start;
  }

  #site-footer .site-footer {
    padding: 3rem 0 1.5rem;
  }

  #site-footer .footer-logo-img {
    width: 130px;
    height: 130px;
  }

  #site-footer .footer-bot {
    flex-direction: column;
    align-items: flex-start;
  }
}
