/*
Theme Name: AGR Builders
Theme URI: https://agrbuilders.com/
Author: AGR Builders
Author URI: https://agrbuilders.com/
Description: A clean, architecture-firm-inspired block theme for AGR Builders — Northern NJ remodeling contractor. Generous white space, system typography, restrained color. Built for the Gutenberg block editor.
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agr-builders
Tags: block-patterns, full-site-editing
*/

/* ============================================================
   AGR BUILDERS — base styles
   Design system: Gensler-inspired restraint.
   Ink #111 · Wash #faf9f7 · Gray #555 · Line #e5e2dc
   ============================================================ */

:root {
  --agr-ink: #111111;
  --agr-wash: #faf9f7;
  --agr-gray: #555555;
  --agr-line: #e5e2dc;
  --agr-paper: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--agr-paper);
  color: var(--agr-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  margin: 0;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ---------- layout helpers ---------- */
.agr-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}
@media (max-width: 960px) {
  .agr-wrap { padding-left: 22px; padding-right: 22px; }
}

/* ---------- site header ---------- */
.agr-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--agr-line);
}
.agr-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 88px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}
.agr-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--agr-ink);
}
.agr-brand img { height: 72px; width: auto; }
.agr-brand .site-title { font-weight: 700; }
.agr-nav ul {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.agr-nav a {
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--agr-ink);
}
.agr-nav a:hover { color: var(--agr-gray); }
.agr-head-cta { display: flex; align-items: center; gap: 22px; }
.agr-phone {
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  letter-spacing: 0.02em;
  color: var(--agr-ink);
}

/* ---------- buttons ---------- */
.wp-block-button__link,
.agr-btn {
  display: inline-block;
  background: var(--agr-ink);
  color: #fff;
  text-decoration: none;
  padding: 18px 44px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 0;
  border: 2px solid var(--agr-ink);
}
.wp-block-button__link:hover,
.agr-btn:hover { background: #333; border-color: #333; }
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--agr-ink);
  border: 2px solid var(--agr-ink);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--agr-ink);
  color: #fff;
}

/* ---------- hero (cover block styling) ---------- */
.agr-hero .wp-block-cover {
  min-height: min(86vh, 860px);
  padding: 0;
}
.agr-hero .wp-block-cover__inner-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px 56px;
}
.agr-hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 18ch;
  color: #fff;
  margin: 0 0 18px;
}
.agr-hero p {
  font-size: 17px;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 28px;
}

/* ---------- trust bar ---------- */
.agr-trust {
  border-bottom: 1px solid var(--agr-line);
  padding: 26px 0;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--agr-gray);
  font-weight: 600;
}
.agr-trust strong { color: var(--agr-ink); }

/* ---------- section rhythm ---------- */
.agr-section { padding: 110px 0; }
.agr-section-tight { padding: 80px 0; }
.agr-wash { background: var(--agr-wash); }
.agr-dark { background: var(--agr-ink); color: #fff; }

/* section heading: small caps label with rule */
.agr-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 2px solid var(--agr-ink);
  padding-top: 18px;
  margin-bottom: 48px;
}
.agr-dark .agr-sec-head { border-top-color: #fff; }
.agr-sec-head h2,
.agr-sec-head .agr-label {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0;
}
.agr-dark .agr-sec-head h2 { color: #fff; }

/* ---------- statement / large intro text ---------- */
.agr-statement {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.42;
  font-weight: 400;
  max-width: 36ch;
  letter-spacing: -0.01em;
}
.agr-statement strong { font-weight: 600; }

/* ---------- service list rows ---------- */
.agr-svc {
  display: grid;
  grid-template-columns: 80px 1fr 1.2fr auto;
  gap: 32px;
  padding: 38px 0;
  border-bottom: 1px solid var(--agr-line);
  text-decoration: none;
  align-items: baseline;
}
.agr-svc:first-child { border-top: 1px solid var(--agr-line); }
.agr-svc .n { font-size: 14px; color: var(--agr-gray); letter-spacing: 0.1em; }
.agr-svc h3 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}
.agr-svc p { color: var(--agr-gray); font-size: 15px; max-width: 52ch; margin: 0; }
.agr-svc .cost { font-size: 13px; color: var(--agr-ink); font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; }
a.agr-svc:hover h3 { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- cards ---------- */
.agr-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.agr-card { text-decoration: none; }
.agr-card .ph {
  overflow: hidden;
  background: #e9e9e7;
  aspect-ratio: 4 / 3;
}
.agr-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.agr-card:hover img { transform: scale(1.04); }
.agr-card h3 { font-size: 20px; font-weight: 600; margin: 18px 0 4px; letter-spacing: -0.01em; }
.agr-card p { font-size: 14px; color: var(--agr-gray); margin: 0; }

/* ---------- process steps ---------- */
.agr-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.agr-step { border-top: 1px solid var(--agr-ink); padding-top: 22px; }
.agr-step .k {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--agr-gray);
  margin-bottom: 14px;
}
.agr-step h3 { font-size: 22px; font-weight: 600; margin: 0 0 10px; letter-spacing: -0.01em; }
.agr-step p { font-size: 15px; color: var(--agr-gray); margin: 0; }

/* ---------- reviews ---------- */
.agr-quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.agr-quotes blockquote { margin: 0; }
.agr-quotes blockquote p {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}
.agr-quotes cite {
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- county grid ---------- */
.agr-counties { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; }
.agr-county h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.agr-county p { font-size: 14px; color: var(--agr-gray); line-height: 1.9; margin: 0; }

/* ---------- big CTA ---------- */
.agr-cta { padding: 130px 0; border-top: 1px solid var(--agr-line); }
.agr-cta h2 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.06;
  max-width: 18ch;
  margin: 0 0 28px;
}
.agr-cta p { color: var(--agr-gray); font-size: 17px; max-width: 54ch; margin: 0 0 40px; }
.agr-phone-big {
  display: block;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  margin-bottom: 34px;
  color: var(--agr-ink);
}

/* ---------- footer ---------- */
.agr-footer {
  background: var(--agr-ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 56px 0 36px;
  font-size: 14px;
}
.agr-footer a { color: #fff; text-decoration: none; }
.agr-footer a:hover { text-decoration: underline; }
.agr-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
.agr-footer h3 {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 16px;
}
.agr-footer ul { list-style: none; margin: 0; padding: 0; }
.agr-footer li { margin-bottom: 10px; }
.agr-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- content typography ---------- */
.agr-content { max-width: 760px; }
.agr-content h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 500; letter-spacing: -0.01em; margin: 2.2em 0 0.8em; }
.agr-content h3 { font-size: 1.25rem; font-weight: 600; margin: 1.8em 0 0.6em; }
.agr-content p { margin: 0 0 1.2em; }
.agr-content ul, .agr-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.agr-content li { margin-bottom: 0.5em; }
.agr-content a { text-decoration: underline; text-underline-offset: 3px; }
.agr-content a:hover { color: var(--agr-gray); }

/* FAQ details */
.wp-block-details {
  border-bottom: 1px solid var(--agr-line);
  padding: 18px 0;
}
.wp-block-details summary {
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; float: right; color: var(--agr-gray); }
.wp-block-details[open] summary::after { content: "–"; }

/* gallery */
.wp-block-gallery.has-nested-images figure.wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; }

/* quote */
.wp-block-quote { border-left: 2px solid var(--agr-ink); padding-left: 24px; margin: 2em 0; }
.wp-block-quote p { font-size: 1.2rem; line-height: 1.5; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .agr-bar { padding: 0 22px; }
  .agr-nav { display: none; }
  .agr-head-cta .agr-phone { display: none; }
  .agr-cards { grid-template-columns: 1fr; }
  .agr-svc { grid-template-columns: 1fr; gap: 8px; }
  .agr-steps { grid-template-columns: 1fr; }
  .agr-quotes { grid-template-columns: 1fr; }
  .agr-counties { grid-template-columns: repeat(2, 1fr); }
  .agr-footer-grid { grid-template-columns: 1fr 1fr; }
  .agr-section { padding: 70px 0; }
  .agr-cta { padding: 80px 0; }
}
@media (max-width: 600px) {
  .agr-footer-grid { grid-template-columns: 1fr; }
  .agr-brand { font-size: 18px; }
  .agr-brand img { height: 52px; }
}
