/* New Flint static site — MSR-inspired layout; New Flint navy/orange (orange prominent) */
:root {
  --primary: #00235A;
  --primary-hover: #001A44;
  --primary-deep: #001A44;
  --primary-mid: #1A3F6E;
  --primary-soft: #EEF2F8;
  --primary-wash: #E8EDF5;
  --orange: #FF5E14;
  --orange-hover: #E65410;
  --accent: #FF5E14;
  --accent-coral: #FF5E14;
  --accent-coral-hover: #E65410;
  --soft-blue: #8FA3C4;
  --cream: #F8F3EC;
  --cream-warm: #F7F4F0;
  --bg: #FCFCFC;
  --white: #FFFFFF;
  --text: #414242;
  --text-muted: #5D605F;
  --text-dim: #4D4F4E;
  --border: #EBEBEB;
  --border-strong: #D6D6D6;
  --shadow: 0 8px 28px rgba(0, 35, 90, 0.10);
  --radius: 12px;
  --radius-pill: 999px;
  --max: 1160px;
  --header-h: 76px;
  --font-sans: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--orange); }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--primary-deep);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: 1.25rem; font-family: var(--font-sans); font-weight: 600; color: var(--primary); }
p { margin: 0 0 1em; color: var(--text-dim); }
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.text-accent { color: var(--orange) !important; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 0.75rem;
  font-family: var(--font-sans);
}

/* Orange accent bar under section / page headings */
.section-head h2,
.page-hero h1,
.split > div > h2 {
  position: relative;
  padding-bottom: 0.55rem;
  margin-bottom: 0.85rem;
}
.section-head h2::after,
.page-hero h1::after,
.split > div > h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
  margin-top: 0.65rem;
}
.section-head.center h2::after { margin-inline: auto; }

/* Utility strip + thin orange bar */
.top-utility {
  background: var(--orange);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
}
.top-utility .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.35rem 1.25rem;
  padding-top: 0.45rem; padding-bottom: 0.45rem;
}
.top-utility a { color: #fff; }
.top-utility a:hover { color: var(--primary-deep); }
.top-utility .util-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.orange-bar {
  height: 5px;
  background: var(--orange);
  width: 100%;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 94, 20, 0.35);
  height: var(--header-h);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 0.15rem; }
.nav a {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
}
.nav a:hover, .nav a.active {
  color: var(--orange);
  background: rgba(255, 94, 20, 0.08);
}
.nav-cta { margin-left: 0.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.15s ease;
  font-family: var(--font-sans);
  text-decoration: none !important;
}
/* Primary CTAs = orange site-wide */
.btn-primary,
.btn-coral {
  background: var(--orange);
  color: #fff !important;
}
.btn-primary:hover,
.btn-coral:hover {
  background: var(--orange-hover);
  color: #fff !important;
}
.btn-navy {
  background: var(--primary);
  color: #fff !important;
}
.btn-navy:hover {
  background: var(--primary-hover);
  color: #fff !important;
}
.btn-outline {
  background: transparent;
  border-color: var(--orange);
  color: var(--orange) !important;
}
.btn-outline:hover {
  background: rgba(255, 94, 20, 0.1);
  color: var(--orange-hover) !important;
}
.btn-light { background: #fff; color: var(--primary) !important; }
.btn-light:hover { background: var(--cream); color: var(--primary-deep) !important; }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--border-strong);
  border-radius: 8px; padding: 0.45rem 0.65rem; font-size: 1.1rem; color: var(--primary);
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 55%, #0A3A6E 100%);
  color: #fff;
  overflow: hidden;
  min-height: 520px;
  display: flex; align-items: center;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(255,94,20,0.45), transparent 42%),
    radial-gradient(ellipse at 10% 90%, rgba(255,94,20,0.12), transparent 40%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; align-items: center;
  padding: 4.5rem 0;
}
.hero h1 { color: #fff; margin-bottom: 0.7rem; }
.hero h1 .text-accent { color: var(--orange) !important; }
.hero p.lead { color: rgba(255,255,255,0.9); font-size: 1.15rem; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.hero-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 1.25rem;
  backdrop-filter: blur(6px);
}
.hero-card img { border-radius: 8px; width: 100%; height: 220px; object-fit: cover; margin-bottom: 0.9rem; }
.hero-card .stat-row { display: flex; gap: 1rem; }
.hero-card .stat strong { display: block; font-size: 1.4rem; color: var(--orange); font-family: var(--font-serif); }
.hero-card .stat span { font-size: 0.8rem; color: rgba(255,255,255,0.85); }

/* Sections */
.section { padding: 5rem 0; }
.section.cream { background: var(--cream); }
.section.wash { background: var(--primary-wash); }
.section.soft { background: var(--primary-soft); }
.section.white { background: var(--white); }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head p { font-size: 1.05rem; }

/* Cards / grids */
.grid-4, .grid-3, .grid-2 { display: grid; gap: 1.25rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  height: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover {
  border-left-color: var(--orange-hover);
  box-shadow: 0 10px 32px rgba(255, 94, 20, 0.16);
  transform: translateY(-2px);
}
.card .icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--orange); color: #fff;
  display: grid; place-items: center; font-size: 1.2rem; font-weight: 800;
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.4rem; }
.card p { margin-bottom: 0; font-size: 0.95rem; }
.card a.more { display: inline-block; margin-top: 0.9rem; font-weight: 600; font-size: 0.9rem; color: var(--orange); }
.card a.more:hover { color: var(--orange-hover); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.step {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  padding: 1.5rem;
  position: relative;
}
.step .num {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--orange); color: #fff;
  display: grid; place-items: center; font-weight: 800; margin-bottom: 0.9rem;
}

/* Split */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center;
}
.split img, .split .ph {
  border-radius: var(--radius); width: 100%; min-height: 280px; object-fit: cover;
}
.ph {
  background: linear-gradient(145deg, var(--primary-wash), var(--cream));
  border: 1px dashed var(--border-strong);
  display: grid; place-items: center; text-align: center; color: var(--text-muted);
  padding: 2rem; font-size: 0.95rem;
}

/* Stats — navy with orange numbers */
.stats {
  background: var(--primary);
  color: #fff;
  padding: 3rem 0;
  border-top: 4px solid var(--orange);
  border-bottom: 4px solid var(--orange);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stats strong { display: block; font-size: 2.15rem; font-family: var(--font-serif); color: var(--orange); }
.stats span { color: rgba(255,255,255,0.9); font-size: 0.92rem; }

/* Coverage chips — orange */
.chip-wrap { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  background: rgba(255, 94, 20, 0.08);
  border: 1.5px solid var(--orange);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem; font-weight: 700; color: var(--orange);
}
.chip.accent {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* Project cards */
.project-card .ph { min-height: 180px; border-radius: 8px; margin-bottom: 0.9rem; }
.project-card .tag {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 700; color: var(--orange); margin-bottom: 0.35rem;
}

/* Page hero (inner) */
.page-hero {
  background: linear-gradient(120deg, var(--primary-soft), var(--cream));
  padding: 3.2rem 0 2.6rem;
  border-bottom: 1px solid var(--border);
  border-top: 3px solid var(--orange);
}
.page-hero h1 { margin-bottom: 0.4rem; }
.page-hero p { max-width: 40rem; margin: 0; }

/* Forms */
.form {
  display: grid; gap: 0.9rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.form label { font-size: 0.85rem; font-weight: 600; color: var(--text); display: grid; gap: 0.35rem; }
.form input, .form select, .form textarea {
  font: inherit; padding: 0.7rem 0.85rem; border: 1px solid var(--border-strong);
  border-radius: 8px; background: var(--bg); color: var(--text);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 2px solid rgba(255, 94, 20, 0.35);
  border-color: var(--orange);
}
.form textarea { min-height: 120px; resize: vertical; }
.form .note { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

/* Offices */
.office {
  border-left: 4px solid var(--orange);
  padding-left: 1rem; margin-bottom: 1.25rem;
}
.office strong { display: block; color: var(--primary); }

/* Footer */
.site-footer {
  background: var(--primary-deep);
  color: rgba(255,255,255,0.88);
  padding: 3.5rem 0 1.5rem;
  border-top: 5px solid var(--orange);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem;
}
.site-footer .logo img { height: 40px; margin-bottom: 1rem; }
.site-footer h4 {
  color: var(--orange); font-family: var(--font-sans); font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.9rem;
}
.site-footer a { color: rgba(255,255,255,0.82); display: block; padding: 0.25rem 0; font-size: 0.92rem; }
.site-footer a:hover { color: var(--orange); }
.site-footer p { color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.2rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem;
  font-size: 0.85rem; color: rgba(255,255,255,0.65);
}

/* Utilities */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li {
  position: relative; padding-left: 1.5rem; margin-bottom: 0.55rem; color: var(--text-dim);
}
.list-check li::before {
  content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 700;
}
/* Solid orange CTA band with navy button */
.cta-band {
  background: var(--orange);
  color: #fff; padding: 3rem 0; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.95); max-width: 36rem; margin: 0 auto 1.25rem; }
.cta-band .btn-coral,
.cta-band .btn-primary {
  background: var(--primary);
  color: #fff !important;
}
.cta-band .btn-coral:hover,
.cta-band .btn-primary:hover {
  background: var(--primary-hover);
  color: #fff !important;
}
.cta-band .btn-navy {
  background: var(--primary);
  color: #fff !important;
}
.cta-band .btn-navy:hover { background: var(--primary-hover); }

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .steps, .stats-grid, .footer-grid, .hero-grid, .split { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem 1.25rem; box-shadow: var(--shadow);
  }
  .nav-cta { margin-left: 0; margin-top: 0.5rem; }
  .menu-toggle { display: inline-flex; }
  .header-inner { position: relative; }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2, .steps, .stats-grid, .footer-grid, .hero-grid, .split {
    grid-template-columns: 1fr;
  }
  .hero { min-height: 0; }
  .hero-grid { padding: 3rem 0; }
  .top-utility .container { justify-content: center; text-align: center; }
}

/* Logo sizing */
.logo img { height: 48px; width: auto; }
.site-footer .logo img { height: 44px; }

/* Comparison table */
.compare-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.compare {
  width: 100%; border-collapse: collapse; background: #fff; font-size: 0.95rem;
}
.compare th, .compare td {
  padding: 0.95rem 1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top;
}
.compare thead th {
  background: var(--primary); color: #fff; font-family: var(--font-sans); font-weight: 600;
}
.compare thead th.hl { background: var(--orange); }
.compare tbody th { color: var(--primary); font-weight: 700; width: 22%; background: var(--primary-soft); }
.compare td.hl { background: rgba(255,94,20,0.06); font-weight: 600; color: var(--primary-deep); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: none; }

.photo-frame {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Project galleries */
.project-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.25rem; }
.project-card { cursor:pointer; padding:0; overflow:hidden; border-left:4px solid var(--orange); }
.project-card .pair {
  display:grid; grid-template-columns:1fr 1fr; gap:2px; background:#111;
}
.project-card .pair figure { margin:0; position:relative; aspect-ratio:4/3; overflow:hidden; }
.project-card .pair img { width:100%; height:100%; object-fit:cover; display:block; }
.project-card .pair .badge {
  position:absolute; left:8px; bottom:8px; background:rgba(0,35,90,.85); color:#fff;
  font-size:0.68rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  padding:0.25rem 0.5rem; border-radius:999px;
}
.project-card .body { padding:1rem 1.15rem 1.2rem; }
.project-card .body h3 { margin:0.15rem 0 0.35rem; }
.project-card .meta { font-size:0.85rem; color:var(--text-muted); margin:0; }
.project-card:hover { transform:translateY(-2px); }

/* Lightbox */
.lightbox {
  position:fixed; inset:0; z-index:100; background:rgba(0,26,68,.92);
  display:none; align-items:center; justify-content:center; padding:1.5rem;
}
.lightbox.open { display:flex; }
.lightbox-inner {
  background:#fff; border-radius:14px; width:min(960px,100%); max-height:92vh;
  overflow:auto; box-shadow:0 20px 60px rgba(0,0,0,.35);
}
.lightbox-head {
  display:flex; justify-content:space-between; align-items:flex-start; gap:1rem;
  padding:1.1rem 1.25rem; border-bottom:1px solid var(--border);
}
.lightbox-head h3 { margin:0; color:var(--primary); font-family:var(--font-sans); }
.lightbox-close {
  border:0; background:var(--primary-soft); color:var(--primary); width:36px; height:36px;
  border-radius:50%; font-size:1.2rem; cursor:pointer; font-weight:700;
}
.lightbox-main { padding:1rem 1.25rem 0; }
.lightbox-main img { width:100%; max-height:52vh; object-fit:contain; background:#f4f4f4; border-radius:8px; }
.lightbox-stage { margin:0.5rem 0 0; font-size:0.85rem; color:var(--text-muted); text-transform:capitalize; }
.lightbox-thumbs {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(88px,1fr)); gap:0.5rem;
  padding:1rem 1.25rem 1.35rem;
}
.lightbox-thumbs button {
  border:2px solid transparent; padding:0; border-radius:8px; overflow:hidden; cursor:pointer; background:none;
  aspect-ratio:1;
}
.lightbox-thumbs button.active { border-color:var(--orange); }
.lightbox-thumbs img { width:100%; height:100%; object-fit:cover; display:block; }

@media (max-width:960px){ .project-grid{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:640px){ .project-grid{ grid-template-columns:1fr;} .project-card .pair{grid-template-columns:1fr;} }

/* Photo publish flag */
body.photos-off [data-photos] { display: none !important; }
body.photos-off .nf-photo-fallback {
  display: block; min-height: 280px; border-radius: var(--radius);
  background: linear-gradient(145deg, var(--primary) 0%, var(--primary-mid) 55%, var(--orange) 140%);
}
.nf-photo-fallback { display: none; }
body:not(.photos-off) .photos-off-msg { display: none !important; }
.photos-off-msg { margin-bottom: 1.5rem; }
.check-list { padding-left: 1.1rem; margin: 0 0 1rem; }
.check-list li { margin: 0.35rem 0; color: var(--text-dim); }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 0.85rem 1rem; margin-bottom: 0.65rem; background: #fff; }
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--primary); }
.faq-item p { margin: 0.6rem 0 0; }
.contact-form label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--primary); margin-bottom: 0.85rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  display: block; width: 100%; margin-top: 0.35rem; padding: 0.65rem 0.75rem;
  border: 1px solid var(--border-strong); border-radius: 8px; font: inherit;
}
.form-note { font-size: 0.85rem; color: var(--text-muted); }
.office.card { padding: 1.1rem 1.2rem; }
.hero-aside .stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.75rem; margin-top: 1rem; }
.hero-aside .stat-row strong { display: block; font-size: 1.4rem; color: var(--orange); }
.hero-aside .stat-row span { font-size: 0.78rem; color: var(--text-muted); }
.tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.35rem; }

.hero-aside.hero-card .nf-photo img { border-radius: 8px; width: 100%; height: 220px; object-fit: cover; margin-bottom: 0.9rem; }
.hero-aside.hero-card .stat-row span { color: rgba(255,255,255,0.85); }
.hero-aside.hero-card .stat-row strong { font-family: var(--font-serif); }
body.photos-off .hero-aside.hero-card .nf-photo-fallback { min-height: 220px; margin-bottom: 0.9rem; }


/* Social profile links (footer + contact) — icons render only when URL is set in NF_CONFIG.social */
.social-links { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1rem; }
.social-links[hidden] { display: none !important; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: #FF5E14;
  border: 1px solid rgba(255,255,255,0.18);
  transition: background .15s, color .15s, border-color .15s;
}
.social-link svg { width: 18px; height: 18px; display: block; }
.social-link:hover { background: #FF5E14; color: #fff; border-color: #FF5E14; }
.site-footer .social-link { display: inline-flex; padding: 0; }
.contact-social { margin-top: 1.25rem; }
.contact-social h3 { margin-bottom: 0.5rem; }
.contact-social .social-links .social-link {
  background: #00235A; color: #FF5E14; border-color: rgba(0,35,90,0.25);
}
.contact-social .social-links .social-link:hover { background: #FF5E14; color: #fff; }

/* SEO services keyword block */
.nf-seo-services { background: var(--cream, #f7f3eb); }
.nf-seo-services ul { columns: 2; gap: 1.5rem; margin: 0.75rem 0 0; padding-left: 1.1rem; }
.nf-seo-services li { margin: 0.25rem 0; color: var(--text-dim, #445); font-size: 0.92rem; }
@media (max-width: 700px) { .nf-seo-services ul { columns: 1; } }
