/* ============================================================
   Networkfish — visual enhancement layer (non-destructive)
   Polishes the cloned theme + adds a landing-page component
   system. Brand: navy #002440 · mint #5cc9a9 · ink #36424a
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --nf-navy: #002440;
  --nf-navy-2: #0a3354;
  --nf-mint: #5cc9a9;
  --nf-mint-d: #3fae8d;
  --nf-orange: #ff9546;
  --nf-ink: #36424a;
  --nf-grey: #5d6b73;
  --nf-line: #e6e9ec;
  --nf-light: #f6f9f8;
}

/* Theme asks for Barlow but never loaded it — restore everywhere. */
body { font-family: "Barlow", system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { transition: color .2s ease; }

/* =========================================================
   FIX: empty right sidebar (no-sidebar pages waste 1/3 width)
   ========================================================= */
body.no-sidebar:not(.home) .site-main .col-lg-4 { display: none; }

/* article pages (service pages, single posts): centre the column */
body.no-sidebar.single .site-main > .container > .row > .col-lg-8,
body.no-sidebar.page:not(.home) .site-main > .container > .row > .col-lg-8 {
  flex: 0 0 100%;
  max-width: 880px;
  margin: 0 auto;
}
/* blog/archive listings: let the card grid use the full width */
body.blog .site-main > .container > .row > .col-lg-8,
body.archive .site-main > .container > .row > .col-lg-8 {
  flex: 0 0 100%;
  max-width: 100%;
}

/* =========================================================
   CONTENT TYPOGRAPHY (service pages + single posts)
   ========================================================= */
body:not(.home) .site-main:not(.nf-landing) { padding: 3.5rem 0 4.5rem; }

body:not(.home) .site-main h1.entry-title,
body:not(.home) .site-main h1.page-title {
  color: var(--nf-navy);
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1.15;
  margin: 0 0 1.3rem;
  padding-bottom: 0.9rem;
  position: relative;
}
body:not(.home) .site-main h1.entry-title::after,
body:not(.home) .site-main h1.page-title::after {
  content: ""; display: block; width: 66px; height: 4px; border-radius: 2px;
  background: var(--nf-mint); position: absolute; left: 0; bottom: 0;
}
@media (min-width: 768px) {
  body:not(.home) .site-main h1.entry-title,
  body:not(.home) .site-main h1.page-title { font-size: 2.7rem; }
}

body:not(.home) .site-main .wp-post-image {
  border-radius: 12px;
  box-shadow: 0 22px 48px -28px rgba(0, 36, 64, 0.5);
  margin: 0.4rem 0 2.2rem;
  width: 100%;
}

.entry-content { color: var(--nf-ink); font-size: 1.07rem; line-height: 1.78; }
.entry-content p { margin: 0 0 1.15em; }
.entry-content p.has-text-align-center { color: #9aa4ab; font-size: 0.85rem; }
.entry-content h2,
.entry-content h2.wp-block-heading {
  color: var(--nf-navy); font-weight: 700; font-size: 1.55rem; line-height: 1.3;
  margin: 2.6rem 0 0.7rem; padding-left: 0.95rem; border-left: 3px solid var(--nf-mint);
}
.entry-content h3 { color: var(--nf-navy); font-weight: 600; margin: 1.8rem 0 0.6rem; }
.entry-content strong { color: #16242e; }
.entry-content a { color: #1f6feb; border-bottom: 1px solid rgba(31,111,235,0.25); }
.entry-content a:hover { color: var(--nf-mint-d); border-color: var(--nf-mint); }
.entry-content ul { padding-left: 1.1rem; }
.entry-content ul li { margin-bottom: 0.45em; line-height: 1.65; }

/* =========================================================
   BLOG / ARCHIVE CARDS  (.col > .blog-item > article.post)
   ========================================================= */
body.blog .blog-list, body.archive .blog-list { margin-top: 1.5rem; }
body.blog .blog-list > [class*="col-"],
body.archive .blog-list > [class*="col-"] { margin-bottom: 1.8rem; display: flex; }

.blog-item {
  background: #fff;
  border: 1px solid var(--nf-line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.blog-item:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 26px 52px -30px rgba(0,36,64,.42); }
.blog-item article.post { display: flex; flex-direction: column; height: 100%; }

.blog-item .thumb { margin: 0; overflow: hidden; }
.blog-item .thumb a { display: block; }
.blog-item .thumb img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform .5s ease; }
.blog-item:hover .thumb img { transform: scale(1.06); }

.blog-item a.more > h3 {
  color: var(--nf-navy);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.32;
  text-transform: none;        /* theme uppercased these; sentence case reads better */
  margin: 1.15rem 1.3rem 0.55rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-item a.more:hover > h3 { color: var(--nf-mint-d); }
.blog-item .excerpt { padding: 0 1.3rem; }
.blog-item .excerpt p {
  color: var(--nf-grey); font-size: 0.94rem; line-height: 1.6; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-item footer { padding: 1.1rem 1.3rem 1.35rem; margin-top: auto; border: 0; }
.blog-item footer a.more {
  display: inline-flex; align-items: center; gap: .4em;
  color: var(--nf-mint-d); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em;
}
.blog-item footer a.more::after { content: "→"; transition: transform .2s ease; }
.blog-item footer a.more:hover { color: var(--nf-navy); }
.blog-item footer a.more:hover::after { transform: translateX(3px); }

/* pagination */
body.blog .posts-navigation, body.archive .posts-navigation { margin-top: 1rem; display: flex; justify-content: center; }
body.blog .posts-navigation .nav-links, body.archive .posts-navigation .nav-links { display: flex; gap: 1rem; }
body.blog .posts-navigation a, body.archive .posts-navigation a {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--nf-navy); color: #fff; padding: .7rem 1.4rem; border-radius: 8px;
  font-weight: 600; font-size: .9rem;
}
body.blog .posts-navigation a:hover, body.archive .posts-navigation a:hover { background: var(--nf-mint-d); }
body.blog .posts-navigation svg, body.archive .posts-navigation svg { width: 16px; height: 16px; }

/* =========================================================
   FORM FIELDS (Contact Form 7)
   ========================================================= */
.wpcf7 input:not([type=submit]):not([type=checkbox]):not([type=radio]),
.wpcf7 textarea, .wpcf7 select {
  background: #fff; border: 1px solid var(--nf-line); border-radius: 8px;
  padding: 0.7rem 0.85rem; font-family: "Barlow", sans-serif; font-size: 1rem; color: var(--nf-ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.wpcf7 input:not([type=submit]):focus, .wpcf7 textarea:focus, .wpcf7 select:focus {
  border-color: var(--nf-mint); box-shadow: 0 0 0 3px rgba(92,201,169,0.18); outline: none;
}
.wpcf7 label { font-weight: 500; color: var(--nf-navy); }
.wpcf7 input[type=submit] {
  background: var(--nf-mint); border: none; color: var(--nf-navy); font-weight: 700; letter-spacing: 0.06em;
  padding: 0.75rem 2rem; border-radius: 8px; cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.wpcf7 input[type=submit]:hover { background: var(--nf-mint-d); color: #fff; transform: translateY(-1px); box-shadow: 0 12px 26px -12px rgba(92,201,169,0.6); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--nf-mint); outline-offset: 2px;
}

/* =========================================================
   nf-LANDING — component system for designed pages (CE etc.)
   ========================================================= */
.site-main.nf-landing { padding: 0; }
.nf-landing .container { width: min(1140px, 92vw); margin: 0 auto; }
.nf-landing .nf-narrow { max-width: 760px; }

.nf-eyebrow { display: inline-flex; align-items: center; gap: .6em; font-weight: 700; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--nf-mint-d); margin-bottom: 1rem; }
.nf-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--nf-mint); }

.nf-section { padding: 5rem 0; }
.nf-bg-light { background: var(--nf-light); border-top: 1px solid var(--nf-line); border-bottom: 1px solid var(--nf-line); }
.nf-head { max-width: 640px; margin-bottom: 2.6rem; }
.nf-head.center { margin: 0 auto 2.8rem; text-align: center; }
.nf-head.center .nf-eyebrow { justify-content: center; }
.nf-section h2, .nf-head h2 { font-family: "Barlow", sans-serif; color: var(--nf-navy); font-weight: 700; font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.12; margin: 0 0 .9rem; }
.nf-section .nf-narrow > p { color: var(--nf-ink); font-size: 1.08rem; line-height: 1.8; margin: 0 0 1.1rem; }
.nf-head > p { color: var(--nf-grey); font-size: 1.05rem; line-height: 1.6; }

/* hero */
/* pull the hero up under the fixed header (div#page has padding-top:5.2rem)
   so the navy fills the strip and there's no white gap below the nav */
.site-main.nf-landing .nf-hero { margin-top: -5.2rem; padding-top: 8.5rem; }
.nf-hero { position: relative; color: #fff; padding: 9rem 0 4.5rem; overflow: hidden;
  background: radial-gradient(110% 130% at 88% -10%, rgba(92,201,169,.18), transparent 55%), linear-gradient(160deg, var(--nf-navy-2), var(--nf-navy) 80%); }
.nf-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 26px 26px; opacity: .5; pointer-events: none; }
.nf-hero .container { position: relative; z-index: 2; }
.nf-breadcrumb { font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: 1.1rem; }
.nf-breadcrumb a { color: rgba(255,255,255,.78); }
.nf-breadcrumb a:hover { color: var(--nf-mint); }
.nf-hero h1 { font-family: "Barlow", sans-serif; font-weight: 700; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.02; letter-spacing: -.01em; margin: 0 0 1.1rem; max-width: 16ch; }
.nf-hero h1 span { color: var(--nf-mint); }
.nf-hero .nf-lead { color: rgba(255,255,255,.82); font-size: 1.2rem; line-height: 1.6; max-width: 52ch; font-weight: 300; margin: 0 0 2rem; }
.nf-hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* buttons */
.nf-btn { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: .95rem; padding: .8em 1.6em; border-radius: 8px; border: 2px solid transparent; cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease; }
.nf-btn-primary { background: var(--nf-mint); color: var(--nf-navy); }
.nf-btn-primary:hover { background: var(--nf-mint-d); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(92,201,169,.55); }
.nf-btn-ghost { border-color: rgba(255,255,255,.3); color: #fff; }
.nf-btn-ghost:hover { border-color: var(--nf-mint); color: var(--nf-mint); transform: translateY(-2px); }

/* grids + cards */
.nf-grid { display: grid; gap: 1.4rem; }
.nf-grid-5 { grid-template-columns: repeat(5, 1fr); }
.nf-grid-3 { grid-template-columns: repeat(4, 1fr); }
.nf-grid-2 { grid-template-columns: repeat(2, 1fr); }
.nf-card { background: #fff; border: 1px solid var(--nf-line); border-radius: 14px; padding: 1.8rem 1.6rem; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.nf-bg-light .nf-card { box-shadow: 0 1px 0 rgba(0,0,0,.01); }
.nf-card:hover { transform: translateY(-5px); border-color: transparent; box-shadow: 0 24px 48px -30px rgba(0,36,64,.4); }
.nf-card .nf-ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: rgba(92,201,169,.14); color: var(--nf-mint-d); margin-bottom: 1.1rem; }
.nf-card .nf-ico svg { width: 24px; height: 24px; }
.nf-card .nf-step-n { font-family: "Barlow"; font-weight: 700; font-size: 1.5rem; color: var(--nf-mint-d); }
.nf-card h3 { color: var(--nf-navy); font-size: 1.12rem; font-weight: 600; margin: 0 0 .5rem; line-height: 1.25; }
.nf-card p { color: var(--nf-grey); font-size: .92rem; line-height: 1.55; margin: 0; }
.nf-card-lg { padding: 2.2rem; }
.nf-card-lg h3 { font-size: 1.4rem; }
.nf-card-lg p { font-size: 1rem; }
.nf-card-accent { background: linear-gradient(160deg, var(--nf-navy-2), var(--nf-navy)); border-color: transparent; }
.nf-card-accent h3 { color: #fff; }
.nf-card-accent p { color: rgba(255,255,255,.8); }
.nf-card-accent .nf-tagline { color: var(--nf-mint); font-weight: 700; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }
.nf-card .nf-tagline { color: var(--nf-mint-d); font-weight: 700; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: .6rem; }

/* steps */
.nf-steps { list-style: none; counter-reset: s; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.nf-steps li { counter-increment: s; position: relative; padding: 1.2rem 1.4rem 1.2rem 4rem; background: #fff; border: 1px solid var(--nf-line); border-radius: 12px; color: var(--nf-grey); line-height: 1.6; }
.nf-steps li::before { content: counter(s); position: absolute; left: 1.1rem; top: 1.1rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--nf-navy); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .95rem; }
.nf-steps li strong { color: var(--nf-navy); }

/* CTA */
.nf-cta { background: linear-gradient(160deg, var(--nf-navy-2), var(--nf-navy)); color: #fff; padding: 4.5rem 0; text-align: center; }
.nf-cta h2 { font-family: "Barlow"; font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0 0 .9rem; }
.nf-cta h2 span { color: var(--nf-mint); }
.nf-cta p { color: rgba(255,255,255,.78); max-width: 46ch; margin: 0 auto 1.8rem; font-size: 1.05rem; }

/* legal pages (privacy / terms): navy hero + readable body */
.nf-landing.nf-pagehero .container { padding: 3.5rem 0 4.5rem; }
.nf-landing.nf-pagehero .entry-header { display: none; }

/* blog listing hero */
body.blog .site-main.nf-landing { padding: 0; }
body.blog .page-header { display: none; }
body.blog .site-main > .container { padding: 3.4rem 0 4.5rem; }
.nf-hero .nf-eyebrow { color: var(--nf-mint); }
.nf-hero .nf-eyebrow::before { background: var(--nf-mint); }
.nf-hero-blog::before {
  content: ""; position: absolute; top: -30%; right: -8%; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(92,201,169,.18), transparent 65%);
  border-radius: 50%; pointer-events: none;
}
.nf-tags { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.7rem; position: relative; z-index: 2; }
.nf-tags span {
  font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.05);
  padding: .42em .95em; border-radius: 100px; transition: border-color .2s ease, color .2s ease;
}
.nf-tags span:hover { border-color: var(--nf-mint); color: var(--nf-mint); }

/* contact page */
.nf-contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2.6rem; align-items: start; }
.nf-contact-info h2 { font-family: "Barlow"; color: var(--nf-navy); font-weight: 700; font-size: clamp(1.7rem, 3.2vw, 2.3rem); line-height: 1.12; margin: 0 0 .8rem; }
.nf-contact-info > p { color: var(--nf-grey); font-size: 1.05rem; line-height: 1.65; margin: 0 0 1.8rem; max-width: 38ch; }
.nf-contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .2rem; }
.nf-contact-list li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 0; border-top: 1px solid var(--nf-line); }
.nf-contact-list li:last-child { border-bottom: 1px solid var(--nf-line); }
.nf-contact-list .nf-ico { flex: none; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(92,201,169,.14); color: var(--nf-mint-d); }
.nf-contact-list .nf-ico svg { width: 20px; height: 20px; }
.nf-contact-list b { display: block; color: var(--nf-navy); font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .15rem; }
.nf-contact-list a { color: var(--nf-ink); border-bottom: 1px solid transparent; }
.nf-contact-list a:hover { color: var(--nf-mint-d); }
.nf-contact-list span.val { color: var(--nf-ink); }

.nf-form-card { background: #fff; border: 1px solid var(--nf-line); border-radius: 16px; padding: 2.2rem; box-shadow: 0 24px 56px -34px rgba(0,36,64,.4); }
.nf-form-card .wpcf7 { margin: 0; }
.nf-form-card .wpcf7 p { margin: 0 0 1rem; }
.nf-form-card .wpcf7 label { display: block; width: 100%; font-weight: 600; color: var(--nf-navy); font-size: .82rem; letter-spacing: .03em; }
.nf-form-card .wpcf7 input:not([type=submit]), .nf-form-card .wpcf7 textarea { width: 100%; margin-top: .4rem; }
.nf-form-card .wpcf7-submit { width: auto; min-width: 180px; }

/* map / business card */
.nf-map-wrap { border: 1px solid var(--nf-line); border-radius: 16px; overflow: hidden; }
.bp-contact-card { display: block; font-style: normal; }
.bp-map { width: 100%; height: 420px; background: #e9eef0; }
.bp-contact-card .bp-name { font-weight: 700; color: var(--nf-navy); font-size: 1.05rem; }
.bp-contact-card .bp-address { color: var(--nf-grey); line-height: 1.6; margin: .4rem 0 .8rem; }
.bp-contact-card .bp-directions a, .bp-contact-card .bp-phone a, .bp-contact-card .bp-contact a { color: var(--nf-mint-d); font-weight: 600; }
.nf-officecard { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0; border: 1px solid var(--nf-line); border-radius: 16px; overflow: hidden; background: #fff; }
.nf-officecard .nf-officecard-info { padding: 2rem; }
.nf-officecard .nf-map-col { min-height: 320px; }
.nf-officecard .bp-map { height: 100%; min-height: 320px; }

@media (max-width: 992px) {
  .nf-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .nf-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .nf-contact-grid { grid-template-columns: 1fr; }
  .nf-officecard { grid-template-columns: 1fr; }
  .nf-officecard .nf-map-col { min-height: 300px; }
}
@media (max-width: 640px) {
  .nf-grid-5, .nf-grid-3, .nf-grid-2 { grid-template-columns: 1fr; }
  .nf-section { padding: 3.5rem 0; }
  .nf-hero { padding: 7.5rem 0 3.5rem; }
}

/* contact: embedded map fills its column; hide the theme JS map placeholder */
.nf-officecard .bp-map { display: none; }
.nf-officecard .nf-map-col { min-height: 340px; }
.nf-officecard .nf-map-col iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.nf-officecard .bp-contact-card .bp-directions, .nf-officecard .bp-contact-card .bp-phone, .nf-officecard .bp-contact-card .bp-contact { margin-top: .5rem; }
