/* ================================================
   LIFTER MEDIA. COMPONENTS
   Shared sections, cards, heroes, grids, forms. One rule per selector.
   Loads after base.css; page files (home.css, privacy.css) load after this; motion.css loads last.
   ================================================ */

/* ---------- Section rhythm ---------- */
main > section:not(.hero) { background-color: var(--color-bg); }
/* Every other content section gets a lifted background; all get a hairline. */
main > section:not(.hero):not(.page-hero):not(.final-cta):not(.section-feature):not(.image-band):not(.trust-bar):nth-of-type(odd) { background-color: var(--color-section-alt); }
main > section:not(.hero):not(.page-hero) { border-top: var(--section-divider); }
/* Full-width photo breaks between sections. */
main > section.image-band { padding: 0; border-top: 0; background: var(--color-bg); }
.image-band img { display: block; width: 100%; height: clamp(220px, 34vw, 480px); object-fit: cover; filter: saturate(.85) brightness(.8); }
/* Feature section in the secondary brand color. */
main > section.section-feature { background-color: var(--color-secondary); border-top: 0; }
/* Decorative Lifter mark breaking in from the side. Add .mark-right or .mark-left to a <section>. */
main > section.mark-right, main > section.mark-left { position: relative; overflow: hidden; }
main > section.mark-right > .container, main > section.mark-left > .container { position: relative; z-index: 1; }
section.mark-right::before, section.mark-left::before {
    content: ""; position: absolute; top: 50%; width: var(--mark-size); aspect-ratio: 406 / 417; /* v2 mark 2026-10-03 */
    background-color: var(--mark-color);
    -webkit-mask: url("../images/lifter-mark-outline.svg") center / contain no-repeat;
            mask: url("../images/lifter-mark-outline.svg") center / contain no-repeat;
    transform: translateY(-50%); pointer-events: none; z-index: 0;
}
section.mark-right::before { right: calc(var(--mark-size) * -0.38); top: 62%; }
section.mark-left::before { left: calc(var(--mark-size) * -0.58); top: 58%; transform: translateY(-50%) scaleX(-1); }

/* ---------- Section intros: heading, then copy below ---------- */
.section-heading { display: block; margin-bottom: var(--space-lg); }
.section-heading h2 { max-width: 24ch; }
.section-heading .label, .section-intro .label { margin-bottom: var(--space-sm); }
.section-heading p { max-width: 60ch; margin-top: var(--space-md); }
.section-heading h2 .accent, .section-intro h2 .accent { color: var(--color-accent); }
.section-intro { max-width: 760px; margin-bottom: var(--space-lg); }
.section-intro h2 { margin-bottom: var(--space-md); }
.section-intro p { max-width: 60ch; font-size: var(--text-lead); }
.section-intro p strong, .detail-grid p strong, .owner-grid p strong { color: var(--color-accent); font-weight: 500; }

/* ---------- Page heroes ---------- */
.page-hero { position: relative; padding-top: 160px; padding-bottom: var(--space-xl); }
.page-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at top right, var(--color-hero-glow), transparent 70%); }
.page-hero .container { position: relative; }
.page-hero .eyebrow { margin-bottom: var(--space-md); }
.page-hero h1 { margin-bottom: var(--space-md); max-width: 17ch; font-size: var(--type-hero-page); }
.page-hero .subhead { max-width: 55ch; font-size: var(--text-subhead); line-height: 1.5; color: var(--color-text-muted); margin-bottom: var(--space-md); }
.page-hero .hero-cta { margin-top: var(--space-md); }
.page-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-md); }

/* Headline lines: each line clips its own reveal; the last line is gold unless the h1 picks its own accent words. */
.hero-title-line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero-title-ink { display: block; }
.hero-title-line:last-child .hero-title-ink { color: var(--color-accent); }
.hero-title-selective .hero-title-line .hero-title-ink { color: var(--color-text); }

/* Photo heroes. Static backgrounds here; motion.css swaps them for fading layers when motion is allowed. */
.page-hero.websites-hero, .page-hero.local-search-hero, .page-hero.about-hero, .page-hero.work-hero { padding-bottom: clamp(64px, 8vw, 112px); }
.page-hero.websites-hero .subhead, .page-hero.local-search-hero .subhead, .page-hero.about-hero .subhead, .page-hero.work-hero .subhead, .page-hero.tiers-hero .subhead { color: var(--color-text); }
.page-hero.local-search-hero::before, .page-hero.about-hero::before, .page-hero.work-hero::before {
    background: linear-gradient(90deg, rgba(var(--color-bg-rgb), .93) 0%, rgba(var(--color-bg-rgb), .78) 45%, rgba(var(--color-bg-rgb), .35) 100%);
}
/* Unsplash: Land O'Lakes, Inc. (iVINr8-ZFmY) */
.page-hero.local-search-hero { background: var(--color-surface) url("https://images.unsplash.com/photo-1761850648640-2ee5870ee883?auto=format&fit=crop&w=2000&q=85") center 55% / cover no-repeat; }
/* Unsplash: Swello (VW7ll65EAwA) */
.page-hero.about-hero { background: var(--color-surface) url("https://images.unsplash.com/photo-1712217559117-665e01ae5bc8?auto=format&fit=crop&w=2000&q=85") center 55% / cover no-repeat; }
/* Unsplash: 2H Media (xCeZgfgQ1wI) */
.page-hero.work-hero { background: var(--color-surface) url("https://images.unsplash.com/photo-1659141170537-6e0aa70329a4?auto=format&fit=crop&w=2000&q=85") center 55% / cover no-repeat; }

/* Websites hero (Adobe Stock 2016891151): image layer zoomed toward its left edge. */
.page-hero.websites-hero { isolation: isolate; overflow: hidden; background: var(--color-surface); }
.page-hero.websites-hero::before {
    z-index: -1;
    background: linear-gradient(90deg, rgba(var(--color-bg-rgb), 0.94942) 0%, rgba(var(--color-bg-rgb), 0.84105) 45%, rgba(var(--color-bg-rgb), 0.53038) 100%);
}
.page-hero.websites-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: url("../images/websites-wireframes.jpg") left center / cover no-repeat;
    transform: scale(1.2);
    transform-origin: left center;
    pointer-events: none;
}

/* One-line hero titles (Work, Monthly marketing): lines sit side by side, second half stays gold, wraps on small screens.
   The h1 margin subtracts the .12em the stacked lines trim, so headline-to-subhead spacing matches every other hero. */
.page-hero.work-hero .hero-title-line, .page-hero.local-search-hero .hero-title-line { display: inline-block; vertical-align: top; }
.page-hero.work-hero .hero-title-line:first-child, .page-hero.local-search-hero .hero-title-line:first-child { margin-right: .25em; }
.page-hero.work-hero h1, .page-hero.local-search-hero h1 { margin-bottom: calc(var(--space-md) - .12em); }

/* Pricing (tiers) hero, draft page: square art in a right-hand panel that fades into the dark background. */
.page-hero.tiers-hero { isolation: isolate; overflow: hidden; background: var(--color-bg); }
.page-hero.tiers-hero::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 62%;
    z-index: -2;
    background: url("../images/tiers-hero.jpg") center top / cover no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%); /* one-off: mask channel, not a color */
            mask-image: linear-gradient(90deg, transparent 0%, #000 22%); /* one-off: mask channel, not a color */
    pointer-events: none;
}
.page-hero.tiers-hero::before {
    z-index: -1;
    background: linear-gradient(90deg, rgba(var(--color-black-rgb), .92) 0%, rgba(var(--color-black-rgb), .60) 50%, rgba(var(--color-black-rgb), .12) 100%);
}

/* ---------- Service cards ---------- */
.service-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-md); }
.service-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-card { display: flex; flex-direction: column; border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: clamp(28px,4vw,56px); background: var(--color-surface); }
.service-card.featured { position: relative; border-color: var(--color-accent); }
.service-number { display: flex; justify-content: space-between; color: var(--color-accent); font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; margin-bottom: var(--space-lg); }
.service-card h3 { font-size: var(--type-service-title); margin-bottom: var(--space-sm); }
.service-card p { max-width: 46ch; }
.service-card .price-scope { color: var(--color-accent); font-size: var(--text-sm); margin-bottom: 24px; }
.service-card ul, .checklist { margin: var(--space-md) 0; }
.service-card li, .checklist li { padding: 12px 0; border-bottom: 1px solid var(--color-border); color: var(--color-text-muted); text-wrap: balance; padding-left: 28px; text-indent: -28px; } /* short items: even lines, no one-word widows; wrapped lines hang under the text, not the arrow */
.service-card li::before, .checklist li::before { content: '↗'; color: var(--color-accent); display: inline-block; width: 28px; text-indent: 0; }
.service-card .service-start { margin-top: auto; margin-bottom: 20px; align-self: flex-start; white-space: normal; height: auto; min-height: 52px; padding: 16px 24px; text-align: center; }
.service-card .text-link { margin-top: auto; padding-top: var(--space-sm); font-size: var(--text-card-link); }
.service-card .service-start + .text-link { margin-top: 0; }
.service-grid.three .service-start { margin-top: auto; white-space: nowrap; height: 48px; min-height: 0; padding: 0 22px; font-size: var(--text-sm); letter-spacing: .06em; }
.service-grid.three .service-start + .text-link { margin-top: 0; white-space: nowrap; }
.service-note { margin-top: var(--space-md); max-width: 75ch; font-size: var(--text-md); }
.service-intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 24px; }
.service-intro-actions .btn { white-space: normal; height: auto; min-height: 52px; padding: 16px 24px; text-align: center; }
.card-badge { position: absolute; top: -13px; left: 28px; background: var(--color-accent); color: var(--color-black); font-size: var(--text-sm); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }

/* Prices (draft pricing page). */
.service-price { font-family: var(--font-primary); font-size: var(--type-price); font-weight: 600; line-height: 1.1; letter-spacing: -.04em; margin: 8px 0 12px; color: var(--color-text); }
.service-price span { font-family: var(--font-primary); font-size: var(--text-md); font-weight: 400; letter-spacing: 0; color: var(--color-text-muted); white-space: nowrap; }
.service-price-sub { font-size: calc(var(--type-price) * .6); margin-top: 4px; }
#choose { padding-bottom: var(--space-md); }
#plans { padding-top: var(--space-md); }

/* ---------- Work tiles ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--space-md); }
.work-grid.wide { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: var(--space-lg); }
.work-tile { min-width: 0; }
.work-image { overflow: hidden; border-radius: var(--radius-card); background: var(--color-surface); margin-bottom: 20px; }
.work-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.work-grid.wide .work-image img { aspect-ratio: 3/2; }
.portrait-work .work-image { display: block; }
.work-grid.portrait-work .work-image img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; object-position: top center; }
.portrait-work .work-image:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 5px; }
.work-tile .label { font-size: var(--text-xs); margin-bottom: 10px; }
.work-tile h3 { font-size: var(--text-title); text-transform: none; margin-bottom: 8px; }
.work-tile p { font-size: var(--text-base); }
.work-visit-link { font-size: var(--text-xs); }

/* ---------- Owner / detail grids ---------- */
.owner-section { border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.owner-grid, .detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: start; }
.owner-grid h2 { max-width: 15ch; }
.owner-grid p, .detail-grid p { margin-bottom: var(--space-md); }
.owner-portrait { display: block; width: 144px; height: 144px; border-radius: 50%; object-fit: cover; object-position: center 25%; border: 1px solid rgba(var(--white-rgb), .15); margin-bottom: 24px; }
.owner-signature { margin-top: var(--space-md); font-family: var(--font-serif); font-size: var(--text-title); color: var(--color-accent); }
.detail-grid h2 { max-width: 15ch; margin-bottom: var(--space-md); }
.detail-grid h3 { font-size: var(--text-title); margin: var(--space-md) 0 var(--space-sm); }
/* .copy-at-headline: the right-hand copy starts where the left headline ends (label + headline above, image below on the left). */
.detail-grid.copy-at-headline { grid-template-rows: auto auto 1fr; row-gap: 0; }
.detail-grid.copy-at-headline > .detail-media { display: contents; }
.detail-grid.copy-at-headline > .detail-media > .label { grid-column: 1; grid-row: 1; justify-self: start; margin-bottom: var(--space-sm); }
.detail-grid.copy-at-headline > .detail-media > h2 { grid-column: 1 / -1; grid-row: 2; margin-bottom: 0; max-width: none; } /* headline may run across both columns */
.detail-grid.copy-at-headline > .detail-media > figure { grid-column: 1; grid-row: 3; }
.detail-grid.copy-at-headline > :last-child { grid-column: 2; grid-row: 3; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--space-lg); }
.why-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { padding-top: var(--space-md); border-top: 1px solid var(--color-border-strong); }
.step .label { margin-bottom: var(--space-md); }
.step h3 { font-size: var(--text-title); margin-bottom: var(--space-sm); }
.step p { font-size: var(--text-base); }

/* ---------- Timeline (side-scrolling process) ---------- */
.timeline { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--color-accent) transparent; padding: 6px 0 var(--space-sm); margin-top: var(--space-lg); cursor: grab; }
.timeline:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }
.timeline.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.timeline-track { display: flex; gap: var(--space-md); list-style: none; margin: 0; padding: 0; }
.timeline-step { flex: 0 0 clamp(260px, 27vw, 340px); scroll-snap-align: start; position: relative; padding-top: var(--space-md); border-top: 1px solid var(--color-border-strong); }
.timeline-step::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--color-accent); }
.timeline-num { display: block; color: var(--color-accent); font-size: var(--text-xs); letter-spacing: .14em; }
.timeline-step h3 { font-size: var(--text-title); margin: var(--space-sm) 0; }
.timeline-step p { font-size: var(--text-base); color: var(--color-text-muted); }
.timeline-hint { display: block; margin-top: var(--space-sm); color: var(--color-accent); font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Questions (FAQ accordion) ---------- */
.questions { max-width: 960px; }
.questions details { border-top: 1px solid var(--color-border); padding: 24px 0; }
.questions details:last-child { border-bottom: 1px solid var(--color-border); }
.questions summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; cursor: pointer; list-style: none; font-size: var(--text-lead); }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: '+'; color: var(--color-accent); font-size: var(--text-title); }
.questions details[open] summary { color: var(--color-accent); }
.questions details[open] summary::after { content: '−'; }
.questions details p { max-width: 72ch; padding-top: 20px; }

/* ---------- Final call to action ---------- */
.final-cta { border-top: 1px solid var(--color-border); text-align: center; padding: var(--space-2xl) 0; }
main > section.final-cta { background: radial-gradient(ellipse at bottom, var(--color-cta-glow), var(--color-bg) 70%); } /* matches the section-rhythm selector weight, wins by order */
.final-cta h2 { margin-bottom: var(--space-md); }
.final-cta p { max-width: 48ch; margin: 0 auto var(--space-md); }
.final-cta .label { margin-bottom: var(--space-md); }
.final-cta .cta-alt { margin-top: var(--space-sm); font-size: var(--text-md); color: var(--color-text-muted); }
.final-cta .cta-alt a { color: inherit; text-decoration: underline; }

/* ---------- Contact and forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: var(--space-xl); }
.contact-grid h2 { font-size: var(--text-xl); margin-bottom: var(--space-md); }
.contact-grid p { margin-bottom: var(--space-md); }
.contact-grid .email-link { overflow-wrap: anywhere; }
.inquiry-form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field.full, .form-action { grid-column: 1/-1; }
.field label { font-size: var(--text-sm); }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--color-field-border-strong); background: var(--color-input); color: var(--color-text); border-radius: 5px; padding: 14px; font: inherit; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), .1); }
.field textarea { resize: vertical; min-height: 140px; }
.form-action p { font-size: var(--text-sm); margin-bottom: 20px; }
.form-action .btn { margin-bottom: 16px; }
.form-privacy a { text-decoration: underline; text-underline-offset: .2em; }
#email-preview { margin-top: var(--space-md); padding: var(--space-md); border: 1px solid var(--color-accent); border-radius: var(--radius-card); }
#email-copy { white-space: pre-wrap; font: inherit; font-size: var(--text-md); color: var(--color-text-muted); margin: 20px 0; overflow-wrap: anywhere; }

/* ---------- Local search photo ---------- */
.local-search-photo { margin: 28px 0 0; }
.local-search-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-card); }
.local-search-photo figcaption { margin-top: 10px; font-size: var(--text-xs); color: var(--color-text-muted); }
.local-search-photo figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Breakpoints ---------- */
@media (max-width: 1100px) {
    .service-grid.three { grid-template-columns: 1fr; max-width: 640px; }
}
@media (max-width: 1000px) {
    .owner-grid, .detail-grid, .contact-grid { gap: var(--space-lg); }
    .work-grid { gap: 20px; }
    .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .page-hero { padding-top: 140px; }
    .page-hero.local-search-hero, .page-hero.about-hero, .page-hero.work-hero { background-position: 60% center; }
    .page-hero.local-search-hero::before, .page-hero.about-hero::before, .page-hero.work-hero::before { background: rgba(var(--color-bg-rgb), .8); }
    .page-hero.websites-hero::before { background: rgba(var(--color-bg-rgb), 0.8555); }
    .page-hero.websites-hero::after { background-image: url("../images/websites-wireframes-mobile.jpg"); }
    .page-hero.tiers-hero::before { background: rgba(var(--color-black-rgb), .80); }
    .page-hero.tiers-hero::after { width: 100%; background-image: url("../images/tiers-hero-mobile.jpg"); -webkit-mask-image: none; mask-image: none; }
    .service-grid, .work-grid, .work-grid.wide, .steps, .owner-grid, .detail-grid, .contact-grid, .why-grid { grid-template-columns: 1fr; }
    .service-number { margin-bottom: var(--space-md); }
    .section-heading p, .section-heading > .text-link { margin-top: 24px; }
    .detail-grid.copy-at-headline > .detail-media > *, .detail-grid.copy-at-headline > :last-child { grid-column: 1; grid-row: auto; }
    .detail-grid.copy-at-headline > :last-child { margin-top: var(--space-lg); }
    .inquiry-form { grid-template-columns: 1fr; }
    section.mark-right::before, section.mark-left::before { opacity: .4; top: 75%; }
}
@media (max-width: 400px) {
    .service-price { font-size: var(--text-price-phone); }
    .service-price span { font-size: var(--text-sm); }
}
