/*
Theme Name: Pacific Roofing Collective
Theme URI: https://pacificroofingcollective.com/
Author: Nato Apps
Description: Lightweight conversion-focused WordPress theme for Pacific Roofing Collective.
Version: 0.9.2
Text Domain: pacific-roofing-collective
*/

:root {
  --charcoal: #292c31;
  --charcoal-2: #17191c;
  --orange: #f45116;
  --orange-dark: #c93808;
  --ink: #1f2328;
  --muted: #616973;
  --cream: #f7f6f2;
  --cool: #eef1f4;
  --white: #fff;
  --line: #dfe3e7;
  --shadow: 0 18px 50px rgba(23, 25, 28, .12);
  --radius: 18px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.65; }
body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .09em; text-underline-offset: .2em; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid rgba(244, 81, 22, .45); outline-offset: 3px; }
.wrap { width: min(calc(100% - 40px), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 790px; }
.eyebrow { margin: 0 0 12px; color: var(--orange-dark); font-size: .78rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin: 0 0 .55em; color: var(--charcoal); font-family: "Arial Black", Inter, ui-sans-serif, sans-serif; line-height: 1.04; letter-spacing: -.035em; }
h1 { font-size: clamp(2.7rem, 7vw, 5.8rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.55rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
p { margin: 0 0 1.15em; }
.lead { max-width: 720px; color: #e9ecef; font-size: clamp(1.08rem, 2vw, 1.32rem); }
.muted { color: var(--muted); }
.section { padding: clamp(72px, 9vw, 118px) 0; }
.section--cream { background: var(--cream); }
.section--dark { color: #eef0f2; background: var(--charcoal); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.section-head > * { max-width: 730px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }

.review-banner { padding: 9px 18px; color: #2b2100; background: #ffd98c; font-size: .82rem; font-weight: 750; text-align: center; }
.utility { color: #e9ecef; background: var(--charcoal-2); font-size: .8rem; }
.utility .wrap { display: flex; justify-content: space-between; gap: 20px; padding-block: 8px; }
.site-header { position: sticky; z-index: 100; top: 0; background: rgba(41, 44, 49, .97); box-shadow: 0 1px 0 rgba(255,255,255,.11); backdrop-filter: blur(14px); }
.nav-shell { display: flex; align-items: center; min-height: 82px; gap: 26px; }
.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand img { width: 230px; max-height: 60px; object-fit: contain; object-position: left center; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { color: #f6f7f8; font-size: .88rem; font-weight: 750; text-decoration: none; }
.site-nav a:hover { color: #ff8b61; }
.nav-toggle { display: none; width: 48px; height: 48px; color: white; border: 1px solid rgba(255,255,255,.3); border-radius: 12px; background: transparent; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 13px 22px; border: 2px solid var(--orange); border-radius: 999px; color: #23170f; background: var(--orange); font-size: .9rem; font-weight: 850; line-height: 1.1; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); background: #ff6b34; box-shadow: 0 10px 28px rgba(244,81,22,.3); }
.button--dark { color: white; border-color: var(--charcoal); background: var(--charcoal); }
.button--ghost { color: white; border-color: rgba(255,255,255,.65); background: transparent; }
.button--ghost:hover { border-color: white; background: rgba(255,255,255,.08); }
.button--small { min-height: 44px; padding: 10px 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero { position: relative; display: grid; min-height: 690px; place-items: center; color: white; background: var(--charcoal-2); overflow: hidden; }
.hero::before { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(18,20,23,.96) 0%, rgba(18,20,23,.76) 48%, rgba(18,20,23,.25) 100%), url('assets/images/hero.jpg') center 44% / cover no-repeat; }
.hero::after { position: absolute; right: -100px; bottom: -155px; width: 560px; height: 280px; content: ""; border: 34px solid var(--orange); transform: rotate(-13deg); opacity: .8; }
.hero-inner { position: relative; z-index: 2; width: min(calc(100% - 40px), var(--wrap)); padding: 80px 0; }
.hero-copy { max-width: 850px; }
.hero h1 { max-width: 900px; color: white; }
.hero .eyebrow { color: #ff8b61; }
.hero-note { display: inline-flex; gap: 9px; align-items: center; margin-top: 22px; color: #cdd2d7; font-size: .85rem; }
.hero-note::before { width: 8px; height: 8px; border-radius: 50%; content: ""; background: var(--orange); }

.proof-band { position: relative; z-index: 3; margin-top: -42px; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: white; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.proof-item { min-height: 120px; padding: 25px; border-right: 1px solid var(--line); }
.proof-item:last-child { border: 0; }
.proof-item strong { display: block; margin-bottom: 4px; color: var(--charcoal); font-size: 1.02rem; }
.proof-item span { color: var(--muted); font-size: .86rem; }

.service-card { position: relative; min-height: 330px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: white; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-icon { display: grid; width: 50px; height: 50px; margin-bottom: 32px; place-items: center; border-radius: 14px; color: white; background: var(--orange); font-weight: 900; }
.service-card a { color: var(--orange-dark); font-size: .9rem; font-weight: 850; }

.decision { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.decision-image { min-height: 540px; border-radius: var(--radius); background: linear-gradient(180deg, transparent 55%, rgba(23,25,28,.65)), url('assets/images/repair.jpg') center / cover; box-shadow: var(--shadow); }
.check-list { display: grid; gap: 15px; margin: 28px 0; padding: 0; list-style: none; }
.check-list li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.check-list li::before { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: white; background: var(--orange); content: "\2713"; font-size: .75rem; font-weight: 900; }

.project-card { border-radius: var(--radius); background: white; box-shadow: var(--shadow); overflow: hidden; }
.project-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.project-copy { padding: 30px; }
.project-label { color: var(--orange-dark); font-size: .76rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.placeholder-note { padding: 11px 15px; color: #4f3e00; background: #fff1bd; border-radius: 10px; font-size: .78rem; }

.collective { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.collective-photo { min-height: 570px; border-radius: var(--radius); background: linear-gradient(180deg, transparent 55%, rgba(23,25,28,.55)), url('assets/images/crew.jpg') center / cover; }
.pillars { display: grid; gap: 18px; margin-top: 30px; }
.pillar { padding: 22px 24px; border-left: 4px solid var(--orange); background: rgba(255,255,255,.06); }
.pillar p { margin: 5px 0 0; color: #cdd2d7; font-size: .92rem; }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: steps; }
.step { padding: 25px 20px; border: 1px solid var(--line); border-radius: 16px; counter-increment: steps; }
.step::before { display: grid; width: 38px; height: 38px; margin-bottom: 25px; place-items: center; border-radius: 50%; color: white; background: var(--charcoal); content: counter(steps); font-weight: 850; }
.step h3 { font-size: 1.02rem; }
.step p { margin: 0; color: var(--muted); font-size: .86rem; }

.resource-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.resource-card time { color: var(--muted); font-size: .76rem; font-weight: 750; text-transform: uppercase; }
.resource-card h3 { margin-top: 13px; }
.resource-card a { color: var(--orange-dark); font-weight: 850; }

.contact-shell { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.contact-panel { padding: 38px; border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; color: var(--charcoal); font-size: .83rem; font-weight: 800; }
input, textarea, select { width: 100%; margin-top: 7px; padding: 13px 14px; border: 1px solid #c9cfd5; border-radius: 10px; background: #fbfcfd; }
textarea { min-height: 125px; resize: vertical; }
.field-full { grid-column: 1 / -1; }
.form-note { margin-top: 15px; color: var(--muted); font-size: .78rem; }
.disabled-submit { cursor: not-allowed; opacity: .65; }

.site-footer { padding: 66px 0 100px; color: #cbd0d5; background: var(--charcoal-2); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 45px; }
.site-footer h3 { color: white; font-size: 1rem; }
.site-footer a { color: #e8ebee; }
.footer-logo { width: 250px; margin-bottom: 22px; }
.fine-print { margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); color: #9da4ab; font-size: .75rem; }

.mobile-actions { position: fixed; z-index: 110; right: 0; bottom: 0; left: 0; display: none; grid-template-columns: 1fr 1fr; padding-bottom: env(safe-area-inset-bottom); background: white; box-shadow: 0 -7px 28px rgba(23,25,28,.18); }
.mobile-actions a { display: flex; align-items: center; justify-content: center; min-height: 60px; color: white; background: var(--charcoal); font-weight: 850; text-decoration: none; }
.mobile-actions a:last-child { color: #23170f; background: var(--orange); }

.page-hero { padding: 95px 0 72px; color: white; background: linear-gradient(110deg, rgba(23,25,28,.97), rgba(41,44,49,.84)), url('assets/images/finished.jpg') center / cover; }
.page-hero h1 { color: white; font-size: clamp(2.5rem, 5vw, 4.6rem); }
.entry-content { padding: 70px 0 100px; }
.entry-content > * { max-width: 820px; }
.entry-content h2 { margin-top: 1.3em; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.entry-content ul { padding-left: 1.25em; }
.post-list { display: grid; gap: 20px; }
.post-item { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }

@media (max-width: 980px) {
  body.admin-bar .site-header { top: 46px; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-nav { position: absolute; top: 100%; right: 20px; left: 20px; display: none; padding: 20px; border-radius: 0 0 16px 16px; background: var(--charcoal); box-shadow: var(--shadow); }
  .site-nav.is-open { display: grid; }
  .nav-shell > .button { display: none; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-item:nth-child(2) { border-right: 0; }
  .proof-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .decision, .collective, .contact-shell { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); font-size: 16px; }
  .wrap { width: min(calc(100% - 28px), var(--wrap)); }
  .review-banner { font-size: .72rem; }
  .utility { display: none; }
  .nav-shell { min-height: 70px; }
  .brand img { width: 190px; }
  .hero { min-height: 570px; }
  .hero-inner { padding: 54px 0 88px; }
  .hero h1 { font-size: clamp(2.25rem, 11.5vw, 3rem); }
  .hero .lead { font-size: .98rem; line-height: 1.48; }
  .hero .actions { margin-top: 20px; }
  .hero-note { display: none; }
  .hero::before { background: linear-gradient(90deg, rgba(18,20,23,.94), rgba(18,20,23,.65)), url('assets/images/hero.jpg') center / cover; }
  .hero::after { right: -250px; opacity: .45; }
  .proof-band { margin-top: -22px; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-item { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .grid-3, .grid-2, .steps, .footer-grid { grid-template-columns: 1fr; }
  .decision { gap: 34px; }
  .decision-image, .collective-photo { min-height: 400px; }
  .collective { gap: 36px; }
  .section-head { display: block; }
  .field-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .contact-panel { padding: 26px 20px; }
  .mobile-actions { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
