/*
Theme Name: Prosing
Author: Prosing Group LLC
Description: Custom block theme for Prosing Group — construction for homes, apartments, residential and commercial properties.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: prosing
*/

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
:where(section[id]) { scroll-margin-top: 80px; }

/* Header */
.pg-header { position: sticky; top: 0; z-index: 50; background: rgba(23,26,30,.92); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.08); }
.pg-header .wp-block-site-title a { text-decoration: none; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; }
.pg-header .wp-block-navigation a { text-decoration: none; }
.pg-header .wp-block-navigation a:hover { color: var(--wp--preset--color--accent); }
.pg-logo { display:flex; line-height:0; }

/* Hero */
.pg-hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0/48px 48px,
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0/48px 48px,
    radial-gradient(ellipse at 85% 10%, rgba(232,163,61,.22), transparent 55%),
    var(--wp--preset--color--ink);
}
.pg-hero::after { content:""; position:absolute; right:-80px; bottom:-80px; width:340px; height:340px; border:2px solid rgba(232,163,61,.35); transform: rotate(45deg); pointer-events:none; }
.pg-hero h1 { max-width: 16ch; }
.pg-lead { max-width: 58ch; opacity: .82; }

.pg-eyebrow { text-transform: uppercase; letter-spacing: .18em; font-weight: 700; color: var(--wp--preset--color--accent); }

/* Promises strip */
.pg-promises > .wp-block-column { border-top: 2px solid var(--wp--preset--color--accent); padding-top: 1rem; }
.pg-promises p { margin: 0; }
.pg-promises strong { display:block; color: var(--wp--preset--color--base); font-size: 1.05rem; margin-bottom: .25rem; }

/* Cards */
.pg-card { background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--line); border-radius: 4px; padding: 2rem; height: 100%; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; position: relative; }
.pg-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(23,26,30,.10); border-color: var(--wp--preset--color--accent); }
.pg-card .pg-num { font-family: var(--wp--preset--font-family--display); font-weight: 800; color: var(--wp--preset--color--accent); font-size: .9rem; letter-spacing: .1em; margin: 0 0 1.5rem; }
.pg-card h3 { margin-top: 0; }
.pg-card p:last-child { margin-bottom: 0; color: var(--wp--preset--color--muted); }

/* Process */
.pg-steps > .wp-block-column { position: relative; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.18); }
.pg-steps .pg-num { color: var(--wp--preset--color--accent); font-weight: 800; letter-spacing: .1em; font-size: .9rem; }
.pg-steps p { opacity: .8; }

/* CTA */
.pg-cta { background: var(--wp--preset--color--accent); }
.pg-cta .wp-block-button__link { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--base); }
.pg-cta .wp-block-button__link:hover { background: #000; }

/* Buttons */
.wp-block-button__link { transition: background .2s ease, color .2s ease, transform .2s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.is-style-outline > .wp-block-button__link { border: 2px solid currentColor; background: transparent; }

/* Footer */
.pg-footer a { color: inherit; }

@media (max-width: 781px) {
  .pg-hero::after { display:none; }
  .pg-card { padding: 1.5rem; }
}

/* Remove gaps between header, main and footer */
.wp-site-blocks > * { margin-block-start: 0; }
.wp-block-post-content > .alignfull:first-child { margin-block-start: 0; }

/* Layout fixes */
.wp-block-post-content > .alignfull { margin-block-start: 0 !important; margin-block-end: 0; }
.pg-hero > h1, .pg-hero > .pg-lead { margin-left: max(0px, calc((100% - 1200px) / 2)) !important; margin-right: auto !important; }
.pg-hero > h1 { max-width: 760px !important; }
.pg-hero > .pg-lead { max-width: 640px !important; }
.pg-hero::after { right: -140px; bottom: auto; top: 70px; width: 420px; height: 420px; border-color: rgba(232,163,61,.28); }
.pg-hero > * { position: relative; z-index: 1; }
