/* ============================================================
   FindIndustrialRE.com — mobile-first styles
   Palette: deep navy (#0a1e3c) + industrial amber (#f59e0b)
   Breakpoints: 640px (large phone/small tablet), 1024px (desktop)
   ============================================================ */

:root {
  --navy: #0a1e3c;
  --navy-2: #123058;
  --navy-3: #1b3f70;
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --amber-light: #fef3c7;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f6f8fb;
  --card: #ffffff;
  --green: #15803d;
  --blue: #1d4ed8;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(10, 30, 60, .12), 0 4px 14px rgba(10, 30, 60, .08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); }
a:hover { color: var(--navy-3); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 12px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }

.brand-mark {
  width: 40px; height: 40px; flex: 0 0 40px;
  background: var(--amber);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px; color: var(--navy);
}

.brand-name { font-weight: 800; font-size: 17px; line-height: 1.2; }
.brand-tag { font-size: 11px; color: #bcd0ea; font-weight: 400; }

.nav-toggle {
  background: transparent; border: 2px solid rgba(255,255,255,.35);
  border-radius: 8px; color: #fff; font-size: 22px; line-height: 1;
  width: 48px; height: 48px; cursor: pointer;
}
.nav-toggle:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.site-nav { display: none; }
.site-nav.open {
  display: block;
  position: absolute; top: 64px; left: 0; right: 0;
  background: var(--navy-2);
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 8px 16px 16px;
}
.site-nav a {
  display: block; color: #fff; text-decoration: none;
  padding: 14px 4px; font-weight: 600; font-size: 17px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-nav a:last-child { border-bottom: 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--amber); }

.header-phone {
  display: none;
  background: var(--amber); color: var(--navy);
  font-weight: 800; text-decoration: none;
  padding: 12px 18px; border-radius: 8px; font-size: 16px;
  white-space: nowrap;
}
.header-phone:hover { background: var(--amber-dark); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--amber); color: var(--navy);
  font-weight: 800; font-size: 17px;
  padding: 14px 26px; border-radius: 8px; text-decoration: none;
  text-align: center; min-height: 52px; line-height: 1.4;
}
.btn:hover { background: var(--amber-dark); color: #fff; }
.btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

.btn-outline {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,.7);
}
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }

.btn-block { display: block; width: 100%; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-3) 100%);
  color: #fff;
  padding: 44px 0 52px;
}
.hero h1 { font-size: 30px; line-height: 1.2; margin: 0 0 10px; }
.hero h1 .accent { color: var(--amber); }
.hero p.lead { color: #c9d8ef; font-size: 17px; margin: 0 0 24px; max-width: 640px; }

.quick-search {
  background: #fff; color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px;
}
.quick-search h2 { font-size: 19px; margin: 0 0 14px; color: var(--navy); }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--navy); }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%; font-size: 16px; font-family: var(--font);
  padding: 13px 12px; border: 2px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink); min-height: 52px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245,158,11,.25);
}
.field .hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.field .error-msg { display: none; font-size: 13px; color: #b91c1c; margin-top: 4px; font-weight: 600; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #b91c1c; }
.field.invalid .error-msg { display: block; }

.radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.radio-pill span {
  display: inline-block; padding: 12px 20px; min-height: 52px;
  border: 2px solid var(--line); border-radius: 999px;
  font-weight: 700; font-size: 15px; background: #fff; cursor: pointer;
}
.radio-pill input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.radio-pill input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }

/* ---------- Sections ---------- */
.section { padding: 40px 0; }
.section h2 { color: var(--navy); font-size: 25px; margin: 0 0 8px; }
.section .sub { color: var(--muted); margin: 0 0 24px; font-size: 16px; }

/* ---------- Listing cards ---------- */
.cards { display: grid; gap: 18px; grid-template-columns: 1fr; }

.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
}
.card a.card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #dbe3ee; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 13px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
  padding: 7px 12px; border-radius: 6px; color: #fff;
}
.badge.sale { background: var(--green); }
.badge.lease { background: var(--blue); }
.badge.sublease { background: #7c3aed; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-price { font-size: 21px; font-weight: 800; color: var(--navy); }
.card-price small { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
.card-title { font-size: 16px; font-weight: 700; margin: 0; }
.card-city { color: var(--muted); font-size: 14px; margin: 0; }
.card-specs {
  display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0 0; padding: 0; list-style: none;
  font-size: 14px; color: var(--ink);
}
.card-specs li { background: #eef2f7; border-radius: 6px; padding: 5px 10px; font-weight: 600; }
.card-id { font-size: 12px; color: var(--muted); margin-top: auto; padding-top: 8px; }

/* ---------- How it works ---------- */
.steps { display: grid; gap: 16px; grid-template-columns: 1fr; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--amber); color: var(--navy);
  font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; color: var(--navy); font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; padding: 44px 0; text-align: center; }
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { color: #c9d8ef; margin: 0 0 22px; }
.cta-band .btn { margin: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: #071426; color: #9fb2cc; padding: 40px 0 24px; font-size: 15px; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.site-footer h3 { color: #fff; font-size: 16px; margin: 0 0 10px; }
.site-footer a { color: #cfe0f5; text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 18px; font-size: 13px; text-align: center; }

/* ---------- Search page ---------- */
.search-layout { display: grid; gap: 20px; grid-template-columns: 1fr; padding: 24px 0 48px; }

.filter-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px;
}
.filter-panel h2 { font-size: 18px; margin: 0 0 4px; color: var(--navy); }
.filter-panel .reset { background: none; border: 0; color: var(--blue); font-size: 14px; font-weight: 700; cursor: pointer; padding: 8px 0; }
.filter-group { border-top: 1px solid var(--line); padding: 14px 0; }
.filter-group legend, .filter-group > .group-label { font-weight: 800; font-size: 14px; color: var(--navy); margin-bottom: 10px; padding: 0; }
.filter-group fieldset { border: 0; margin: 0; padding: 0; }

.check-list { max-height: 190px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.check-list label { display: flex; align-items: center; gap: 10px; padding: 9px 4px; font-size: 15px; cursor: pointer; min-height: 44px; }
.check-list input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--amber-dark); flex: 0 0 22px; }

.inline-checks label { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 15px; cursor: pointer; min-height: 44px; }
.inline-checks input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--amber-dark); flex: 0 0 22px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.results-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.results-count { font-size: 17px; font-weight: 700; color: var(--navy); }
.sort-wrap { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.sort-wrap select { font-size: 15px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 8px; min-height: 48px; font-family: var(--font); }

.no-results {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 22px; text-align: center; color: var(--muted);
}
.no-results h3 { color: var(--navy); margin: 0 0 8px; }

/* ---------- Property detail ---------- */
.property-layout { padding: 24px 0 48px; }
.back-link { display: inline-block; margin-bottom: 14px; font-weight: 700; text-decoration: none; }

.gallery { margin-bottom: 20px; }
.gallery-main { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #dbe3ee; aspect-ratio: 4 / 3; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.gallery-thumbs button { border: 3px solid transparent; border-radius: 8px; overflow: hidden; padding: 0; cursor: pointer; background: #dbe3ee; aspect-ratio: 4 / 3; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--amber); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.prop-head { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 20px; }
.prop-head h1 { font-size: 24px; margin: 0 0 6px; color: var(--navy); }
.prop-location { color: var(--muted); margin: 0 0 12px; font-size: 16px; }
.prop-price { font-size: 26px; font-weight: 800; color: var(--navy); margin: 0 0 4px; }
.prop-price small { display: block; font-size: 14px; font-weight: 600; color: var(--muted); }
.status-pill { display: inline-block; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; padding: 7px 12px; border-radius: 6px; color: #fff; margin-bottom: 10px; }
.status-pill.sale { background: var(--green); }
.status-pill.lease { background: var(--blue); }
.status-pill.sublease { background: #7c3aed; }

.detail-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.detail-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.detail-card h2 { font-size: 19px; margin: 0 0 12px; color: var(--navy); }
.detail-card p { margin: 0 0 12px; }

/* Spec table — stacks on mobile */
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { color: var(--muted); font-weight: 600; width: 46%; }
.spec-table td { font-weight: 700; color: var(--ink); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.lead-box { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.lead-box h2 { color: #fff; margin: 0 0 6px; font-size: 20px; }
.lead-box p { color: #c9d8ef; font-size: 15px; margin: 0 0 16px; }
.lead-box .field label { color: #fff; }
.lead-box .field input { border-color: transparent; }

.form-success {
  background: #ecfdf5; border: 2px solid var(--green); color: #14532d;
  border-radius: var(--radius); padding: 22px; font-size: 16px;
}
.form-success h2 { color: #14532d; margin: 0 0 8px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 20px; grid-template-columns: 1fr; padding: 24px 0 48px; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.contact-card h2 { font-size: 20px; margin: 0 0 12px; color: var(--navy); }
.contact-line { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: 16px; }
.contact-line strong { color: var(--navy); }
.map-placeholder {
  background: var(--navy-2); color: #c9d8ef; border-radius: var(--radius);
  min-height: 240px; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px; font-size: 15px;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: var(--navy); color: #fff; padding: 34px 0; }
.page-hero h1 { margin: 0 0 6px; font-size: 27px; }
.page-hero p { margin: 0; color: #c9d8ef; }

/* ---------- Terms ---------- */
.terms-body { padding: 28px 0 52px; max-width: 800px; }
.terms-body h2 { color: var(--navy); font-size: 20px; margin: 26px 0 8px; }
.terms-body p, .terms-body li { font-size: 16px; color: var(--ink); }
.terms-body ul { padding-left: 22px; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.small { font-size: 14px; color: var(--muted); }
.alert {
  background: var(--amber-light); border: 2px solid var(--amber);
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px; font-size: 15px;
}

/* ============================================================
   Breakpoint: 640px — large phones / small tablets
   ============================================================ */
@media (min-width: 640px) {
  .hero h1 { font-size: 36px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
  .quick-grid .full { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   Breakpoint: 1024px — desktop
   ============================================================ */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex !important; position: static; background: none; border: 0; padding: 0; gap: 4px; }
  .site-nav a { border: 0; padding: 12px 14px; font-size: 16px; }
  .header-phone { display: inline-block; }

  .hero { padding: 64px 0 72px; }
  .hero h1 { font-size: 44px; }

  .cards { grid-template-columns: repeat(3, 1fr); }

  .search-layout { grid-template-columns: 300px 1fr; align-items: start; }
  .filter-panel { position: sticky; top: 84px; }

  .detail-grid { grid-template-columns: 1fr 360px; align-items: start; }
  .lead-box { position: sticky; top: 84px; }

  .contact-grid { grid-template-columns: 1fr 1fr; }

  /* Spec tables keep real table layout on desktop */
  .spec-table th { width: 34%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
