/*
Theme Name: Jai Cummins Renovations
Theme URI: https://jaicummins.com/renovations
Author: Jai Cummins
Author URI: https://jaicummins.com
Description: One-screen landing page for Jai Cummins' free ads offer to renovation businesses. Edit the phone number and spots taken in Appearance > Customize > Landing page.
Version: 1.1.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jc-renovations
*/

/* Layout: one screen. Photo panel left, pitch right; stacks to photo strip + pitch on phones. */
:root {
  --bg: #F3F2EE;
  --panel: #ECEBE6;
  --fg: #1B1F2E;
  --muted: #3A3F4D;
  --faint: #4A4F5E;
  --rule: #DAD8D1;
  --accent: #C2410C;
  --sheet: #FBFAF7;
  --scrim: rgba(27, 31, 46, 0.55);
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181F; --panel: #1E212A; --fg: #F1EFEA; --muted: #C9C7C0; --faint: #A9A7A0;
    --rule: #2E323D; --accent: #F2884B; --sheet: #1E212A; --scrim: rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

.jc-page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.admin-bar .jc-page { min-height: calc(100% - 32px); }

/* Top bar */
.jc-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-inline: clamp(16px, 4vw, 56px);
  padding-block: 0;
  min-height: 60px;
  border-bottom: 1px solid var(--rule);
}
.jc-bar-name { display: flex; align-items: baseline; gap: 14px; }
.jc-wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.05em;
}
.jc-place { font-size: 14px; color: var(--faint); }
.jc-phone {
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.jc-phone:hover { color: var(--accent); }

/* Main split */
.jc-split {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  min-height: 0;
}
.jc-photo {
  background: var(--panel);
  overflow: hidden;
  position: relative;
}
.jc-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 30%;
  display: block;
}

.jc-pitch {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding-inline: clamp(16px, 5vw, 72px);
  padding-block: clamp(28px, 6vh, 56px);
  min-width: 0;
}
.jc-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.jc-pitch h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 18ch;
  text-wrap: balance;
}
.jc-condition {
  margin: 0;
  font-size: clamp(15px, 1.2vw, 16px);
  line-height: 1.45;
  color: var(--muted);
  max-width: 34em;
}
.jc-condition strong { color: var(--fg); }
.jc-lede {
  margin: 0;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 34em;
}

.jc-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.jc-ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: clamp(15px, 1.2vw, 16px); }
.jc-ticks svg { flex: none; margin-top: 2px; color: var(--accent); }

.jc-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 4px;
}
.jc-btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding-inline: 22px;
  border: 1.5px solid var(--fg);
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.jc-btn:hover { background: var(--fg); color: var(--bg); }
.jc-spots { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.jc-spots strong { color: var(--fg); font-variant-numeric: tabular-nums; }
.jc-dots { display: flex; gap: 5px; }
.jc-dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--accent); }
.jc-dot.is-taken { background: var(--accent); }
.jc-catch-link {
  background: none;
  border: 0;
  padding: 0;
  min-height: 44px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.jc-catch-link:hover { color: var(--accent); }

.jc-proof {
  font-size: 13px;
  color: var(--faint);
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  max-width: 34em;
}

/* Catch dialog */
.jc-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--fg);
  max-width: min(620px, calc(100% - 32px));
  width: 100%;
}
.jc-dialog::backdrop { background: var(--scrim); }
.jc-sheet {
  background: var(--sheet);
  border-radius: 12px;
  padding: 30px 34px 34px;
  display: grid;
  gap: 18px;
}
.jc-sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.jc-sheet h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 27px; letter-spacing: -0.01em; }
.jc-close {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; border-radius: 6px; cursor: pointer; color: var(--fg);
}
.jc-close:hover { background: var(--panel); }
.jc-faq { margin: 0; display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 14px 20px; font-size: 15px; line-height: 1.45; }
.jc-faq dt { font-weight: 600; }
.jc-faq dd { margin: 0; color: var(--muted); }

/* Phone: photo strip on top, pitch below */
@media (max-width: 820px) {
  .jc-split { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .jc-photo { height: clamp(170px, 26vh, 240px); }
  .jc-photo img { object-position: 65% 18%; }
  .jc-pitch { justify-content: flex-start; gap: 15px; padding-block: 22px 24px; }
  .jc-place { display: none; }
  .jc-eyebrow { font-size: 11px; }
  .jc-proof { padding-top: 12px; }
  .jc-faq { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .jc-faq dd { margin-bottom: 10px; }
  .jc-dialog { margin: auto auto 0; max-width: 100%; }
  .jc-sheet { border-radius: 14px 14px 0 0; padding: 22px 20px calc(28px + env(safe-area-inset-bottom, 0px)); }
  .jc-sheet h2 { font-size: 23px; }
}
@media (max-width: 782px) {
  .admin-bar .jc-page { min-height: calc(100% - 46px); }
}

@media (prefers-reduced-motion: reduce) {
  .jc-btn { transition: none; }
}
