/* ==========================================================================
   Northfield Services LLC — Home, Terms of Service, Privacy Policy
   Loaded AFTER Bootstrap 5 so these rules restore the original design.
   ========================================================================== */

:root {
  --content-width: 1100px;
  --legal-width: 860px;
  --ink: #16383b;
  --deep: #10292b;
  --muted: #587073;
  --sand: #f3f0e9;
  --paper: #fbfaf7;
  --accent: #d58a46;
  --line: #d8dfd8;
}

/* ---------- Base (neutralises Bootstrap reboot where it differs) ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
a:hover { color: inherit; }

h1, h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
}
h1 { max-width: 710px; margin: 0; font-size: clamp(2.55rem, 6vw, 4.7rem); letter-spacing: -.055em; }
h2 { margin: 0; font-size: clamp(1.75rem, 3.4vw, 2.6rem); letter-spacing: -.045em; }

/* ---------- Layout wrappers ---------- */
.nf-wrap {
  width: min(var(--content-width), calc(100% - 60px));
  margin-left: auto;
  margin-right: auto;
}
.nf-wrap-narrow {
  width: min(var(--legal-width), calc(100% - 60px));
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Header ---------- */
.site-header {
  min-height: 78px;
  padding: 16px 0;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--deep);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  letter-spacing: -.025em;
}
.brand:hover { color: var(--deep); }
.brand small { color: var(--accent); font-size: .65em; letter-spacing: .08em; }

.brand-mark {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: block;
  flex: 0 0 auto;
}

.header-contact {
  color: var(--ink);
  font-size: .92rem;
  font-weight: 600;
  white-space: nowrap;
}
.header-contact,
.footer-contact a[href^="tel:"] { text-decoration: none; }
.footer-contact a[href^="tel:"] { font-weight: 600; color: #fff; }

/* "Call now" button in the header */
.call-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: 0 2px 8px rgba(16, 41, 43, .18);
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.call-cta:hover,
.call-cta:focus { background: var(--deep); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(16, 41, 43, .25); }
.call-cta .contact-icon { width: 15px; height: 15px; stroke-width: 2; }

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.contact-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 510px;
  padding: 115px 0 105px;
  color: #fff;
  background: linear-gradient(120deg, rgba(16, 41, 43, .98), rgba(22, 56, 59, .91)),
    radial-gradient(circle at 82% 18%, #3a7777, transparent 31%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hero .lead {
  max-width: 610px;
  margin: 26px 0 33px;
  color: #dfebea;
  font-size: 1.15rem;
  font-weight: 400;
}

/* ---------- What we do ---------- */
.how-it-works { padding: 90px 0; }

.service-copy {
  max-width: 500px;
  padding-top: 33px;
  color: var(--muted);
  font-size: 1.08rem;
}
.service-copy p { margin: 0 0 1em; }

/* ---------- Notice / technology / about bands ---------- */
.notice { padding: 76px 0; background: var(--sand); }
.notice h2 { max-width: 650px; margin-bottom: 25px; }
.notice p { margin: 0 0 1em; }
.notice ul { margin: 0 0 1em; padding-left: 40px; }
.notice .nf-wrap > p:last-child { max-width: 880px; margin: 0; color: #476164; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 32px 30px 24px;
  color: #d8e4e2;
  background: var(--deep);
  text-align: center;
}
.footer-brand { color: #fff; font-family: "Libre Baskerville", Georgia, serif; font-size: 1.05rem; }
.footer-contact { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 8px 0; font-size: .93rem; }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { color: #fff; }
.footer-address { margin: 8px 0; color: #c1d0ce; font-size: .88rem; font-style: normal; justify-content: center; }
.footer-links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 8px 0 14px; font-size: .85rem; }
.footer-links a { color: #d8e4e2; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer p {
  max-width: var(--content-width);
  margin: 16px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(216, 228, 226, .2);
  color: #98adaa;
  font-size: .78rem;
}

a[href^="mailto:"] { text-decoration: none; }

/* ---------- Legal pages (Terms / Privacy) ---------- */
.legal-page { min-height: 100vh; display: flex; flex-direction: column; }
.legal-main { padding: 88px 0 96px; overflow-wrap: break-word; }
.legal-main h1 { color: var(--deep); font-size: clamp(2.4rem, 5vw, 4rem); }
.legal-main h2 { margin: 42px 0 12px; color: var(--deep); font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
.legal-main h3 {
  margin: 1em 0;
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 1.17em;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: normal;
}
.legal-main p, .legal-main li { color: var(--muted); }
.legal-main p { margin: 0 0 18px; }
.legal-main ul { margin: -3px 0 18px; padding-left: 22px; }
.legal-main li + li { margin-top: 6px; }
.legal-main strong { font-weight: 700; }
.legal-main a { color: var(--ink); text-underline-offset: 4px; }
.legal-main .legal-date { margin-top: 18px; font-size: .94rem; }
.legal-page .site-footer { margin-top: auto; }

/* ---------- Focus visibility (keyboard users) ---------- */
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet: the two "What we do" columns stack below Bootstrap's md (768px) */
@media (max-width: 767.98px) {
  .how-it-works { padding: 65px 0; }
  .service-copy { padding-top: 0; }
}

/* Phones (matches the original 660px breakpoint) */
@media (max-width: 660px) {
  .nf-wrap,
  .nf-wrap-narrow { width: calc(100% - 50px); }
  .site-header { width: calc(100% - 40px); min-height: 68px; padding: 13px 0; }
  .legal-page .site-header { width: calc(100% - 50px); }
  .header-contact { font-size: .8rem; }
  .call-cta { padding: 8px 15px; font-size: .85rem; }
  .brand { font-size: .9rem; }
  .brand-mark { width: 30px; height: 30px; }
  .hero { min-height: 470px; padding: 82px 0; }
  .notice { padding: 60px 0; }
  .notice ul { padding-left: 22px; }
  .legal-main { padding: 58px 0 65px; }
  .site-footer { padding: 32px 20px 24px; }
}

/* Footer on small phones: drop the "•" separators so none dangle at a line end */
@media (max-width: 480px) {
  .footer-contact { flex-direction: column; align-items: center; gap: 6px; }
  .footer-links { gap: 6px 18px; }
  .footer-contact > span[aria-hidden="true"],
  .footer-links > span[aria-hidden="true"] { display: none; }
  .footer-contact a, .footer-links a { white-space: nowrap; }
  .footer-address { display: block; text-align: center; }
  .footer-address .contact-icon { display: inline-block; vertical-align: -2px; margin-right: 6px; }
}

/* Very small phones (≤ 375px, e.g. iPhone SE / older Androids) */
@media (max-width: 375px) {
  .site-header { gap: 10px; }
  .brand { gap: 8px; font-size: .84rem; }
  .brand-mark { width: 28px; height: 28px; }
  .header-contact { font-size: .76rem; gap: 5px; }
  .hero { min-height: 430px; padding: 70px 0; }
  .hero .lead { font-size: 1.05rem; }
}
