/* P&K Co.
   Friendly, plain-spoken, Okanagan. Lake blue + sunlit yellow on a clean off-white.
   Display: Bricolage Grotesque. Body: Figtree. */

:root {
  --bg: #fbfbf8;
  --tint: #eef3f2;
  --ink: #1b2422;
  --muted: #55605d;
  --line: #d9e0de;
  --lake: #1f5a6e;        /* main accent: Okanagan Lake blue */
  --lake-deep: #143f4e;
  --sun: #f4c542;         /* small highlights only */
  --white: #ffffff;
  --radius: 14px;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Figtree", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --wrap: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--lake); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 14px; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; letter-spacing: -0.015em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 14px; }

.eyebrow { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lake); margin-bottom: 12px; }
.eyebrow-light { color: var(--sun); }
.lead, .section-lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.hl { background: linear-gradient(transparent 62%, var(--sun) 62%); padding: 0 2px; }

/* Buttons */
.btn { display: inline-block; background: var(--lake); color: var(--white); text-decoration: none; font-weight: 700; padding: 14px 22px; border-radius: 999px; border: 2px solid var(--lake); transition: background .2s, color .2s, transform .2s; }
.btn:hover { background: var(--lake-deep); border-color: var(--lake-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--lake); }
.btn-ghost:hover { background: var(--lake); color: var(--white); }
.btn-small { padding: 9px 16px; font-size: 0.95rem; }
.btn-light { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.btn-light:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251, 251, 248, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--ink); }
.brand-mark { font-family: var(--display); font-weight: 800; font-size: 1.55rem; color: var(--lake); letter-spacing: -0.02em; }
.brand-word { font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.menu { display: flex; align-items: center; gap: 22px; }
.menu a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.97rem; }
.menu a:hover { color: var(--lake); }
.menu a.btn { color: var(--white); }
.menu-btn { display: none; background: none; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px; font: 600 0.95rem var(--body); color: var(--ink); cursor: pointer; }

/* Hero */
.hero { padding-block: 64px 56px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-copy { min-width: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Photo slots: show a friendly placeholder until a real photo is dropped into /images */
.photo { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.photo::before { content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--muted); font-weight: 600; border: 2px dashed var(--line); border-radius: var(--radius); }
.photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { position: absolute; z-index: 2; left: 12px; bottom: 12px; background: rgba(255,255,255,0.92); color: var(--ink); font-size: 0.85rem; font-weight: 600; padding: 6px 10px; border-radius: 8px; }
.hero-photo { aspect-ratio: 4 / 5; }
.person-photo { aspect-ratio: 1; width: 140px; flex: 0 0 140px; border-radius: 50%; }
.person-photo::before { border-radius: 50%; font-size: 0.8rem; }
.story-photo { aspect-ratio: 4 / 5; }

/* Proof strip */
.proof { background: var(--lake); color: var(--white); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 30px; }
.proof-grid div { display: flex; flex-direction: column; gap: 4px; }
.proof-grid strong { font-family: var(--display); font-size: 2rem; font-weight: 800; color: var(--sun); line-height: 1; font-variant-numeric: tabular-nums; }
.proof-grid span { font-size: 0.95rem; opacity: 0.92; }

/* Sections */
.section { padding-block: 88px; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--lake-deep); color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.88); max-width: 62ch; }

/* People */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.person { display: flex; gap: 22px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.person > div { min-width: 0; }
.person h3 { margin-bottom: 2px; font-size: 1.4rem; }
.role { color: var(--lake); font-weight: 600; font-size: 0.95rem; margin-bottom: 10px; }

/* Cards */
.cards { display: grid; gap: 18px; margin-top: 32px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-width: 0; }
.card p { color: var(--muted); margin: 0; }
.card.small h3 { font-size: 1.05rem; margin-bottom: 6px; }
.card-num { display: inline-block; font-family: var(--display); font-weight: 800; color: var(--lake); background: var(--tint); border-radius: 8px; padding: 2px 8px; margin-bottom: 14px; font-size: 0.9rem; }
.note { margin-top: 26px; font-weight: 600; }

/* Story */
.story-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
.story-grid > div { min-width: 0; }
.ticks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 16px; height: 16px; border-radius: 50%; background: var(--sun); box-shadow: inset 0 0 0 4px var(--white), 0 0 0 2px var(--sun); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: none; }
.steps li { position: relative; padding: 24px; border-top: 4px solid var(--lake); background: var(--white); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 1px 0 var(--line); min-width: 0; }
.steps p { color: var(--muted); margin: 0; }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sun); font-family: var(--display); font-weight: 800; margin-bottom: 14px; }

/* Comparison */
.table-wrap { overflow-x: auto; margin-top: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-family: var(--display); font-size: 1rem; background: var(--tint); }
.compare tbody th { font-weight: 700; width: 20%; }
.compare td { color: var(--muted); }
.compare .us { background: #fff6d6; color: var(--ink); font-weight: 700; }
.compare thead .us { background: var(--sun); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
.faq-wrap > div { min-width: 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 1.12rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--lake); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Advisors */
.advisors { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.advisors > div { min-width: 0; flex: 1 1 420px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.contact-card h3 { margin-bottom: 6px; }
.contact-card a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-card a:hover { text-decoration: underline; }
.where { grid-column: 1 / -1; color: var(--muted); margin: 4px 0 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 32px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.footer p { margin: 6px 0 0; color: var(--muted); }
.small { font-size: 0.9rem; }

/* Responsive */
@media (max-width: 980px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .people { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .menu-btn { display: inline-block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: flex-start; gap: 14px; background: var(--bg); padding: 18px 20px 22px; border-bottom: 1px solid var(--line); }
  .menu.open { display: flex; }
  .nav-inner { position: relative; }
  .hero-grid, .story-grid, .faq-wrap, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-top: 36px; }
  .hero-photo, .story-photo { aspect-ratio: 4 / 3; }
  .section { padding-block: 64px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards-3, .cards-4, .steps, .contact-cards { grid-template-columns: 1fr; }
  .person { flex-direction: column; }
  .proof-grid strong { font-size: 1.6rem; }
}

/* Contact form */
.contact-grid > div { min-width: 0; }
.contact-grid .contact-cards { margin-top: 28px; }
.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 16px; min-width: 0; box-shadow: 0 10px 30px rgba(27, 36, 34, 0.06); }
.form-title { font-size: 1.4rem; margin: 0 0 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 0.95rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lake); box-shadow: 0 0 0 3px rgba(31, 90, 110, 0.18); background: var(--white); }
.field .invalid { border-color: #b3261e; }
.btn-submit { justify-self: start; cursor: pointer; font: 700 1rem var(--body); }
.btn-submit[disabled] { opacity: 0.6; cursor: wait; }
.form-status { margin: 0; font-weight: 600; }
.form-status.ok { color: #2e6b45; }
.form-status.err { color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-done { text-align: center; padding: 30px 10px; }
.form-done h3 { font-size: 1.5rem; }
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 20px; }
}
section[id] { scroll-margin-top: 72px; }

/* Links to rockymountainconcrete.ca */
.rmc-link { color: inherit; text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.rmc-link:hover { color: var(--lake); }
.proof .rmc-link:hover { color: var(--sun); }
