/* Lavrenyuk Carpentry — site styles */

@font-face { font-family: "Barlow Condensed"; src: url("../fonts/BarlowCondensed-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/BarlowCondensed-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #1C2421;        /* text */
  --spruce: #23443B;     /* brand green */
  --spruce-deep: #182F29;
  --pine: #E2B65C;       /* fresh-lumber yellow, used for calls to action */
  --pine-dark: #C99A3D;
  --paper: #F5F6F3;      /* page background */
  --white: #FFFFFF;
  --stone: #5E6762;      /* secondary text */
  --line: #D8DCD7;

  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --gap: clamp(1rem, 3vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--spruce); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--pine); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.6rem; line-height: 1.1; margin-bottom: 0.3em; }
p { margin: 0 0 1em; max-width: 64ch; }

.wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--white); padding: 0.5rem 1rem; z-index: 100; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.02em;
  padding: 0.7rem 1.4rem; border-radius: 3px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; line-height: 1.1;
}
.btn-pine { background: var(--pine); color: var(--ink); }
.btn-pine:hover { background: var(--pine-dark); color: var(--ink); }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: rgba(255,255,255,0.1); color: inherit; }
.btn-ink { background: var(--spruce); color: var(--white); }
.btn-ink:hover { background: var(--spruce-deep); color: var(--white); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand svg { width: 46px; height: 46px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.7rem; letter-spacing: 0.06em; line-height: 0.95; display: block; }
.brand-tag { font-family: var(--display); font-weight: 600; font-size: 0.86rem; letter-spacing: 0.08em; color: var(--spruce); display: block; }
.nav { display: flex; gap: 1.4rem; }
.nav a { font-family: var(--display); font-weight: 600; font-size: 1.2rem; text-decoration: none; color: var(--ink); padding: 0.3rem 0; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--pine); }
.header-call { font-size: 1.15rem; padding: 0.55rem 1rem; }
.menu-btn { display: none; background: none; border: 2px solid var(--ink); border-radius: 3px; font-family: var(--display); font-weight: 700; font-size: 1.1rem; padding: 0.35rem 0.8rem; color: var(--ink); }

@media (max-width: 900px) {
  .menu-btn { display: inline-block; }
  .header-call { display: none; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 0.9rem var(--gap); border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); box-shadow: inset 4px 0 0 var(--pine); }
}
@media (max-width: 420px) { .brand svg { width: 40px; height: 40px; } .brand-name { font-size: 1.5rem; } .brand-tag { font-size: 0.78rem; letter-spacing: 0.05em; } }

/* ---------- hero ---------- */
.hero { background: var(--spruce); color: var(--white); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; min-height: min(78vh, 680px); }
.hero-copy { padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4.5rem); display: flex; flex-direction: column; justify-content: center; }
.hero-copy h1 { max-width: 13ch; font-size: clamp(2.6rem, 5.2vw, 4.4rem); }
.hero-copy .lede { font-size: 1.25rem; color: #DCE5E0; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.75rem; }
.hero-photo { position: relative; margin: 0; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo figcaption { position: absolute; right: 0; bottom: 0; background: rgba(24,47,41,0.85); color: var(--white); font-size: 0.95rem; padding: 0.4rem 0.8rem; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { aspect-ratio: 4 / 3; order: -1; }
}

/* the tape measure strip — the one decorative flourish on the site */
.tape {
  height: 34px; background-color: var(--pine); position: relative; overflow: hidden;
  background-image:
    repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 96px),
    repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 48px),
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 12px);
  background-size: 100% 16px, 100% 11px, 100% 7px;
  background-repeat: repeat-x;
  background-position: 0 0, 0 0, 0 0;
  border-bottom: 1px solid var(--pine-dark);
}
.tape span {
  position: absolute; top: 13px; font-family: var(--display); font-weight: 700; font-size: 0.95rem; color: var(--ink);
  transform: translateX(-50%); line-height: 1;
}
.tape span.red { color: #A33A2A; }

/* ---------- sections ---------- */
.section { padding: clamp(3rem, 8vw, 6rem) 0; }
.section-white { background: var(--white); }
.section-head { max-width: 44rem; margin-bottom: 2.25rem; }
.section-head p { color: var(--stone); font-size: 1.2rem; }

/* services on the home page: one big tile, four smaller */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.svc { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.svc .ph { aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); border-radius: 3px; }
.svc img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.svc:hover img { transform: scale(1.03); }
.svc h3 { margin-top: 0.8rem; }
.svc p { color: var(--stone); font-size: 1.05rem; margin-bottom: 0.4rem; }
.svc .more { font-family: var(--display); font-weight: 600; font-size: 1.1rem; color: var(--spruce); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--pine); text-decoration-thickness: 2px; }
.svc-lead { grid-column: span 2; grid-row: span 2; }
.svc-lead .ph { aspect-ratio: auto; flex: 1; min-height: 320px; }
.svc-lead h3 { font-size: 2.1rem; }
@media (max-width: 980px) { .svc-grid { grid-template-columns: 1fr 1fr; } .svc-lead { grid-row: auto; } .svc-lead .ph { aspect-ratio: 16/10; min-height: 0; flex: none; } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } .svc-lead { grid-column: auto; } }

/* before / after pairs */
.ba-list { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin: 0; }
.ba .side { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); border-radius: 3px; }
.ba .side img { width: 100%; height: 100%; object-fit: cover; }
.ba .tag {
  position: absolute; left: 0.6rem; top: 0.6rem; font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  padding: 0.15rem 0.6rem; border-radius: 2px; background: var(--white); color: var(--ink);
}
.ba .after .tag { background: var(--pine); }
.ba figcaption { grid-column: 1 / -1; color: var(--stone); font-size: 1.05rem; margin-top: 0.4rem; }
.ba figcaption strong { color: var(--ink); font-weight: 500; }
@media (max-width: 560px) { .ba .side { aspect-ratio: 3 / 4; } }

/* about strip */
.about { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.about img { border-radius: 3px; aspect-ratio: 1; object-fit: cover; width: 100%; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .about img { max-width: 320px; } }

/* service area */
.area { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.towns { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 2rem; font-family: var(--display); font-weight: 600; font-size: 1.35rem; }
.towns li { padding: 0.35rem 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
@media (max-width: 760px) { .area { grid-template-columns: 1fr; } }

/* call band */
.band { background: var(--spruce); color: var(--white); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.band h2 { margin: 0; max-width: 18ch; }
.band p { color: #DCE5E0; margin: 0.4rem 0 0; }
.band .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- inner pages ---------- */
.page-head { background: var(--spruce); color: var(--white); }
.page-head .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.page-head .lede { font-size: 1.2rem; color: #DCE5E0; }
.page-head img { border-radius: 3px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.page-head.text-only .wrap { grid-template-columns: 1fr; }
.crumbs { font-size: 0.95rem; margin-bottom: 1rem; color: #B9C9C1; }
.crumbs a { color: #DCE5E0; }
@media (max-width: 820px) { .page-head .wrap { grid-template-columns: 1fr; } }

.prose { max-width: 44rem; }
.prose h2 { font-size: 2.1rem; margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.25rem; }
.prose li { margin-bottom: 0.35rem; }
.two-col { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.aside { background: var(--white); border-left: 4px solid var(--pine); padding: 1.5rem; }
.aside h3 { font-size: 1.5rem; }
.aside ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.aside li { padding: 0.3rem 0; border-bottom: 1px solid var(--line); }
.aside li:last-child { border-bottom: 0; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* photo grid for projects and service pages */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.6rem; }
.photos figure { margin: 0; }
.photos .ph { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: var(--line); }
.photos img { width: 100%; height: 100%; object-fit: cover; }
.photos figcaption { font-size: 0.98rem; color: var(--stone); padding: 0.4rem 0 0.2rem; }

.project { padding: clamp(2rem, 5vw, 3rem) 0; border-top: 1px solid var(--line); }
.project:first-of-type { border-top: 0; padding-top: 0; }
.project h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.project .meta { color: var(--stone); margin-top: -0.4rem; }

.jump { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.jump a { color: var(--white); border: 1px solid rgba(255,255,255,0.45); padding: 0.25rem 0.75rem; border-radius: 3px; text-decoration: none; font-size: 1rem; }
.jump a:hover { background: rgba(255,255,255,0.12); color: var(--white); }

.other-svc { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.other-svc a { background: var(--white); border: 1px solid var(--line); padding: 0.45rem 0.9rem; border-radius: 3px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.other-svc a:hover { border-color: var(--spruce); }

/* ---------- contact form ---------- */
.form { display: grid; gap: 1.1rem; background: var(--white); padding: clamp(1.25rem, 4vw, 2rem); border-radius: 3px; border: 1px solid var(--line); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { display: block; font-weight: 500; margin-bottom: 0.3rem; }
.form .hint { font-weight: 400; color: var(--stone); font-size: 0.95rem; }
.form input, .form textarea, .form select {
  width: 100%; font: inherit; font-size: 1.05rem; padding: 0.65rem 0.75rem; border: 1px solid #B8BFBA; border-radius: 3px; background: var(--white); color: var(--ink);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 3px solid var(--pine); outline-offset: 0; border-color: var(--spruce); }
.form textarea { min-height: 150px; resize: vertical; }
.form .hp { display: none; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }

.contact-direct { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.1; }
.contact-direct a { color: var(--ink); text-decoration: none; border-bottom: 3px solid var(--pine); }

/* ---------- footer ---------- */
.site-footer { background: var(--spruce-deep); color: #C9D6CF; padding: 3rem 0 6rem; font-size: 1rem; }
.site-footer a { color: var(--white); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.foot-grid h3 { color: var(--white); font-size: 1.3rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { padding: 0.15rem 0; }
.foot-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; color: var(--white); }
.foot-brand svg { width: 42px; height: 42px; }
.foot-brand span { font-family: var(--display); font-weight: 700; font-size: 1.6rem; letter-spacing: 0.06em; }
.copyright { max-width: none; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.92rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } .site-footer { padding-bottom: 7rem; } }
@media (min-width: 761px) { .site-footer { padding-bottom: 3rem; } }

/* ---------- mobile call bar ---------- */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line);
  }
  .callbar .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.project { scroll-margin-top: 96px; }
.form-status { margin: 0; color: #A33A2A; font-weight: 500; } .form-status:empty { display: none; }
