/* ===================================================================
   Neighbors Trailer — Calculator Hub
   Brand: NT green #2D8C3C · Inter · clean, flat, hairline borders
   =================================================================== */
:root {
  --nt-green: #2D8C3C;
  --nt-green-dark: #2D8C3C; /* unified to brand green — gradients render solid #2D8C3C (flat design) */
  --nt-yellow: #FFC629;
  --nt-yellow-dark: #E8B012;
  --ink: #1A1D1A;
  --ink-soft: #5A625A;
  --line: #E6E8E6;
  --bg: #FFFFFF;
  --bg-muted: #F6F8F6;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 16, .04), 0 8px 24px rgba(16, 24, 16, .06);
  --maxw: 1180px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
img { max-width: 100%; display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; font-family: var(--font); font-weight: 600; font-size: .95rem;
  padding: .7rem 1.2rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--yellow { background: var(--nt-green); color: #fff; }
.btn--yellow:hover { background: #256f30; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.nav .btn--ghost:hover { background: var(--bg-muted); }
.btn--lg { padding: .95rem 1.8rem; font-size: 1.05rem; }
.btn--sm { padding: .5rem .95rem; font-size: .85rem; }
.footer .btn--ghost { border-color: var(--line); color: var(--ink); }
.footer .btn--ghost:hover { background: var(--bg-muted); }

/* ---------- Nav ---------- */
.nav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem;
  height: 66px; display: flex; align-items: center; gap: 1.5rem;
}
.nav__logo { display: inline-flex; align-items: center; }
.nav__logo-mark { color: var(--nt-yellow); font-size: 1.1rem; transform: translateY(-1px); }
.nav__logo-img { height: 36px; width: auto; display: block; }
.nav__links { display: flex; align-items: center; gap: .35rem; margin-left: .5rem; }
.nav__link {
  color: var(--ink); background: none; border: none; font-family: var(--font);
  font-size: .95rem; font-weight: 500; padding: .55rem .8rem; border-radius: 8px; cursor: pointer;
}
.nav__link:hover { background: var(--bg-muted); }
.caret { font-size: .7rem; opacity: .8; }
.nav__item--dropdown { position: relative; }
.nav__dropdown {
  position: absolute; top: 100%; left: 0; min-width: 210px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  padding: .4rem; display: none; flex-direction: column;
}
.nav__item--dropdown:hover .nav__dropdown { display: flex; }
.nav__dropdown a { color: var(--ink); padding: .55rem .7rem; border-radius: 7px; font-size: .9rem; }
.nav__dropdown a:hover { background: var(--bg-muted); color: var(--nt-green); }
.nav__cta { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.nav__hamburger { display: none; background: none; border: none; color: var(--ink); font-size: 1.5rem; cursor: pointer; margin-left: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; text-align: center;
  background-color: #2D8C3C; /* brand-green fallback while the hero photo loads */
  background-image: url('/assets/hero.jpg');
  background-size: cover;
  background-position: center 45%;
  padding: 5.5rem 1.25rem 4.5rem;
  overflow: hidden;
}
/* dark scrim keeps the white headline legible over the sunset sky + foreground */
.hero__overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(12,28,14,.60) 0%, rgba(12,28,14,.44) 42%, rgba(12,28,14,.60) 100%);
}
.hero__inner { position: relative; max-width: 760px; margin: 0 auto; }
.hero__title { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.05; }
.hero__subtitle { font-size: clamp(1rem, 2.2vw, 1.2rem); opacity: .94; margin: 1rem auto 2rem; max-width: 620px; }
.hero__search {
  display: flex; align-items: center; gap: .6rem; background: #fff; border-radius: 999px;
  padding: .35rem .5rem .35rem 1.1rem; max-width: 620px; margin: 0 auto; box-shadow: var(--shadow);
}
.hero__search-icon { width: 20px; height: 20px; fill: none; stroke: var(--ink-soft); stroke-width: 2; stroke-linecap: round; flex: none; }
.hero__search input {
  flex: 1; border: none; outline: none; font-family: var(--font); font-size: 1rem;
  color: var(--ink); padding: .55rem .2rem; background: transparent; min-width: 0;
}
.hero__note { margin-top: 1rem; font-size: .9rem; opacity: .95; background: rgba(0,0,0,.18); display: inline-block; padding: .35rem .8rem; border-radius: 999px; }

/* ---------- Value props ---------- */
.values { background: var(--nt-green); }
.values__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 2rem 1.25rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}
.value { display: flex; gap: .85rem; align-items: flex-start; }
.value__icon {
  flex: none; width: 42px; height: 42px; border-radius: 10px; background: rgba(255,255,255,.18);
  display: grid; place-items: center; color: #fff;
}
.value__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.value h3 { font-size: .98rem; color: #fff; }
.value p { margin: .15rem 0 0; font-size: .86rem; color: rgba(255,255,255,.9); }

/* ---------- Sections ---------- */
.section { padding: 3.5rem 1.25rem; }
.section--muted { background: var(--bg-muted); }
.section__inner { max-width: var(--maxw); margin: 0 auto; }
.section__head { margin-bottom: 1.75rem; }
.section__title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.section__sub { margin: .4rem 0 0; color: var(--ink-soft); font-size: 1rem; }
.section__foot { margin-top: 1.75rem; text-align: center; }
.text-link { color: var(--nt-green); font-weight: 600; }
.text-link:hover { text-decoration: underline; }

/* ---------- Priority cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .12s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__banner { height: 96px; display: grid; place-items: center; position: relative; }
.card__banner svg { width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card__badge { position: absolute; top: .6rem; left: .6rem; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: rgba(0,0,0,.22); padding: .2rem .5rem; border-radius: 6px; }
.card__body { padding: 1rem 1.05rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.card__name { font-size: 1.02rem; font-weight: 700; line-height: 1.25; }
.card__desc { margin: .45rem 0 1rem; font-size: .87rem; color: var(--ink-soft); flex: 1; }
.card__link { display: inline-block; align-self: flex-start; background: var(--nt-green); color: #fff; font-weight: 600; font-size: .9rem; padding: .5rem .95rem; border-radius: 999px; }
.card__link:hover { background: #256f30; }

/* ---- Liability disclaimer banners ---- */
.disclaimer-strip { max-width: var(--maxw); margin: 0 auto; padding: 1.5rem 1.25rem 0; }
.disclaimer-banner {
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .9rem 1rem;
  border-left: 4px solid var(--nt-green);
  background: #f9f9f9;
  border-radius: 6px;
  font-size: .95rem; line-height: 1.5; color: #333;
}
.disclaimer-banner--safety { background: #fff3cd; border-left-color: #e03131; }
.disclaimer-icon { font-size: 1.2rem; line-height: 1.4; flex-shrink: 0; }
.disclaimer-text { display: block; }
.disclaimer-text strong { color: #c92a2a; }

/* ---- Calculator page header strip (shared; also defined in calc-page local CSS) ---- */
.calc-head { background: var(--nt-green); border-bottom: none; }
.calc-head__inner { max-width: var(--maxw); margin: 0 auto; padding: 2rem 1.25rem 2.2rem; }
.crumbs { font-size: .82rem; color: rgba(255,255,255,.85); margin-bottom: .6rem; }
.crumbs a { color: #fff; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.calc-head__title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; color: #fff; }
.calc-head__sub { margin: .5rem 0 0; color: rgba(255,255,255,.92); max-width: 640px; font-size: 1.02rem; }
/* branded self-labeled image as the card's top visual (natural 256:205, no distortion) */
.card__imglink { display: block; line-height: 0; border-bottom: 1px solid var(--line); }
.card__img { width: 100%; height: 150px; object-fit: cover; object-position: top; display: block; }
.card__title { margin: 0 0 .5rem; font-size: 1.05rem; font-weight: 700; line-height: 1.25; color: var(--ink); }

/* ---------- More Popular — branded image tiles ---------- */
.mini-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.img-tile {
  display: block; line-height: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden; transition: border-color .15s ease, transform .1s ease, box-shadow .15s ease;
}
.img-tile:hover { border-color: var(--nt-green); transform: translateY(-2px); box-shadow: var(--shadow); }
.img-tile img { width: 100%; height: 110px; object-fit: cover; object-position: top; display: block; }
.img-tile__name { display: block; padding: .6rem .75rem; font-size: .9rem; font-weight: 600; line-height: 1.3; color: var(--ink); }

/* ---------- Categories ---------- */
.categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.category {
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  padding: 1.4rem 1rem; text-align: center; transition: border-color .15s ease, background .15s ease;
}
.category:hover { border-color: var(--nt-green); background: var(--bg-muted); }
.category__icon { width: 44px; height: 44px; margin: 0 auto .7rem; display: grid; place-items: center; border-radius: 11px; background: var(--bg-muted); color: var(--nt-green); }
.category__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.category__name { font-size: .9rem; font-weight: 600; }

/* ---------- Ready to rent ---------- */
.rent { padding: 3.5rem 1.25rem; }
.rent__box {
  max-width: var(--maxw); margin: 0 auto; background: var(--nt-green);
  background: linear-gradient(120deg, var(--nt-green-dark), var(--nt-green));
  border-radius: 20px; padding: 3rem 2rem; text-align: center; color: #fff;
}
.rent__content { max-width: 640px; margin: 0 auto; }
.rent__title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
.rent__copy { margin: .9rem auto 1.8rem; opacity: .95; font-size: 1.05rem; max-width: 520px; }
.rent__actions { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.rent__loc { font-size: .88rem; opacity: .92; }
.rent__trust { margin-top: 1.8rem; display: flex; align-items: center; justify-content: center; gap: .5rem; flex-wrap: wrap; font-size: .92rem; }
.stars { color: var(--nt-yellow); letter-spacing: 1px; }
.rent__trust-text { opacity: .9; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: #fff; }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 3rem 1.25rem 2rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.footer__col h3 { font-size: 1rem; margin-bottom: .9rem; }
.footer__col a { display: block; color: var(--ink-soft); font-size: .9rem; padding: .25rem 0; }
.footer__col a:hover { color: var(--nt-green); }
.footer__text { color: var(--ink-soft); font-size: .9rem; margin: 0 0 .9rem; }
.footer__bar {
  border-top: 1px solid var(--line); max-width: var(--maxw); margin: 0 auto;
  padding: 1.2rem 1.25rem; display: flex; justify-content: space-between; gap: 1rem;
  font-size: .8rem; color: var(--ink-soft); flex-wrap: wrap;
}

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 1.25rem; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(16,24,16,.5); }
.modal__panel {
  position: relative; background: #fff; border-radius: var(--radius); width: min(560px, 100%);
  max-height: 85vh; overflow-y: auto; padding: 1.75rem; box-shadow: var(--shadow);
}
.modal__close { position: absolute; top: .8rem; right: 1rem; background: none; border: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink-soft); }
.modal__title { font-size: 1.4rem; font-weight: 800; }
.modal__sub { margin: .4rem 0 1.25rem; color: var(--ink-soft); font-size: .95rem; }
.modal__body { display: flex; flex-direction: column; gap: .85rem; }

/* listing cards inside modal */
.listing {
  display: flex; gap: .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .85rem; align-items: center;
}
.listing__img { width: 84px; height: 64px; border-radius: 8px; background: var(--bg-muted); flex: none; object-fit: cover; }
.listing__info { flex: 1; min-width: 0; }
.listing__name { font-weight: 700; font-size: .95rem; }
.listing__meta { font-size: .82rem; color: var(--ink-soft); margin-top: .15rem; }
.listing__price { font-weight: 700; color: var(--nt-green); }
.modal__manual { display: flex; gap: .5rem; margin-top: .3rem; }
.modal__manual input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: .6rem .8rem; font-family: var(--font); font-size: .95rem; }
.modal__deeplink { text-align: center; margin-top: .5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .values__inner { grid-template-columns: repeat(2, 1fr); }
  .cards, .mini-cards, .categories { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: block; }
  .nav__links--open {
    display: flex; flex-direction: column; position: absolute; top: 66px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: .75rem; gap: .25rem; z-index: 39;
  }
}
@media (max-width: 520px) {
  .cards, .mini-cards, .categories, .values__inner { grid-template-columns: 1fr; }
  .hero { padding: 4rem 1.25rem 3rem; }
  .footer__bar { flex-direction: column; }
}
