/* ==========================================================================
   FTR NV — rebuilt static site
   Brand: near-black charcoal + gold/amber accent + Lato typeface
   (colors sampled from the archived 2022 theme: #292929 / #FBC733 / #3BA3EB)
   ========================================================================== */

:root {
  --dark: #1b1b1b;
  --dark-2: #242424;
  --dark-3: #2f2f2f;
  --gold: #f0b429;
  --gold-dark: #c8931a;
  --blue: #3ba3eb;
  --text: #333;
  --text-light: #eee;
  --text-muted: #9a9a9a;
  --white: #fff;
  --max: 1180px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  --serif-heading: "Lato", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--serif-heading); font-weight: 700; line-height: 1.25; margin: 0 0 0.5em; color: #1a1a1a; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.3em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-tight { padding: 44px 0; }
.section-alt { background: #f7f6f4; }
.section-dark { background: var(--dark); color: var(--text-muted); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.75em;
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 3px;
  background: var(--gold);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn:hover { background: #1a1a1a; color: var(--gold); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: #1a1a1a; border-color: var(--white); }

/* ============ Header ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(20, 20, 20, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
#site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
#site-header .logo img { height: 24px; width: auto; display: block; }
#site-header .logo { display: flex; align-items: center; }

#main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
#main-nav a {
  color: #e8e8e8;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
#main-nav a:hover, #main-nav a.active { color: var(--gold); border-bottom-color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

.markets-bar {
  background: #101010;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.markets-bar .container { display: flex; }
.markets-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 22px;
  padding: 10px 0;
}
.markets-nav a {
  color: #9d9d9d;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 600;
}
.markets-nav a:hover, .markets-nav a.active { color: var(--gold); }

/* ============ Hero / Slideshow ============ */
.hero-slideshow {
  position: relative;
  height: 72vh;
  min-height: 460px;
  max-height: 720px;
  overflow: hidden;
  background: #000;
}
.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slideshow .slide.active { opacity: 1; }
.hero-slideshow .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 45%, rgba(0,0,0,0.75) 100%);
}
.hero-caption {
  position: absolute;
  left: 0; right: 0; bottom: 56px;
  z-index: 2;
  text-align: center;
  color: var(--white);
}
.hero-caption .eyebrow { color: var(--gold); }
.hero-caption h1 { color: var(--white); font-size: clamp(1.9rem, 4vw, 3.1rem); margin-bottom: 0.3em; }
.hero-caption p { max-width: 640px; margin: 0 auto 1.4em; color: #eaeaea; font-size: 1.05rem; }

.hero-dots {
  position: absolute; z-index: 2; bottom: 20px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px;
}
.hero-dots button {
  width: 9px; height: 9px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.7); background: transparent; cursor: pointer; padding: 0;
}
.hero-dots button.active { background: var(--gold); border-color: var(--gold); }

/* generic page hero (sub-pages) */
.page-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1b1b1b 0%, #333 100%);
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.page-hero .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,0.86) 0%, rgba(10,10,10,0.45) 65%, rgba(10,10,10,0.2) 100%);
}
.page-hero .container { position: relative; z-index: 1; padding: 70px 24px; }
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin-bottom: 0.3em; }
.page-hero p { max-width: 560px; color: #ddd; font-size: 1.05rem; margin-bottom: 0; }
.breadcrumb { font-size: 0.78rem; color: #bbb; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.breadcrumb a { color: #bbb; }
.breadcrumb a:hover { color: var(--gold); }

/* ============ Feature boxes (home) ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  margin-top: -70px;
  position: relative;
  z-index: 3;
  max-width: var(--max);
  margin-left: auto; margin-right: auto;
  box-shadow: var(--shadow);
}
.feature-box {
  background: var(--dark-2);
  padding: 30px 26px 34px;
  color: #ccc;
}
.feature-box .feature-thumb {
  width: 52px; height: 52px; border-radius: 50%; overflow: hidden; margin-bottom: 16px;
  border: 2px solid var(--gold);
}
.feature-box .feature-thumb img { width: 100%; height: 100%; object-fit: cover; }
.feature-box h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 0.5em; }
.feature-box p { font-size: 0.9rem; color: #aaa; margin-bottom: 1em; }
.feature-box a.readmore { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
.feature-box a.readmore:hover { color: var(--blue); }

/* ============ Cards / grids ============ */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.market-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  color: var(--white);
  box-shadow: var(--shadow);
  background: #222;
}
.market-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.market-card:hover img { transform: scale(1.06); }
.market-card .card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.82) 100%);
}
.market-card .card-label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px;
  font-weight: 700; font-size: 1rem; letter-spacing: 0.02em;
}
.market-card .card-label span { display: block; font-size: 0.68rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; font-weight: 700; }

.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  border: 1px solid #eee;
}
.project-card .project-image { aspect-ratio: 4/3; overflow: hidden; background: linear-gradient(135deg, #2c2c2c, #444); display:flex; align-items:center; justify-content:center; }
.project-card .project-image img { width: 100%; height: 100%; object-fit: cover; }
.project-card .project-image .no-photo { color: rgba(255,255,255,0.55); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; text-align: center; padding: 0 14px; }
.project-card .project-body { padding: 18px 20px 22px; }
.project-card h3 { font-size: 1.02rem; margin-bottom: 0.25em; }
.project-card .location { font-size: 0.78rem; color: #999; text-transform: uppercase; letter-spacing: 0.04em; }
.project-card .desc { margin-top: 10px; font-size: 0.88rem; color: #555; line-height: 1.55; }
.project-card .desc p { margin: 0 0 10px; }
.project-card .desc p:last-child { margin-bottom: 0; }

.service-card {
  background: var(--white);
  border: 1px solid #eaeaea;
  border-radius: var(--radius);
  padding: 26px 26px 10px;
}
.service-card h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--gold-dark);
  border-bottom: 2px solid #f0eee9;
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.service-card ul { padding-left: 1.1em; margin-bottom: 1.2em; }
.service-card li { margin-bottom: 6px; font-size: 0.93rem; }

/* phase accordion */
.phase-list { display: flex; flex-direction: column; gap: 12px; }
.phase-item { border: 1px solid #e7e5e0; border-radius: var(--radius); background: var(--white); }
.phase-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #1a1a1a;
}
.phase-item summary::-webkit-details-marker { display: none; }
.phase-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--gold-dark);
  font-weight: 400;
}
.phase-item[open] summary::after { content: "\2212"; }
.phase-item .phase-body { padding: 0 22px 20px; color: #555; }
.phase-item .phase-body ol, .phase-item .phase-body ul { padding-left: 1.2em; }
.phase-item .phase-body li { margin-bottom: 6px; }

/* about */
.about-lead {
  font-size: 1.25rem;
  color: #222;
  font-weight: 400;
  line-height: 1.6;
}
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-row .stat b { display: block; font-size: 2.1rem; color: var(--gold-dark); font-family: var(--serif-heading); }
.stat-row .stat span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: #888; }

/* contact form */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: start; }
form.contact-form { display: grid; gap: 16px; }
form.contact-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.contact-form label { display: block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; color: #555; }
form.contact-form input, form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
}
form.contact-form input:focus, form.contact-form textarea:focus { outline: none; border-color: var(--gold); }
.info-card { background: var(--dark-2); color: #ccc; padding: 32px; border-radius: var(--radius); }
.info-card h3 { color: var(--white); }
.info-card .info-row { margin-bottom: 18px; }
.info-card .info-row strong { display: block; color: var(--gold); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }

.location-card { background: var(--white); border: 1px solid #eaeaea; border-radius: var(--radius); padding: 24px 26px; }
.location-card .region { color: var(--gold-dark); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.location-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.location-card address { font-style: normal; color: #555; font-size: 0.9rem; line-height: 1.5; margin-bottom: 12px; }
.location-card .loc-row { font-size: 0.86rem; color: #444; margin-bottom: 3px; }
.location-card .loc-row strong { color: #222; }

/* footer */
#site-footer { background: var(--dark); color: #888; padding: 46px 0 26px; border-top: 4px solid var(--gold); }
#site-footer .footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 30px; margin-bottom: 30px; }
#site-footer .footer-logo img { height: 19px; width: auto; display: block; margin-bottom: 14px; }
#site-footer .footer-cols { display: flex; gap: 50px; }
#site-footer h4 { color: var(--white); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
#site-footer ul { list-style: none; padding: 0; margin: 0; }
#site-footer li { margin-bottom: 8px; font-size: 0.86rem; }
#site-footer a { color: #999; }
#site-footer a:hover { color: var(--gold); }
.social-row { display: flex; gap: 12px; margin-top: 6px; }
.social-row a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; }
.social-row img { width: 16px; height: 16px; filter: grayscale(1) brightness(1.8); }
.social-row a:hover { background: var(--gold); }
.social-row a:hover img { filter: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; font-size: 0.8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* misc */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.lead { font-size: 1.1rem; color: #555; }
.divider { height: 1px; background: #eee; margin: 46px 0; }
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: center; }

/* Netlify forms honeypot */
.hidden-field { position: absolute; left: -9999px; }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .feature-grid, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .two-col, .contact-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
}
@media (max-width: 760px) {
  #main-nav { position: fixed; top: 78px; left: 0; right: 0; bottom: 0; background: rgba(15,15,15,0.98); flex-direction: column; align-items: flex-start; padding: 26px 24px; gap: 18px; overflow-y: auto; transform: translateX(-100%); transition: transform 0.25s ease; }
  #main-nav.open { transform: translateX(0); }
  .nav-toggle { display: block; }
  .markets-bar .markets-nav { display: none; }
  #main-nav.open ~ .markets-bar-mobile,
  .markets-bar-mobile { display: none; }
  .feature-grid, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-caption { bottom: 30px; }
  form.contact-form .row-2 { grid-template-columns: 1fr; }
  #site-footer .footer-top { flex-direction: column; }
  #site-footer .footer-cols { flex-wrap: wrap; gap: 30px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
