/*
Theme Name: Forge Commercial
Theme URI: https://example.com/forge-commercial
Author: Brian
Description: High-conversion, SEO-friendly commercial construction theme with a lead generation form on the front page. Black, white and chrome palette with restrained green accents.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: forge
*/

:root {
  --ink: #0e1012;
  --graphite: #171a1e;
  --steel: #23272d;
  --chrome: #c8ccd1;
  --mist: #eef0f2;
  --white: #ffffff;
  --green: #2f9e3f;
  --green-dark: #247c31;
  --radius: 6px;
  --maxw: 1200px;
  --font-head: "Barlow Condensed", "Oswald", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--maxw), 100% - 2.5rem); margin-inline: auto; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { clip: auto; width: auto; height: auto; background: #fff; padding: .75rem 1rem; z-index: 1000; top: 0; left: 0; }

/* Eyebrow */
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font: 600 .8rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--chrome); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--green); }
.section-light .eyebrow { color: #5c636b; }

/* Buttons */
.btn { white-space: nowrap; display: inline-block; padding: 1rem 1.7rem; border-radius: var(--radius); font: 700 .95rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .15s, background .15s, border-color .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { border-color: var(--chrome); color: var(--white); background: transparent; }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-dark { background: var(--ink); color: var(--white); }

/* Top bar + header */
.topbar { background: var(--ink); color: var(--chrome); font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; flex-wrap: wrap; }
.topbar a { text-decoration: none; font-weight: 600; color: var(--white); }
.site-header { background: var(--graphite); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid #2c3036; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding: .9rem 0; gap: 1.5rem; }
.brand { white-space: nowrap; font: 700 1.5rem/1 var(--font-head); text-transform: uppercase; color: var(--white); text-decoration: none; letter-spacing: .04em; }
.brand span { display: block; font: 500 .75rem/1.4 var(--font-body); letter-spacing: .3em; color: var(--chrome); }
.brand img { max-height: 54px; width: auto; }
.main-nav ul { display: flex; gap: 1.3rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--chrome); text-decoration: none; font-weight: 600; font-size: .92rem; letter-spacing: .05em; text-transform: uppercase; }
.main-nav a:hover, .main-nav .current-menu-item a { color: var(--white); }
.header-cta { display: flex; align-items: center; gap: 1rem; }
.header-phone { white-space: nowrap; color: var(--white); font: 700 1.25rem/1 var(--font-head); text-decoration: none; letter-spacing: .04em; }
.menu-toggle { display: none; background: none; border: 1px solid var(--chrome); color: var(--white); padding: .5rem .8rem; border-radius: var(--radius); font-weight: 600; }

/* Hero */



.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; padding: 3rem 0 3.5rem; align-items: center; }
.hero h1 em { font-style: normal; color: var(--chrome); }
.hero .lead { font-size: 1.15rem; color: #d3d6da; max-width: 36rem; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin: 1.4rem 0 1.5rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 1.5rem; padding: 0; margin: 0; list-style: none; color: var(--chrome); font-size: .9rem; font-weight: 600; }
.trust-row li::before { content: "\2713"; color: var(--green); margin-right: .45rem; font-weight: 800; }

/* Lead form */
.lead-card { background: var(--white); color: var(--ink); border-radius: 10px; padding: 1.6rem; box-shadow: 0 25px 60px rgba(0,0,0,.45); border-top: 5px solid var(--chrome); }
.lead-card h2 { font-size: 1.7rem; margin-bottom: .2rem; }
.lead-card .sub { color: #5c636b; font-size: .95rem; margin-bottom: 1.3rem; }
.lead-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.lead-form .field { margin-bottom: .7rem; }
.lead-form label { display: block; font-weight: 600; font-size: .82rem; margin-bottom: .3rem; letter-spacing: .02em; }
.lead-form input, .lead-form select, .lead-form textarea { width: 100%; padding: .7rem .8rem; border: 1.5px solid #c9ced4; border-radius: var(--radius); font: inherit; background: #fafbfc; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 3px solid rgba(47,158,63,.25); border-color: var(--green); }
.lead-form .btn { width: 100%; padding: 1.1rem; font-size: 1rem; }
.lead-form .fine { font-size: .75rem; color: #6b727a; margin: .8rem 0 0; text-align: center; }
.hp-field { position: absolute; left: -9999px; }
.form-msg { padding: .9rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-weight: 600; }
.form-msg.ok { background: #e7f5e9; color: #1b5e26; }
.form-msg.err { background: #fdeaea; color: #8a1f1f; }

/* Sections */
section { padding: 5rem 0; }
.section-dark { background: var(--graphite); color: var(--white); }
.section-light { background: var(--mist); }
.section-head { max-width: 46rem; margin-bottom: 3rem; }
.section-head p { color: #5c636b; font-size: 1.05rem; }
.section-dark .section-head p { color: var(--chrome); }

/* Stats */

.stats .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1.5rem; text-align: center; }



/* Services */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { background: var(--white); border: 1px solid #dde0e4; border-radius: 8px; padding: 1.8rem; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.1); }
.card .num { font: 700 .9rem/1 var(--font-body); color: var(--green); letter-spacing: .15em; }
.card h3 { margin-top: .6rem; }
.card p { color: #4b525a; margin: 0; }

/* Process */


/* Projects */






/* Testimonials */

/* FAQ */
.faq details { border-bottom: 1px solid #d4d8dd; padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--green); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: .8rem 0 0; color: #4b525a; }

/* CTA band */


.cta-band .hero-actions { justify-content: center; }

/* Footer */
.site-footer { background: #090a0c; color: var(--chrome); padding: 4rem 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer h4 { color: var(--white); font-size: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.legal { border-top: 1px solid #22262b; padding: 1.2rem 0; font-size: .82rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Mobile sticky call bar */
.mobile-bar { display: none; }

/* Content pages */
.page-hero { background: var(--graphite); color: var(--white); padding: 3.5rem 0; }
.page-hero h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.entry { padding: 3.5rem 0; max-width: 780px; }
.entry h2, .entry h3 { margin-top: 1.6em; }
.entry a { color: var(--green-dark); }
.post-list article { border-bottom: 1px solid #dde0e4; padding: 1.5rem 0; }

@media (max-width: 1100px) {
  .header-phone { display: none; }
}
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; padding: 3rem 0; }
  .grid-3, .steps, .footer-grid, .stats .wrap { grid-template-columns: 1fr 1fr; }
  .menu-toggle { display: inline-block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--graphite); padding: 1rem 1.25rem; border-bottom: 1px solid #2c3036; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 1rem; }
  .header-cta .btn, .header-phone { display: none; }
}
@media (max-width: 600px) {
  .brand { font-size: 1.15rem; white-space: normal; }
  .brand span { letter-spacing: .2em; }
  .topbar .wrap > span:first-child { display: none; }
  .topbar .wrap { justify-content: center; }
  .site-header .wrap { gap: .75rem; }
  .hero h1 { font-size: 2.3rem; }
  section { padding: 3.5rem 0; }
  .grid-3, .steps, .footer-grid { grid-template-columns: 1fr; }
  .lead-form .row { grid-template-columns: 1fr; gap: 0; }
  .lead-card { padding: 1.4rem; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; }
  .mobile-bar a { padding: 1rem; text-align: center; font-weight: 700; text-transform: uppercase; text-decoration: none; letter-spacing: .05em; color: var(--white); }
  .mobile-bar a:first-child { background: var(--ink); }
  .mobile-bar a:last-child { background: var(--green); }
  body { padding-bottom: 54px; }
}

/* Polish */
section:not(.section-dark):not(.hero):not(.cta-band) .eyebrow { color: #5c636b; }


/* ===== Corporate layout v2 ===== */
/* Hero: full-bleed static photo, form front and center */
.hero { position: relative; background: #0b0c0e; color: var(--white); overflow: hidden; padding: 0; }
.hero-media { position: absolute; inset: 0; background: linear-gradient(115deg, #0b0c0e 0%, #1b1f24 100%); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 62%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,9,11,.93) 0%, rgba(8,9,11,.74) 40%, rgba(8,9,11,.22) 100%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; padding: 3.5rem 0 4rem; align-items: center; }
.hero h1 em { font-style: normal; color: var(--chrome); }
.hero-call { margin: 1.2rem 0 0; color: var(--chrome); }
.hero-call a { color: var(--white); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--green); }

/* Tagline + stats */
.proof { padding: 4rem 0 3rem; background: var(--white); }
.tagline { text-align: center; font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 2.5rem; }
.stats { background: none; padding: 0; border: 0; color: var(--ink); }
.stats .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); width: 100%; text-align: center; gap: 0; }
.stat { padding: .5rem 1rem; border-left: 1px solid #d8dce0; }
.stat:first-child { border-left: 0; }
.stat b { display: block; font: 700 3.2rem/1 var(--font-head); color: var(--ink); }
.stat span { color: #5c636b; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }

/* Image cards (services) */
.media-card { background: var(--white); border-radius: 8px; overflow: hidden; border: 1px solid #dde0e4; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.media-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,.12); }
.media, .media-card .media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #2b3037, #15181c); overflow: hidden; display: block; }
.media::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 20px); }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.media-card:hover .media img, .proj-card:hover .media img { transform: scale(1.04); }
.media-card .body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.media-card h3 { margin-bottom: .5rem; }
.media-card p { color: #4b525a; }
.more { margin-top: auto; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border-bottom: 2px solid var(--green); align-self: flex-start; padding-bottom: 2px; }
.chips { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li { border: 1px solid #c4c9ce; border-radius: 999px; padding: .45rem 1rem; font-size: .88rem; font-weight: 600; background: var(--white); }


/* Cards */
.proj-card .media { border-radius: 8px; aspect-ratio: 4 / 3; margin-bottom: 1rem; }
.proj-card h3 { margin-bottom: .2rem; }
.proj-card h3 a { text-decoration: none; }
.proj-card p { color: #5c636b; margin: 0; }
.pillar { border-top: 3px solid var(--ink); padding-top: 1.2rem; }
.pillar p { color: #4b525a; }

/* Closing banner */
.cta-band { position: relative; background: #0b0c0e; color: var(--white); overflow: hidden; }
.cta-media { position: absolute; inset: 0; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,9,11,.94), rgba(8,9,11,.7)); }
.cta-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.cta-band p { color: #d3d6da; font-size: 1.1rem; }
.cta-band p a { color: var(--white); text-decoration: none; border-bottom: 2px solid var(--green); }
.cta-band .lead-card h3 { margin-bottom: 1rem; }

@media (max-width: 960px) {
  .hero-grid, .cta-grid { grid-template-columns: 1fr; padding-top: 3rem; }
  .cta-band .wrap.cta-grid { padding-block: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat { padding-block: 1.2rem; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .stat b { font-size: 2.4rem; }
  .hero-grid { padding: 2.2rem 0 2.5rem; gap: 2rem; }
}
