/* ==========================================================================
   COMPONENTS/SHARED-SECTIONS.CSS
   Sections reused across several pages (np-* sub-page theme, FAQ, contact buttons, map, stats bar...). Loaded on every page.
   ========================================================================== */

/* ==========================================================================
   FEATURES CARDS
   ========================================================================== */

.np-card-title {
  font-size: 18px;
  margin-bottom: 14px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-item {
  border-bottom: 1px solid rgba(46, 42, 74, 0.12);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 15.5px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--coral);
  font-size: 20px;
  flex-shrink: 0;
  transition: transform .3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-a {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
  /* padding-top: 12px; */
  border-top: 1px solid #E8E2D8;
  margin-top: 12px;
  padding: 12px 4px 20px;
}

/* ==========================================================================
   SUB-PAGE THEME (ABOUT / CONTACT / PRICING / SERVICES)
   ========================================================================== */

/* Hero Section */
.np-hero-section {
  position: static !important;
  background-color: #EDE7DE;
  border-bottom: 1px solid #DDD5C9;
  padding: 52px 0 46px;
}

.np-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #DFD7CC;
  border: 1px solid #CEC4B5;
  border-radius: 3px;
  padding: 5px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2E2A4A;
  margin-bottom: 18px;
}

.np-hero-badge svg {
  color: var(--coral);
}

.np-hero-title {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 800;
  color: #2E2A4A;
  margin-bottom: 16px;
}

.np-hero-sub {
  font-size: 1.08rem;
  line-height: 1.6;
}

/* 4-Metric Grid */
.np-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background-color: #D6CDC1;
  border: 1px solid #D6CDC1;
  border-radius: 4px;
  margin-top: 36px;
  overflow: hidden;
}

.np-stat-cell {
  background-color: #F5F1EB;
  padding: 26px 20px;
}

.np-stat-val {
  font-family: 'Sora', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: #2E2A4A;
  line-height: 1;
}

.np-stat-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5A5578;
  margin-top: 6px;
}

/* Content Sections */
.np-section {
  padding: 80px 0;
}

.np-section-alt {
  background-color: #EFEBE3;
  padding: 80px 0;
}

.np-sec-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 8px;
  text-align: center;
}

.np-sec-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  font-weight: 700;
  color: #2E2A4A;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.np-sec-sub {
  font-size: 1.02rem;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 768px;
  margin-bottom: 0;
}

/* Layout Grids (Strict: 2 Columns or 4 Columns, NEVER 3 in a row) */
.np-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.np-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Cards (Crisp borders, flat tinted fill, no drop shadows, no soft radius) */
.np-card {
  background-color: #F8F5F0;
  border: 1px solid #DDD5C8;
  border-radius: 4px;
  box-shadow: none;
  padding: 28px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.np-card:hover {
  border-color: #C5BAAA;
  background-color: #F4EFEB;
}

.np-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.np-card-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #E7E0D5;
  border: 1px solid #D6CCBE;
  border-radius: 3px;
  color: #2E2A4A;
  flex-shrink: 0;
}

.np-card-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #5A5578;
  letter-spacing: 0.04em;
}

/* Specification Lists inside Cards */
.np-spec-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid #E4DDD1;
  font-size: 12.5px;
}

.np-spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #5A5578;
}

.np-spec-val {
  font-weight: 600;
  color: #2E2A4A;
}

/* Numbered Step Rows (Alternative to checkmarks) */
.np-step-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #E2DCD1;
}

.np-step-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.np-step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--coral);
  background-color: #E8E2D7;
  border: 1px solid #D6CCBE;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  flex-shrink: 0;
}

.np-step-body h3,
.np-step-body h4 {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #2E2A4A;
  margin-bottom: 4px;
  /* step titles are <h3> (correct outline under the section <h2>); keep the original h4 metrics */
  letter-spacing: normal;
  line-height: 1.2;
}

.np-step-body p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

/* Structured Table */
.np-table-wrapper {
  background-color: #F8F5F0;
  border: 1px solid #D8CFC2;
  border-radius: 4px;
  overflow-x: auto;
}

.np-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

.np-table th {
  background-color: #EAE3D8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2E2A4A;
  padding: 14px 18px;
  border-bottom: 1px solid #D4CAC0;
}

.np-table td {
  padding: 14px 18px;
  color: #5A5578;
  border-bottom: 1px solid #E8E2D8;
}

.np-table tr:last-child td {
  border-bottom: none;
}

.np-table tr:hover td {
  background-color: #F3EFE9;
}

.np-table-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  background-color: #E2DBD0;
  color: #2E2A4A;
  padding: 2px 7px;
  border-radius: 2px;
  border: 1px solid #CFC5B8;
}

/* Contact Action Cards */
.np-contact-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #2E2A4A;
  color: #FCEFE3;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 10px 18px;
  border-radius: 3px;
  text-decoration: none;
  border: 1px solid #2E2A4A;
  margin-top: 16px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.np-contact-action-btn:hover {
  background-color: var(--coral);
  border-color: var(--coral);
  color: #FFFFFF;
}

.np-contact-action-btn.secondary {
  background-color: #E8E2D7;
  color: #2E2A4A;
  border-color: #D4CAB9;
}

.np-contact-action-btn.secondary:hover {
  background-color: #2E2A4A;
  color: #FCEFE3;
  border-color: #2E2A4A;
}

/* Route Info Cards */
.np-route-box {
  background-color: #F8F5F0;
  border: 1px solid #D8CFBF;
  border-radius: 4px;
  padding: 24px;
}

.np-route-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #E8E1D5;
}

.np-route-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.np-route-item:first-child {
  padding-top: 0;
}

.np-route-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #2E2A4A;
  background-color: #E3DCD1;
  border: 1px solid #D2C9BA;
  border-radius: 2px;
  padding: 3px 8px;
  white-space: nowrap;
}

.np-route-text h3,
.np-route-text h4,
.np-route-text h5 {
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #2E2A4A;
  margin-bottom: 3px;
  /* route titles are <h3>/<h4> (correct outline); keep the original h5 metrics */
  letter-spacing: normal;
  line-height: 1.2;
}

.np-route-text p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
}

/* Map Container */
.np-map-box {
  background-color: #EDE7DD;
  border: 1px solid #D6CCBD;
  border-radius: 4px;
  overflow: hidden;
  height: 100%;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

.np-map-box iframe {
  width: 100%;
  height: 100%;
  min-height: 330px;
  border: none;
  flex: 1;
}

.np-map-footer {
  background-color: #E2DBD0;
  border-top: 1px solid #D2C9BA;
  padding: 12px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #2E2A4A;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 991px) {
  .np-grid-2,
  .np-grid-2x2 {
    grid-template-columns: 1fr;
  }

  .np-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .np-hero-section {
    padding: 40px 0 32px;
  }

  .np-stats-bar {
    grid-template-columns: 1fr;
  }

  .np-section,
  .np-section-alt {
    padding: 44px 0;
  }

  .np-card {
    padding: 20px;
  }
}

/* ==========================================================================
   FAQ — ARCHITECTURAL THEME OVERRIDES
   ========================================================================== */

/* FAQ Details */
.faq-item {
  background: #F8F5F0 !important;
  border: 1px solid #DDD5C8 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  margin-bottom: 12px !important;
  padding: 16px 20px !important;
}

.faq-item summary {
  font-family: 'Sora', sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #2E2A4A !important;
}

/* ==========================================================================
   TABLET (≤991px)
   ========================================================================== */

@media (max-width: 991px) {
  .np-hero-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .np-hero-sub {
    max-width: 100%;
    font-size: 0.97rem;
  }

  /* Stats bar: 2 cols on tablets */
  .np-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 24px;
  }

  /* Section padding reduction */
  .np-section,
  .np-section-alt {
    padding: 48px 0;
  }

  /* Hub cards stack vertically */
  .np-grid-2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Map box min-height reduction */
  .np-map-box {
    min-height: 280px;
  }

  /* Service grid card text */
  .np-sec-title {
    font-size: clamp(1.45rem, 3.5vw, 1.85rem);
  }

  .np-sec-sub {
    max-width: 100%;
  }
}

/* ==========================================================================
   MOBILE (≤767px)
   ========================================================================== */

@media (max-width: 767px) {
  .np-hero-title {
    font-size: clamp(1.45rem, 6vw, 2rem);
    line-height: 1.2;
  }

  .np-hero-sub {
    font-size: 0.93rem;
    line-height: 1.55;
  }

  /* Stats bar: 2 cols on mobile */
  .np-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .np-stat-val {
    font-size: 1.35rem;
  }

  .np-stat-lbl {
    font-size: 10px;
  }

  /* Sections */
  .np-section,
  .np-section-alt {
    padding: 36px 0;
  }

  /* Section titles */
  .np-sec-title {
    font-size: clamp(1.3rem, 5vw, 1.65rem);
    margin-bottom: 8px;
  }

  .np-sec-sub {
    font-size: 0.93rem;
  }

  .faq-item summary {
    font-size: 0.95rem !important;
  }

  /* Contact buttons: stack */
  #contact .d-flex.gap-3 {
    flex-direction: column;
    gap: 10px !important;
  }

  #contact .d-flex.gap-3 a {
    width: 100% !important;
    justify-content: center;
  }

  /* Hub cards specs list */
  .np-spec-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .np-spec-val {
    word-break: break-word;
  }
}

/* ==========================================================================
   SMALL MOBILE (≤575px)
   ========================================================================== */

@media (max-width: 575px) {
  .np-hero-title {
    font-size: clamp(1.3rem, 7vw, 1.75rem);
  }

  /* Stats bar: 1 col only on tiny phones */
  .np-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Sections: compact padding */
  .np-section,
  .np-section-alt {
    padding: 28px 0;
  }

  /* Section titles */
  .np-sec-title {
    font-size: 1.25rem;
  }

  /* FAQ */
  .faq-item {
    padding: 12px 14px !important;
  }

  .faq-item summary {
    font-size: 0.9rem !important;
  }

  /* np-card */
  .np-card {
    padding: 18px;
  }

  /* Map box */
  .np-map-box {
    min-height: 220px;
  }

  .np-map-box iframe {
    min-height: 220px;
  }

  /* Contact: action buttons full-width */
  .np-contact-action-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   TINY PHONES (≤400px)
   ========================================================================== */

@media (max-width: 400px) {
  .np-hero-title {
    font-size: 1.2rem;
    line-height: 1.25;
  }

  .np-sec-title {
    font-size: 1.15rem;
  }

  .np-hero-sub {
    font-size: 0.95rem;
  }

  .np-stat-val {
    font-size: 1.2rem;
  }

  /* Stats: single column */
  .np-stats-bar {
    grid-template-columns: 1fr;
  }

  /* Sections: very tight */
  .np-section,
  .np-section-alt {
    padding: 22px 0;
  }

  .np-stat-cell {
    padding: 14px 12px;
  }
}

/* ==========================================================================
   GOOGLE RATING STRIP (np_rating_strip() in includes/landing.php; hidden until configured)
   ========================================================================== */

.np-rating-strip {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  padding: 6px 12px;
  border: 1px solid rgba(46, 42, 74, 0.15);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}

.np-rating-stars {
  color: #F5A623;
  letter-spacing: 1px;
}

.np-rating-strip strong {
  font-weight: 700;
}

.np-rating-link {
  color: var(--coral);
  font-weight: 600;
}

/* ==========================================================================
   TOUCH TARGETS
   Invisible pseudo-element hit areas: taps land on small controls without
   changing how anything looks. Each area grows to 44px where there is room,
   otherwise only up to half the gap to the neighbouring control.
   ========================================================================== */

.burger,
.btn-sm-custom,
.np-contact-action-btn,
a.logo,
.bng-btn,
.pricing-tab,
.lp-hero-tab,
.faq-item summary,
.btn-sm,
.lp-toc-link,
.foot-col a,
.foot-bottom a,
.discount-contact-link,
.lp-link,
.qty-btn {
  position: relative;
}

/* room on every side: grow to at least 44 x 44 */
.burger::after,
.btn-sm-custom::after,
.np-contact-action-btn::after,
a.logo::after,
.bng-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, 44px);
  height: max(100%, 44px);
  transform: translate(-50%, -50%);
}

/* side-by-side controls: grow to 44px tall only */
.pricing-tab::after,
.lp-hero-tab::after,
.faq-item summary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: max(100%, 44px);
  transform: translateY(-50%);
}

/* tightly packed controls: half the gap to the next one */
.btn-sm::after {
  content: "";
  position: absolute;
  inset: -4px; /* 8px gaps on /pricing */
}

.lp-toc-link::after {
  content: "";
  position: absolute;
  inset: -2px 0; /* 4px gaps in the terms / privacy contents list */
}

.foot-col a::after,
.lp-link::after {
  content: "";
  position: absolute;
  inset: -6px 0; /* 12px gaps between footer links */
}

.foot-bottom a::after {
  content: "";
  position: absolute;
  inset: -8px 0;
}

.discount-contact-link::after {
  content: "";
  position: absolute;
  inset: -11px 0; /* fills the announcement bar height */
}

.qty-btn::after {
  content: "";
  position: absolute;
  inset: 0 -2px; /* 40px wide button + 2px each side = 44px */
}
