/*
Theme Name: Good Standing & Co.
Theme URI: https://goodstandingandco.com
Author: Good Standing & Co.
Description: Custom theme for Good Standing & Co., a Michigan mobile-notary and mortgage-licensing-compliance business.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: goodstanding
*/

* { box-sizing: border-box; }
body { margin: 0; }
::selection { background: #B0894F; color: #F7F6F2; }
html { scroll-behavior: smooth; }
img { max-width: 100%; }

/* ===== Responsive nav ===== */
.nav-links{display:flex; align-items:center; gap:28px;}
.nav-drop{position:relative;}
.nav-menu{position:absolute; top:100%; left:50%; transform:translateX(-50%) translateY(-6px); min-width:230px; padding:8px; border-radius:3px; display:flex; flex-direction:column; gap:2px; z-index:60; opacity:0; visibility:hidden; pointer-events:none; transition:opacity .16s ease, transform .16s ease; box-shadow:0 18px 36px rgba(16,32,26,.14);}
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu{opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); pointer-events:auto;}
.nav-menu a:hover{background:#EFEEEA;}
.nav-drop-dark .nav-menu a:hover{background:#16281f; color:#EFEEEA !important;}
.nav-burger{display:none; position:absolute; right:6vw; top:50%; transform:translateY(-50%); background:none; border:none; font-size:24px; line-height:1; cursor:pointer; padding:8px; z-index:80; min-width:44px; min-height:44px;}
.nav-mobile-panel{display:none; position:fixed; inset:0; z-index:70; overflow-y:auto; padding:88px 6vw 40px;}
.nav-mobile-panel.open{display:block;}
.nav-mobile-panel a{display:block; padding:16px 4px; text-decoration:none; font-family:'IBM Plex Mono',monospace; font-size:14px; letter-spacing:1px; text-transform:uppercase; border-bottom:1px solid rgba(125,138,124,0.3); min-height:44px;}

/* Notary / Mortgage / Who We Are / Book Now rows: label navigates, caret
   toggles a flyout of jump links. The flyout is a fixed, viewport-centered
   overlay (not anchored to the row's own scroll position) so it always
   renders fully on-screen no matter where its trigger row sits inside the
   scrolling drawer — anchoring it to the row (position:absolute; top:100%)
   meant a flyout opened from a row lower in the drawer could render mostly
   or entirely below the fold, clipped by the drawer's own overflow, forcing
   a scroll to see the rest of it. A backdrop behind the flyout dims the
   drawer and doubles as the tap-outside-to-close target. */
.nav-mobile-row{position:relative; display:flex; align-items:stretch; border-bottom:1px solid rgba(125,138,124,0.3);}
.nav-mobile-panel a.nav-mobile-link{flex:1; display:flex; align-items:center; padding:16px 4px; border-bottom:none; min-height:44px;}
.nav-mobile-caret-btn{background:none; border:none; padding:0 14px; margin:0; cursor:pointer; font-size:16px; line-height:1; min-width:44px; min-height:44px; display:flex; align-items:center; justify-content:center;}
.nav-mobile-sub-backdrop{display:none; position:fixed; inset:0; z-index:2; background:rgba(16,32,26,0.45);}
.nav-mobile-sub-backdrop.open{display:block;}
.nav-mobile-sub{position:fixed; left:20px; right:20px; top:50%; transform:translateY(-50%); z-index:3; display:none; flex-direction:column; gap:2px; padding:10px; border-radius:4px; box-shadow:0 18px 36px rgba(16,32,26,.28); max-height:70vh; overflow-y:auto;}
.nav-mobile-sub.open{display:flex;}
.nav-mobile-panel .nav-mobile-sub a{padding:14px; border-radius:2px; min-height:auto; border-bottom:none;}
.nav-mobile-book{display:block; margin-top:20px; text-align:center; text-decoration:none; font-family:'IBM Plex Mono',monospace; font-size:13px; letter-spacing:2px; text-transform:uppercase; padding:16px; border-radius:2px; min-height:44px;}

/* Book Now: text link + separate chevron button sharing one pill. Text click
   navigates to /booking/; hover (desktop, via .nav-drop:hover above) or a
   click on the chevron reveals the same two-option dropdown. The chevron
   toggle uses an .open class (see js/nav.js) so touch devices — which never
   fire :hover — get an equivalent affordance to desktop hover. */
.nav-book{display:flex; align-items:stretch;}
.nav-book-link{text-decoration:none; display:flex; align-items:center; padding:11px 10px 11px 20px; border-radius:2px 0 0 2px;}
.nav-book-chevron{border:none; cursor:pointer; padding:11px 16px; border-radius:0 2px 2px 0; font-size:9px; display:flex; align-items:center; border-left:1px solid rgba(239,238,234,0.28);}
.nav-book-menu{left:auto; right:0; transform:translateY(-6px); min-width:260px;}
.nav-drop:hover .nav-book-menu, .nav-drop:focus-within .nav-book-menu, .nav-book-menu.open{opacity:1; visibility:visible; transform:translateY(0); pointer-events:auto;}
.nav-book-option{text-decoration:none; display:block; padding:12px 18px; border-radius:2px;}
.nav-book-option-title{display:block; font-family:'Public Sans',sans-serif; font-weight:500; font-size:12px; letter-spacing:0.3px; text-transform:none;}
.nav-book-option-sub{display:block; font-family:'Public Sans',sans-serif; font-size:11.5px; letter-spacing:0; text-transform:none; color:#7d8a7c; margin-top:2px;}
@media (max-width: 880px){
  .nav-links{display:none;}
  .nav-burger{display:block;}
}

/* Simplified mobile top bar (Notary Services, Book Now hub): logo stays,
   dropdown nav is replaced by a plain Contact + Book Now pair. Desktop is
   unaffected — .nav-links still renders normally above 880px. */
.nav-simplified-mobile{display:none;}
@media (max-width: 880px){
  .nav-simplified-mobile{display:flex; align-items:center; gap:16px;}
}

/* honeypot field — off-screen, not display:none, so it still traps naive bots */
.gsc-hp{position:absolute; left:-9999px; top:-9999px;}

.gsc-btn-primary{transition:background .2s ease;}
.gsc-btn-primary:hover{background:#204536;}

/* Calendly embed: widget is width-responsive by default; give it a bit more
   height on small screens so the calendar/time-slot steps aren't cramped. */
@media (max-width: 600px){
  .gsc-calendly-embed .calendly-inline-widget{ height:900px !important; }
}

/* Mobile: two-up image/text grids were cramming photos into a sliver of
   width and cropping them awkwardly. Stack to one column and drop the
   photos on the notary page; the about-page portrait just gets shorter. */
@media (max-width: 880px){
  .gsc-notary-hero-grid, .gsc-notary-how-grid{ grid-template-columns:1fr !important; }
  .gsc-hide-mobile-img{ display:none !important; }
  .gsc-about-grid{ grid-template-columns:1fr !important; }
  .gsc-about-portrait{ min-height:320px !important; }
  /* Contact form: was staying 2-up at any width, squeezing the form column
     narrow enough that inputs (width:100% + padding, no box-sizing) blew
     past the right edge of the viewport. */
  .gsc-contact-grid{ grid-template-columns:1fr !important; }
}

/* Paid landing pages (/processing-transition/, /qi-continuity/): the design
   collapses their multi-column grids at 900px. Below 880px the .gsc-mobile-only
   markup takes over entirely, so in practice this rule only covers the narrow
   880-900px band where the desktop layout is still showing but two columns
   have stopped fitting. */
@media (max-width: 900px){
  .gsc-qi-two-grid, .gsc-qi-three-grid, .gsc-pt-two-grid{ grid-template-columns:1fr !important; }
}

/* Genuinely separate mobile body content (not a reflow of the desktop
   markup) for pages whose design calls for it — e.g. Notary Services.
   Same 880px breakpoint as the nav switch above, so both flip together. */
.gsc-mobile-only{ display:none; }
@media (max-width: 880px){
  .gsc-desktop-only{ display:none !important; }
  .gsc-mobile-only{ display:block; }
}
