/*
Theme Name: Northwoods Web Services Pro
Theme URI: https://northwoodswebservices.com/
Author: Andrew Hainline
Author URI: https://northwoodswebservices.com/about/
Description: A fast, accessible, conversion-focused block theme for Northwoods Web Services, with local SEO foundations, transparent service pricing, secure lead capture, and full-site editing support.
Version: 4.0.1
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: northwoods-pro
Tags: block-theme, full-site-editing, custom-logo, editor-style, wide-blocks, accessibility-ready
*/

:root {
  --nws-forest-950: #0d281d;
  --nws-forest-900: #123426;
  --nws-forest-800: #1a4934;
  --nws-forest-700: #246247;
  --nws-forest-100: #e6f0e9;
  --nws-cream-50: #fdfbf6;
  --nws-cream-100: #f7f2e8;
  --nws-cream-200: #eee5d5;
  --nws-copper-500: #c87532;
  --nws-copper-600: #a85d24;
  --nws-ink: #16221c;
  --nws-muted: #58665e;
  --nws-border: #d9dfd9;
  --nws-white: #ffffff;
  --nws-danger: #9f351f;
  --nws-success: #17653b;
  --nws-radius-sm: 12px;
  --nws-radius-md: 20px;
  --nws-radius-lg: 30px;
  --nws-shadow-sm: 0 10px 30px rgba(13, 40, 29, .08);
  --nws-shadow-lg: 0 28px 80px rgba(13, 40, 29, .16);
  --nws-content: 1180px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--nws-cream-50);
  color: var(--nws-ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body, button, input, select, textarea { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
img, svg { max-width: 100%; height: auto; }
a { text-underline-offset: .18em; text-decoration-thickness: .08em; }
.wp-site-blocks { overflow-x: clip; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--nws-copper-500);
  outline-offset: 3px;
}

.nws-skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 99999;
  background: var(--nws-white);
  color: var(--nws-forest-950);
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: var(--nws-shadow-sm);
  font-weight: 800;
}
.nws-skip-link:focus { top: 16px; }

.nws-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(217, 223, 217, .84);
  background: rgba(253, 251, 246, .92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.admin-bar .nws-header { top: 32px; }
.nws-brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--nws-forest-800), var(--nws-forest-950));
  color: var(--nws-white);
  box-shadow: 0 10px 24px rgba(13, 40, 29, .2);
  font-size: 1.3rem;
  line-height: 1;
}
.nws-header .wp-block-navigation-item__content { text-decoration: none; }
.nws-header .wp-block-navigation-item__content:hover { color: var(--nws-forest-700); }
.nws-header-cta .wp-block-button__link { min-height: 44px; display: inline-flex; align-items: center; }

.nws-section { position: relative; }
.nws-section-muted { background: var(--nws-cream-100); }
.nws-section-dark {
  color: var(--nws-white);
  background:
    radial-gradient(circle at 12% 8%, rgba(200,117,50,.24), transparent 32%),
    radial-gradient(circle at 92% 80%, rgba(102,163,124,.16), transparent 36%),
    linear-gradient(145deg, var(--nws-forest-950), var(--nws-forest-800));
}
.nws-section-dark :where(h1,h2,h3,h4,p,li) { color: inherit; }
.nws-section-dark p, .nws-section-dark li { color: rgba(255,255,255,.82); }

.nws-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(200,117,50,.18), transparent 30%),
    radial-gradient(circle at 90% 28%, rgba(36,98,71,.15), transparent 34%),
    linear-gradient(135deg, #fdfbf6 0%, #f4f7f1 50%, #e7efe8 100%);
}
.nws-hero::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -210px;
  top: -180px;
  border-radius: 50%;
  border: 76px solid rgba(36,98,71,.07);
}
.nws-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(200,117,50,.13);
  color: #8c4b1b;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nws-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.nws-hero-title { max-width: 820px; text-wrap: balance; }
.nws-lede { max-width: 720px; font-size: clamp(1.08rem, 1.8vw, 1.3rem); color: var(--nws-muted); }
.nws-microcopy { color: var(--nws-muted); font-size: .92rem; }

.nws-browser {
  position: relative;
  min-height: 440px;
  padding: 18px;
  border: 1px solid rgba(217,223,217,.9);
  border-radius: 30px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--nws-shadow-lg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.nws-browser-bar { display: flex; align-items: center; gap: 7px; padding: 2px 2px 16px; }
.nws-browser-dot { width: 10px; height: 10px; border-radius: 50%; background: #cfd8d1; }
.nws-browser-url { height: 26px; flex: 1; border-radius: 999px; background: #edf1ec; margin-left: 8px; }
.nws-browser-screen {
  min-height: 380px;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(145deg, var(--nws-forest-950), var(--nws-forest-700));
  padding: clamp(24px, 5vw, 46px);
  color: var(--nws-white);
}
.nws-browser-screen h3 { color: var(--nws-white); max-width: 380px; font-size: clamp(1.8rem, 4vw, 3rem); margin: 24px 0 14px; }
.nws-browser-screen p { color: rgba(255,255,255,.75); max-width: 360px; }
.nws-browser-pill { display: inline-block; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 7px 10px; font-size: .78rem; }
.nws-browser-button { display: inline-flex; margin-top: 20px; background: var(--nws-copper-500); padding: 11px 15px; border-radius: 999px; color: var(--nws-forest-950); font-weight: 900; }
.nws-floating-card {
  position: relative;
  width: min(320px, 100%);
  margin: 16px 0 0 auto;
  padding: 16px 18px;
  border: 1px solid var(--nws-border);
  border-radius: 18px;
  background: var(--nws-white);
  box-shadow: var(--nws-shadow-sm);
}
.nws-floating-card strong { display: block; font-size: 1.05rem; }
.nws-floating-card span { color: var(--nws-muted); font-size: .88rem; }

.nws-trust-strip {
  position: relative;
  margin-top: -34px;
  z-index: 5;
}
.nws-trust-card {
  background: var(--nws-white);
  border: 1px solid var(--nws-border);
  border-radius: 22px;
  box-shadow: var(--nws-shadow-sm);
}
.nws-trust-item { display: flex; gap: 12px; align-items: flex-start; }
.nws-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: var(--nws-forest-100);
  color: var(--nws-forest-800);
  font-weight: 900;
}

.nws-card {
  height: 100%;
  background: var(--nws-white);
  border: 1px solid var(--nws-border);
  border-radius: var(--nws-radius-md);
  box-shadow: var(--nws-shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.nws-card:hover { transform: translateY(-4px); box-shadow: var(--nws-shadow-lg); border-color: #c7d1c9; }
.nws-card h3 { margin-top: 16px; }
.nws-card p:last-child { margin-bottom: 0; }
.nws-card-link { font-weight: 850; text-decoration: none; }
.nws-card-link::after { content: " →"; }

.nws-price-card {
  height: 100%;
  position: relative;
  background: var(--nws-white);
  border: 1px solid var(--nws-border);
  border-radius: 26px;
  box-shadow: var(--nws-shadow-sm);
}
.nws-price-card-featured {
  border: 2px solid var(--nws-forest-700);
  box-shadow: var(--nws-shadow-lg);
}
.nws-badge {
  display: inline-flex;
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--nws-copper-500);
  color: var(--nws-forest-950);
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.nws-price { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1; letter-spacing: -.05em; font-weight: 950; color: var(--nws-forest-900); }
.nws-price small { font-size: .95rem; letter-spacing: normal; color: var(--nws-muted); font-weight: 700; }
.nws-check-list { list-style: none; padding-left: 0; }
.nws-check-list li { position: relative; padding-left: 30px; margin: 11px 0; }
.nws-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: .08em;
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--nws-forest-700);
  color: var(--nws-white);
  font-size: .74rem;
  font-weight: 900;
}
.nws-divider { border-top: 1px solid var(--nws-border); }

.nws-process-card { position: relative; }
.nws-step {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--nws-forest-800);
  color: var(--nws-white);
  font-weight: 950;
}

.nws-callout {
  overflow: hidden;
  border-radius: var(--nws-radius-lg);
  color: var(--nws-white);
  background:
    radial-gradient(circle at 10% 10%, rgba(200,117,50,.28), transparent 32%),
    linear-gradient(135deg, var(--nws-forest-950), var(--nws-forest-700));
  box-shadow: var(--nws-shadow-lg);
}
.nws-callout :where(h2,h3,p) { color: inherit; }
.nws-callout p { color: rgba(255,255,255,.8); }

.nws-page-hero {
  background:
    radial-gradient(circle at 90% 20%, rgba(36,98,71,.13), transparent 36%),
    linear-gradient(135deg, var(--nws-cream-50), var(--nws-cream-100));
  border-bottom: 1px solid var(--nws-border);
}
.nws-narrow { max-width: 820px; }
.nws-fine-print { font-size: .9rem; color: var(--nws-muted); }
.nws-table-wrap { overflow-x: auto; border: 1px solid var(--nws-border); border-radius: 18px; background: var(--nws-white); }
.nws-table-wrap table { border-collapse: collapse; width: 100%; min-width: 720px; }
.nws-table-wrap th, .nws-table-wrap td { padding: 16px 18px; border-bottom: 1px solid var(--nws-border); text-align: left; vertical-align: top; }
.nws-table-wrap th { background: var(--nws-cream-100); }
.nws-table-wrap tr:last-child td { border-bottom: 0; }

.nws-faq details {
  border: 1px solid var(--nws-border);
  border-radius: 16px;
  background: var(--nws-white);
  padding: 0 18px;
}
.nws-faq details + details { margin-top: 12px; }
.nws-faq summary { cursor: pointer; font-weight: 850; padding: 18px 28px 18px 0; position: relative; }
.nws-faq summary::after { content: "+"; position: absolute; right: 0; font-size: 1.35rem; top: 13px; }
.nws-faq details[open] summary::after { content: "–"; }
.nws-faq details p { margin-top: 0; color: var(--nws-muted); }

.nws-lead-wrap {
  background: var(--nws-white);
  border: 1px solid var(--nws-border);
  border-radius: 26px;
  box-shadow: var(--nws-shadow-lg);
  padding: clamp(22px, 4vw, 36px);
}
.nws-lead-form { display: grid; gap: 16px; }
.nws-form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.nws-field label { display: block; margin-bottom: 7px; font-weight: 850; }
.nws-required { color: var(--nws-danger); }
.nws-lead-form :is(input, select, textarea) {
  width: 100%;
  min-height: 50px;
  border: 1px solid #cbd4cd;
  border-radius: 13px;
  background: #fffefb;
  color: var(--nws-ink);
  padding: 12px 13px;
  font: inherit;
}
.nws-lead-form textarea { min-height: 150px; resize: vertical; }
.nws-lead-form :is(input, select, textarea):focus { border-color: var(--nws-forest-700); box-shadow: 0 0 0 4px rgba(36,98,71,.12); outline: none; }
.nws-checkbox { display: flex; gap: 10px; align-items: flex-start; }
.nws-checkbox input { width: 20px; min-height: 20px; margin-top: 3px; }
.nws-submit {
  width: fit-content;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  padding: 13px 21px;
  background: var(--nws-forest-800);
  color: var(--nws-white);
  font-weight: 900;
  cursor: pointer;
}
.nws-submit:hover { background: var(--nws-forest-950); }
.nws-form-note { margin: 0; color: var(--nws-muted); font-size: .9rem; }
.nws-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.nws-alert { border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; font-weight: 750; }
.nws-alert-success { background: #e8f6ed; border: 1px solid #b9dec6; color: var(--nws-success); }
.nws-alert-error { background: #fff0eb; border: 1px solid #efc3b4; color: var(--nws-danger); }

.wp-block-button__link { transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(13,40,29,.16); }
.nws-button-outline .wp-block-button__link { background: transparent; border: 1px solid var(--nws-forest-700); color: var(--nws-forest-800); }
.nws-button-light .wp-block-button__link { background: var(--nws-white); color: var(--nws-forest-950); }

.nws-footer { border-top: 1px solid rgba(255,255,255,.1); }
.nws-footer a { color: inherit; }
.nws-footer .wp-block-navigation-item__content { text-decoration: none; }

@media (max-width: 960px) {
  .nws-browser { margin-top: 20px; min-height: 390px; }
  .nws-browser-screen { min-height: 330px; }
  .nws-floating-card { width: min(320px, 100%); }
}
@media (max-width: 782px) {
  .admin-bar .nws-header { top: 46px; }
  .nws-form-row { grid-template-columns: 1fr; }
  .nws-trust-strip { margin-top: -18px; }
}
@media (max-width: 600px) {
  .admin-bar .nws-header { top: 0; }
  .nws-header { position: relative; }
  .nws-browser { min-height: 340px; padding: 12px; }
  .nws-browser-screen { min-height: 300px; padding: 24px; }
  .nws-floating-card { width: 100%; margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
.wp-block-site-logo + .nws-brand-mark { display: none; }

/* Keep custom column proportions consistent in the editor and front end. */
.wp-block-columns > .wp-block-column[style*="flex-basis"] { flex-grow: 0; }
.nws-browser-screen h3 { overflow-wrap: anywhere; }
