/* Cross Creek Contracting, Little Britain ON, built 2026-11, phone first */
:root {
  --ink-bg: #121212;
  --ink-bg-2: #1c1c1c;
  --timber: #b07a3c;
  --timber-dark: #8a5a26;
  --timber-light: #e9d4b8;
  --green: #3c7e00;
  --green-dark: #2f6300;
  --pine: #4f8a2e;
  --creek: #2d8fb5;
  --cream: #faf6ef;
  --white: #ffffff;
  --ink: #1f2328;
  --muted: #5f6b6b;
  --line: #e4ded3;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 10px 28px rgba(31, 35, 40, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 70px; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--timber-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.lead { font-size: 1.12rem; color: var(--muted); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--timber); outline-offset: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.3em; border-radius: 999px; font-weight: 700; text-decoration: none; cursor: pointer; border: 2px solid transparent; font-size: 1rem; line-height: 1.2; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); }
.btn-timber { background: var(--timber-dark); color: var(--white); }
.btn-timber:hover { background: #6f4719; }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.75); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-outline-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink-bg); color: var(--white); border-bottom: 1px solid #2a2a2a; }
.site-header .wrap { display: flex; align-items: center; gap: 14px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.brand img { width: 46px; height: 46px; border-radius: 8px; }
.brand span { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; line-height: 1.1; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: #e6e6e6; text-decoration: none; font-weight: 600; padding: .55em .85em; border-radius: 999px; }
.nav a:hover { background: #2a2a2a; }
.nav .btn { padding: .6em 1.1em; margin-left: 6px; color: var(--white); }
.head-call, .menu-btn { display: none; }

/* Hero */
.hero { position: relative; color: var(--white); background: var(--ink-bg) url(img/svc-decks.webp) center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.78) 0%, rgba(10,10,10,.62) 60%, rgba(10,10,10,.85) 100%); }
.hero .wrap { position: relative; padding: 84px 0 72px; max-width: 760px; margin-inline: auto; text-align: center; }
.hero h1 { color: var(--white); margin-bottom: .35em; }
.hero .lead { color: #e9e4da; max-width: 52ch; margin-inline: auto; }
.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.hero .small { margin: 18px 0 0; color: #d6cfc2; font-size: .98rem; }

/* Facts strip */
.facts { background: var(--timber-dark); color: var(--white); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px 0; }
.facts div { display: grid; gap: 2px; padding: 8px 12px; border-left: 3px solid rgba(255,255,255,.6); }
.facts strong { font-size: 1.02rem; line-height: 1.2; }
.facts span { font-size: .88rem; color: #f7ecdc; }

/* Sections */
.section { padding: 64px 0; }
.section-cream { background: var(--cream); }
.section-dark { background: var(--ink-bg-2); color: var(--white); }
.section-dark h2 { color: var(--white); }
.section-dark .lead { color: #cfcfcf; }
.section-head { max-width: 62ch; margin-bottom: 30px; }

.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.svc { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: grid; grid-template-columns: 42% 1fr; }
.svc img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.svc .body { padding: 22px 22px 24px; }
.svc h3 { margin-bottom: .35em; }
.svc p { margin: 0; color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery button { padding: 0; border: 0; background: none; border-radius: 10px; overflow: hidden; cursor: pointer; box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .25s; }
.gallery button:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; padding: 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; width: auto; height: auto; border-radius: 8px; }
.lightbox .close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: var(--white); font-size: 1.6rem; cursor: pointer; }
.lightbox .prev, .lightbox .next { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: var(--white); font-size: 1.6rem; cursor: pointer; }
.lightbox .prev { left: 10px; } .lightbox .next { right: 10px; }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border-top: 5px solid var(--timber); }
.review p { margin: 0 0 12px; color: var(--ink); font-size: .98rem; }
.review cite { font-style: normal; font-weight: 700; color: var(--timber-dark); }

.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; }
.about img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3 / 4; object-fit: cover; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; align-items: start; }
.contact-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.contact-card dl { margin: 0; display: grid; gap: 18px; }
.contact-card dt { font-weight: 700; color: var(--ink); }
.contact-card dd { margin: 2px 0 0; }
.contact-card dd a.big { font-size: 1.2rem; font-weight: 700; text-decoration: none; color: var(--green-dark); }
.contact-card dd a.big:hover { text-decoration: underline; }
form.contact { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; display: grid; gap: 16px; }
form.contact label { display: grid; gap: 6px; font-weight: 600; color: var(--ink); }
form.contact input, form.contact textarea { font: inherit; padding: .7em .9em; border: 1.5px solid #cfc7b8; border-radius: 10px; background: var(--white); width: 100%; }
form.contact input:focus, form.contact textarea:focus { border-color: var(--timber); outline: none; box-shadow: 0 0 0 3px rgba(176,122,60,.25); }
form.contact textarea { min-height: 140px; resize: vertical; }
form.contact .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.contact .hp { position: absolute; left: -9999px; }
.form-msg { margin: 0; padding: 14px 16px; border-radius: 10px; background: var(--timber-light); color: var(--ink); display: none; }
.form-msg.show { display: block; }
.form-msg.err { background: #ffe9e9; color: #8a1c1c; }

.site-footer { background: var(--ink-bg); color: #bdbdbd; padding: 32px 0; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.phone-bar { display: none; }

/* Self-edit add-on hooks: hidden until the add-on has content */
[data-se-wrap] { display: none; }

/* ---------- Phone layout ---------- */
@media (max-width: 980px) {
  .services, .reviews { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .about, .contact-grid { grid-template-columns: 1fr; }
  .facts .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .site-header .wrap { min-height: 60px; gap: 10px; }
  .brand img { width: 38px; height: 38px; }
  .brand span { font-size: 1.02rem; }
  .head-call { display: grid; place-items: center; margin-left: auto; width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: var(--white); }
  .head-call svg { width: 22px; height: 22px; }
  .menu-btn { display: block; background: none; border: 2px solid #e6e6e6; border-radius: 10px; padding: 6px 9px; cursor: pointer; color: var(--white); }
  .menu-btn svg { width: 24px; height: 24px; display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 60px; z-index: 60; background: var(--ink-bg); border-bottom: 1px solid #2a2a2a; flex-direction: column; align-items: stretch; padding: 10px 16px 16px; gap: 4px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: .8em 1em; }
  .nav .btn { display: none; }

  .hero .wrap { padding: 30px 0 26px; text-align: left; }
  .hero h1 { font-size: 1.9rem; }
  .hero .lead { font-size: 1rem; line-height: 1.45; margin-bottom: 0; }
  .hero .actions { justify-content: stretch; gap: 8px; margin-top: 16px; }
  .hero .actions .btn { flex: 1 1 100%; padding: .85em 1em; font-size: 1.05rem; }
  .hero .actions .btn-outline { flex: 1 1 45%; padding: .7em .8em; font-size: .95rem; }
  .hero .small { font-size: .9rem; margin-top: 12px; }

  .facts .wrap { gap: 8px; padding: 12px 0; }
  .facts div { padding: 6px 10px; }
  .facts strong { font-size: .95rem; }
  .facts span { font-size: .82rem; }

  .section { padding: 34px 0; }
  .section-head { margin-bottom: 18px; }
  .section-head .lead { font-size: 1rem; }
  h2 { font-size: 1.55rem; }

  .services { grid-template-columns: 1fr; gap: 12px; }
  .svc { grid-template-columns: 110px 1fr; align-items: center; }
  .svc img { aspect-ratio: 1 / 1; }
  .svc .body { padding: 12px 14px; }
  .svc h3 { font-size: 1.05rem; margin-bottom: .25em; }
  .svc p { font-size: .93rem; line-height: 1.45; }

  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }

  .reviews { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; margin: 0 -16px; padding-inline: 16px; -webkit-overflow-scrolling: touch; }
  .review { flex: 0 0 86%; scroll-snap-align: start; padding: 18px; }
  .review p { font-size: .93rem; }
  .reviews-hint { font-size: .85rem; color: var(--muted); margin: 0; }

  .about { gap: 16px; }
  .about img { aspect-ratio: 4 / 3; object-position: center 28%; }
  .contact-grid { gap: 16px; }
  .contact-card, form.contact { padding: 18px; }
  form.contact .row { grid-template-columns: 1fr; }
  .site-footer { padding: 22px 0; font-size: .88rem; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }

  .phone-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(31,35,40,.12); }
  .phone-bar .btn { padding: .8em .6em; font-size: 1rem; border-radius: 12px; }
  .phone-bar .btn:hover { transform: none; }
}
@media (min-width: 721px) { .reviews-hint { display: none; } }

@media (max-width:720px){ .phone-bar{ bottom:56px; } body{ padding-bottom:132px; } }
