/* Leatherstocking Inspection Services */

:root {
  --orange: #c8741f;
  --green: #357338;
  --green-dark: #24402a;
  --footer: #263a26;
  --brown: #8b5a2b;
  --yellow: #f6c344;
  --yellow-hover: #f3b934;
  --yellow-press: #e2a722;
  --gray-bg: #fafbfb;
  --border: #e3e5e3;
  --text: #3a3d3a;
  --muted: #3a3d3a;
  --faded: #a9ada9;
  --radius: 8px;
  --container: 1040px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 .75rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 24px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 1.75rem;
  line-height: 1.2;
  white-space: nowrap;
  vertical-align: middle;
  background-color: var(--yellow);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 55%);
  color: #000;
  font: inherit;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .03em;
  text-decoration: none;
  text-align: center;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .45),
    inset 0 -2px 0 rgba(150, 100, 0, .18),
    0 1px 2px rgba(60, 40, 0, .12);
  transition:
    background-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover {
  background-color: var(--yellow-hover);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .5),
    inset 0 -2px 0 rgba(150, 100, 0, .2),
    0 6px 14px -4px rgba(170, 110, 0, .45),
    0 2px 4px rgba(60, 40, 0, .1);
}
.btn:active {
  background-color: var(--yellow-press);
  transform: translateY(0);
  box-shadow:
    inset 0 2px 5px rgba(110, 70, 0, .28),
    inset 0 -1px 0 rgba(255, 255, 255, .15),
    0 0 0 rgba(0, 0, 0, 0);
  transition-duration: .06s;
}
.btn:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover, .btn:active { transform: none; }
}
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.btn--sm { padding: 0 1.1rem; font-size: .875rem; }
.btn--block { display: flex; width: 100%; }

.btn-row { margin-top: 2rem; text-align: center; }

/* ---------- Promo bar + header ---------- */

.promo-bar {
  background: var(--orange);
  color: #fff;
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  padding: .35rem 1rem;
}
.site-header { background: #fff; }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .9rem;
  padding-bottom: .9rem;
}
.site-header--logo .site-header__inner { padding-top: 1.75rem; padding-bottom: 1.75rem; }

/* Sticky header with a small logo that appears once the big hero logo scrolls away (home page) */
.site-header--sticky {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header--sticky.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 4px 20px rgba(20, 30, 20, .06); }
.site-header--sticky .site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
.site-header--sticky .phone { justify-self: start; }
.site-header--sticky .btn { justify-self: end; }
.site-header__logo {
  display: block;
  opacity: 0;
  transform: translateY(8px) scale(.94);
  pointer-events: none;
  transition: opacity .3s ease, transform .35s cubic-bezier(.2, .8, .3, 1.2);
}
.site-header__logo img { display: block; height: 42px; width: auto; }
.site-header--sticky.show-logo .site-header__logo { opacity: 1; transform: none; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) {
  .site-header__logo { transform: none; transition: opacity .2s ease; }
}

.phone {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 500;
  font-size: .95rem;
  text-decoration: none;
  white-space: nowrap;
}
.phone svg { width: 18px; height: 18px; flex: none; }
.phone:hover { color: var(--green); }

/* ---------- Logo ---------- */

.logo { display: inline-block; text-decoration: none; }
.logo img { width: 100%; height: auto; }
.logo--light img { filter: brightness(0) invert(1); }

/* ---------- Sections ---------- */

.section { padding: 3.5rem 0; }
.section--alt { background: var(--gray-bg); }
.section--tight { padding: 2rem 0; }

.section-title {
  margin-bottom: 1rem;
  color: var(--green);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.12;
  text-wrap: balance;
}

.page-intro { padding: 2rem 0; background: var(--gray-bg); }
.page-intro p { max-width: 56ch; color: var(--muted); font-size: 1.05rem; }

/* ---------- Home: hero ---------- */

.hero { padding: 3rem 0 4.5rem; }
.hero__body {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 4rem;
  align-items: center;
}
.hero__logo { margin-bottom: 2rem; }
.hero__logo .logo { width: min(100%, 400px); }
.hero h1 {
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.12;
  text-wrap: balance;
}
.hero p { color: var(--muted); max-width: 60ch; font-size: 1.1rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__media { position: relative; margin: 0; }
.hero__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: 620px;
  object-fit: cover;
  object-position: center 38%;
  border-radius: 24px;
  box-shadow: 0 2px 4px rgba(20, 30, 20, .04), 0 18px 40px rgba(20, 30, 20, .14);
}

/* Experience badge: dark frosted-glass pill on the photo */
.hero__badge {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .9rem;
  width: fit-content;
  max-width: calc(100% - 2.5rem);
  padding: .8rem 1.4rem .8rem .8rem;
  color: #fff;
  background: rgba(18, 24, 18, .55);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.hero__badge-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--yellow);
  color: #2b2410;
}
.hero__badge-icon svg { width: 30px; height: 30px; }
.hero__badge-text { display: grid; line-height: 1.15; }
.hero__badge-text strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.hero__badge-text span { font-size: .9rem; color: rgba(255, 255, 255, .88); }

/* Outline button (used next to the yellow button) */
.btn--ghost {
  gap: .5rem;
  background: transparent;
  background-image: none;
  color: #232623;
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.btn--ghost svg { width: 18px; height: 18px; }
.btn--ghost:hover { background-color: rgba(53, 115, 56, .08); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:active { background-color: rgba(53, 115, 56, .14); box-shadow: inset 0 0 0 1.5px currentColor; }

/* ---------- Split (text + image) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.split--reverse .split__media { order: -1; }
.split__body p { color: var(--muted); }
.split__body .btn { margin-top: .75rem; }
.split__media picture { display: block; }
.split__media img {
  height: auto;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 2px 4px rgba(20, 30, 20, .04), 0 12px 32px rgba(20, 30, 20, .08);
}

/* ---------- Certifications ---------- */

.certs { width: 100%; max-width: 900px; height: auto; margin: 2rem auto 0; }

.creds-head { margin: 0 auto 3rem; text-align: center; }
.creds-head h2 {
  margin-bottom: 1rem;
  color: #232623;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.12;
  text-wrap: balance;
}
.creds-head p { max-width: 640px; margin-inline: auto; font-size: 1.05rem; }
.creds-card {
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(20, 30, 20, .05), 0 2px 8px rgba(20, 30, 20, .04);
}
.creds-card .certs { margin: 0 auto; }

/* ---------- Pricing ---------- */

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.price-card {
  display: flex;
  flex-direction: column;
  padding: 2.75rem .85rem .85rem;
  background: #fff;
  border: 1px solid #e6e8e6;
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(20, 30, 20, .04), 0 12px 32px rgba(20, 30, 20, .08);
}
.price-card--featured {
  background: linear-gradient(180deg, #eefbe9 0%, #f6fbf0 55%, #f3f7e2 100%);
  border-color: #e0ead6;
}
.price-card h3 { color: #232623; font-size: 1.45rem; font-weight: 600; text-align: center; margin-bottom: .2rem; letter-spacing: -.01em; }
.price-card__note { text-align: center; color: var(--text); font-size: .78rem; letter-spacing: .02em; margin-bottom: 1.5rem; }
.price-card__price {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.01em;
  margin: 0 0 1.5rem .25rem;
}
.price-card ul {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: .9rem .85rem;
  background: #f8f8f8;
  border: 1px solid #e4e6e4;
  border-radius: 12px;
  font-size: .85rem;
  letter-spacing: .015em;
}
.price-card--featured ul { background: rgba(255, 255, 255, .75); }
.price-card li { position: relative; padding: .35rem 0 .35rem 1.45rem; font-weight: 500; }
.price-card li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 15px; height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23111'/%3E%3Cpath d='M4.6 8.3l2.2 2.2 4.6-4.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.price-card li.is-excluded { color: var(--faded); }
.price-card li.is-excluded::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7.2' fill='none' stroke='%23a9ada9' stroke-width='1.4'/%3E%3Cpath d='M8.7 4.6 7.3 11.4' stroke='%23a9ada9' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.pricing-footnote { text-align: center; color: var(--text); font-size: .85rem; letter-spacing: .03em; margin-top: 1.5rem; }

/* ---------- Testimonials ---------- */

.testimonials { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1.75rem; }
.testimonial { display: flex; align-items: center; gap: 1.25rem; }
.testimonial:nth-child(2) { padding-left: 1.5rem; }
.testimonial img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.testimonial blockquote { margin: 0; font-size: 1rem; }
.testimonial cite { display: block; font-style: normal; font-weight: 600; font-size: .875rem; margin-top: .2rem; }

/* ---------- Booking ---------- */

.booking { padding: 2.5rem 0 3.5rem; }
.booking__embed {
  min-height: 640px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.booking__embed { position: relative; }
.booking__fallback {
  padding: 4rem 2rem;
  text-align: center;
  color: var(--muted);
}

/* ---------- Contact form ---------- */

.contact-form {
  max-width: 400px;
  margin: 0 auto;
  display: grid;
  gap: 1.1rem;
}
.field label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .35rem; }
.field input,
.field textarea {
  width: 100%;
  padding: .6rem .75rem;
  font: inherit;
  font-size: .95rem;
  color: var(--text);
  background: #fff;
  border: 1px solid #cfd3cf;
  border-radius: 6px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--faded); }
.form-status { margin: 0; font-size: .9rem; text-align: center; }
.form-status.is-error { color: #b42318; }
.form-status.is-success { color: var(--green); font-weight: 600; }

/* ---------- Call-to-action box ---------- */

.cta-wrap { padding: 0 0 4rem; background: #fff; }
.section--alt + .cta-wrap { background: var(--gray-bg); }
.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem;
  border-radius: 24px;
  background: radial-gradient(circle at 15% 0%, #4d8a4f 0%, var(--green) 45%, #2f5f32 100%);
  color: #fff;
  box-shadow: 0 2px 4px rgba(20, 30, 20, .04), 0 12px 32px rgba(20, 30, 20, .08);
}
.cta-box h2 {
  margin-bottom: .4rem;
  color: #fff;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -.025em;
}
.cta-box p { margin: 0; color: rgba(255, 255, 255, .9); }
.cta-box__actions { display: flex; flex-wrap: wrap; gap: .75rem; flex: none; }
.btn--ghost-light {
  background: transparent;
  background-image: none;
  color: #fff;
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.btn--ghost-light:hover { background-color: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost-light:active { background-color: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1.5px currentColor; }
.cta-box :focus-visible { outline-color: #fff; }

/* ---------- Reveal on scroll (only when JS runs) ---------- */

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { transform: none; transition: opacity .4s ease; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--footer);
  color: #fff;
  padding: 3rem 0 2.5rem;
  border-top: 4px solid #1b2b1b;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;  /* equal side columns keep the logo and copyright centred */
  align-items: center;
  gap: 2rem 3rem;
}
.site-footer__badge { justify-self: start; }
.site-footer .footer-nav { justify-self: end; }
.site-footer__badge img { width: 140px; height: auto; }
.site-footer__brand { justify-self: center; }
.site-footer__brand .logo { width: 360px; max-width: 100%; }
.footer-nav h2 { font-size: .85rem; font-weight: 600; margin-bottom: .5rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; font-size: .85rem; }
.footer-nav li { padding: .15rem 0; }
.footer-nav a { text-decoration: none; opacity: .9; }
.footer-nav a:hover { opacity: 1; text-decoration: underline; }
.site-footer__copy { grid-column: 1 / -1; text-align: center; font-size: .75rem; opacity: .8; margin: 0; }

/* ---------- Tablet ---------- */

@media (max-width: 900px) {
  .split { gap: 1.75rem; }
  .pricing { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .price-card { padding: 2rem .75rem .75rem; }
  .price-card h3 { font-size: 1.15rem; }
  .price-card ul { padding: .75rem; font-size: .8rem; letter-spacing: .01em; }
  .price-card li { padding-left: 1.35rem; }
  .price-card li::before { width: 13px; height: 13px; }
  .site-footer__inner { gap: 2rem; }
  .site-footer__brand .logo { width: 260px; }
  .cta-box { flex-direction: column; align-items: flex-start; }
  .hero__body { gap: 2.5rem; }
  .hero__logo .logo { width: min(100%, 320px); }
  .hero__badge { left: .75rem; bottom: .75rem; padding: .6rem 1rem .6rem .6rem; gap: .7rem; }
  .hero__badge-icon { width: 40px; height: 40px; }
  .hero__badge-icon svg { width: 25px; height: 25px; }
  .hero__badge-text strong { font-size: 1.2rem; }
  .hero__badge-text span { font-size: .8rem; }
}

/* ---------- Phone ---------- */

@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .creds-head { margin-bottom: 2rem; }
  .creds-card { padding: 1rem; }
  .cta-box { padding: 2rem 1.5rem; }
  .hero { padding: 2rem 0 3rem; }
  .hero__body { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__logo { display: flex; justify-content: center; }
  .hero__logo .logo { width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__media img { aspect-ratio: 4 / 3; max-height: none; object-position: center 35%; }
  .cta-box__actions { width: 100%; }
  .cta-box__actions .btn { flex: 1 1 100%; }
  .section { padding: 2.5rem 0; }
  .site-header--logo .site-header__inner { padding-top: 1rem; padding-bottom: 1rem; }
  .phone { font-size: .85rem; }
  .site-header--sticky .site-header__inner { display: flex; justify-content: space-between; }
  .site-header__logo { display: none; }  /* phones keep the phone number and Book button instead */
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media,
  .split__media { order: -1; }
  .split__body .btn { display: flex; }
  .pricing { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .price-card { padding: 2.25rem 1rem 1rem; }
  .price-card h3 { font-size: 1.35rem; }
  .price-card__price { font-size: 2.6rem; }
  .price-card ul { padding: .9rem; font-size: .9rem; }
  .price-card li { padding-left: 1.5rem; }
  .price-card li::before { width: 15px; height: 15px; }
  .testimonial { align-items: flex-start; }
  .testimonial:nth-child(2) { padding-left: .75rem; }
  .testimonial img { width: 52px; height: 52px; }
  .btn-row .btn { display: flex; }
  .booking__embed { min-height: 560px; }
  .site-footer__inner { grid-template-columns: auto auto; justify-content: center; }
  .site-footer__brand { display: none; }
}
