/* =========================================================
   4 Point NDT, LLC — site styles
   Palette pulled from the compass logo:
     navy   #1b2a4a   (deep)
     navy-2 #243a6b   (mid)
     red    #c1272d   (mark accent)
     red-2  #e63946   (hover accent)
     ink    #0e1730   (near-black surface)
   ========================================================= */

:root {
  --navy: #1b2a4a;
  --navy-2: #243a6b;
  --navy-3: #0e1730;
  --red: #c1272d;
  --red-2: #e63946;
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 2px rgba(15,23,48,.06), 0 1px 1px rgba(15,23,48,.04);
  --shadow-md: 0 10px 25px -10px rgba(15,23,48,.25), 0 4px 10px -4px rgba(15,23,48,.1);
  --shadow-lg: 0 25px 50px -12px rgba(15,23,48,.35);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Oswald', 'Inter', system-ui, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-2); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); letter-spacing: .01em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 4.5vw + .5rem, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 2.6vw + .5rem, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .7em 1.25em;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-lg { padding: .9em 1.6em; font-size: 1rem; }
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--red-2); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: rgba(27,42,74,.25);
}
.btn-ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.section-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.section-dark .btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
}
.brand:hover { color: var(--navy); }
.brand-mark { width: 38px; height: 38px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-display); }
.brand-text strong { font-size: 1.05rem; letter-spacing: .04em; }
.brand-text small { font-size: .7rem; color: var(--red); letter-spacing: .2em; margin-top: 2px; }

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  color: var(--ink-2);
  font-weight: 500;
  font-size: .95rem;
  position: relative;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { margin-left: 4px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px; height: 40px;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 8px 0 16px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.mobile-menu a {
  padding: 14px 24px;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:hover { background: var(--bg-alt); color: var(--navy); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fdfdff 0%, #f4f6fb 100%);
  padding: 80px 0 100px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 500px at 90% -10%, rgba(193,39,45,.07), transparent 60%),
    radial-gradient(900px 400px at 10% 110%, rgba(27,42,74,.08), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .8rem;
  color: var(--red);
  margin: 0 0 16px;
}
.eyebrow.light { color: #ffb4b8; }
.hero h1 .accent { color: var(--red); display: inline-block; }
.lede {
  font-size: 1.15rem;
  color: var(--ink-2);
  max-width: 56ch;
  margin-bottom: 28px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  color: var(--ink-2);
  font-size: .9rem;
  font-weight: 500;
}
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(193,39,45,.15);
}

.hero-logo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-logo img {
  width: 100%;
  max-width: 380px;
  filter: drop-shadow(0 25px 40px rgba(27,42,74,.25));
  animation: floaty 8s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ---------- trust strip ---------- */
.trust {
  background: var(--navy);
  color: #d6dcec;
  padding: 22px 0;
}
.trust .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 36px;
}
.trust-label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .75rem;
  color: #ffb4b8;
  margin: 0;
}
.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  font-weight: 500;
  font-size: .95rem;
}
.trust-list li { position: relative; }
.trust-list li + li::before {
  content: "·";
  position: absolute;
  left: -16px;
  color: rgba(255,255,255,.35);
}

/* ---------- sections ---------- */
.section {
  padding: 96px 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-dark {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #e6eaf5;
}
.section-dark h2 { color: #fff; }
.section-dark p { color: #c9cfdf; }
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-sub {
  color: var(--ink-2);
  font-size: 1.05rem;
}
.section-dark .section-sub { color: #c9cfdf; }

/* ---------- service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(193,39,45,.08);
  color: var(--red);
  border-radius: 12px;
  margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; color: var(--navy); }
.card p { color: var(--ink-2); margin: 0; font-size: .96rem; }

/* ---------- methods ---------- */
.methods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.methods li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  transition: transform .2s ease, border-color .2s ease;
}
.methods li:hover { transform: translateY(-2px); border-color: var(--navy-2); }
.m-abbr {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  background: var(--navy);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  min-width: 46px;
  text-align: center;
  letter-spacing: .04em;
}
.m-name { color: var(--ink-2); font-weight: 500; font-size: .95rem; }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: center;
}
.about-img {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-img::before {
  content: "";
  position: absolute;
  inset: -18px -18px 18px 18px;
  background: linear-gradient(135deg, var(--red) 0%, var(--navy) 100%);
  border-radius: 20px;
  z-index: 0;
  opacity: .85;
}
.about-img img {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(15,23,48,.45);
  z-index: 1;
}
.about-copy h2 { margin-bottom: 16px; }
.bullets {
  margin: 18px 0 28px;
  display: grid;
  gap: 10px;
}
.bullets li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-2);
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(193,39,45,.15);
}
.about-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- booking ---------- */
.book-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.book-list {
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
}
.book-list li {
  padding-left: 28px;
  position: relative;
  color: #d3d9eb;
}
.book-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--red-2);
  font-weight: 800;
}
.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.book-or {
  font-size: .92rem;
  color: #b7bed1;
  margin: 0;
}
.book-or a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); }
.book-or a:hover { color: #ffb4b8; }

.book-embed {
  background: #fff;
  border-radius: var(--radius);
  min-height: 640px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
#my-cal-inline {
  width: 100%;
  height: 100%;
  min-height: 640px;
}
.book-embed.is-loading::before {
  content: "Loading calendar…";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .95rem;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy-3);
  color: #b7bed1;
  padding-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand img {
  width: 200px;
  filter: brightness(0) invert(1);
  opacity: .9;
  margin-bottom: 12px;
}
.footer-brand p {
  max-width: 32ch;
  color: #c9cfdf;
  font-style: italic;
}
.footer-col h4 {
  color: #fff;
  font-family: var(--font-display);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .85rem;
  margin-bottom: 14px;
}
.footer-col ul { display: grid; gap: 8px; }
.footer-col a { color: #b7bed1; }
.footer-col a:hover { color: #fff; }
.footer-base {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
  font-size: .85rem;
  color: #8d94aa;
}
.footer-base .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { padding: 60px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: left; }
  .hero-logo { order: -1; }
  .hero-logo img { max-width: 240px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .methods { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img img { max-width: 280px; }
  .book-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .mobile-menu:not([hidden]) { display: flex; }
  .section { padding: 70px 0; }
}
@media (max-width: 560px) {
  .cards, .methods { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust .container { gap: 12px 20px; }
  .hero-cta .btn { flex: 1 1 100%; }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
