/* ==========================================================================
   North Charters — shared styles
   Pages carry their layout inline; this file holds the base, states that
   inline styles can't express (hover, media queries) and the quote modal.
   ========================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  font-family: 'DM Sans', Arial, sans-serif;
  color: #10262a;
  background: #f4f7f6;
  -webkit-font-smoothing: antialiased;
  --px: clamp(20px, 5vw, 60px);
  --py: clamp(56px, 6.5vw, 96px);
  --h1: 65px; --h2: 52px; --txt: 18px; --btnfs: 18px; --faqt: 19px;
}
@media (max-width: 1024px) {
  body { --px: 15px; --py: 40px; --h1: 56px; --h2: 42px; --txt: 17px; --btnfs: 17px; --faqt: 18px; }
}
@media (max-width: 767px) {
  body { --px: 12px; --py: 30px; --h1: 40px; --h2: 32px; --txt: 16px; --btnfs: 16px; --faqt: 17px; }
}
h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: #0f7a6c; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: #0f7a6c; color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---- Buttons & interactive states --------------------------------------- */
.btn-solid, .btn-ghost, .rail-btn, .card-hover, .contact-card, .pill, .srow {
  transition: background .18s ease, color .18s ease, border-color .18s ease,
              transform .18s ease, box-shadow .18s ease;
}
.btn-solid:hover { background: #14957f !important; color: #fff !important; transform: translateY(-1px); }
.btn-ghost:hover { border-color: #6fd3c2 !important; color: #6fd3c2 !important; }
.rail-btn:hover { border-color: #0f7a6c !important; color: #6fd3c2 !important; }
.card-hover:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(16,38,42,.4); }
.contact-card:hover { border-color: #0f7a6c !important; transform: translateY(-2px); color: inherit; }
.contact-card > span + span { min-width: 0; }
.contact-card span span { overflow-wrap: anywhere; }
.pill:hover { border-color: #0f7a6c !important; color: #0f7a6c !important; }
.srow:hover { background: #eaf0ee; color: #10262a; }

/* ---- Header / nav -------------------------------------------------------- */
@media (min-width: 901px) {
  .nc-toggle { display: none !important; }
  .nc-mobmenu { display: none !important; }
}
@media (max-width: 900px) {
  .nc-links { display: none !important; }
  .nc-toggle { display: inline-flex !important; }
}
.nc-mobmenu { display: none; }
.nc-mobmenu.is-open { display: block; }

/* ---- Fleet rail ----------------------------------------------------------- */
.rail::-webkit-scrollbar { display: none; }
.rail { scrollbar-width: none; -ms-overflow-style: none; }

/* ---- Page-level responsive grids ------------------------------------------ */
.nc-inner { min-height: 70vh; }
@media (max-width: 1024px) {
  .nc-inner { min-height: 60vh; }
  .nc-herogrid { grid-template-columns: 1fr !important; }
  .nc-stats { grid-template-columns: repeat(2, 1fr) !important; }
  .nc-cov { grid-template-columns: 1fr !important; }
  .nc-fgrid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 767px) {
  .nc-srow { grid-template-columns: 44px 1fr !important; }
  .nc-srow p { grid-column: 2 !important; }
  .nc-steps { grid-template-columns: 1fr !important; }
  .nc-fgrid { grid-template-columns: 1fr !important; }
}

/* ---- FAQ accordion -------------------------------------------------------- */
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 2px; background: none; border: none; cursor: pointer; text-align: left; }
.faq__q > span:first-child { font-size: var(--faqt); font-weight: 600; color: #10262a; font-family: 'Space Grotesk', sans-serif; }
.faq__sign { flex: 0 0 auto; color: #0f7a6c; font-size: 24px; line-height: 1; }
.faq__sign::before { content: "+"; }
.faq__q[aria-expanded="true"] .faq__sign::before { content: "\2013"; }
.faq__a { padding: 0 2px 22px; font-size: var(--txt); line-height: 1.7; color: #5c706e; max-width: 760px; }

/* ---- Sticky mobile bar ---------------------------------------------------- */
@media (min-width: 768px) { .nc-bar { display: none !important; } }
@media (max-width: 767px) { body { padding-bottom: 72px; } }

/* ---- Quote modal (LeadConnector iframe) ----------------------------------- */
.overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 28, 30, .64);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: none; align-items: flex-start; justify-content: center;
  padding: clamp(16px, 5vh, 60px) 16px; overflow-y: auto;
}
.overlay.is-open { display: flex; animation: fadeUp .25s ease both; }
body.modal-open { overflow: hidden; }

.modal {
  position: relative; width: 100%; max-width: 480px; background: #fff;
  border-radius: 16px; padding: clamp(20px, 3vw, 28px);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .5);
  animation: fadeUp .3s ease both;
}
.modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 32px; height: 32px;
  border: none; border-radius: 50%; background: #eaf0ee; color: #10262a;
  font-size: 17px; line-height: 1; cursor: pointer;
}
.modal__close:hover { background: #d5e0de; }
.modal h2 {
  font-size: clamp(22px, 2.6vw, 26px); font-weight: 600;
  line-height: 1.2; margin-bottom: 4px; padding-right: 34px;
}
.modal__sub { font-size: 13.5px; color: #5c706e; margin-bottom: 14px; }

/* form_embed.js resizes the iframe to fit its content; the min-height below
   just stops the modal collapsing before that script runs. */
.form-embed {
  display: block; width: 100%; min-height: 621px;
  border: none; border-radius: 4px;
}
@media (max-width: 599px) {
  .modal { padding: 18px 14px 14px; border-radius: 14px; }
  .form-embed { min-height: 560px; }
}

/* ---- Print ---------------------------------------------------------------- */
@media print {
  header, .nc-bar, .nc-mobmenu, .overlay { display: none !important; }
  body { padding-bottom: 0; background: #fff; }
  a[href^="tel:"]::after { content: " (" attr(href) ")"; }
}
