/*
Theme Name: Mangus Construction + Reviews
Theme URI: https://mangusconstruction.com/
Author: Mangus Construction LLC
Description: Custom one-page WordPress theme for Mangus Construction LLC with an editable customer review section.
Version: 1.1.0
Text Domain: mangus-construction
*/
:root {
  --green: #2f4d05;
  --green-dark: #1d3103;
  --green-soft: #e8eee0;
  --ink: #11130f;
  --muted: #62675e;
  --paper: #ffffff;
  --sand: #f4f2ec;
  --line: #dfe2d9;
  --shadow: 0 22px 60px rgba(12, 18, 5, .14);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 2000;
  padding: .75rem 1rem;
  background: #fff;
  border-radius: 8px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.topbar { background: var(--ink); color: #fff; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.topbar-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar a { text-decoration: none; font-weight: 800; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(17,19,15,.08);
  backdrop-filter: blur(16px);
}
.nav-wrap { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: block; width: 240px; }
.brand img { width: 100%; height: 65px; object-fit: contain; object-position: left center; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { text-decoration: none; font-size: .95rem; font-weight: 750; }
.site-nav a:not(.nav-cta):hover { color: var(--green); }
.nav-cta { padding: .72rem 1.05rem; border-radius: 999px; background: var(--green); color: #fff; }
.nav-cta:hover { background: var(--green-dark); }
.menu-toggle { display: none; width: 48px; height: 44px; border: 0; background: transparent; padding: 10px; }
.menu-toggle span { display: block; width: 100%; height: 2px; margin: 6px 0; background: var(--ink); transition: .25s; }

.hero { position: relative; min-height: 720px; display: grid; place-items: center; overflow: hidden; color: #fff; }
.hero-bg, .hero-overlay { position: absolute; inset: 0; }
.hero-bg { background: url('assets/commercial-framing.webp') center / cover no-repeat; transform: scale(1.02); }
.hero-overlay { background: linear-gradient(90deg, rgba(10,13,8,.93) 0%, rgba(10,13,8,.76) 48%, rgba(10,13,8,.30) 100%); }
.hero-content { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 70px; padding-block: 95px; }
.eyebrow { margin: 0 0 12px; color: #8db249; font-weight: 900; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(3.8rem, 8vw, 7rem); line-height: .92; letter-spacing: -.065em; text-transform: uppercase; }
.hero-lead { max-width: 650px; margin: 28px 0 32px; font-size: clamp(1.05rem, 2vw, 1.32rem); color: rgba(255,255,255,.83); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .9rem 1.35rem; border: 0; border-radius: 999px; text-decoration: none; font-weight: 850; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--green); color: #fff; box-shadow: 0 14px 30px rgba(47,77,5,.28); }
.button-primary:hover { background: #3c6009; }
.button-ghost { color: #fff; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.button-ghost:hover { background: rgba(255,255,255,.16); }
.button.full { width: 100%; }
.hero-logo-card { justify-self: end; width: min(100%, 450px); padding: 18px; border-radius: 26px; background: rgba(255,255,255,.95); box-shadow: 0 30px 90px rgba(0,0,0,.4); transform: rotate(1.5deg); }
.hero-logo-card img { width: 100%; border-radius: 14px; }

.trust-strip { background: var(--green); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.trust-grid > div { padding: 24px 26px; border-right: 1px solid rgba(255,255,255,.16); }
.trust-grid > div:last-child { border-right: 0; }
.trust-grid strong, .trust-grid span { display: block; }
.trust-grid strong { font-size: 1.04rem; }
.trust-grid span { margin-top: 3px; color: rgba(255,255,255,.72); font-size: .84rem; }

.section { padding: 112px 0; }
.section-heading { max-width: 760px; margin-bottom: 48px; }
.section-heading h2, .about-copy h2, .contact-copy h2 { margin: 0; font-size: clamp(2.35rem, 5vw, 4.2rem); line-height: 1.02; letter-spacing: -.045em; }
.section-heading > p:last-child, .split-heading > p, .about-copy > p, .contact-copy > p { color: var(--muted); font-size: 1.08rem; }
.split-heading { max-width: none; display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 60px; }
.split-heading > p { margin: 0; }

.services { background: var(--sand); }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.service-card { position: relative; min-height: 270px; padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(47,77,5,.35); }
.service-number { position: absolute; top: 25px; right: 28px; color: rgba(47,77,5,.18); font-size: 3.7rem; font-weight: 950; line-height: 1; }
.service-card h3 { position: relative; margin: 70px 0 12px; font-size: 1.45rem; }
.service-card p { position: relative; margin: 0; color: var(--muted); }

.projects-section { background: #fff; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 310px; gap: 16px; }
.project-card { position: relative; margin: 0; padding: 0; border: 0; border-radius: 18px; background: #ddd; overflow: hidden; cursor: zoom-in; text-align: left; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.project-card:hover img { transform: scale(1.045); }
.project-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.8)); }
.project-card span { position: absolute; z-index: 2; left: 24px; bottom: 21px; color: #fff; }
.project-card strong, .project-card small { display: block; }
.project-card strong { font-size: 1.12rem; }
.project-card small { margin-top: 2px; color: rgba(255,255,255,.73); }
.project-wide { grid-column: span 2; }
.project-tall { grid-row: span 2; }

.about { background: var(--sand); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 82px; align-items: center; }
.about-image { position: relative; }
.about-image img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.about-badge { position: absolute; right: -24px; bottom: 35px; width: 150px; aspect-ratio: 1; display: grid; place-content: center; text-align: center; border-radius: 50%; background: var(--green); color: #fff; box-shadow: 0 18px 45px rgba(47,77,5,.3); }
.about-badge strong, .about-badge span { display: block; }
.about-badge strong { font-size: 1.35rem; }
.about-badge span { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.about-copy > p { margin: 22px 0; }
.check-list { list-style: none; padding: 0; margin: 28px 0; }
.check-list li { position: relative; padding: 10px 0 10px 34px; font-weight: 750; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 8px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-size: .78rem; }
.text-link { color: var(--green); font-weight: 900; text-decoration: none; }
.text-link span { display: inline-block; margin-left: 4px; transition: transform .2s; }
.text-link:hover span { transform: translateX(5px); }

.process { padding: 100px 0; color: #fff; background: var(--ink); }
.section-heading.light { color: #fff; }
.section-heading.light h2 { max-width: 680px; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.process-grid article { padding: 34px; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; background: rgba(255,255,255,.04); }
.process-grid span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--green); font-weight: 900; }
.process-grid h3 { margin: 24px 0 10px; }
.process-grid p { margin: 0; color: rgba(255,255,255,.67); }



/* Customer reviews */
.reviews { position: relative; overflow: hidden; background: #fff; }
.reviews::before { content: ""; position: absolute; width: 420px; height: 420px; right: -190px; top: -230px; border-radius: 50%; background: var(--green-soft); opacity: .72; pointer-events: none; }
.reviews .container { position: relative; z-index: 1; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.review-card { position: relative; min-height: 300px; display: flex; flex-direction: column; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sand); box-shadow: 0 16px 45px rgba(20,23,15,.06); }
.review-card::before { content: "“"; position: absolute; top: 16px; right: 26px; color: rgba(47,77,5,.14); font-family: Georgia, serif; font-size: 6.5rem; line-height: 1; }
.review-stars { position: relative; z-index: 1; color: var(--green); font-size: 1.15rem; letter-spacing: .12em; }
.review-text { position: relative; z-index: 1; margin: 24px 0 30px; color: #30352d; font-size: 1.04rem; line-height: 1.72; }
.review-author { position: relative; z-index: 1; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); }
.review-author strong, .review-author span { display: block; }
.review-author strong { font-size: 1.02rem; }
.review-author span { margin-top: 3px; color: var(--muted); font-size: .84rem; }
.review-empty { max-width: 800px; margin-inline: auto; padding: 54px; border: 1px solid var(--line); border-radius: 26px; background: var(--sand); text-align: center; box-shadow: 0 18px 50px rgba(20,23,15,.07); }
.review-empty .review-stars { font-size: 1.45rem; }
.review-empty h3 { margin: 16px 0 10px; font-size: clamp(1.75rem, 4vw, 2.6rem); line-height: 1.1; letter-spacing: -.03em; }
.review-empty p { max-width: 610px; margin: 0 auto 25px; color: var(--muted); }
.review-admin-link { display: inline-block; margin-top: 18px; color: var(--green); font-size: .85rem; font-weight: 850; }

.contact { background: #fff; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.phone-link { display: inline-block; margin: 24px 0 18px; color: var(--green); font-size: clamp(2rem, 4.5vw, 3.3rem); font-weight: 950; letter-spacing: -.045em; text-decoration: none; }
.license-line { font-weight: 750; }
.quote-form { padding: 36px; border: 1px solid var(--line); border-radius: 24px; background: var(--sand); box-shadow: 0 18px 50px rgba(20,23,15,.08); }
.quote-form label { display: block; margin-bottom: 18px; font-size: .86rem; font-weight: 850; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.quote-form input, .quote-form select, .quote-form textarea { width: 100%; margin-top: 7px; padding: 14px 15px; border: 1px solid #cfd3c8; border-radius: 12px; background: #fff; color: var(--ink); outline: none; }
.quote-form textarea { resize: vertical; min-height: 135px; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(47,77,5,.12); }
.form-note { margin: 12px 4px 0; color: var(--muted); font-size: .78rem; text-align: center; }

.site-footer { padding: 58px 0 22px; background: #0c0e0a; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .6fr; gap: 40px; }
.footer-grid strong { font-size: 1.25rem; }
.footer-grid p { margin: 7px 0 0; color: rgba(255,255,255,.58); }
.footer-grid a { color: #fff; text-decoration: none; font-weight: 800; }
.footer-nav { display: flex; flex-direction: column; gap: 9px; }
.footer-bottom { margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.45); font-size: .82rem; }

.lightbox { width: min(92vw, 1040px); max-height: 92vh; padding: 0; border: 0; border-radius: 18px; background: #0d0f0c; color: #fff; box-shadow: 0 30px 100px rgba(0,0,0,.65); overflow: hidden; }
.lightbox::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; background: #000; }
.lightbox p { margin: 0; padding: 16px 22px 18px; }
.lightbox-close { position: absolute; z-index: 3; top: 12px; right: 12px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .site-nav { position: absolute; left: 20px; right: 20px; top: calc(100% + 10px); display: none; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 5px; }
  .site-nav a { padding: 12px; border-radius: 10px; }
  .site-nav a:not(.nav-cta):hover { background: var(--sand); }
  .nav-cta { text-align: center; margin-top: 7px; }
  .hero { min-height: auto; }
  .hero-content { grid-template-columns: 1fr; gap: 44px; padding-block: 84px; }
  .hero-logo-card { justify-self: start; width: min(440px, 90%); transform: rotate(0); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid > div:nth-child(2) { border-right: 0; }
  .trust-grid > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.16); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 55px; }
  .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-image { max-width: 620px; }
  .about-image img { aspect-ratio: 4/3; }
  .about-badge { right: 18px; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .topbar-inner { min-height: 44px; font-size: .68rem; letter-spacing: .05em; }
  .topbar-inner span { max-width: 180px; line-height: 1.25; }
  .nav-wrap { min-height: 72px; }
  .brand { width: 195px; }
  .brand img { height: 55px; }
  .hero-overlay { background: linear-gradient(180deg, rgba(10,13,8,.88), rgba(10,13,8,.77)); }
  .hero-content { padding-block: 65px; }
  .hero h1 { font-size: clamp(3.15rem, 18vw, 5.4rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .hero-logo-card { width: 100%; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  .trust-grid > div:last-child { border-bottom: 0; }
  .section { padding: 78px 0; }
  .section-heading { margin-bottom: 34px; }
  .split-heading { grid-template-columns: 1fr; gap: 18px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 230px; padding: 28px; }
  .service-card h3 { margin-top: 55px; }
  .project-grid { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .project-wide, .project-tall { grid-column: auto; grid-row: auto; }
  .about-grid { gap: 45px; }
  .about-image img { aspect-ratio: 4/5; }
  .process { padding: 78px 0; }
  .process-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .review-card { min-height: 0; }
  .review-empty { padding: 38px 24px; }
  .contact-grid { gap: 42px; }
  .quote-form { padding: 24px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
