/* Permian Basin Industrial Index — shared styles (Moriah Brokerage brand palette) */
:root {
  --ink: #221d1a;
  --ink-soft: #6b6159;
  --ink-faint: #9c9188;
  --paper: #faf7f2;
  --paper-deep: #f3ece3;
  --card: #ffffff;
  --dusk: #241e1a;
  --dusk-deep: #15110e;
  --dusk-mid: #332b25;
  --amber: #5c1a22;
  --amber-bright: #b3505a;
  --amber-deep: #3d1117;
  --rust: #7a2c1f;
  --line: #e6dcd3;
  --line-soft: #f1e8df;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(20, 16, 14, 0.06), 0 1px 1px rgba(20, 16, 14, 0.04);
  --shadow-md: 0 8px 24px -8px rgba(20, 16, 14, 0.18), 0 2px 8px -2px rgba(20, 16, 14, 0.09);
  --shadow-lg: 0 24px 48px -16px rgba(21, 17, 14, 0.32), 0 8px 20px -8px rgba(21, 17, 14, 0.16);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

a { color: var(--amber-deep); text-decoration: none; }
a:hover { color: var(--rust); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }

/* Header */
.site-head {
  background: rgba(36, 30, 26, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(92, 26, 34, 0.4);
  position: sticky; top: 0; z-index: 50;
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; padding-top: 18px; padding-bottom: 18px;
}
.brand { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: #fff; letter-spacing: 0.01em; flex-shrink: 0; }
.brand span { color: var(--amber-bright); font-style: italic; }
.brand:hover { color: #fff; }
.nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; }
.nav-links a {
  color: #c7beb6; font-size: 0.9rem; font-weight: 500; letter-spacing: 0.01em;
  position: relative; padding-bottom: 4px;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--amber-bright); transition: right 0.25s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { right: 0; }
.nav-links a.active { color: var(--amber-bright); }
.nav-links a.active::after { right: 0; }

/* Markets We Serve dropdown */
.nav-dropdown { position: relative; padding-bottom: 14px; margin-bottom: -14px; }
.nav-dropdown-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  color: #c7beb6; font-size: 0.9rem; font-weight: 500; letter-spacing: 0.01em;
  cursor: pointer; padding-bottom: 4px; position: relative; user-select: none;
}
.nav-dropdown-toggle::before {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--amber-bright); transition: right 0.25s ease;
}
.nav-dropdown-toggle::after {
  content: "▾"; font-size: 0.62em; opacity: 0.75; transition: transform 0.2s ease;
}
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active { color: #fff; }
.nav-dropdown-toggle:hover::before,
.nav-dropdown-toggle.active::before { right: 0; }
.nav-dropdown-toggle.active { color: var(--amber-bright); }
.nav-dropdown:hover .nav-dropdown-toggle::after,
.nav-dropdown.open .nav-dropdown-toggle::after { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%; margin-top: 14px;
  transform: translateX(-50%) translateY(4px);
  background: var(--dusk); border: 1px solid rgba(92, 26, 34, 0.35);
  border-radius: 10px; padding: 8px; min-width: 150px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  display: flex; flex-direction: column; gap: 2px; z-index: 60;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  padding: 8px 12px; border-radius: 6px; font-size: 0.88rem; color: #cdc3ba;
}
.nav-dropdown-menu a::after { display: none; }
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active { background: rgba(179, 80, 90, 0.16); color: #fff; }

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(92, 26, 34, 0.28), transparent 60%),
    linear-gradient(165deg, var(--dusk) 0%, var(--dusk-deep) 100%);
  color: #fff; padding: 96px 0 84px; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 22px 22px;
}
.hero .wrap { position: relative; }
.hero .eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.76rem; font-weight: 600; color: var(--amber-bright); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.1; max-width: 21ch; font-weight: 600; color: #fff; }
.hero p.lede { margin-top: 20px; font-size: 1.18rem; color: #beb2a8; max-width: 56ch; font-weight: 400; }
.hero .cta-row { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: 0.96rem; letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn-amber { background: linear-gradient(180deg, var(--amber-bright), var(--amber)); color: #fff; box-shadow: var(--shadow-sm); }
.btn-amber:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(92, 26, 34, 0.5); color: #fff; }
.btn-ghost { border: 1px solid rgba(255,255,255,0.28); color: #ede7df; }
.btn-ghost:hover { border-color: var(--amber-bright); color: #fff; transform: translateY(-1px); }

/* Sections */
.section { padding: 76px 0; }
.section.tint { background: var(--paper-deep); }
.section .kicker {
  display: block; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.74rem;
  font-weight: 600; color: var(--amber-deep); margin-bottom: 10px;
}
.section h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-bottom: 10px; }
.section .sub { color: var(--ink-soft); margin-bottom: 34px; max-width: 62ch; font-size: 1.03rem; }

/* Listing cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-soft); }
.card > a { display: block; overflow: hidden; }
.card img { width: 100%; height: 210px; object-fit: cover; object-position: top; display: block; transition: transform 0.4s ease; }
.card:hover img { transform: scale(1.05); }
.card .card-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 600; }
.card h3 a { color: var(--ink); }
.card .price { color: var(--amber-deep); font-weight: 700; font-family: var(--serif); font-size: 1.05rem; }
.card .meta { color: var(--ink-soft); font-size: 0.92rem; }
.card .agent { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 0.85rem; color: var(--ink-faint); }

/* Listing detail */
.detail-head {
  background:
    radial-gradient(ellipse 700px 400px at 90% -20%, rgba(92, 26, 34, 0.26), transparent 60%),
    linear-gradient(165deg, var(--dusk) 0%, var(--dusk-deep) 100%);
  color: #fff; padding: 56px 0;
}
.detail-head h1 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); color: #fff; }
.detail-head .price-line { margin-top: 12px; font-size: 1.3rem; color: var(--amber-bright); font-weight: 700; font-family: var(--serif); }
.detail-head .status { margin-top: 6px; color: #beb2a8; }
.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.detail-grid img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 38%; color: var(--ink-soft); font-weight: 600; font-size: 0.9rem; }
.fit-note { margin-top: 20px; background: var(--paper-deep); border-left: 3px solid var(--amber); padding: 16px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* Photo gallery on listing detail pages */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.gallery a { display: block; overflow: hidden; border-radius: 8px; }
.gallery img { width: 100%; height: 112px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; transition: transform 0.35s ease; }
.gallery a:hover img { transform: scale(1.08); }
.gallery-note { margin-top: 10px; font-size: 0.85rem; color: var(--ink-faint); }

/* Market pages */
.market-list { list-style: none; margin-top: 8px; }
.market-list li { padding: 7px 0; }

/* Things-you-should-know / FAQ style entries */
.faq-item {
  padding: 22px 0; border-top: 1px solid var(--line);
}
.faq-item:first-of-type { border-top: none; }
.faq-item h3 { font-size: 1.08rem; margin-bottom: 8px; font-weight: 600; }
.faq-item p { color: var(--ink-soft); }

/* Contact block */
.contact-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; max-width: 520px; box-shadow: var(--shadow-sm);
}
.contact-card p { margin-bottom: 10px; }
.contact-card .big { font-size: 1.35rem; font-weight: 700; font-family: var(--serif); }

/* Footer — TREC 535.155: broker name at least half the size of the largest contact info. */
.site-foot { background: var(--dusk-deep); color: #a89d93; margin-top: 60px; padding: 48px 0 38px; font-size: 0.95rem; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.foot-brand { font-family: var(--serif); color: #fff; font-weight: 600; font-size: 1.1rem; margin-bottom: 6px; }
.foot-broker { color: #fff; font-weight: 700; font-size: 1.05rem; }
.site-foot a { color: var(--amber-bright); }
.site-foot a:hover { color: #fff; }
.legal-links { display: flex; flex-direction: column; gap: 6px; }
.foot-note { margin-top: 30px; padding-top: 20px; border-top: 1px solid #2e2722; font-size: 0.85rem; color: #7d7368; }

/* Mobile hamburger nav */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 34px; height: 34px; min-width: 34px; flex: 0 0 34px;
  background: none; border: none; padding: 0; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px; background: #fff; border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
  .detail-grid { grid-template-columns: 1fr; }
  .hero { padding: 68px 0 56px; }
  .section { padding: 56px 0; }

  .site-head .wrap { flex-wrap: nowrap; position: relative; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--dusk); padding: 8px 28px 22px;
    border-top: 1px solid rgba(92, 26, 34, 0.35);
    box-shadow: var(--shadow-lg); max-height: 80vh; overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-links > a::after { display: none; }
  .nav-links > a.active { color: var(--amber-bright); }

  .nav-dropdown { padding-bottom: 0; margin-bottom: 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; padding: 12px 0; }
  .nav-dropdown-toggle::before { display: none; }
  .nav-dropdown-menu {
    position: static; opacity: 1; visibility: visible; pointer-events: none;
    max-height: 0; overflow: hidden; transform: none; box-shadow: none; border: none;
    background: transparent; padding: 0 0 0 14px; margin-top: 0;
    transition: max-height 0.25s ease;
  }
  .nav-dropdown.open .nav-dropdown-menu { pointer-events: auto; max-height: 200px; padding-bottom: 8px; }
  .nav-dropdown.open .nav-dropdown-toggle::after { transform: rotate(180deg); }
}
