/* =========================================================
   MG FENCE & HOME — PREMIUM STATIC WEBSITE
   Edit colors, spacing, and typography here.
   ========================================================= */

:root {
  --ink: #111613;
  --ink-soft: #1c231f;
  --forest: #23352c;
  --ivory: #f5f1e8;
  --paper: #fbfaf6;
  --white: #ffffff;
  --brass: #c6a46a;
  --brass-dark: #a58450;
  --sage: #dce1d9;
  --muted: #6b706b;
  --line: rgba(17, 22, 19, 0.16);
  --line-light: rgba(255, 255, 255, 0.19);
  --display: Georgia, "Times New Roman", serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1240px;
  --shadow: 0 28px 80px rgba(17, 22, 19, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
  font-family: var(--body);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 24px;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

h1 {
  font-size: clamp(4rem, 8.9vw, 8.7rem);
}

h2 {
  font-size: clamp(2.8rem, 5.4vw, 5.4rem);
}

h3 {
  margin-bottom: 12px;
  font-family: var(--display);
  font-size: 1.72rem;
  font-weight: 400;
  line-height: 1.08;
}

p {
  color: var(--muted);
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 120px 0;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--brass-dark);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #dfc48f;
}

.lead {
  color: #333a35;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.62rem);
  line-height: 1.45;
}

.sr-only,
.hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 12px;
  left: 12px;
  transform: translateY(-180%);
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */
.utility-bar {
  color: rgba(255, 255, 255, 0.7);
  background: var(--ink);
  font-size: 0.75rem;
}

.utility-inner {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.utility-inner p {
  margin: 0;
  color: inherit;
}

.utility-inner div {
  display: flex;
  align-items: center;
  gap: 20px;
}

.utility-inner a {
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 246, 0.94);
  backdrop-filter: blur(15px);
}

.header-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.brand-mark b {
  position: relative;
  z-index: 2;
  font-family: var(--display);
  font-size: 1.22rem;
  font-weight: 400;
  letter-spacing: -0.08em;
}

.brand-mark i {
  position: absolute;
  bottom: 7px;
  width: 2px;
  height: 13px;
  background: rgba(198, 164, 106, 0.75);
}

.brand-mark i:nth-of-type(1) { left: 13px; }
.brand-mark i:nth-of-type(2) { left: 25px; }
.brand-mark i:nth-of-type(3) { right: 13px; }

.brand-name {
  display: grid;
  line-height: 1;
}

.brand-name strong {
  font-family: var(--display);
  font-size: 1.27rem;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.brand-name small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.primary-nav a {
  font-size: 0.84rem;
  font-weight: 760;
  text-decoration: none;
}

.primary-nav a:not(.nav-button):hover,
.primary-nav a:not(.nav-button):focus-visible {
  color: var(--brass-dark);
}

.nav-button {
  padding: 13px 18px;
  color: var(--white);
  background: var(--ink);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 7px 0;
  background: var(--ink);
}

/* Buttons */
.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 15px 23px;
  border: 1px solid transparent;
  font-size: 0.84rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-gold {
  color: var(--ink);
  background: var(--brass);
}

.button-gold:hover {
  background: #d4b57d;
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
  background: rgba(0, 0, 0, 0.1);
}

.button-dark {
  color: var(--white);
  background: var(--ink);
}

.button-dark-outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.button-full {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  min-height: 790px;
  overflow: hidden;
  color: var(--white);
  background: var(--ink-soft);
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: center 57%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 13, 10, 0.88) 0%, rgba(8, 13, 10, 0.61) 45%, rgba(8, 13, 10, 0.15) 76%),
    linear-gradient(to top, rgba(8, 13, 10, 0.48), transparent 52%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 790px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 70px;
  padding-bottom: 78px;
}

.hero-copy {
  max-width: 930px;
}

.hero-copy h1 {
  color: var(--white);
}

.hero-copy h1 em {
  color: #e2cb9d;
  font-weight: 400;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-detail {
  display: grid;
  width: 260px;
  grid-template-columns: 34px 1fr;
  gap: 17px;
  padding: 25px 0 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  border-left: 1px solid rgba(255, 255, 255, 0.45);
}

.hero-detail > span {
  color: #dfc48f;
  font-family: var(--display);
  font-size: 1.2rem;
}

.hero-detail small {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-detail p {
  margin-bottom: 0;
  color: var(--white);
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1.24;
}

/* Assurance */
.assurance {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.assurance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.assurance-grid > div {
  display: grid;
  min-height: 112px;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 24px 28px;
  border-right: 1px solid var(--line);
}

.assurance-grid > div:first-child {
  border-left: 1px solid var(--line);
}

.assurance-grid span {
  color: var(--brass-dark);
  font-family: var(--display);
  font-size: 1.3rem;
}

.assurance-grid p {
  margin: 0;
  color: var(--ink);
  font-size: 0.87rem;
  font-weight: 760;
}

/* Intro */
.intro {
  background: var(--paper);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.65fr);
  gap: 90px;
  margin-bottom: 70px;
}

.intro-copy h2 {
  margin-bottom: 0;
}

.intro-text {
  align-self: end;
}

.intro-text p:not(.lead) {
  margin-bottom: 28px;
}

.underlined-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.underlined-link span {
  color: var(--brass-dark);
}

.image-story {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: end;
  gap: 24px;
}

.image-story figure {
  margin: 0;
  overflow: hidden;
}

.image-story img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-story-main {
  height: 650px;
}

.image-story-small {
  display: grid;
  grid-template-rows: 390px auto;
  gap: 20px;
}

.image-story-small figcaption {
  max-width: 300px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.42rem;
  line-height: 1.3;
}

/* Services */
.services {
  background: var(--ivory);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.55fr);
  align-items: end;
  gap: 80px;
  margin-bottom: 58px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > p {
  margin-bottom: 4px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  min-height: 430px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease;
}

.service-card:hover {
  background: var(--white);
}

.service-index {
  margin-bottom: 80px;
  color: var(--brass-dark);
  font-family: var(--display);
  font-size: 1.22rem;
}

.service-card p {
  min-height: 90px;
  font-size: 0.88rem;
}

.service-card ul {
  padding: 20px 0 0;
  margin: 0 0 28px;
  border-top: 1px solid var(--line);
  list-style: none;
}

.service-card li {
  position: relative;
  padding: 5px 0 5px 15px;
  color: var(--muted);
  font-size: 0.79rem;
}

.service-card li::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--brass);
}

.service-card a {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 820;
  text-decoration: none;
}

.service-card a span {
  margin-left: 5px;
  color: var(--brass-dark);
}

/* Portfolio */
.portfolio {
  padding: 120px 0;
  color: var(--white);
  background: var(--ink);
}

.portfolio-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: end;
  gap: 70px;
  margin-bottom: 48px;
}

.portfolio-heading h2 {
  margin-bottom: 0;
  color: var(--white);
}

.portfolio-heading > p {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.52);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 265px;
  gap: 14px;
}

.project {
  position: relative;
  grid-column: span 4;
  overflow: hidden;
  margin: 0;
  background: #28302b;
}

.project-wide {
  grid-column: span 8;
  grid-row: span 2;
}

.project-tall {
  grid-row: span 2;
}

.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}

.project:hover img {
  transform: scale(1.035);
}

.project::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 10, 8, 0.72), transparent 52%);
}

.project figcaption {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 20px;
  left: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.project figcaption span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project figcaption strong {
  color: var(--white);
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 400;
}

/* Materials */
.materials {
  background: var(--white);
}

.materials-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: start;
  gap: 90px;
}

.materials-copy {
  position: sticky;
  top: 120px;
}

.material-table {
  border-top: 1px solid var(--line);
}

.material-row {
  display: grid;
  min-height: 92px;
  grid-template-columns: 0.75fr 1.3fr 0.6fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.material-row strong {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 400;
}

.material-row span {
  color: var(--muted);
  font-size: 0.88rem;
}

.material-head {
  min-height: 52px;
}

.material-head span {
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Process */
.process {
  color: var(--white);
  background: var(--forest);
}

.process-heading h2 {
  color: var(--white);
}

.process-list {
  padding: 0;
  margin-top: 54px;
  margin-bottom: 0;
  border-top: 1px solid var(--line-light);
  list-style: none;
}

.process-list li {
  display: grid;
  min-height: 190px;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid var(--line-light);
}

.process-list li > span {
  color: #dfc48f;
  font-family: var(--display);
  font-size: 1.45rem;
}

.process-list li > div {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: center;
  gap: 50px;
}

.process-list h3 {
  margin-bottom: 0;
  color: var(--white);
  font-size: 2.05rem;
}

.process-list p {
  max-width: 700px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.62);
}

/* Reviews */
.reviews {
  background: var(--paper);
}

.reviews-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: start;
  gap: 90px;
}

.reviews-intro {
  position: sticky;
  top: 120px;
}

.review-placeholder {
  display: grid;
  gap: 5px;
  padding: 28px 0 34px;
}

.review-stars {
  color: var(--brass-dark);
  font-size: 1.22rem;
  letter-spacing: 0.13em;
}

.review-placeholder span {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Forms */
.premium-form,
.estimate-form {
  padding: 42px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-heading {
  margin-bottom: 30px;
}

.form-heading span {
  display: block;
  margin-bottom: 8px;
  color: var(--brass-dark);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.form-heading h3 {
  margin-bottom: 0;
  font-size: 2.35rem;
}

.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label,
fieldset legend {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 0.77rem;
  font-weight: 780;
}

fieldset {
  padding: 0;
  margin: 0 0 16px;
  border: 0;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #bfc4bd;
  border-radius: 0;
  color: var(--ink);
  background: var(--white);
  outline: none;
}

input,
select {
  min-height: 51px;
  padding: 0 14px;
}

textarea {
  min-height: 140px;
  padding: 13px 14px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brass-dark);
  box-shadow: 0 0 0 3px rgba(198, 164, 106, 0.17);
}

.file-field {
  height: auto;
  padding: 12px;
  background: var(--ivory);
}

.checkbox {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
}

.checkbox input {
  width: 17px;
  min-height: 17px;
  margin-top: 2px;
  accent-color: var(--brass-dark);
}

.checkbox span {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
}

.star-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.star-rating input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.star-rating label {
  margin: 0 5px 0 0;
  color: #c1c4be;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: var(--brass-dark);
}

.premium-form small,
.estimate-form small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  text-align: center;
}

/* Estimate */
.estimate {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  background: var(--ivory);
}

.estimate-photo {
  min-height: 970px;
}

.estimate-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.estimate-panel {
  padding: 100px max(48px, calc((100vw - var(--container)) / 2)) 100px 70px;
}

.estimate-copy {
  max-width: 760px;
  margin-bottom: 38px;
}

.estimate-copy h2 {
  font-size: clamp(3rem, 5.1vw, 5.2rem);
}

.estimate-form {
  max-width: 780px;
}

/* FAQ */
.faq {
  background: var(--white);
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 90px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 25px 55px 25px 0;
  font-family: var(--display);
  font-size: 1.35rem;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  color: var(--brass-dark);
  font-family: var(--body);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  max-width: 780px;
  padding: 0 55px 24px 0;
  margin-bottom: 0;
}

/* Final CTA */
.final-cta {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  color: var(--white);
}

.final-cta > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
}

.final-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 13, 10, 0.63);
}

.final-content {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 590px;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.final-content h2 {
  max-width: 850px;
  color: var(--white);
}

/* Footer */
.site-footer {
  padding: 76px 0 28px;
  color: rgba(255, 255, 255, 0.61);
  background: #0b0f0c;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  gap: 58px;
  padding-bottom: 54px;
}

.brand-footer {
  color: var(--white);
}

.brand-footer .brand-mark {
  color: var(--ink);
  background: var(--white);
}

.brand-footer .brand-name small {
  color: rgba(255, 255, 255, 0.46);
}

.footer-brand p {
  max-width: 390px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-grid > div:not(:first-child) {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-grid h3 {
  margin-bottom: 13px;
  color: var(--white);
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-grid a,
.footer-grid span {
  font-size: 0.83rem;
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.76rem;
}

.footer-bottom div {
  display: flex;
  gap: 20px;
}

.footer-bottom a {
  text-decoration: none;
}

.mobile-estimate {
  display: none;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Tablet */
@media (max-width: 1040px) {
  .menu-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 20px 40px rgba(17, 22, 19, 0.12);
  }

  .primary-nav.open {
    display: grid;
  }

  .primary-nav a:not(.nav-button) {
    padding: 15px 3px;
    border-bottom: 1px solid var(--line);
  }

  .nav-button {
    margin-top: 14px;
    text-align: center;
  }

  .hero-detail {
    display: none;
  }

  .assurance-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .assurance-grid > div:nth-child(3) {
    border-left: 1px solid var(--line);
  }

  .intro-grid,
  .section-heading,
  .portfolio-heading,
  .materials-grid,
  .reviews-grid,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .materials-copy,
  .reviews-intro {
    position: static;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 320px;
  }

  .project,
  .project-wide,
  .project-tall {
    grid-column: auto;
    grid-row: auto;
  }

  .project-wide {
    grid-column: 1 / -1;
    min-height: 520px;
  }

  .process-list li > div {
    grid-template-columns: 0.75fr 1.25fr;
  }

  .estimate {
    grid-template-columns: 1fr;
  }

  .estimate-photo {
    min-height: 620px;
  }

  .estimate-panel {
    padding: 80px 24px;
  }

  .estimate-copy,
  .estimate-form {
    max-width: 900px;
    margin-inline: auto;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-grid > div:last-child {
    grid-column: 2 / -1;
  }
}

/* Mobile */
@media (max-width: 720px) {
  body {
    padding-bottom: 68px;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 80px 0;
  }

  .utility-inner {
    min-height: 34px;
  }

  .utility-inner p {
    font-size: 0.68rem;
  }

  .utility-inner div span {
    display: none;
  }

  .header-inner {
    min-height: 72px;
  }

  .brand-mark {
    width: 45px;
    height: 45px;
  }

  .brand-name strong {
    font-size: 1.08rem;
  }

  .brand-name small {
    font-size: 0.54rem;
  }

  .hero,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    padding-bottom: 48px;
  }

  .hero-overlay {
    background:
      linear-gradient(to right, rgba(8, 13, 10, 0.77), rgba(8, 13, 10, 0.24)),
      linear-gradient(to top, rgba(8, 13, 10, 0.75), transparent 65%);
  }

  h1 {
    font-size: clamp(3.9rem, 18vw, 6rem);
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .assurance-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .assurance-grid > div,
  .assurance-grid > div:first-child,
  .assurance-grid > div:nth-child(3) {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .intro-grid {
    gap: 28px;
    margin-bottom: 44px;
  }

  .image-story {
    grid-template-columns: 1fr;
  }

  .image-story-main {
    height: 460px;
  }

  .image-story-small {
    grid-template-rows: 330px auto;
  }

  .section-heading {
    gap: 20px;
    margin-bottom: 38px;
  }

  .service-card {
    min-height: 380px;
  }

  .service-index {
    margin-bottom: 58px;
  }

  .portfolio {
    padding: 80px 0;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 330px;
  }

  .project-wide {
    grid-column: auto;
    min-height: 400px;
  }

  .project figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .material-row {
    grid-template-columns: 0.75fr 1.25fr;
    gap: 14px;
  }

  .material-row > :last-child {
    display: none;
  }

  .process-list li {
    grid-template-columns: 42px 1fr;
    align-items: start;
    gap: 14px;
    padding: 28px 0;
  }

  .process-list li > div {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .process-list h3 {
    font-size: 1.65rem;
  }

  .premium-form,
  .estimate-form {
    padding: 25px 18px;
  }

  .field-pair {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .estimate-photo {
    min-height: 460px;
  }

  .faq {
    padding: 80px 0;
  }

  .final-cta,
  .final-content {
    min-height: 500px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 38px 22px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-grid > div:last-child {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .mobile-estimate {
    position: fixed;
    z-index: 999;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px;
    color: var(--ink);
    background: var(--brass);
    box-shadow: 0 -10px 30px rgba(17, 22, 19, 0.2);
    text-decoration: none;
  }

  .mobile-estimate span {
    font-size: 0.67rem;
    font-weight: 850;
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }

  .mobile-estimate strong {
    font-size: 0.86rem;
  }
}
.instagram-icon {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 6px;
}