/* Cornerstone Construction of Seattle
   Colors come from the company logo: gold, black, white. */
:root {
  --gold: #fec01f;       /* PANTONE 116 */
  --gold-deep: #d1a20e;  /* PANTONE 1245 */
  --gold-text: #8a6d08;   /* gold dark enough to read as small text on white */
  --black: #111111;
  --ink: #1c1c1c;
  --gray: #5a5a5a;
  --line: #e4e1d8;
  --paper: #f6f4ee;
  --white: #ffffff;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--white); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.02; text-transform: uppercase; letter-spacing: .01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: 1.55rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; letter-spacing: .06em; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--gold); padding: 8px 12px; z-index: 100; }
.eyebrow { font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 .6em; }
.lead { font-size: 1.25rem; max-width: 46em; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 4px solid var(--gold); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; font-family: var(--display); text-transform: uppercase; line-height: .9; }
.brand-1 { font-weight: 800; font-size: 1.55rem; color: var(--black); }
.brand-2 { font-weight: 800; font-size: 1.42rem; color: var(--gold-deep); }
.brand-3 { font-weight: 600; font-size: .72rem; letter-spacing: .2em; color: var(--gold-text); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--gold); }
.nav .nav-cta { background: var(--black); color: var(--white); padding: 10px 18px; border-bottom: 0; }
.nav .nav-cta:hover, .nav .nav-cta[aria-current] { background: var(--gold); color: var(--black); }
.nav-toggle, .nav-button { display: none; }

/* buttons */
.btn { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; background: var(--gold); color: var(--black); padding: 14px 26px; border: 3px solid var(--gold); transition: background .15s, color .15s; }
.btn:hover { background: var(--black); color: var(--gold); border-color: var(--black); }
.btn-outline { background: transparent; border-color: currentColor; color: inherit; }
.btn-outline:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.4em; }

/* hero */
.hero { position: relative; color: var(--white); background: var(--black); min-height: min(86vh, 820px); display: flex; align-items: flex-end; }
.hero-img, .page-hero-img { position: absolute; inset: 0; }
.hero-img img, .page-hero-img img { width: 100%; height: 100%; object-fit: cover; }
/* Shade only where the text sits (lower left). The rest of the photo stays as shot. */
.hero-img::after, .page-hero-img::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(0,0,0,.74) 0%, rgba(0,0,0,.56) 38%, rgba(0,0,0,0) 68%),
  linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.35) 100%); }
.page-hero-img::after { background:
  linear-gradient(180deg, rgba(0,0,0,0) 48%, rgba(0,0,0,.72) 100%); }
.hero-text, .page-hero-text { text-shadow: 0 1px 14px rgba(0,0,0,.55); }
.hero-text .btn, .hero-text .since { text-shadow: none; }
.hero-text { position: relative; padding: 120px 0 64px; }
.hero-text h1 { max-width: 12em; }
.hero-text h1 em { font-style: normal; color: var(--gold); }
.hero-text .lead { color: #fff; max-width: 30em; }
.since { display: inline-block; font-family: var(--display); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; background: var(--gold); color: var(--black); padding: 4px 12px; margin-bottom: 18px; }
.page-hero { position: relative; color: var(--white); background: var(--black); min-height: min(62vh, 560px); display: flex; align-items: flex-end; }
.page-hero-text { position: relative; padding: 110px 0 44px; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); max-width: 16em; margin: 0; }
.page-head { background: var(--black); color: var(--white); padding: 72px 0 56px; border-bottom: 6px solid var(--gold); }
.page-head .eyebrow { color: var(--gold); }
.page-head .lead { color: #e6e6e6; margin: 0; }

/* sections */
.section { padding: 84px 0; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--black); color: var(--white); }
.section-dark .eyebrow { color: var(--gold); }
.section-gold { background: var(--gold); color: var(--black); }
.section-gold .eyebrow { color: var(--black); }
.section-head { max-width: 52em; margin-bottom: 44px; }
.two-col { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* service tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 2px solid var(--line); }
.tile { background: var(--white); padding: 30px 28px 26px; text-decoration: none; display: block; position: relative; transition: background .15s; }
.tile::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 5px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.tile:hover { background: var(--paper); }
.tile:hover::before { transform: scaleX(1); }
.tile h3 { margin-bottom: .35em; }
.tile-wide { grid-column: 1 / -1; border-left: 8px solid var(--gold); }
.tile p { margin: 0; color: var(--gray); font-size: 1rem; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { display: flex; flex-direction: column; background: var(--white); color: var(--ink); text-decoration: none; border-bottom: 5px solid var(--gold); box-shadow: 0 1px 0 var(--line), 0 12px 30px rgba(0,0,0,.08); }
.card-img { overflow: hidden; aspect-ratio: 4 / 3; background: #ddd; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 24px 24px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body p { font-size: 1rem; color: var(--gray); }
.card-body .eyebrow { color: var(--gold-text); }
.more { margin-top: auto; font-family: var(--display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.more::after { content: " \2192"; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 2px; background: var(--line); border: 2px solid var(--line); margin-bottom: 56px; }
.stat { background: var(--white); padding: 22px 20px; }
.stat-n { display: block; font-family: var(--display); font-weight: 800; font-size: 2.1rem; line-height: 1; }
.stat-l { display: block; font-size: .92rem; color: var(--gray); margin-top: 6px; text-transform: uppercase; letter-spacing: .06em; }
.section-dark .stats { background: #333; border-color: #333; }
.section-dark .stat { background: var(--black); }
.section-dark .stat-n { color: var(--gold); }
.section-dark .stat-l { color: #cfcfcf; }

/* prose and panels */
.prose h2 { font-size: 1.9rem; margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.1em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .55em; }
.prose li::marker { color: var(--gold-deep); }
.panel { background: var(--paper); border-top: 6px solid var(--gold); padding: 30px 28px; position: sticky; top: 108px; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.6em; }
.ticks li { padding: 9px 0 9px 26px; border-bottom: 1px solid var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 11px; height: 11px; background: var(--gold); transform: rotate(45deg); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: #222; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

/* video clips (portrait phone footage) */
.clip { display: block; width: 100%; max-width: 360px; aspect-ratio: 9 / 16; background: #000; margin-inline: auto; }
.clips { display: flex; flex-wrap: wrap; gap: 36px; }
.clips figure { margin: 0; width: min(360px, 100%); }
.clips figcaption { margin-top: 10px; font-size: 1rem; color: var(--gray); }

/* services page */
.service { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 64px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.service:last-child { border-bottom: 0; }
.service:nth-child(even) .service-img { order: 2; }
.service-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service ul { padding-left: 1.1em; margin: 0; }
.service li { margin-bottom: .4em; }
.service li::marker { color: var(--gold-deep); }

/* values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.value h3 { padding-top: 16px; border-top: 5px solid var(--gold); }

/* contact */
.contact-big { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1; text-decoration: none; display: inline-block; border-bottom: 5px solid var(--gold); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; padding: 0 0 22px 58px; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; background: var(--gold); color: var(--black); font-family: var(--display); font-weight: 800; font-size: 1.4rem; display: grid; place-items: center; }

/* footer */
.site-footer { background: var(--black); color: #d8d8d8; padding: 56px 0; border-top: 6px solid var(--gold); font-size: 1rem; }
.footer-row { display: grid; grid-template-columns: auto 1.4fr 1fr 1fr; gap: 44px; align-items: start; }
.footer-logo { background: var(--white); padding: 14px; width: 170px; }
.split img.logo-stack { width: 200px; aspect-ratio: auto; object-fit: contain; margin-bottom: 20px; }
.contact-aside { margin-top: 40px; }
.muted { color: var(--gray); font-size: .95rem; }
.bid-form { display: grid; gap: 18px; max-width: 34em; }
.bid-form label { display: grid; gap: 6px; font-weight: 600; }
.bid-form label span { font-weight: 400; color: var(--gray); }
.bid-form input, .bid-form textarea { font: inherit; padding: 12px 14px; border: 2px solid #bdb9ad; border-radius: 0; background: var(--white); color: var(--ink); width: 100%; }
.bid-form input:focus, .bid-form textarea:focus { outline: 3px solid var(--gold); border-color: var(--black); }
.bid-form .hp { position: absolute; left: -9999px; }
.bid-form button { justify-self: start; cursor: pointer; }
.bid-form button[disabled] { opacity: .5; cursor: not-allowed; }
.form-note { background: var(--paper); border-left: 5px solid var(--gold); padding: 10px 14px; font-size: .95rem; max-width: 34em; }
.site-footer h4 { color: var(--gold); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

@media (max-width: 900px) {
  body { font-size: 17px; }
  .section { padding: 60px 0; }
  .tiles, .cards, .values { grid-template-columns: 1fr; }
  .two-col, .split, .service { grid-template-columns: 1fr; gap: 32px; }
  .service:nth-child(even) .service-img { order: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  /* On a phone the photo goes on top, unshaded, and the text sits below it on black. */
  .hero, .page-hero { display: block; min-height: 0; }
  .hero-img, .page-hero-img { position: relative; aspect-ratio: 4 / 3; }
  .hero-img::after, .page-hero-img::after { display: none; }
  .page-hero-text { padding: 26px 0 34px; }
  .hero-text, .page-hero-text { text-shadow: none; }
  .panel { position: static; }
  .footer-row { grid-template-columns: 1fr; gap: 28px; }
  .nav-button { display: flex; flex-direction: column; gap: 5px; padding: 12px 6px; cursor: pointer; }
  .nav-button span { width: 28px; height: 3px; background: var(--black); }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 4px solid var(--gold); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin-top: 14px; text-align: center; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .brand img { height: 44px; }
  .brand-1 { font-size: 1.3rem; } .brand-2 { font-size: 1.19rem; }
  .hero-text { padding: 30px 0 44px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
