/* KAC site styles. Brand colors from the old site: gold #C89C53, dark #1A1A1A. */
:root {
  --gold: #c89c53;
  --gold-dark: #a87d36;
  --ink: #1a1a1a;
  --ink-2: #252525;
  --text: #d6d6d6;
  --muted: #a3a3a3;
  --line: #333333;
  --bg: #1a1a1a;
  --bg-soft: #232323;
  --heading: #ffffff;
  --radius: 6px;
  --wrap: 1180px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
a:hover { color: #fff; }
h1, h2, h3 { line-height: 1.25; color: var(--heading); margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Top bar + header */
.topbar { background: var(--ink); color: #cfcfcf; font-size: 14px; }
.topbar-inner { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: var(--gold); text-decoration: none; font-weight: 500; }

.site-header { background: var(--ink); border-top: 1px solid #2c2c2c; position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 20px; }
.brand img { width: 131px; height: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.site-nav a { display: block; padding: 10px 14px; color: #fff; text-decoration: none; font-weight: 500; border-radius: var(--radius); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); }
.nav-toggle { display: none; background: none; border: 1px solid var(--gold); color: var(--gold); font: inherit; padding: 6px 14px; border-radius: var(--radius); cursor: pointer; }

@media (max-width: 820px) {
  /* Without JS: menu wraps under the logo. With JS: collapsible menu. */
  .header-inner { flex-wrap: wrap; }
  .site-nav ul { flex-wrap: wrap; }
  .js .header-inner { flex-wrap: nowrap; }
  .js .nav-toggle { display: block; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); border-top: 1px solid #2c2c2c; }
  .js .site-nav.open { display: block; }
  .js .site-nav ul { flex-direction: column; padding: 8px 12px 16px; }
}

/* Buttons */
.btn { display: inline-block; background: var(--gold); color: var(--ink); text-decoration: none; font-weight: 600; padding: 13px 26px; border-radius: var(--radius); border: 2px solid var(--gold); }
.btn:hover { background: transparent; color: var(--gold); }
.btn-outline { background: transparent; color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--ink); }

/* Hero */
.hero {
  background: linear-gradient(rgba(10,10,10,.55), rgba(10,10,10,.70)), url("../img/hero-lax-approach.webp") center 40% / cover no-repeat;
  color: #fff; min-height: 520px; display: flex; align-items: center;
}
.hero-inner { padding-top: 80px; padding-bottom: 80px; }
.hero h1 { color: #fff; font-size: clamp(32px, 5vw, 56px); max-width: 15ch; font-weight: 700; }
.hero-sub { font-size: 18px; color: #e8e8e8; max-width: 48ch; margin-bottom: 1.6em; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 600; color: var(--gold); margin-bottom: .8em; }
.eyebrow a { color: inherit; text-decoration: none; }

/* Sections */
.section { padding: 72px 0; }
.section-dark { background: #111111; color: #d6d6d6; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark h2 { color: #fff; }
.section-title { font-size: clamp(26px, 3vw, 36px); text-align: center; margin-bottom: 1em; }
.section-title::after { content: ""; display: block; width: 60px; height: 3px; background: var(--gold); margin: 14px auto 0; }
.lead { text-align: center; max-width: 70ch; margin: -.5em auto 2.5em; color: var(--muted); }
.history { max-width: 820px; }
.history h2 { font-size: clamp(26px, 3vw, 36px); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (min-width: 1100px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }
.service-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.service-card img { height: 72px; width: auto; margin-bottom: 18px; }
.service-card h3 { font-size: 20px; color: var(--gold); }
.service-card p { font-size: 15px; color: var(--muted); margin: 0; }

.service-list { max-width: 900px; }
.service-row { display: grid; grid-template-columns: 92px 1fr; gap: 28px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.service-row:first-child { padding-top: 0; }
.service-row img { width: 92px; height: auto; }
.service-row h2 { font-size: 24px; color: var(--gold); }
@media (max-width: 560px) { .service-row { grid-template-columns: 1fr; gap: 12px; } .service-row img { width: 64px; } }

/* Projects */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.project-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.project-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.project-card > a { display: block; overflow: hidden; }
.project-card > a:hover img { transform: scale(1.04); }
.project-body { padding: 18px 20px 22px; border-top: 3px solid var(--gold); flex: 1; }
.project-body h3 { font-size: 17px; margin-bottom: .4em; }
.project-body h3 a { color: var(--heading); text-decoration: none; }
.project-body p { font-size: 14px; color: var(--muted); margin: 0; }
.project-hero { border-radius: var(--radius); margin-bottom: 28px; }

/* Inner pages */
.page-head { background: linear-gradient(rgba(10,10,10,.78), rgba(10,10,10,.85)), url("../img/hero-lax-approach.webp") center 35% / cover no-repeat; color: #fff; padding: 64px 0 56px; }
.page-head h1 { color: #fff; font-size: clamp(30px, 4vw, 44px); margin: 0; }
.page-sub { color: #dcdcdc; margin: .6em 0 0; max-width: 60ch; }
.prose { max-width: 820px; }
.prose h2 { font-size: 26px; margin-top: .2em; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.contact-item { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.contact-item h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); }
.big-link { font-size: 20px; font-weight: 600; color: var(--heading); text-decoration: none; word-break: break-word; }

/* Marks text the owner still needs to write. Must not exist at launch. */
.text-needed { border: 2px dashed #d9a400; background: #2e2610; color: #ffd966; padding: 14px 18px; border-radius: var(--radius); margin: 20px 0; font-size: 15px; }

/* Footer */
.site-footer { background: #111111; border-top: 1px solid var(--line); color: #bdbdbd; padding: 22px 0 0; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 10px 24px; flex-wrap: wrap; }
.footer-contact { margin: 0; }
.footer-contact span { margin: 0 6px; color: #666; }
.site-footer a { color: #e2e2e2; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.copyright { border-top: 1px solid #2c2c2c; margin-top: 16px; padding-top: 10px; padding-bottom: 12px; font-size: 12px; color: #8a8a8a; }

/* ---------- Staff area ---------- */
.staff-bar { background: #111; border-bottom: 1px solid var(--line); font-size: 14px; }
.staff-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 8px 20px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.staff-bar nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.staff-bar nav a { color: #e2e2e2; text-decoration: none; font-weight: 500; }
.staff-bar nav a[aria-current="page"], .staff-bar nav a:hover { color: var(--gold); }
.staff-bar form { display: flex; align-items: center; gap: 12px; margin: 0; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--gold); cursor: pointer; text-decoration: underline; }
.staff-link { margin-left: 10px; color: #8a8a8a !important; }

.auth-box { max-width: 480px; }
.auth-box h1 { font-size: 30px; }
.h-sm { font-size: 18px; margin-top: 1.6em; }
.form { display: grid; gap: 16px; margin-top: 18px; }
.form label { display: grid; gap: 6px; font-weight: 500; color: var(--heading); font-size: 15px; }
.form label.inline { display: flex; align-items: baseline; gap: 8px; font-weight: 400; }
.form input[type=text], .form input[type=email], .form input[type=password], .form input[type=number], .form input[type=date], .form select, .form textarea {
  width: 100%; padding: 11px 12px; font: inherit; color: var(--heading); background: #111; border: 1px solid #444; border-radius: var(--radius);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.form button.btn { justify-self: start; cursor: pointer; font: inherit; font-weight: 600; }
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 0; display: grid; gap: 8px; }
.form legend { padding: 0 6px; font-weight: 500; color: var(--heading); font-size: 15px; }
.form-foot { margin-top: 18px; font-size: 15px; }

.alert { border-radius: var(--radius); padding: 12px 16px; margin: 18px 0; font-size: 15px; }
.alert-ok { background: #16261a; border: 1px solid #2f6b3c; color: #b9e6c2; }
.alert-error { background: #2a1414; border: 1px solid #7a2e2e; color: #f3c0c0; }

.title-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.title-row h1 { margin: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { background: #111; color: var(--muted); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.table tr:last-child td { border-bottom: 0; }
.table tr.is-off td { color: #777; }

.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 24px; }
.app-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--text); display: block; }
a.app-card:hover { border-color: var(--gold); }
.app-card h2 { font-size: 20px; color: var(--gold); }
.app-card.is-soon { opacity: .75; }
.badge { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--gold); color: var(--gold); }

/* ---------- To-Do Board ---------- */
.small { font-size: 13px; }
.warn { color: #ff8a65; }
.h-sub { font-size: .55em; font-weight: 500; margin-left: 6px; }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
button.btn, button.btn-outline { cursor: pointer; font: inherit; font-weight: 600; }
.todo h1 { font-size: clamp(26px, 3vw, 34px); }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.pill { display: inline-block; padding: 6px 14px; border: 1px solid #444; border-radius: 99px; color: var(--text); text-decoration: none; font-size: 14px; }
.pill b { color: var(--gold); margin-left: 4px; font-weight: 600; }
.pill.on { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.pill.on b { color: var(--ink); }
.pill-warn b { color: #ff8a65; }

.quick-add, .inline-add { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 18px; }
.quick-add input[type=text], .inline-add input[type=text] { flex: 1 1 260px; }
.quick-add input, .quick-add select, .inline-add input, .inline-add select, .filters input, .filters select, .import-table input, .import-table select, .import-table textarea {
  padding: 9px 10px; font: inherit; font-size: 14px; color: var(--heading); background: #111; border: 1px solid #444; border-radius: var(--radius);
}
.quick-add input:focus, .quick-add select:focus, .filters input:focus, .filters select:focus, .inline-add input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.quick-add { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }

.filters { display: grid; gap: 10px; margin-bottom: 18px; }
.filters input[type=search] { width: 100%; font-size: 16px; padding: 11px 14px; }
.filter-selects { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.task-group { margin-bottom: 22px; }
.group-h { font-size: 15px; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 4px; }
.task-list { list-style: none; margin: 0; padding: 0; }
.task { display: flex; align-items: flex-start; gap: 12px; padding: 10px 6px; border-bottom: 1px solid #262626; }
.task form { margin: 0; }
.task-main { flex: 1; min-width: 0; }
.task-title { color: var(--heading); text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.task-title:hover { color: var(--gold); }
.task-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.task.is-done .task-title { color: #777; text-decoration: line-through; }
.task.pri-1 { border-left: 3px solid #e57373; }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 4px; background: #2a2a2a; color: #cfcfcf; white-space: nowrap; }
.tag-high { background: #4a1f1f; color: #ffb3b3; }
.tag-low { color: #9a9a9a; }
.tag-overdue { background: #5a2a14; color: #ffc29e; }
.tag-today { background: #3d3214; color: #ffe08a; }
.tag-job { background: #2e2615; color: var(--gold); }
.tag-person { background: #1c2733; color: #a9cbea; }
.check { width: 24px; height: 24px; border: 2px solid #666; border-radius: 6px; background: transparent; cursor: pointer; padding: 0; margin-top: 1px; flex: none; }
.check:hover { border-color: var(--gold); }
.check[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); position: relative; }
.check[aria-pressed="true"]::after { content: "✓"; color: var(--ink); font-weight: 700; position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; }
.check-sm { width: 20px; height: 20px; }
.star { background: none; border: 0; font-size: 20px; line-height: 1; color: #444; cursor: pointer; padding: 2px 4px; }
.star.on, .star:hover { color: var(--gold); }
.empty { padding: 30px 0; color: var(--muted); }

.task-detail { max-width: 820px; }
.task-form input[type=text]:first-of-type { font-size: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.form textarea { width: 100%; padding: 11px 12px; font: inherit; color: var(--heading); background: #111; border: 1px solid #444; border-radius: var(--radius); resize: vertical; }
.check-row { display: flex; gap: 24px; flex-wrap: wrap; }
.sub-list, .file-list, .job-list { list-style: none; margin: 0 0 8px; padding: 0; }
.sub-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid #262626; }
.sub-list li span { flex: 1; }
.sub-list li.is-done span { text-decoration: line-through; color: #777; }
.sub-list form { margin: 0; }
.file-list li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #262626; flex-wrap: wrap; }
.file-list a { display: flex; align-items: center; gap: 10px; color: var(--heading); text-decoration: none; flex: 1; min-width: 200px; }
.file-list img { width: 64px; height: 48px; object-fit: cover; border-radius: 4px; }
.file-icon { font-size: 26px; width: 64px; text-align: center; }
.file-list form { margin: 0; }
.job-list li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid #262626; padding: 4px 0; }
.job-list li .inline-add { margin: 6px 0; flex: 1; }
.job-list li.is-off input { color: #777; }
.danger-zone { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 16px; }
.link-btn.danger, .danger { color: #ef9a9a; }
.import-form textarea { min-height: 220px; }
.import-table td { vertical-align: top; white-space: normal; }
.import-table td.wide { min-width: 280px; }
.import-table td.wide input, .import-table td.wide textarea { width: 100%; }
.import-table textarea { margin-top: 6px; font-size: 13px; }
.alert-error a, .alert-ok a { color: inherit; }

/* Print sheet: plain black on white */
.print-sheet { background: #fff; color: #111; max-width: 900px; margin: 0 auto; padding: 24px; font-size: 14px; }
.print-sheet h1 { color: #111; font-size: 22px; }
.print-sheet h1 small { font-size: 14px; color: #555; font-weight: 400; }
.print-sheet h2 { color: #111; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; border-bottom: 2px solid #111; margin-top: 22px; padding-bottom: 4px; }
.print-sheet table { width: 100%; border-collapse: collapse; }
.print-sheet td { padding: 6px 4px; border-bottom: 1px solid #ddd; vertical-align: top; }
.print-sheet td.box { width: 24px; font-size: 18px; }
.print-sheet td.d { width: 70px; text-align: right; white-space: nowrap; }
.print-sheet .n { color: #555; font-size: 12px; margin-top: 2px; }
@media print {
  body { background: #fff; }
  .topbar, .site-header, .site-footer, .staff-bar, .no-print, .alert { display: none !important; }
  .print-sheet { padding: 0; }
}
.topbar-right { display: flex; gap: 18px; align-items: center; }
.topbar .topbar-login { color: var(--ink); background: var(--gold); padding: 3px 12px; border-radius: 99px; font-size: 13px; }
.topbar .topbar-login:hover { background: #fff; }
/* Import preview cards: full task text visible */
.import-cards { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 14px; }
.import-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 10px; }
.import-card:has(.keep input:not(:checked)) { opacity: .45; }
.import-card .keep { display: flex; gap: 8px; align-items: center; font-weight: 500; color: var(--gold); justify-self: start; }
.import-card label.full textarea { width: 100%; font-size: 16px; overflow: hidden; resize: vertical; }
.import-card label.full textarea[name$="[notes]"] { font-size: 14px; }
.card-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.card-fields input, .card-fields select { width: 100%; padding: 9px 10px; font: inherit; font-size: 14px; color: var(--heading); background: #111; border: 1px solid #444; border-radius: var(--radius); }
.card-fields label { font-size: 13px; }
.task-title-input { font-size: 18px; overflow: hidden; resize: vertical; }

/* ---------- Contract Opportunities ---------- */
.wrap-wide { max-width: 1280px; }
.opp-list { list-style: none; margin: 0; padding: 0; }
.opp { align-items: flex-start; }
.opp-check { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.opp-main { flex: 1; min-width: 0; }
.opp-sub { margin-top: 4px; }
.opp.status-hidden .task-title { color: #888; }
.opp.status-bidding { border-left: 3px solid var(--gold); padding-left: 10px; }
.tag-money { background: #16261a; color: #b9e6c2; }
.fit-hi { background: #1d3a22; color: #9fe3ad; }
.fit-mid { background: #3d3214; color: #ffe08a; }
.fit-lo { background: #2a2a2a; color: #999; }
.bulk-bar { display: flex; gap: 14px; align-items: center; padding: 8px 0 12px; }
.filters .money { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.filters .money input { width: 110px; }
.opp-h1 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: .4em; }
.bid-box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 16px 0; display: grid; gap: 6px; }
.bid-box .inline-add { margin: 0; align-items: center; }
.bid-box select { padding: 7px 8px; background: #111; color: var(--heading); border: 1px solid #444; border-radius: var(--radius); font: inherit; font-size: 14px; }
.facts { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; margin: 18px 0; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .facts dt { margin-top: 6px; } }
.analysis { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; }
.analysis h3 { font-size: 15px; color: var(--gold); margin-top: 1em; }
.analysis ul, .plain-list { margin: 0 0 8px; padding-left: 20px; }
.plain-list { list-style: none; padding-left: 0; }
.plain-list li { padding: 4px 0; }
