/* =========================================================
   Precision Grading Specialists
   Conversion-first stylesheet
   Mobile-first, no framework, hand-written CSS
   ========================================================= */

:root {
  --pgs-dark: #1a1d1a;
  --pgs-charcoal: #2c2f2c;
  --pgs-charcoal-2: #3a3d3a;
  --pgs-green: #2d8a3e;
  --pgs-green-dark: #246b30;
  --pgs-green-light: #3ea84f;
  --pgs-cream: #f7f6f2;
  --pgs-white: #ffffff;
  --pgs-text: #1a1d1a;
  --pgs-muted: #5e615e;
  --pgs-border: #e1e1dc;
  --pgs-trust: #f0efe9;
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.12);
  --radius: 6px;
  --max-width: 1200px;
  --header-h: 64px;
  --mobile-bar-h: 56px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--pgs-text);
  background: var(--pgs-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--pgs-green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; color: var(--pgs-dark); margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--dark { background: var(--pgs-dark); color: #e9ebe9; }
.section--dark h2, .section--dark h3 { color: #ffffff; }
.section--cream { background: var(--pgs-cream); }
.section--trust { background: var(--pgs-trust); }
.text-center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--pgs-muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--pgs-white);
  border-bottom: 1px solid var(--pgs-border);
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; color: var(--pgs-dark);
  font-size: 1.05rem; letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 36px; height: 36px;
  background: var(--pgs-green);
  color: #fff;
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900;
}
.brand__name { line-height: 1; }
.brand__name small { display: block; font-size: 0.7rem; font-weight: 600; color: var(--pgs-muted); margin-top: 2px; }

.nav { display: none; gap: 22px; align-items: center; }
.nav a { color: var(--pgs-charcoal); font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--pgs-green); text-decoration: none; }
.header-cta { display: none; }
.header-cta .btn { padding: 10px 18px; font-size: 0.92rem; }

.menu-toggle {
  background: none; border: 1px solid var(--pgs-border);
  width: 44px; height: 40px; border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--pgs-dark); position: relative; }
.menu-toggle span::before, .menu-toggle span::after {
  content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: var(--pgs-dark);
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

.mobile-nav {
  display: none;
  position: fixed; left: 0; right: 0; top: var(--header-h); bottom: var(--mobile-bar-h);
  background: #fff;
  padding: 24px 20px;
  overflow-y: auto;
  border-top: 1px solid var(--pgs-border);
  z-index: 99;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block; padding: 14px 4px; font-size: 1.1rem;
  color: var(--pgs-dark); font-weight: 700;
  border-bottom: 1px solid var(--pgs-border);
}
.mobile-nav .group-label { font-size: 0.75rem; color: var(--pgs-muted); text-transform: uppercase; letter-spacing: 0.08em; padding: 18px 4px 6px; }

/* ---------- Mobile sticky bottom call/CTA bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  display: flex;
  background: var(--pgs-dark);
  border-top: 1px solid #000;
  height: var(--mobile-bar-h);
}
.mobile-bar a {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.95rem;
  text-decoration: none;
}
.mobile-bar a + a { border-left: 1px solid rgba(255,255,255,0.18); }
.mobile-bar .call { background: var(--pgs-charcoal); }
.mobile-bar .cta { background: var(--pgs-green); }
.mobile-bar a:hover { text-decoration: none; filter: brightness(1.05); }
body { padding-bottom: var(--mobile-bar-h); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: var(--pgs-green);
  color: #ffffff;
  border: 2px solid var(--pgs-green);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.05s ease, background 0.15s ease;
  min-height: 52px;
  text-align: center;
}
.btn:hover { background: var(--pgs-green-dark); border-color: var(--pgs-green-dark); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn--ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }
.btn--dark {
  background: var(--pgs-dark);
  border-color: var(--pgs-dark);
}
.btn--dark:hover { background: #000; border-color: #000; }
.btn--full { width: 100%; }
.btn--lg { padding: 20px 32px; font-size: 1.15rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 56px 0 64px;
  background:
    linear-gradient(rgba(20,22,20,0.72), rgba(20,22,20,0.82)),
    url('../images/hero.jpg') center/cover no-repeat,
    var(--pgs-charcoal);
  color: #fff;
  border-bottom: 4px solid var(--pgs-green);
}
.hero h1 { color: #fff; max-width: 22ch; }
.hero p.lead { color: #d7dbd7; max-width: 50ch; }
.hero__eyebrow {
  display: inline-block;
  background: var(--pgs-green);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 18px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; align-items: center; }
.hero__phone {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; font-weight: 700; font-size: 1.05rem;
  text-decoration: none;
}
.hero__phone:hover { color: #fff; text-decoration: underline; }
.hero__phone .num { font-size: 1.25rem; }

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--pgs-trust);
  border-top: 1px solid var(--pgs-border);
  border-bottom: 1px solid var(--pgs-border);
  padding: 22px 0;
}
.trust-bar__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  text-align: center;
}
.trust-item { font-size: 0.95rem; color: var(--pgs-charcoal); font-weight: 600; }
.trust-item strong { display: block; color: var(--pgs-dark); font-size: 1.05rem; font-weight: 800; }
.stars { color: #f5a623; letter-spacing: 2px; }

/* ---------- Section heads ---------- */
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--pgs-green);
  margin-bottom: 10px;
}
.section-head p { color: var(--pgs-muted); font-size: 1.1rem; max-width: 60ch; margin-left: auto; margin-right: auto; }

/* ---------- Problem/Solution ---------- */
.ps-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
.ps-card {
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--pgs-border);
  box-shadow: var(--shadow-sm);
}
.ps-card.problem { border-left: 4px solid #b34a3a; }
.ps-card.solution { border-left: 4px solid var(--pgs-green); }
.ps-card h3 { font-size: 1.15rem; }
.ps-card ul { margin: 0; padding-left: 1.2em; color: var(--pgs-charcoal); }
.ps-card li { margin-bottom: 8px; }

/* ---------- Service grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--pgs-border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--pgs-green);
  text-decoration: none;
}
.service-card .icon {
  width: 48px; height: 48px;
  background: var(--pgs-trust);
  color: var(--pgs-green);
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.3rem;
  margin-bottom: 16px;
}
.service-card h3 { color: var(--pgs-dark); margin-bottom: 8px; }
.service-card p { color: var(--pgs-muted); margin-bottom: 16px; flex-grow: 1; }
.service-card .more { font-weight: 700; color: var(--pgs-green); font-size: 0.95rem; }

/* ---------- Equipment cards ---------- */
.equipment-grid {
  display: grid; grid-template-columns: 1fr; gap: 20px;
}
.equipment-card {
  background: #fff;
  border: 1px solid var(--pgs-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.equipment-card .photo {
  background: var(--pgs-charcoal);
  color: #d7dbd7;
  aspect-ratio: 16/10;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; padding: 16px; text-align: center;
  border-bottom: 1px solid var(--pgs-border);
}
.equipment-card .body { padding: 22px; }
.equipment-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.equipment-card .specs {
  font-size: 0.9rem; color: var(--pgs-muted);
  list-style: none; padding: 0; margin: 12px 0 0;
}
.equipment-card .specs li { padding: 4px 0; border-top: 1px solid var(--pgs-border); }

/* ---------- Gallery (before/after) ---------- */
.gallery-grid {
  display: grid; grid-template-columns: 1fr; gap: 22px;
}
.gallery-card {
  background: #fff;
  border: 1px solid var(--pgs-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-card .ba {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--pgs-charcoal);
  color: #d7dbd7;
}
.gallery-card .ba > div {
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: 0.8rem; padding: 12px;
  position: relative;
}
.gallery-card .ba .before { border-right: 2px solid var(--pgs-green); }
.gallery-card .ba .label {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff; font-size: 0.7rem;
  padding: 2px 8px; border-radius: 3px;
  font-weight: 800; letter-spacing: 0.08em;
}
.gallery-card .body { padding: 18px 22px 22px; }
.gallery-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.gallery-card .meta { color: var(--pgs-muted); font-size: 0.88rem; margin: 0; }

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.review {
  background: #fff;
  border: 1px solid var(--pgs-border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.review .stars { display: block; font-size: 1.05rem; margin-bottom: 12px; }
.review p { color: var(--pgs-charcoal); font-style: italic; }
.review .who { font-weight: 700; color: var(--pgs-dark); font-style: normal; margin-top: 14px; font-size: 0.95rem; }
.review .who small { display: block; color: var(--pgs-muted); font-weight: 500; font-size: 0.82rem; }
.review__source {
  display: inline-block;
  margin-top: 16px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}
.review__source--pgs { background: #e8f0e6; color: var(--pgs-dark); border: 1px solid #c9dbc3; }
.review__source--gdr { background: #fdf2e3; color: #8a5a1c; border: 1px solid #ecd9b4; }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--pgs-dark);
  color: #fff;
  padding: 56px 0;
  border-top: 4px solid var(--pgs-green);
  text-align: center;
}
.cta-strip h2 { color: #fff; }
.cta-strip p { color: #c9ccc9; max-width: 50ch; margin: 0 auto 24px; }
.cta-strip .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }

/* ---------- Service area ---------- */
.area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.area-card {
  background: #fff;
  border: 1px solid var(--pgs-border);
  border-radius: var(--radius);
  padding: 22px;
}
.area-card h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--pgs-green-dark); }
.area-card p { font-size: 0.9rem; color: var(--pgs-muted); margin: 0; }

/* ---------- Video embed ---------- */
.video-wrap {
  max-width: 880px; margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--pgs-border);
  background: var(--pgs-dark);
  aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  color: #d7dbd7; text-align: center; padding: 20px;
}
.video-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--pgs-border);
  padding: 18px 0;
}
.faq-item summary {
  font-weight: 800;
  color: var(--pgs-dark);
  cursor: pointer;
  font-size: 1.05rem;
  list-style: none;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--pgs-green);
  font-weight: 900;
  font-size: 1.4rem;
  line-height: 1;
}
.faq-item[open] summary::after { content: '–'; }
.faq-item p { margin: 12px 0 0; color: var(--pgs-muted); }

/* ---------- Process steps ---------- */
.process {
  display: grid; grid-template-columns: 1fr; gap: 20px;
}
.step {
  background: #fff;
  border: 1px solid var(--pgs-border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  padding-left: 76px;
}
.step .num {
  position: absolute; left: 22px; top: 22px;
  width: 40px; height: 40px;
  background: var(--pgs-green);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.05rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 4px; }
.step p { color: var(--pgs-muted); margin: 0; font-size: 0.95rem; }

/* ---------- Contact / form ---------- */
.contact-wrap {
  display: grid; grid-template-columns: 1fr; gap: 36px;
}
.contact-form {
  background: #fff;
  border: 1px solid var(--pgs-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.contact-form .field { margin-bottom: 18px; }
.contact-form label {
  display: block; font-weight: 700; font-size: 0.95rem;
  color: var(--pgs-dark); margin-bottom: 6px;
}
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 14px 14px;
  font-size: 1rem;
  border: 1.5px solid var(--pgs-border);
  border-radius: var(--radius);
  background: #fff;
  font-family: inherit;
  color: var(--pgs-text);
  min-height: 48px;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--pgs-green);
  box-shadow: 0 0 0 3px rgba(45,138,62,0.15);
}
.contact-form textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--pgs-muted); margin-top: 8px; }

.contact-side {
  background: var(--pgs-trust);
  border: 1px solid var(--pgs-border);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-side h3 { font-size: 1.1rem; }
.contact-side .big-phone {
  display: block; font-size: 1.5rem; font-weight: 900; color: var(--pgs-dark);
  margin: 8px 0 4px;
}
.contact-side ul { padding-left: 1.1em; color: var(--pgs-charcoal); margin: 14px 0 0; }
.contact-side li { margin-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--pgs-dark);
  color: #c9ccc9;
  padding: 56px 0 80px;
  font-size: 0.92rem;
}
.site-footer h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.site-footer a { color: #c9ccc9; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 4px 0; }
.footer-bottom {
  border-top: 1px solid #2c2f2c;
  margin-top: 36px;
  padding-top: 22px;
  text-align: center;
  font-size: 0.85rem;
  color: #8b8e8b;
}

/* ---------- Page header (interior pages) ---------- */
.page-head {
  background: var(--pgs-dark);
  color: #fff;
  padding: 50px 0 56px;
  border-bottom: 4px solid var(--pgs-green);
}
.page-head h1 { color: #fff; max-width: 24ch; }
.page-head p { color: #c9ccc9; max-width: 60ch; font-size: 1.1rem; margin-bottom: 18px; }
.breadcrumb { font-size: 0.85rem; color: #9aa09a; margin-bottom: 14px; }
.breadcrumb a { color: #c9ccc9; }

/* ---------- Audience cards (homepage) ---------- */
.audience-grid {
  display: grid; grid-template-columns: 1fr; gap: 20px;
}
.audience-card {
  background: #fff;
  border: 1px solid var(--pgs-border);
  border-radius: var(--radius);
  padding: 28px;
  border-top: 4px solid var(--pgs-green);
}
.audience-card .tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--pgs-green); margin-bottom: 8px;
}
.audience-card h3 { font-size: 1.15rem; }
.audience-card p { color: var(--pgs-muted); }

/* ---------- Photo placeholder helpers (will be replaced with real photos) ---------- */
.photo-placeholder {
  background: linear-gradient(135deg, #2c2f2c 0%, #1a1d1a 100%);
  color: #6b6e6b;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
  font-size: 0.85rem;
  border: 1px dashed #4a4d4a;
  min-height: 180px;
  overflow: hidden;
}
.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* When an img is inside a gallery .ba cell, stretch it and hide the placeholder text */
.gallery-card .ba > div img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Real photos inside equipment cards */
.equipment-card .photo {
  padding: 0;
}
.equipment-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================================
   Tablet
   ========================================================= */
@media (min-width: 640px) {
  .trust-bar__grid { grid-template-columns: repeat(4, 1fr); }
  .ps-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .equipment-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .audience-grid { grid-template-columns: 1fr 1fr; }
  .area-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   Desktop
   ========================================================= */
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .menu-toggle { display: none; }
  .nav { display: flex; }
  .header-cta { display: flex; align-items: center; gap: 14px; }
  .header-cta .phone { font-weight: 800; color: var(--pgs-dark); font-size: 1rem; }
  .hero { padding: 96px 0 110px; }
  .section { padding: 88px 0; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .equipment-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 2fr 1fr; align-items: start; }
  .process { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Utility ---------- */
.sr-only { position: absolute; left: -9999px; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
