/* NeuraNest C0 V4 REVIEW ONLY — narrow, traceable overrides, never a wholesale redesign. */
/* The V3 problem: a 1fr mobile grid track held min-content width ~445px on a 390px screen.
   Use minmax(0,1fr), allow its children to shrink and keep headings within the viewport. */
@media (max-width: 720px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid > *, .hero-copy, .hero-visual,
  .hero h1, .hero-lead, .hero-sub { min-width: 0; max-width: 100%; }
  .hero { padding-top: 30px; padding-bottom: 54px; }
  .hero h1 {
    font-size: clamp(2.45rem, 10.5vw, 3.5rem);
    line-height: 1.04;
    letter-spacing: -.052em;
    overflow-wrap: normal;
  }
  .hero .eyebrow { font-size: .69rem; line-height: 1.45; letter-spacing: .075em; }
  .hero .eyebrow:before { flex-shrink: 0; }
  .hero-lead { font-size: clamp(1.05rem, 4.5vw, 1.23rem); line-height: 1.4; }
  .hero-sub { font-size: 1rem; line-height: 1.55; }
  .hero-frame, .hero-discovery { max-width: 100%; }
  .second-hero h2, .industry h2 { overflow-wrap: normal; }
  .industry h2 { font-size: clamp(2.1rem, 8.2vw, 3.35rem); line-height: 1.08; }
  .mobile-sticky {
    gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-sticky a { min-width: 0; padding: 10px 7px; min-height: 44px; font-size: .82rem; }
  .mobile-sticky .btn { white-space: nowrap; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: clamp(2.2rem, 10vw, 2.55rem); }
  .hero .eyebrow { font-size: .61rem; letter-spacing: .05em; }
  .mobile-sticky a { font-size: .75rem; padding-left: 3px; padding-right: 3px; }
}
/* Never zoom or clip the whole site to conceal a layout fault. */

@font-face{font-family:'Instrument Sans';src:url(/fonts/InstrumentSans.woff2) format('woff2');font-weight:400 700;font-display:swap}

/* Slow, sequential movement of the existing four squares — decorative, not a redesign. */
@keyframes c0-tile-step {
  0%, 8%, 100% { transform: translate3d(0,0,0) rotate(0deg); }
  3.5% { transform: translate3d(0,-4px,0) rotate(23deg); }
}
@media (hover:hover) and (pointer:fine) and (min-width: 850px) {
  .header .brandmark i { animation: c0-tile-step 16s ease-in-out infinite; transform-origin:center; }
  .header .brandmark i:nth-child(1) { animation-delay: 0s; }
  .header .brandmark i:nth-child(2) { animation-delay: 4s; }
  .header .brandmark i:nth-child(3) { animation-delay: 8s; }
  .header .brandmark i:nth-child(4) { animation-delay: 12s; }
  .header .brand small { animation: c0-tagline-gentle 20s ease-in-out infinite; }
}
@keyframes c0-tagline-gentle {
  0%, 12%, 88%, 100% { transform: translateX(0); opacity: 1; }
  46%, 58% { transform: translateX(5px); opacity: .82; }
}
@media (prefers-reduced-motion: reduce) {
  .header .brandmark i, .header .brand small { animation: none !important; }
}

/* V4 next-level: avoid hiding the hero's first CTA behind duplicate fixed CTAs.
   Progressive enhancement: without IntersectionObserver/JS the existing sticky CTA remains. */
@media (max-width:720px) {
  body.c0-sticky-enhanced .mobile-sticky {
    opacity:0; visibility:hidden; pointer-events:none;
    transform:translate3d(0,calc(100% + 3px),0);
    transition:transform .24s ease,opacity .24s ease,visibility .24s ease;
  }
  body.c0-sticky-enhanced .mobile-sticky.c0-sticky-active {
    opacity:1; visibility:visible;pointer-events:auto;transform:translate3d(0,0,0);
  }
}
@media (prefers-reduced-motion:reduce) {
  body.c0-sticky-enhanced .mobile-sticky {transition:none!important}
}

/* v4.2 Our first client — uses existing type, colour and wrap rhythm */
.our-first-client { background: #F4F2E8; }
.our-first-client-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.our-first-client-copy { min-width: 0; }
.our-first-client-figure { margin: 0; }
.our-first-client-photo { width: 100%; height: auto; display: block; border-radius: 18px; box-shadow: 0 8px 28px rgba(18,63,45,.08); }
.our-first-client-figure figcaption { margin-top: 10px; font-size: .9rem; color: #2c5e47; }
.our-first-client-copy .chips { margin: 8px 0 22px; }
@media (max-width: 720px) {
  .our-first-client-grid { grid-template-columns: minmax(0,1fr); gap: 28px; align-items: start; }
  .our-first-client h2 { font-size: clamp(2rem, 8vw, 3rem); overflow-wrap: normal; }
  .price { min-height: auto; }
}

/* v4.2: Be Found listing matches the 02 Be Trusted photo size (132x166).
   object-position keeps the left listing panel (name, stars, Open, phone) in view. */
.service-photo-fig{margin:18px 0 0;padding:0;max-width:100%}
.service-card .service-photo-fig .service-photo{
  margin-top:0;
  width:132px;
  height:166px;
  max-width:100%;
  object-fit:cover;
  object-position:left center;
  aspect-ratio:132 / 166;
  background:#f4f2e8;
  box-shadow:0 5px 12px rgba(18,63,45,.09);
}
.service-photo-fig figcaption{margin-top:8px;font-size:.78rem;font-weight:700;color:#2c5e47;letter-spacing:.02em}

/* v4.2: short home nav — Contact and Call Rind stay available when Let's talk is hidden */
.header .nav a.nav-extra{display:none}
@media (max-width:1100px){
  .header .nav a.nav-extra{display:inline}
}
@media (max-width:720px){
  .header .nav a.nav-extra{display:flex}
}


/* Our first client: iPhone frame around the scrollable PDF (shared chrome CSS draws the phone) */
.our-first-client-media{min-width:0;display:flex;flex-direction:column;gap:12px;align-items:center}
.our-first-client-figure-link{display:block;text-decoration:none;color:inherit;border-radius:18px}
.our-first-client-figure-link:hover .our-first-client-photo{box-shadow:0 12px 32px rgba(18,63,45,.14)}
.our-first-client-figure-link:focus-visible{outline:3px solid #2c5e47;outline-offset:3px}
.our-first-client-pdf-links{display:flex;flex-wrap:wrap;gap:10px 22px;margin:0;align-items:center;justify-content:center}
.our-first-client-pdf-links .link{margin-top:0}
@media (min-width:721px){
  .our-first-client-grid{align-items:start}
  .our-first-client-media{align-items:center}
}


/* v4.2: scoped contrast fix for the home phone-mock captions and the two related
   home eyebrow/banner captions only (axe: 4.17 / 3.92 / 3.91 / 3.05, need 4.5:1).
   Does not change global .micro or the rest of the page. */
.phone-caption{color:#5a7362}
.phone-result small{color:#5f6e62}
.second-choice-eyebrow{color:#4a684a}
.audit-banner .micro{color:#2c5a3c}

/* v4.2: "See our services" one-off price cards use the same small .price layout as Simple pricing. Spacing only. */
.see-our-services{margin-top:42px}
.see-our-services .section-head{margin-bottom:18px}


/* v4.2: six Simple pricing cards — 1 column on a phone, 3x2 from tablet up */
@media (min-width:721px){
  .pricing-grid{grid-template-columns:repeat(3,1fr)}
}


/* v4.2: footer NAP (name, address, phone) and Google Maps embed */
.footer-nap{font-size:.9rem;color:#c1d7c8;margin:0 0 10px;line-height:1.55}
.footer-nap a{display:inline;color:#d7e6da;margin:0;text-decoration:underline;text-underline-offset:3px}
.footer-nap-name{font-weight:800;color:#fff}
.nn-map{margin-top:28px;border-radius:18px;overflow:hidden;border:1px solid #c8cebd;box-shadow:0 8px 28px rgba(18,63,45,.08);background:#eef0e4;max-width:100%}
.nn-map iframe{width:100%;height:260px;border:0;display:block}
@media (min-width:721px){
  .nn-map iframe{height:360px}
}

/* v4.2: realistic iPhone frame — natural 9:19.5 proportions, PDF scrolls INSIDE the screen only */
.nn-iphone{
  --nn-iphone-bezel:#18241e;
  --nn-iphone-island:#0d1612;
  position:relative;
  width:280px;
  max-width:100%;
  flex:0 0 auto;
  margin:0 auto;
  padding:12px 10px 14px;
  background:var(--nn-iphone-bezel);
  border-radius:48px;
  box-sizing:border-box;
  overflow:visible;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08) inset,
    0 0 0 1px rgba(18,63,45,.35),
    0 28px 56px -24px rgba(18,63,45,.55);
}
.nn-iphone-btn{
  position:absolute;
  background:#101c18;
  z-index:2;
  pointer-events:none;
}
.nn-iphone-btn-silent{left:-3px;top:92px;width:3px;height:22px;border-radius:2px 0 0 2px}
.nn-iphone-btn-vol-up{left:-3px;top:128px;width:3px;height:36px;border-radius:2px 0 0 2px}
.nn-iphone-btn-vol-down{left:-3px;top:172px;width:3px;height:36px;border-radius:2px 0 0 2px}
.nn-iphone-btn-power{right:-3px;top:150px;width:3px;height:56px;border-radius:0 2px 2px 0}
/* Height is locked by padding-top aspect ratio so PDF images cannot stretch the phone */
.nn-iphone-screen{
  position:relative;
  width:100%;
  height:0;
  padding-top:calc(19.5 / 9 * 100%);
  border-radius:36px;
  overflow:hidden;
  background:#0d1612;
  box-sizing:border-box;
}
.nn-iphone-chrome{
  position:absolute;
  top:0;left:0;right:0;
  height:36px;
  background:#0d1612;
  z-index:3;
}
.nn-iphone-island{
  position:absolute;
  top:8px;
  left:50%;
  width:78px;
  height:22px;
  border-radius:12px;
  background:var(--nn-iphone-island);
  transform:translateX(-50%);
  box-shadow:0 0 0 1px rgba(255,255,255,.05) inset;
}
.nn-iphone .our-first-client-pdf-window,
.our-first-client-pdf-window{
  position:absolute;
  top:36px;
  left:0;
  right:0;
  bottom:0;
  overflow-y:auto;
  overflow-x:hidden;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
  background:#fffefa;
  outline:none;
  min-height:0;
  height:auto;
}
.nn-iphone .our-first-client-pdf-window:focus,
.nn-iphone .our-first-client-pdf-window:focus-visible{
  outline:3px solid #7dba9a;
  outline-offset:-3px;
}
.nn-iphone .our-first-client-pdf-window img{
  width:100%;
  height:auto;
  display:block;
  border-radius:0;
}
.nn-iphone .our-first-client-pdf-window::-webkit-scrollbar{width:6px}
.nn-iphone .our-first-client-pdf-window::-webkit-scrollbar-track{background:rgba(18,63,45,.08)}
.nn-iphone .our-first-client-pdf-window::-webkit-scrollbar-thumb{background:#2c5e47;border-radius:6px}
.nn-iphone-home{
  position:absolute;
  bottom:7px;
  left:50%;
  width:108px;
  height:5px;
  border-radius:3px;
  background:rgba(252,251,248,.55);
  transform:translateX(-50%);
  z-index:4;
  pointer-events:none;
}
.nn-iphone-scroll-hint{
  position:absolute;
  left:0;right:0;bottom:0;
  height:72px;
  pointer-events:none;
  z-index:3;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding-bottom:16px;
  background:linear-gradient(to bottom, transparent, rgba(13,22,18,.5));
  font-size:10px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#fcfbf8;
}
.nn-iphone-caption{
  margin:0;
  text-align:center;
  font-size:.82rem;
  font-weight:600;
  color:#2c5e47;
}
.nn-iphone-on-page{margin:8px auto 16px}
@media (min-width:721px){
  /* ~320px chassis, ~300px screen, total height about 676px */
  .nn-iphone{width:320px}
}

/* v4.2: slim green in-screen scroll bar + Scroll tag — no extra layout */
.nn-iphone .our-first-client-pdf-window{
  padding:0;
  scrollbar-gutter:auto;
  scroll-snap-type:y proximity;
  overscroll-behavior:contain;
  touch-action:pan-y;
  scrollbar-width:none;
}
.nn-iphone .our-first-client-pdf-window::-webkit-scrollbar{width:0;height:0}
.nn-iphone-page{
  width:100%;
  margin:0;
  padding:0;
  scroll-snap-align:start;
  scroll-snap-stop:normal;
}
.nn-iphone .our-first-client-pdf-window img,
.nn-iphone-page img{
  width:100%;
  max-width:100%;
  height:auto;
  display:block;
  margin:0;
  border-radius:0;
}

/* v4.2: slim green scroll bar OUTSIDE the phone, hugging the right edge */
.nn-iphone-shell{
  position:relative;
  width:280px;
  max-width:100%;
  margin:0 auto;
  flex:0 0 auto;
}
.nn-iphone-shell .nn-iphone{
  width:100%;
  margin:0;
}
.nn-iphone-on-page{margin:0}
.nn-iphone-shell .nn-iphone-on-page{margin:0}
.nn-iphone-scrollbar{
  position:absolute;
  top:20px;
  bottom:20px;
  right:-11px; /* 6px gap + 5px visual bar; 44px hit area extends left over the phone */
  width:44px;
  z-index:6;
  background:transparent;
  border-radius:0;
  cursor:pointer;
  touch-action:none;
  pointer-events:auto;
}
.nn-iphone-scrollbar::before{
  content:"";
  position:absolute;
  top:0;
  right:0;
  bottom:0;
  width:5px;
  background:rgba(18,63,45,.18);
  border-radius:6px;
  pointer-events:none;
}
.nn-iphone-scrollbar-thumb{
  position:absolute;
  right:0;
  width:44px;
  min-height:28px;
  background:transparent;
  border-radius:0;
  box-shadow:none;
  touch-action:none;
  cursor:grab;
  z-index:1;
}
.nn-iphone-scrollbar-thumb::before{
  content:"";
  position:absolute;
  top:0;
  right:0;
  bottom:0;
  width:5px;
  background:#123f2d;
  border-radius:6px;
  box-shadow:0 0 0 1px rgba(18,63,45,.15);
  pointer-events:none;
}
.nn-iphone-scrollbar-thumb:active{cursor:grabbing}
.nn-iphone-scroll-tag{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  background:#123f2d;
  color:#fcfbf8;
  font-size:9px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  line-height:1;
  padding:4px 7px;
  border-radius:999px;
  white-space:nowrap;
  box-shadow:0 2px 8px rgba(18,63,45,.28);
  pointer-events:none;
}
.nn-iphone-shell.is-scrolled .nn-iphone-scroll-tag,
.nn-iphone.is-scrolled .nn-iphone-scroll-tag{opacity:.9}
.nn-iphone-scrollbar:focus,
.nn-iphone-scrollbar:focus-visible{
  outline:none;
}
.nn-iphone-scrollbar:focus-visible::before{
  box-shadow:0 0 0 3px #7dba9a;
}
@media (min-width:721px){
  .nn-iphone-shell{width:320px}
}
@media (prefers-reduced-motion:reduce){
  .nn-iphone .our-first-client-pdf-window{
    scroll-behavior:auto;
    scroll-snap-type:none;
  }
  .nn-iphone-scrollbar-thumb{transition:none}
}

.nn-iphone-shell{overflow:visible}
.our-first-client-media{overflow:visible}
.nn-iphone-shell:has(.nn-iphone-on-page){margin:8px auto 16px}
