/*
Theme Name: Plumbline
Template: kadence
Description: Child theme of Kadence for Plumbline Construction Advisory. Every section of the home page is made of standard blocks and can be edited in the block editor.
Version: 1.0
*/

@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
    --pl-night: #161d27;
    --pl-slate: #232d3a;
    --pl-rain: #3b4757;
    --pl-concrete: #dcdad5;
    --pl-paper: #eeece8;
    --pl-ink: #161d27;
    --pl-timber: #c9874a;
    --pl-timber-deep: #a86a33;
    --pl-chalk: #6f9bd8;
    --pl-white: #f6f5f2;
    --pl-gutter: clamp(16px, 5vw, 72px);
    --pl-step: clamp(72px, 11vw, 160px);
    --pl-serif: "Instrument Serif", Georgia, serif;
    --pl-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --pl-mono: "Plex Mono", ui-monospace, Menlo, monospace;
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: var(--pl-sans); font-stretch: 100%; color: var(--pl-ink); background: var(--pl-paper); font-size: 17px; line-height: 1.65; overflow-x: clip; }
h1, h2, h3, h4, .site-title { font-family: var(--pl-serif); font-weight: 400; letter-spacing: -0.01em; color: inherit; }
h2, .entry-content h2 { font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 0.98; margin: 0 0 0.4em; }
.entry-content h1, .entry-content h3 { margin-top: 0; }
h3 { font-size: clamp(1.55rem, 2.4vw, 2rem); line-height: 1.1; margin: 0 0 0.35em; }
p { margin: 0 0 1em; }
em { font-style: italic; }
a { color: var(--pl-timber-deep); }

/* header */
#masthead { font-family: var(--pl-sans); }
.site-header .site-title { font-family: var(--pl-serif); font-size: 1.75rem; font-weight: 400; letter-spacing: 0; }
.site-header .site-title a { color: inherit; }
.main-navigation .primary-menu-container > ul > li.menu-item > a { font-stretch: 125%; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.pl-home .site-header-row-container-inner { background: transparent; }
.pl-home #masthead { position: absolute; top: 0; left: 0; right: 0; z-index: 50; color: var(--pl-white); background: transparent; }
.site, #wrapper { background: var(--pl-paper); }
.pl-home #masthead .site-branding, .pl-home #masthead .site-branding * { color: var(--pl-white); }
.pl-home #masthead .site-title a, .pl-home #masthead .main-navigation a, .pl-home #masthead .menu-toggle-open { color: var(--pl-white); }
.pl-home .site-header-wrap { background: linear-gradient(to bottom, rgba(10, 14, 20, 0.55), rgba(10, 14, 20, 0)); }
.pl-home .site-main-header-inner-wrap, .pl-home .site-header-upper-inner-wrap { min-height: 88px; }
.pl-home .content-area { margin-top: 0; }
.site-header .header-menu-container ul.menu > li > a:hover { color: var(--pl-timber); }

/* the plumb line */
.pl-line { position: fixed; top: 0; left: clamp(4px, 1.6vw, 26px); width: 24px; height: var(--pl-len, 0px); z-index: 40; pointer-events: none; transform-origin: 12px 0; transform: rotate(var(--pl-swing, 0deg)); transition: height 1.1s cubic-bezier(.2, .9, .25, 1); }
.pl-line__string { position: absolute; left: 11.5px; top: 0; bottom: 6px; width: 1px; background: var(--pl-chalk); box-shadow: 0 0 6px rgba(111, 155, 216, 0.45); }
.pl-line__bob { position: absolute; left: 0; bottom: -38px; width: 24px; height: 44px; }
.pl-line__bob svg { width: 24px; height: 44px; display: block; }
.pl-line__bob path { fill: var(--pl-timber); stroke: var(--pl-timber-deep); stroke-width: 1; }
.pl-line.dark .pl-line__string { background: var(--pl-rain); box-shadow: none; }

/* hero */
.entry-content > .wp-block-cover, .entry-content > .wp-block-group { margin-top: 0 !important; margin-bottom: 0 !important; }
.pl-hero.wp-block-cover { min-height: 100svh !important; padding: 140px var(--pl-gutter) clamp(48px, 9vh, 110px) !important; align-items: flex-end; overflow: hidden; }
.pl-hero .wp-block-cover__image-background { transform-origin: center; will-change: transform; height: 118% !important; top: -9% !important; }
.pl-hero .wp-block-cover__background { background: linear-gradient(180deg, rgba(14, 18, 26, 0.35) 0%, rgba(14, 18, 26, 0.12) 35%, rgba(14, 18, 26, 0.78) 100%) !important; opacity: 1 !important; }
.pl-hero .wp-block-cover__inner-container { width: 100%; max-width: 1320px; margin: 0 auto; color: var(--pl-white); }
.pl-hero h1 { font-size: clamp(3.4rem, 9.4vw, 9rem); line-height: 0.88; letter-spacing: -0.025em; margin: 0 0 0.25em; max-width: 11ch; color: var(--pl-white); }
.pl-hero h1 em { color: var(--pl-timber); }
.pl-hero p.pl-lede { font-size: clamp(1.05rem, 1.5vw, 1.3rem); max-width: 34rem; color: rgba(246, 245, 242, 0.86); margin-bottom: 1.6em; }
.pl-hero .pl-eyebrow { color: rgba(246, 245, 242, 0.75); }
.pl-hero .wp-block-buttons, .pl-dark .wp-block-buttons { color: var(--pl-white); }
.pl-light .wp-block-buttons, .pl-concrete .wp-block-buttons { color: var(--pl-ink); }

.pl-eyebrow { font-family: var(--pl-mono); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pl-rain); margin-bottom: 1.4em; display: flex; align-items: center; gap: 0.8em; }
.pl-eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: 0.7; }

/* buttons */
.wp-block-button__link { font-family: var(--pl-sans); font-stretch: 125%; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; border-radius: 0; padding: 1.05em 1.7em; background: var(--pl-timber); color: var(--pl-night); border: 1px solid var(--pl-timber); transition: background 0.25s, color 0.25s, transform 0.25s; }
.wp-block-button__link:hover, .wp-block-button__link:focus { background: var(--pl-white); border-color: var(--pl-white); color: var(--pl-night); transform: translateY(-2px); }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent !important; color: inherit !important; border: 1px solid currentColor !important; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--pl-white); color: var(--pl-night); border-color: var(--pl-white); }
.pl-light .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--pl-night); color: var(--pl-white); border-color: var(--pl-night); }

/* sections */
.entry-content > .pl-section { padding: var(--pl-step) var(--pl-gutter) !important; margin: 0 !important; }
.pl-section > * { max-width: 1320px; margin-left: auto !important; margin-right: auto !important; }
.pl-dark { background: var(--pl-night); color: var(--pl-white); }
.pl-dark .pl-eyebrow { color: rgba(246, 245, 242, 0.6); }
.pl-dark a:not(.wp-block-button__link) { color: var(--pl-timber); }
.pl-concrete { background: var(--pl-concrete); }
.pl-light { background: var(--pl-paper); }

.pl-intro p.pl-statement { font-family: var(--pl-serif); font-size: clamp(2rem, 4.6vw, 4.1rem); line-height: 1.04; letter-spacing: -0.015em; max-width: 19ch; margin: 0 0 0.6em; }
.pl-intro p.pl-statement em { color: var(--pl-timber-deep); }
.pl-intro .pl-cols { gap: clamp(32px, 6vw, 96px); }
.pl-intro .pl-cols p { color: rgba(22, 29, 39, 0.72); }

/* services */
.pl-services .pl-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(48px, 7vw, 96px) !important; }
.pl-services .pl-head > * { margin: 0 !important; }
.pl-services .pl-head p { color: rgba(246, 245, 242, 0.7); max-width: 32rem; }
.pl-grid { gap: 0 !important; border-top: 1px solid rgba(246, 245, 242, 0.16); }
.pl-service { padding: 34px 28px 30px 0 !important; border-bottom: 1px solid rgba(246, 245, 242, 0.16); position: relative; }
.pl-service h3 { display: flex; gap: 14px; align-items: baseline; }
.pl-service h3::before { content: ""; flex: 0 0 9px; width: 9px; height: 16px; background: var(--pl-timber); clip-path: polygon(0 0, 100% 0, 50% 100%); transform: translateY(1px); transition: transform 0.5s cubic-bezier(.3, 1.6, .5, 1); transform-origin: 50% 0; }
.pl-service:hover h3::before { transform: translateY(1px) rotate(14deg); }
.pl-service p { color: rgba(246, 245, 242, 0.68); margin: 0; padding-left: 23px; max-width: 30rem; }

/* framed photos with parallax */
.pl-frame { overflow: hidden; margin: 0; position: relative; }
.pl-frame img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.16); will-change: transform; }
.pl-tall img { aspect-ratio: 4 / 5; }
.pl-wide img { aspect-ratio: 16 / 9; }

/* steps */
.pl-how .pl-cols { gap: clamp(40px, 7vw, 120px); align-items: start; }
.pl-how .pl-sticky { position: sticky; top: 110px; }
.pl-steps { counter-reset: step; }
.pl-step { position: relative; padding: 0 0 44px 64px !important; margin: 0 !important; }
.pl-step::before { counter-increment: step; content: "0" counter(step); position: absolute; left: 0; top: 0.35em; font-family: var(--pl-mono); font-size: 0.8rem; color: var(--pl-timber-deep); }
.pl-step::after { content: ""; position: absolute; left: 30px; top: 0.95em; bottom: 0; width: 1px; background: rgba(22, 29, 39, 0.18); }
.pl-step:last-child::after { display: none; }
.pl-step p { color: rgba(22, 29, 39, 0.72); margin: 0; }

/* band */
.pl-band.wp-block-cover { min-height: 78vh !important; padding: var(--pl-step) var(--pl-gutter) !important; overflow: hidden; }
.pl-band .wp-block-cover__image-background { height: 130% !important; top: -15% !important; will-change: transform; }
.pl-band .wp-block-cover__background { background: rgba(14, 18, 26, 0.55) !important; opacity: 1 !important; }
.pl-band .wp-block-cover__inner-container { max-width: 1320px; margin: 0 auto; width: 100%; color: var(--pl-white); }
.pl-band p.pl-quote { font-family: var(--pl-serif); font-size: clamp(2.3rem, 6.4vw, 6rem); line-height: 0.95; letter-spacing: -0.02em; max-width: 14ch; margin: 0; }
.pl-band p.pl-quote em { color: var(--pl-timber); }

/* who */
.pl-who .pl-cols { gap: clamp(28px, 4vw, 56px); margin-top: clamp(36px, 5vw, 64px) !important; }
.pl-who .wp-block-column { border-top: 2px solid var(--pl-ink); padding-top: 22px; }
.pl-who .wp-block-column p { color: rgba(22, 29, 39, 0.72); }

/* about */
.pl-about .pl-cols { gap: clamp(40px, 7vw, 110px); align-items: center; }
.pl-about p { color: rgba(22, 29, 39, 0.74); max-width: 36rem; }
.pl-sample { display: inline-block; font-family: var(--pl-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.2em 0.6em; border: 1px solid currentColor; color: var(--pl-timber-deep); vertical-align: middle; margin-left: 0.5em; font-style: normal; }
.pl-dark .pl-sample { color: var(--pl-timber); }

/* contact */
.pl-contact .pl-cols { gap: clamp(40px, 7vw, 110px); }
.pl-contact .pl-facts { list-style: none; padding: 0; margin: 1.6em 0 2em; font-size: 1rem; }
.pl-contact .pl-facts li { padding: 12px 0; border-bottom: 1px solid rgba(246, 245, 242, 0.14); }
.pl-contact p { color: rgba(246, 245, 242, 0.74); }
.pl-form { display: grid; gap: 4px; }
.pl-form .pl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.pl-form p { margin: 0 0 16px; }
.pl-form label { display: block; font-stretch: 125%; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: rgba(246, 245, 242, 0.66); margin-bottom: 8px; }
.pl-form label span { text-transform: none; letter-spacing: 0; font-stretch: 100%; font-weight: 400; }
.pl-form input, .pl-form select, .pl-form textarea { width: 100%; background: rgba(246, 245, 242, 0.05); border: 0; border-bottom: 1px solid rgba(246, 245, 242, 0.35); border-radius: 0; color: var(--pl-white); font: inherit; font-size: 1rem; padding: 12px 2px; transition: border-color 0.2s, background 0.2s; }
.pl-form select { background-color: #222b37; appearance: auto; }
.pl-form select option { color: var(--pl-white); background: #222b37; }
.pl-form input:focus, .pl-form select:focus, .pl-form textarea:focus { outline: none; border-bottom-color: var(--pl-timber); background: rgba(246, 245, 242, 0.09); }
.pl-form .pl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pl-button { font-family: var(--pl-sans); font-stretch: 125%; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; background: var(--pl-timber); color: var(--pl-night); border: 0; border-radius: 0; padding: 1.15em 1.9em; cursor: pointer; display: inline-flex; gap: 12px; align-items: center; transition: background 0.25s; }
.pl-button::after { content: ""; width: 8px; height: 14px; background: currentColor; clip-path: polygon(0 0, 100% 0, 50% 100%); transition: transform 0.5s cubic-bezier(.3, 1.6, .5, 1); transform-origin: 50% 0; }
.pl-button:hover { background: var(--pl-white); }
.pl-button:hover::after { transform: rotate(-16deg); }
.pl-note { padding: 16px 18px; margin-bottom: 22px; border-left: 3px solid var(--pl-timber); background: rgba(246, 245, 242, 0.07); color: var(--pl-white); }
.pl-note--err { border-left-color: #e0795f; }

/* footer */
.site-footer { background: var(--pl-night); color: rgba(246, 245, 242, 0.6); font-size: 0.86rem; }
.site-footer a { color: rgba(246, 245, 242, 0.85); }
.site-footer .site-bottom-footer-inner-wrap { border-top: 1px solid rgba(246, 245, 242, 0.12); }

/* motion */
.pl-rise { opacity: 0; transform: translateY(36px); transition: opacity 0.9s ease, transform 1s cubic-bezier(.2, .8, .2, 1); }
.pl-rise.in { opacity: 1; transform: none; }
.pl-hero .pl-in > * { opacity: 0; transform: translateY(28px); animation: pl-up 1.1s cubic-bezier(.2, .8, .2, 1) forwards; }
.pl-hero .pl-in > *:nth-child(2) { animation-delay: 0.15s; }
.pl-hero .pl-in > *:nth-child(3) { animation-delay: 0.3s; }
.pl-hero .pl-in > *:nth-child(4) { animation-delay: 0.45s; }
@keyframes pl-up { to { opacity: 1; transform: none; } }

/* inner pages */
body:not(.pl-home) .entry-hero-container-inner, body:not(.pl-home) .site-header-wrap { background: var(--pl-night); }
body:not(.pl-home) #masthead .site-title a, body:not(.pl-home) #masthead .main-navigation a, body:not(.pl-home) #masthead .menu-toggle-open { color: var(--pl-white); }

/* intro photo lifts into the hero */
.pl-intro .pl-cols { align-items: start; }
.pl-intro .pl-lift { position: relative; z-index: 3; box-shadow: 0 40px 80px -30px rgba(10, 14, 20, 0.55); }
@media (min-width: 901px) { .pl-intro .pl-lift { margin-top: calc(-1 * var(--pl-step) - 22vh) !important; } }

/* services: the list scrolls past one photo that changes with the service in view */
.pl-index { counter-reset: svc; border-top: 1px solid rgba(246, 245, 242, 0.16); }
.pl-index .pl-service { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 6px 24px; padding: 34px 0 !important; margin: 0 !important; border-bottom: 1px solid rgba(246, 245, 242, 0.16); }
.pl-index .pl-service::before { counter-increment: svc; content: "0" counter(svc); font-family: var(--pl-mono); font-size: 0.8rem; color: var(--pl-timber); grid-row: span 2; padding-top: 0.9em; }
.pl-index .pl-service h3 { font-size: clamp(1.9rem, 3.4vw, 3.1rem); margin: 0; transition: color 0.4s, transform 0.6s cubic-bezier(.2, .8, .2, 1); }
.pl-index .pl-service h3::before { display: none; }
.pl-index .pl-service p { padding: 0; margin: 0; max-width: 34rem; transition: opacity 0.4s; }
.pl-index .pl-service__img { display: none; margin: 0; }
.pl-svc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.pl-svc .pl-service:not(.on) h3 { color: rgba(246, 245, 242, 0.38); }
.pl-svc .pl-service:not(.on) p { opacity: 0.45; }
.pl-svc .pl-service.on h3 { transform: translateX(14px); }
.pl-stage { position: sticky; top: 14vh; aspect-ratio: 4 / 5; overflow: hidden; background: var(--pl-slate); }
.pl-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 0.8s ease, transform 1.6s cubic-bezier(.2, .8, .2, 1); }
.pl-stage img.on { opacity: 1; transform: scale(1); }
@media (max-width: 900px) {
    .pl-index .pl-service { grid-template-columns: 1fr; }
    .pl-index .pl-service::before { grid-row: auto; padding: 0; }
    .pl-index .pl-service__img { display: block; grid-row: 1; margin-bottom: 14px; }
    .pl-index .pl-service__img img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
}

/* steps: the line fills as you read */
.pl-steps { position: relative; }
.pl-steps::before, .pl-steps::after { content: ""; position: absolute; left: 30px; top: 0.9em; width: 1px; }
.pl-steps::before { bottom: 44px; background: rgba(22, 29, 39, 0.16); }
.pl-steps::after { height: calc(var(--pl-fill, 0) * (100% - 44px - 0.9em)); background: var(--pl-timber); width: 2px; left: 29.5px; }
.pl-step::after { display: none; }
.pl-step::before { background: var(--pl-paper); padding: 2px 0; z-index: 1; transition: color 0.3s; }
.pl-step h3 { transition: color 0.4s; }
.pl-step:not(.on) h3 { color: rgba(22, 29, 39, 0.42); }

/* who: photo cards */
.pl-who .wp-block-column { border-top: 0; padding-top: 0; }
.pl-card { margin: 0 0 22px !important; }
.pl-card img { aspect-ratio: 4 / 5; transition: filter 0.6s; filter: saturate(0.85); }
.pl-who .wp-block-column:hover .pl-card img { filter: saturate(1.1); }
.pl-who .wp-block-column:nth-child(2) { margin-top: clamp(0px, 6vw, 90px) !important; }
.pl-who .wp-block-column:nth-child(3) { margin-top: clamp(0px, 12vw, 180px) !important; }

/* contact over a photo */
.pl-contact.wp-block-cover { padding: var(--pl-step) var(--pl-gutter) !important; overflow: hidden; min-height: 0 !important; }
.pl-contact .wp-block-cover__image-background { height: 130% !important; top: -15% !important; will-change: transform; }
.pl-contact .wp-block-cover__inner-container { max-width: 1320px; margin: 0 auto; width: 100%; color: var(--pl-white); }
.pl-contact .pl-eyebrow { color: rgba(246, 245, 242, 0.65); }
.pl-contact .wp-block-column:last-child { background: rgba(16, 21, 29, 0.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: clamp(24px, 4vw, 48px); border-top: 3px solid var(--pl-timber); }
.pl-contact a:not(.wp-block-button__link) { color: var(--pl-timber); }

@media (max-width: 900px) {
    .pl-who .wp-block-column:nth-child(n) { margin-top: 0 !important; }
    .pl-services .pl-head { grid-template-columns: 1fr; }
    .pl-how .pl-sticky { position: static; }
    .pl-service { padding-right: 0 !important; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .pl-form .pl-row { grid-template-columns: 1fr; }
    .pl-step { padding-left: 52px !important; }
    .pl-step::after { left: 24px; }
    .pl-line { display: none; }
    .pl-hero.wp-block-cover { padding-bottom: 56px !important; }
}
@media (prefers-reduced-motion: reduce) {
    .pl-rise, .pl-hero .pl-in > * { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
    .pl-line { transition: none; }
}

/* classic-theme groups wrap their blocks in an inner container; let the grid see the blocks */
.pl-head > .wp-block-group__inner-container, .pl-index .pl-service > .wp-block-group__inner-container { display: contents; }
.entry-content > .alignfull { margin-left: 0 !important; margin-right: 0 !important; width: auto; max-width: none; }
@media (max-width: 640px) { .site-header .site-title { font-size: 1.3rem; } }
