/* Shared refinements across every page */
.about-page,
.services-page,
.contact-page,
.home-page,
.pest-page {
  font-family: var(--font-body);
  background: #fbfdff;
}

.about-page :is(h1, h2, h3, h4),
.services-page :is(h1, h2, h3, h4),
.contact-page :is(h1, h2, h3, h4),
.home-page :is(h1, h2, h3, h4),
.pest-page :is(h1, h2, h3, h4) {
  font-family: var(--font-display);
}

.about-page main,
.services-page main,
.contact-page main,
.home-page main,
.pest-page main {
  overflow: clip;
}

/* Photography: consistent brand-grade treatment across every stock photo */
.home-page img:is(.hero-photo, .photo-card img, .process-image img, .practical-residential-photo, .service-art img),
.home-page .where-photo,
.pest-page img:is(.pc-hero-photo, .intro-photo img, .fumigation-photo img, .env-card-photo, .process-image img),
.services-page .sv-hero-photo,
.about-page .ab-hero-photo {
  filter: saturate(.9) contrast(1.04);
}

/* Homepage: asymmetric framing to match the interior-page photography language */
.home-page .photo-card {
  border-radius: 36px 36px 10px 36px;
  box-shadow: 0 35px 90px rgba(7, 26, 53, .18);
}

.home-page .process-image {
  border-radius: 28px 28px 8px 28px;
}

.home-page .practical-residential-photo {
  border-radius: 34px 10px 34px 34px !important;
}

.home-page .pest-main {
  position: relative;
  background: transparent;
}

/* Pest control page: same asymmetric framing language */
.pest-page .intro-photo {
  border-radius: 34px 34px 10px 34px;
  transform: rotate(-1deg);
}

.pest-page .fumigation-photo {
  border-radius: 10px 34px 34px 34px;
}

.pest-page .env-card:nth-child(2) {
  border-radius: 22px 6px 22px 22px;
}

.pest-page .env-card:nth-child(3) {
  border-radius: 6px 22px 22px 22px;
}

.pest-page .intro-band {
  position: relative;
  background: var(--pale);
}

.about-page .ab-hero,
.services-page .sv-hero {
  min-height: 650px;
}

.about-page .ab-hero-photo,
.services-page .sv-hero-photo {
  filter: saturate(.88) contrast(1.03);
}

.about-page .ab-hero-overlay,
.services-page .sv-hero-overlay {
  background:
    linear-gradient(90deg, rgba(4, 15, 27, .97) 0%, rgba(4, 15, 27, .82) 48%, rgba(4, 15, 27, .2) 100%),
    linear-gradient(0deg, rgba(4, 15, 27, .38), transparent 55%);
}

.about-page .ab-hero-inner,
.services-page .sv-hero-inner {
  padding: 155px 0 120px;
}

/* Decorative floating ring removed */

/* About page */
.about-page .origin {
  padding: 130px 0;
  background:
    #fbfdff;
}

.about-page .origin-grid {
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  gap: clamp(56px, 8vw, 120px);
}

/* Founder portrait: sits square on desktop (no rotation - a tilted portrait
   of a real person reads as a mistake), and uses a portrait-friendly ratio
   with the crop biased upward so the face is never cut off. */
.about-page .origin-photo {
  min-height: 0;
  aspect-ratio: 4 / 5;
  max-height: 620px;
  border-radius: 34px 34px 10px 34px;
  transform: none;
  box-shadow: 0 35px 90px rgba(7, 26, 53, .18);
}

.about-page .origin-photo img {
  min-height: 0;
  height: 100%;
  /* The portrait is cropped to a native 4:5 to match this card, so it sits
     centred with nothing trimmed. */
  object-position: center center;
}

/* Founder credit sits squarely inside the portrait. It previously hung
   22px past the left edge with a clipped corner, which read as misaligned
   against a photo of a real person. */
.about-page .origin-photo-badge {
  left: 22px;
  right: 22px;
  bottom: 22px;
  border-radius: 14px;
  text-align: left;
}

.about-page .origin-founded {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.about-page .origin-tag {
  min-height: 116px;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 0 0 16px 16px;
  background: rgba(255, 255, 255, .88);
}

.about-page .origin-tag strong {
  font-size: 18px;
}

.about-page .mission {
  position: relative;
  padding: 130px 0;
  background:
    var(--navy);
}

.about-page .mission-grid {
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(60px, 9vw, 130px);
}

.about-page .mission-values {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.about-page .mission-value,
.about-page .mission-value:first-child {
  min-height: 190px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 20px;
  background: rgba(255, 255, 255, .035);
}

.about-page .team-strip {
  padding: 130px 0;
  background: #eef5fa;
}

.about-page .team-strip-grid {
  grid-template-columns: .78fr 1.22fr;
  gap: clamp(52px, 8vw, 110px);
}

.about-page .team-photo-pair {
  grid-template-columns: .82fr 1.18fr;
  grid-template-rows: 230px 300px;
  gap: 16px;
}

.about-page .team-photo,
.about-page .team-photo img,
.about-page .team-photo.tall,
.about-page .team-photo.tall img {
  min-height: 0;
  height: 100%;
}

.about-page .team-photo:first-child {
  border-radius: 34px 10px 10px 10px;
}

.about-page .team-photo:nth-child(2) {
  border-radius: 10px 34px 10px 10px;
}

.about-page .team-photo.tall {
  border-radius: 10px 10px 34px 34px;
}

.about-page .why-us {
  padding: 130px 0;
}

.about-page .why-us-grid {
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.about-page .why-card {
  grid-column: span 4;
  min-height: 220px;
  border-radius: 24px 8px 24px 24px;
}

.about-page .why-card:nth-child(2),
.about-page .why-card:nth-child(5) {
  transform: translateY(24px);
}

/* Services page */
.services-page .service-nav {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 35px rgba(7, 26, 53, .06);
}

.services-page .service-nav-inner {
  gap: 6px;
  padding: 9px 0;
}

.services-page .sv-pill {
  padding: 11px 16px;
  border: 0;
  border-radius: 999px;
}

.services-page .sv-pill:hover,
.services-page .sv-pill.active {
  color: var(--navy);
  background: #eaf5fc;
}

.services-page .sv-block {
  padding: 120px 0;
  background: #fbfdff;
}

.services-page .sv-block:nth-child(even) {
  background: #eef5fa;
}

.services-page .sv-block-grid {
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: clamp(56px, 8vw, 116px);
}

.services-page .sv-block-grid.reverse {
  grid-template-columns: minmax(420px, 1.1fr) minmax(0, .9fr);
}

.services-page .sv-block-photo {
  min-height: 540px;
  border-radius: 36px 36px 12px 36px;
  box-shadow: 0 30px 75px rgba(7, 26, 53, .15);
}

.services-page .sv-block-grid.reverse .sv-block-photo {
  border-radius: 36px 12px 36px 36px;
}

.services-page .sv-block-photo img {
  min-height: 540px;
}

.services-page .sv-includes {
  gap: 7px 22px;
}

.services-page .sv-includes li {
  padding: 9px 0;
}

.services-page .sv-for {
  border: 1px solid #d5e8f4;
  border-left: 4px solid var(--blue);
  border-radius: 0 16px 16px 0;
}

.services-page .sv-summary-grid {
  grid-template-columns: repeat(12, 1fr);
}

.services-page .sv-summary-card {
  grid-column: span 3;
  min-height: 180px;
  border-radius: 22px 8px 22px 22px;
}

.services-page .sv-summary-card:nth-child(2),
.services-page .sv-summary-card:nth-child(7) {
  grid-column: span 4;
}

.services-page .sv-summary-card:nth-child(3),
.services-page .sv-summary-card:nth-child(6) {
  grid-column: span 2;
}

/* Contact page */
.contact-page .ct-hero {
  position: relative;
  padding: 150px 0 115px;
  background:
    linear-gradient(120deg, #061321, #0b2a50);
  overflow: hidden;
}

/* Decorative floating ring removed */

.contact-page .ct-main {
  padding: 120px 0;
  background:
    #fbfdff;
}

.contact-page .ct-main-grid {
  grid-template-columns: minmax(0, 1.16fr) minmax(330px, .84fr);
  gap: clamp(42px, 7vw, 100px);
}

.contact-page .ct-form-card {
  padding: clamp(28px, 4vw, 52px);
  border: 0;
  border-radius: 34px 34px 12px 34px;
  box-shadow: 0 30px 85px rgba(7, 26, 53, .14);
}

.contact-page .ct-form-card :is(input, select, textarea) {
  border-radius: 14px;
  background: #f7fafc;
}

/* minmax(0,1fr) not 1fr: a plain 1fr keeps an automatic min-content floor,
   so the long email address was forcing its column to ~305px and crushing
   the phone card to ~136px. Zero floor = genuinely equal halves. */
.contact-page .ct-details {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

/* Long addresses wrap inside the card instead of dictating column width */
.contact-page .ct-action {
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.contact-page .ct-detail-card {
  min-height: 210px;
  padding: 27px;
  border-radius: 24px 8px 24px 24px;
}

.contact-page .ct-wa-card,
.contact-page .ct-address-card {
  grid-column: span 2;
}

.contact-page .ct-wa-card {
  min-height: 230px;
  background:
    var(--navy);
}

.contact-page .ct-map-section {
  padding: 110px 0;
  background: #eef5fa;
}

.contact-page .ct-map-embed {
  height: 460px;
  border: 8px solid #fff;
  border-radius: 32px 32px 10px 32px;
}

.contact-page .ct-faq {
  padding: 120px 0;
}

.contact-page .ct-faq-grid {
  grid-template-columns: .72fr 1.28fr;
  gap: clamp(52px, 9vw, 130px);
}

.contact-page .ct-faq-item {
  padding: 24px 0;
}

@media (max-width: 1050px) {
  .about-page .origin-grid,
  .about-page .mission-grid,
  .about-page .team-strip-grid,
  .services-page .sv-block-grid,
  .services-page .sv-block-grid.reverse,
  .contact-page .ct-main-grid,
  .contact-page .ct-faq-grid {
    grid-template-columns: 1fr;
  }

  .about-page .mission-values,
  .contact-page .ct-details {
    grid-template-columns: 1fr 1fr;
  }

  .about-page .why-card,
  .services-page .sv-summary-card,
  .services-page .sv-summary-card:nth-child(n) {
    grid-column: span 6;
  }
}

@media (max-width: 700px) {
  .about-page .ab-hero,
  .services-page .sv-hero {
    min-height: 570px;
  }

  .about-page .ab-hero-inner,
  .services-page .sv-hero-inner,
  .contact-page .ct-hero {
    padding-top: 110px;
    padding-bottom: 80px;
  }

  .about-page .origin,
  .about-page .mission,
  .about-page .team-strip,
  .about-page .why-us,
  .services-page .sv-block,
  .contact-page .ct-main,
  .contact-page .ct-map-section,
  .contact-page .ct-faq {
    padding: 80px 0;
  }

  .services-page .sv-block-photo,
  .services-page .sv-block-photo img {
    min-height: 410px;
  }

  .about-page .origin-photo {
    aspect-ratio: 4 / 5;
    max-height: 480px;
  }

  .about-page .origin-photo-badge {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .about-page .origin-founded,
  .about-page .mission-values,
  .contact-page .ct-details {
    grid-template-columns: 1fr;
  }

  .about-page .team-photo-pair {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 260px);
  }

  .about-page .team-photo.tall,
  .contact-page .ct-wa-card,
  .contact-page .ct-address-card {
    grid-column: auto;
  }

  .about-page .why-card,
  .services-page .sv-summary-card,
  .services-page .sv-summary-card:nth-child(n) {
    grid-column: 1 / -1;
  }

  .about-page .why-card:nth-child(2),
  .about-page .why-card:nth-child(5) {
    transform: none;
  }

  .contact-page .ct-map-embed {
    height: 330px;
  }
}

/* Signature detail layer: oversized ghost numerals for page-specific card classes
   (positioned here, not in styles.css, so the load order wins over each page's
   own inline <style> block) */
.about-page .why-card-num {
  position: absolute;
  top: 14px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--line);
  line-height: 1;
  margin: 0;
}

.about-page .why-card h3,
.about-page .why-card p {
  position: relative;
  z-index: 1;
}

.services-page .sv-summary-card > span {
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: rgba(255, 255, 255, .16);
  line-height: 1;
  margin: 0;
}

.services-page .sv-summary-card h3,
.services-page .sv-summary-card p {
  position: relative;
  z-index: 1;
}

.pest-page .fumigation-point .fp-num {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.01em;
}
