/*
Theme Name: ArchD Pro
Theme URI: https://archd.pro
Author: Idea Pro LLC
Author URI: https://ideapro.com
Description: A purpose-built marketplace theme for connecting general contractors with qualified subcontractors.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: archd-pro
*/

:root {
  --ink: #101820;
  --slate: #45525f;
  --paper: #f7f4ee;
  --white: #fff;
  --orange: #f36f32;
  --orange-dark: #cc4f17;
  --blue: #164d63;
  --blue-light: #dcecf0;
  --line: rgba(16, 24, 32, .12);
  --shadow: 0 20px 60px rgba(16, 24, 32, .12);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input { font: inherit; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid var(--line); background: rgba(247,244,238,.92); backdrop-filter: blur(16px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 850; font-size: 1.3rem; letter-spacing: -.04em; }
.brand-mark { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 10px; color: var(--white); background: var(--ink); transform: rotate(-2deg); }
.brand-mark::before { content: "A"; color: var(--orange); font: 900 23px/1 Georgia, serif; }
.brand em { color: var(--orange); font-style: normal; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.main-nav a { color: var(--slate); font-weight: 700; font-size: .9rem; }
.main-nav a:hover { color: var(--orange-dark); }
.header-actions { display: flex; gap: 10px; }
.menu-toggle { display: none; border: 0; background: transparent; font-weight: 800; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 21px; border: 1px solid transparent; border-radius: 100px; color: var(--white); background: var(--orange); font-weight: 800; line-height: 1; transition: .2s ease; }
.button:hover { background: var(--orange-dark); transform: translateY(-2px); }
.button-outline { color: var(--ink); border-color: var(--ink); background: transparent; }
.button-outline:hover { color: var(--white); background: var(--ink); }
.button-dark { background: var(--ink); }
.button-dark:hover { background: var(--blue); }

.hero { overflow: hidden; padding: 80px 0 70px; background: radial-gradient(circle at 84% 8%, rgba(243,111,50,.17), transparent 31%), linear-gradient(180deg, #fff 0%, var(--paper) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 72px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 17px; color: var(--orange-dark); font-size: .76rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 27px; height: 3px; background: var(--orange); }
h1, h2, h3, h4 { margin: 0 0 .55em; line-height: 1.08; letter-spacing: -.045em; }
h1 { max-width: 750px; font-size: clamp(3.2rem, 6.7vw, 6.15rem); }
h1 span { color: var(--orange); }
h2 { font-size: clamp(2.2rem, 4vw, 3.8rem); }
h3 { font-size: 1.35rem; }
.hero-copy > p { max-width: 640px; color: var(--slate); font-size: 1.16rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust-line { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; color: var(--slate); font-size: .84rem; font-weight: 750; }
.trust-line span::before { content: "✓"; margin-right: 7px; color: var(--orange); }

.project-card { position: relative; padding: 28px; border: 1px solid rgba(255,255,255,.16); border-radius: 28px; color: var(--white); background: var(--ink); box-shadow: var(--shadow); }
.project-card::after { content: ""; position: absolute; right: -48px; bottom: -56px; width: 180px; height: 180px; border: 28px solid rgba(243,111,50,.25); border-radius: 50%; }
.card-top { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.13); }
.badge { align-self: start; padding: 7px 11px; border-radius: 99px; color: #a9f0c0; background: rgba(44,190,96,.16); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.project-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0; }
.meta-box { padding: 13px; border-radius: 12px; background: rgba(255,255,255,.07); }
.meta-box small { display: block; color: rgba(255,255,255,.55); font-size: .7rem; text-transform: uppercase; }
.trade-list { display: flex; flex-wrap: wrap; gap: 8px; }
.trade-list span { padding: 8px 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 99px; font-size: .77rem; font-weight: 800; }
.bid-row { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; margin-top: 24px; }
.bid-row strong { display: block; font-size: 1.4rem; }
.bid-row small { color: rgba(255,255,255,.55); }

.section { padding: 92px 0; }
.section-white { background: var(--white); }
.section-dark { color: var(--white); background: var(--ink); }
.section-heading { max-width: 700px; margin-bottom: 45px; }
.section-heading p { color: var(--slate); font-size: 1.08rem; }
.section-dark .section-heading p { color: rgba(255,255,255,.65); }
.role-grid, .feature-grid, .pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.role-card { position: relative; overflow: hidden; min-height: 360px; padding: 38px; border: 1px solid var(--line); border-radius: 24px; background: var(--white); }
.role-card:nth-child(2) { color: var(--white); background: var(--blue); }
.role-number { display: block; margin-bottom: 76px; color: var(--orange); font-size: .8rem; font-weight: 900; letter-spacing: .15em; }
.role-card p { max-width: 500px; color: var(--slate); }
.role-card:nth-child(2) p { color: rgba(255,255,255,.7); }
.text-link { display: inline-block; margin-top: 18px; color: var(--orange); font-weight: 900; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { counter-increment: step; padding: 27px; border-top: 3px solid rgba(255,255,255,.14); }
.step::before { content: "0" counter(step); display: block; margin-bottom: 42px; color: var(--orange); font-weight: 900; }
.step p { color: rgba(255,255,255,.62); }

.feature-grid { grid-template-columns: repeat(3, 1fr); }
.feature { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.feature-icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 13px; color: var(--orange-dark); background: #fff0e7; font-size: 1.15rem; font-weight: 900; }
.feature p { margin-bottom: 0; color: var(--slate); }

.pricing-grid { align-items: stretch; }
.price-card { padding: 38px; border: 1px solid var(--line); border-radius: 24px; background: var(--white); }
.price-card.featured { color: var(--white); background: var(--blue); transform: rotate(.6deg); }
.price { margin: 18px 0; font-size: 3.5rem; font-weight: 900; letter-spacing: -.06em; }
.price small { font-size: .9rem; font-weight: 600; letter-spacing: 0; }
.price-card ul { margin: 25px 0 30px; padding: 0; list-style: none; }
.price-card li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.price-card li::before { content: "✓"; margin-right: 9px; color: var(--orange); font-weight: 900; }
.price-card.featured li { border-color: rgba(255,255,255,.13); }
.discount-note { margin-top: 20px; padding: 15px 18px; border-radius: 12px; color: var(--slate); background: var(--blue-light); font-size: .88rem; }

.cta { padding: 80px 0; text-align: center; background: var(--orange); }
.cta h2 { max-width: 780px; margin-inline: auto; }
.cta p { max-width: 640px; margin: 0 auto 28px; color: rgba(16,24,32,.72); font-size: 1.1rem; }
.site-footer { padding: 55px 0 25px; color: rgba(255,255,255,.65); background: #090e12; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 45px; }
.footer-grid h3, .footer-grid h4 { color: var(--white); }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li { margin: 7px 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 45px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; }
.content-page { min-height: 55vh; padding: 80px 0; }
.content-page article { max-width: 820px; }
.content-page .entry-content { font-size: 1.05rem; }

@media (max-width: 900px) {
  .hero-grid, .role-grid, .pricing-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; position: absolute; inset: 78px 0 auto; padding: 22px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .main-nav.open { display: block; }
  .main-nav ul { align-items: flex-start; flex-direction: column; }
  .menu-toggle { display: block; margin-left: auto; }
  .header-actions .button-outline { display: none; }
}
@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .header-actions .button { padding-inline: 14px; font-size: .8rem; }
  .hero { padding-top: 56px; }
  h1 { font-size: 3.05rem; }
  .hero-grid { gap: 42px; }
  .project-meta, .feature-grid, .steps, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .footer-bottom { flex-direction: column; }
}
