/* ===== PitchPath • Home gallery (clean, production) ===== */
:root{
  /* Brand */
  --accent: #9D2235;            /* Arkansas-like cardinal red */
  --accent-ink: #ffffff;

  /* Base */
  --bg: #f7f7f8;
  --card: #ffffff;
  --ink: #0f172a;               /* near-black text */
  --muted: #64748b;             /* secondary text */
  --border: rgba(15, 23, 42, .08);

  /* Effects */
  --radius: 18px;
  --shadow-sm: 0 8px 24px rgba(2, 12, 27, .06);
  --shadow-lg: 0 20px 50px rgba(2, 12, 27, .14);

  /* Layout */
  --grid-gap: 22px;
}

/* Global */
html, body{
  background: transparent;
  color: var(--ink);
  font-family: Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Page wrapper & background ===== */
.home-wrap{
  position: relative;
  z-index: 0;
  padding: 16px 20px 28px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Background image with subtle darkening for legibility */
.home-wrap::before{
  content:"";
  position: fixed;
  inset: 0;
  background: url('/assets/home_bg.jpg') center/cover no-repeat fixed;
  filter: saturate(.98) contrast(1.03) brightness(.78);
  z-index: -1;
  pointer-events: none;
}

/* Soft overlay – smooths busy photos */
.home-wrap::after{
  content:"";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 35, 66, .18), rgba(10, 35, 66, .28));
  z-index: -1;
  pointer-events: none;
}

/* Links inherit color; tiles handle their own focus ring */
.home-wrap a,
.home-wrap a:visited{
  color: inherit;
  text-decoration: none;
}

/* ===== Optional hero (place a .hero section at top if desired) ===== */
.hero{
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 16px 8px;
  color: #fff;
}
.hero h1{
  margin: 0 0 6px 0;
  font-size: clamp(32px, 4vw, 54px);
  letter-spacing: -0.02em;
  font-weight: 800;
}
.hero p{
  margin: 0 0 18px 0;
  font-size: clamp(15px, 1.6vw, 18px);
  color: rgba(255,255,255,.9);
}
.hero .btn{
  display: inline-block;
  padding: 11px 16px;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid rgba(255,255,255,.85);
  color: #fff;
}
.hero .btn + .btn{ margin-left: 10px; }
.hero .btn.primary{
  background: var(--accent);
  border-color: var(--accent);
}

/* ===== Grid ===== */
.tiles{
  display: grid;
  gap: var(--grid-gap);
  margin-top: 14px;
}
.tiles--two{   grid-template-columns: repeat(2, minmax(340px, 1fr)); }
.tiles--three{ grid-template-columns: repeat(3, minmax(280px, 1fr)); }

@media (max-width: 1100px){
  .tiles--two, .tiles--three{ grid-template-columns: repeat(2, minmax(260px, 1fr)); }
}
@media (max-width: 720px){
  .tiles--two, .tiles--three{ grid-template-columns: 1fr; }
}

/* ===== Tile card ===== */
.tile{
  position: relative;
  display: block;
  height: 240px;                     /* a bit shorter; reads faster */
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  will-change: transform;
}
.tile:focus{ outline: 3px solid #94a3b8; outline-offset: 3px; }
.tile:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(15,23,42,.14);
}

/* Background preview image (always visible, not just on hover) */
.tile-media{
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: saturate(.92) contrast(1.02) brightness(.92);
  transform: scale(1.03);
  transition: transform .25s ease, filter .25s ease;
}
.tile:hover .tile-media{
  transform: scale(1.00);
  filter: saturate(1) contrast(1.04) brightness(.98);
}

/* Subtle shade for text contrast */
.tile-shade{
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.38));
  pointer-events: none;
}

/* Content */
.tile-body{
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 16px;
  color: #fff;                       /* ensure legibility atop image */
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.tile-title{
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.tile-desc{
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(255,255,255,.92);
  max-width: 60ch;
  display: block;                    /* visible on touch devices */
}

/* CTA chip – visible, not gated by hover */
.tile-cta{
  display: inline-block;
  width: fit-content;
  margin-top: 2px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 18px rgba(157,34,53,.22);
  transition: filter .12s ease, transform .12s ease;
}
.tile:hover .tile-cta{ transform: translateY(-1px); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .tile, .tile-media, .tile-cta { transition: none !important; }
}

/* ===== Footer (optional) ===== */
.site-footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 20px auto 6px;
  padding: 10px 4px 24px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer a{
  color: var(--muted);
  text-decoration: none;
}
.site-footer a:hover{ text-decoration: underline; }
/* ===== Pitching Report polish ===== */
.report-grid{
  display: grid;
  grid-template-columns: 260px minmax(1200px, 1fr) 360px;
  column-gap: 10px;
  align-items: start;
  min-width: 1800px; /* allow horizontal scroll for big canvases */
}

@media (max-width: 1500px){
  .report-grid{ grid-template-columns: 260px minmax(900px, 1fr) 340px; }
}

/* Reusable card */
.card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.card--pad{ padding: 10px 12px; }
.card h3{ margin: 0 0 6px; font-size: 16px; font-weight: 700; }

/* Sticky side panels */
.sticky{ position: sticky; top: 8px; z-index: 2; }

/* KPI row */
.kpi-row{
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
@media (max-width: 1400px){ .kpi-row{ grid-template-columns: repeat(3, 1fr); } }
.kpi{
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px;
}
.kpi-label{ font-size: 12px; color: #606167; margin: 0 0 2px; }
.kpi-value{ font-size: 20px; font-weight: 800; margin: 0; }

/* Plot cards */
.plot-card{ padding: 6px; }
.plot-card .dash-graph{ height: 520px; width: 100%; }

/* DataTable tighter defaults */
.table-compact .dash-table-container .dash-spreadsheet td, 
.table-compact .dash-table-container .dash-spreadsheet th{
  padding: 6px 8px;
  font-size: 13px;
}
.table-compact .dash-spreadsheet-container{
  border: none;
}

/* Make summary elements show pointer cursor for better UX */
summary {
  cursor: pointer;
}
