/* =========================================================
   Western Falcon v3 — Dark Editorial Studio
   Fixed sidebar, oversized type, orange accent, grid borders
   ========================================================= */

:root {
  --bg: #0d0f12;
  --panel: #14171c;
  --panel-2: #191d24;
  --line: #262c34;
  --line-soft: #1e232b;
  --text: #efe9df;
  --muted: #99a0aa;
  --dim: #5c646e;
  --accent: #ff6b1a;
  --accent-2: #ffb280;
  --max: 1240px;
  --side: 260px;
  --ease: 0.25s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  display: flex;
  min-height: 100vh;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--text);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* ===== Sidebar ===== */
.side {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--side);
  background: var(--bg);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  z-index: 50;
}
.side-brand img { height: 64px; width: auto; }
.side-brand .brand-name {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.side-tag {
  margin-top: 16px;
  font-size: 13px;
  color: var(--dim);
  line-height: 1.5;
}
.side-nav {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.side-nav a {
  padding: 14px 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--ease);
}
.side-nav a .num {
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0;
}
.side-nav a:hover { color: var(--accent); padding-left: 8px; }
.side-nav a.is-active { color: var(--accent); }
.side-nav a.is-active .num { color: var(--accent); }
.side-foot {
  margin-top: auto;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.side-foot a { color: var(--text); font-weight: 600; }
.side-foot a:hover { color: var(--accent); }
.side-cta {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all var(--ease);
}
.side-cta:hover { background: var(--accent); color: #0d0f12; }

/* ===== Main ===== */
.main {
  flex: 1;
  margin-left: var(--side);
  min-width: 0;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px;
}

/* Mobile top bar (hidden on desktop) */
.topbar {
  display: none;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 14px 20px;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 60;
}
.topbar img { height: 40px; width: auto; }
.burger {
  background: none;
  border: 1px solid var(--line);
  width: 42px; height: 42px;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}
/* hidden checkbox sidebar */
.sidebar-toggle { display: none; }
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 45;
}

/* ===== Hero ===== */
.hero {
  border-bottom: 1px solid var(--line);
  padding: 96px 0 72px;
  position: relative;
}
.hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}
.hero .kicker::before {
  content: '';
  width: 40px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.hero h1 {
  font-size: clamp(44px, 7.5vw, 96px);
  letter-spacing: -0.03em;
  line-height: 0.98;
}
.hero h1 .stroke {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
}
.hero h1 .hl { color: var(--accent); }
.hero-lead {
  margin-top: 36px;
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
}
.hero-actions { margin-top: 44px; display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--text);
  transition: all var(--ease);
  font-family: inherit;
  cursor: pointer;
}
.btn--accent { background: var(--accent); border-color: var(--accent); color: #0d0f12; }
.btn--accent:hover { background: transparent; color: var(--accent); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.hero-meta {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}
.hero-meta > div {
  padding: 28px;
  border-right: 1px solid var(--line);
}
.hero-meta > div:last-child { border-right: 0; }
.meta-num { font-size: 40px; font-weight: 700; color: var(--accent); line-height: 1; }
.meta-label { font-size: 12px; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 8px; }

/* Marquee */
.marquee {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
  background: var(--panel);
}
.marquee-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: scroll 24s linear infinite;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.marquee-track b { color: var(--accent); font-weight: 400; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.section { padding: 88px 0; border-bottom: 1px solid var(--line); }
.section--panel { background: var(--panel); }

.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.sec-head .index {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
}
.sec-head h2 { font-size: clamp(32px, 5vw, 56px); max-width: 640px; }
.sec-head p { color: var(--muted); max-width: 380px; font-size: 15px; }

/* Big row list (services) */
.rowlist { border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 80px 1fr auto 40px;
  align-items: center;
  gap: 32px;
  padding: 36px 8px;
  border-bottom: 1px solid var(--line);
  transition: all var(--ease);
  position: relative;
}
.row:hover { background: var(--panel-2); padding-left: 24px; }
.row .no { font-size: 14px; color: var(--accent); letter-spacing: 0.1em; }
.row h3 { font-size: clamp(22px, 3vw, 36px); transition: color var(--ease); }
.row:hover h3 { color: var(--accent); }
.row p { color: var(--muted); font-size: 14px; max-width: 340px; }
.row .go { font-size: 22px; color: var(--dim); transition: all var(--ease); }
.row:hover .go { color: var(--accent); transform: translateX(6px); }

/* Split */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-img { border: 1px solid var(--line); padding: 8px; }
.split-img img { width: 100%; filter: grayscale(30%) contrast(1.05); }
.split .lead { color: var(--muted); font-size: 17px; margin: 20px 0; }
.split h2 { font-size: clamp(30px, 4vw, 46px); }
.tick { list-style: none; margin-top: 28px; border-top: 1px solid var(--line); }
.tick li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.tick li::before { content: '→'; color: var(--accent); flex-shrink: 0; }

/* Cards grid */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.g3-cell {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  transition: background var(--ease);
}
.g3-cell:last-child { border-right: 0; }
.g3-cell:hover { background: var(--panel-2); }
.g3-num { font-size: 14px; color: var(--accent); letter-spacing: 0.14em; }
.g3-cell h4 { font-size: 20px; margin: 14px 0 10px; }
.g3-cell p { font-size: 14px; color: var(--muted); }

/* Page hero */
.page-hero {
  border-bottom: 1px solid var(--line);
  padding: 80px 0 56px;
}
.crumbs { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); margin-bottom: 24px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 6px; }
.page-hero h1 { font-size: clamp(40px, 7vw, 84px); }
.page-hero p { margin-top: 20px; color: var(--muted); font-size: 17px; max-width: 560px; }

/* Prose */
.prose { max-width: 780px; font-size: 17px; color: var(--muted); line-height: 1.85; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); margin: 56px 0 16px; }
.prose h3 { font-size: 19px; margin: 40px 0 12px; color: var(--accent-2); }
.prose p { margin-bottom: 18px; }

/* CTA */
.cta {
  background: var(--accent);
  color: #0d0f12;
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: #0d0f12; font-size: clamp(26px, 4vw, 44px); max-width: 640px; }
.cta p { margin-top: 8px; color: rgba(13,15,18,0.7); font-weight: 600; }
.cta .btn { border-color: #0d0f12; color: #0d0f12; }
.cta .btn:hover { background: #0d0f12; color: var(--accent); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.cinfo {
  border: 1px solid var(--line);
  padding: 28px;
  margin-bottom: 16px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: border-color var(--ease);
}
.cinfo:hover { border-color: var(--accent); }
.cinfo img { width: 28px; height: 28px; filter: invert(1) sepia(1) saturate(4) hue-rotate(-25deg); flex-shrink: 0; }
.cinfo .k { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); }
.cinfo .v { margin-top: 6px; font-size: 16px; }
.cinfo .v a { color: var(--text); }
.cinfo .v a:hover { color: var(--accent); }

.form {
  border: 1px solid var(--line);
  padding: 44px;
  background: var(--panel);
}
.form h3 { font-size: 24px; margin-bottom: 8px; }
.form .sub { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.fgroup { margin-bottom: 20px; }
.fgroup label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.fgroup input, .fgroup textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color var(--ease);
}
.fgroup input:focus, .fgroup textarea:focus { outline: none; border-color: var(--accent); }
.fgroup textarea { min-height: 140px; resize: vertical; }
.form button { width: 100%; justify-content: center; }
.form-success { display: none; margin-top: 16px; padding: 14px; border: 1px solid var(--accent); color: var(--accent); font-size: 14px; text-align: center; }
.form-success.show { display: block; }

.map-wrap { margin-top: 56px; border: 1px solid var(--line); filter: grayscale(1) invert(0.9) contrast(0.9); }
.map-wrap iframe { width: 100%; height: 400px; border: 0; display: block; }

/* Footer band */
.foot {
  padding: 64px 0 40px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.foot h4 { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.foot a { display: block; padding: 5px 0; color: var(--muted); font-size: 14px; }
.foot a:hover { color: var(--accent); }
.foot .brand-p { color: var(--muted); font-size: 14px; max-width: 380px; line-height: 1.8; }
.foot .brand-p strong { color: var(--text); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  padding: 24px 0 0;
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 12px;
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .side {
    position: fixed;
    left: 0;
    transform: translateX(-100%);
    transition: transform var(--ease);
    height: 100%;
    overflow-y: auto;
  }
  .sidebar-toggle:checked ~ .side { transform: translateX(0); }
  .sidebar-toggle:checked ~ .sidebar-overlay { display: block; }
  .main { margin-left: 0; }
  .topbar { display: flex; }
  .wrap { padding: 0 24px; }
}
@media (max-width: 820px) {
  .split, .contact-grid, .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .grid3 { grid-template-columns: 1fr; }
  .g3-cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .g3-cell:last-child { border-bottom: 0; }
  .row { grid-template-columns: 48px 1fr; grid-template-rows: auto auto; row-gap: 8px; }
  .row .go { display: none; }
  .row p { grid-column: 2; }
  .hero-meta { grid-template-columns: 1fr; }
  .hero-meta > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-meta > div:last-child { border-bottom: 0; }
  .hero { padding: 64px 0 48px; }
  .section { padding: 64px 0; }
  .form { padding: 28px 20px; }
}
