/* Albuquerque Fence Company — static site */
:root {
  --red: #D40802;       /* logo red */
  --red-dk: #A30602;
  --iron: #2B2723;      /* wrought iron */
  --ink: #2B2723;
  --muted: #5E5852;
  --concrete: #EEF0F1;
  --line: #D9DCDE;
  --white: #FFFFFF;
  --wrap: 1180px;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --picket: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='26' viewBox='0 0 30 26'%3E%3Cpath d='M3 26V9L15 1l12 8v17z' fill='%23fff'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dk); text-underline-offset: 2px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid #1F6FB2; outline-offset: 2px; }
h1, h2, h3, h4 { font-stretch: 112%; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }

/* buttons */
.btn { display: inline-block; background: var(--red); color: #fff; font-weight: 700; text-decoration: none; padding: .7em 1.2em; border: 2px solid var(--red); border-radius: 3px; font-family: inherit; font-size: 1rem; cursor: pointer; line-height: 1.2; }
.btn:hover { background: var(--red-dk); border-color: var(--red-dk); color: #fff; }
.btn-block { width: 100%; }
.btn-light { background: #fff; color: var(--iron); border-color: #fff; }
.btn-light:hover { background: var(--concrete); border-color: var(--concrete); color: var(--iron); }
.btn-ghost { background: transparent; border-color: #fff; color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); }
.bar { max-width: var(--wrap); margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo img { height: 52px; width: auto; }
.head-actions { display: flex; align-items: center; gap: 16px; }
.head-phone { font-weight: 800; font-size: 1.15rem; color: var(--iron); text-decoration: none; white-space: nowrap; }
.head-phone span { display: block; font-size: .75rem; font-weight: 500; color: var(--muted); }
.menu-toggle { display: none; font: inherit; font-weight: 700; background: var(--iron); color: #fff; border: 0; padding: .55em .9em; border-radius: 3px; cursor: pointer; }
.navwrap { background: var(--iron); }
.mainnav > ul { max-width: var(--wrap); margin: 0 auto; padding: 0 12px; list-style: none; display: flex; flex-wrap: wrap; }
.mainnav li { position: relative; list-style: none; }
.mainnav a { color: #fff; text-decoration: none; display: block; padding: 12px 12px; font-weight: 600; font-size: .98rem; }
.mainnav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.mainnav .has-sub { display: flex; flex-wrap: wrap; align-items: center; }
.sub-toggle { background: none; border: 0; color: #fff; width: 28px; height: 40px; cursor: pointer; margin-left: -8px; }
.sub-toggle::after { content: ""; display: inline-block; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.mainnav .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; box-shadow: 0 10px 30px rgba(43,39,35,.18); padding: 8px 0; margin: 0; z-index: 60; }
.mainnav .sub a { color: var(--ink); font-weight: 500; padding: 7px 18px; }
.mainnav .sub a:hover { background: var(--concrete); color: var(--red-dk); }
.mainnav .has-sub:hover > .sub, .mainnav .has-sub:focus-within > .sub, .mainnav .has-sub.open > .sub { display: block; }
/* services mega panel */
.mainnav .mega { position: static; }
.mainnav .mega > .sub { left: 50%; transform: translateX(-50%); width: min(var(--wrap), 100vw); padding: 22px 26px; grid-template-columns: repeat(3, 1fr); gap: 8px 28px; }
.mainnav .mega:hover > .sub, .mainnav .mega:focus-within > .sub, .mainnav .mega.open > .sub { display: grid; }
.mainnav .mega .has-sub { display: block; }
.mainnav .mega .has-sub > a { font-weight: 750; color: var(--red-dk); padding: 6px 0; border-bottom: 2px solid var(--line); margin-bottom: 4px; }
.mainnav .mega .sub .sub { display: block; position: static; box-shadow: none; padding: 0 0 10px; min-width: 0; }
.mainnav .mega .sub .sub a { padding: 3px 0; font-size: .93rem; }
.mainnav .mega .sub .sub-toggle { display: none; }

/* hero */
.hero { position: relative; color: #fff; padding: 56px 0 84px;
  background: linear-gradient(90deg, rgba(43,39,35,.9) 0%, rgba(43,39,35,.7) 45%, rgba(43,39,35,.35) 100%), var(--hero) center / cover no-repeat; }
.hero::after, .page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 26px; background: var(--picket) repeat-x left bottom / 30px 26px; }
.hero-grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 800; font-stretch: 118%; line-height: 1.02; margin-bottom: .2em; }
.hero-sub { font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 500; margin-bottom: 1.1em; }
.since { font-weight: 700; color: #fff; border-left: 4px solid var(--red); padding-left: 10px; margin-bottom: .8em; }
.badges { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 6px; }
.badges li { padding-left: 28px; position: relative; font-weight: 600; }
.badges li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%; background: var(--red); }
.badges li::after { content: ""; position: absolute; left: 6px; top: .42em; width: 5px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.hero-phone { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: #fff; text-decoration: none; font-stretch: 112%; }
.hero-phone:hover { color: #fff; text-decoration: underline; }
.hero-form .lead-form { background: #fff; color: var(--ink); padding: 22px; border-radius: 4px; box-shadow: 0 16px 40px rgba(0,0,0,.3); border-top: 6px solid var(--red); }

/* page header (inner pages) */
.page-head { position: relative; background: var(--iron); color: #fff; padding: 46px 0 64px; }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; font-stretch: 118%; margin: 0; max-width: 22ch; }
.page-head .lede { margin: .7em 0 0; max-width: 60ch; font-size: 1.1rem; }
.crumbs { font-size: .9rem; color: var(--muted); padding-top: 14px; padding-bottom: 6px; }
.crumbs a { color: var(--muted); }

/* layout */
.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding-top: 20px; padding-bottom: 56px; align-items: start; }
.prose { max-width: 72ch; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .3em; }
.prose figure { margin: 1.5em 0; }
.prose figure img { border-radius: 3px; }
.facts { columns: 2 280px; column-gap: 40px; }
.facts h3, .facts h4 { break-after: avoid; margin-top: 1em; }
.facts ul { break-inside: avoid; }
.sidebar { position: sticky; top: 140px; display: grid; gap: 18px; }
.side-box { background: var(--concrete); padding: 20px 22px; border-radius: 3px; }
.side-box h2 { font-size: 1.15rem; margin-bottom: .6em; }
.side-box h3 { font-size: 1rem; margin-top: 1em; }
.side-box ul { list-style: none; padding: 0; margin: 0; }
.side-box li { padding: 5px 0; border-bottom: 1px solid var(--line); font-size: .96rem; }
.side-box li:last-child { border-bottom: 0; }
.side-box .big { font-size: 1.5rem; font-weight: 800; margin-bottom: .3em; }
.side-box .big a { color: var(--iron); text-decoration: none; }
.side-box.vet { background: var(--iron); color: #fff; }
.side-box.vet a { color: #fff; font-weight: 700; }
.side-box.vet img { width: 56px; margin-bottom: 10px; filter: invert(1); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; margin: 1.2em 0 2em; max-width: none; }
.prose .cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; display: flex; flex-direction: column; }
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card-body { padding: 16px 18px 18px; }
.card h3 { font-size: 1.1rem; margin: 0 0 .5em; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card:hover { border-color: var(--red); }
.card:hover h3 a { color: var(--red-dk); }
.card p { font-size: .95rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.services .cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* why choose */
.why h2 { margin-bottom: .8em; }
.checks { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px 24px; }
.checks li { position: relative; padding-left: 30px; font-weight: 650; }
.checks li::before { content: ""; position: absolute; left: 0; top: .15em; width: 20px; height: 20px; border-radius: 50%; background: var(--red); }
.checks li::after { content: ""; position: absolute; left: 7px; top: .38em; width: 5px; height: 10px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }

/* home */
.intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.intro figure { margin: 0; }
.intro img { border-radius: 3px; aspect-ratio: 4 / 3; object-fit: cover; }
.band { background: var(--concrete); padding: 48px 0; }
.services { padding-top: 56px; padding-bottom: 30px; }
.split-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.split-head h2 { margin: 0; }
.twoup { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 48px; padding-bottom: 48px; }
.callout { border-left: 6px solid var(--red); background: var(--concrete); padding: 22px 26px; margin: 1.5em 0; }
.twoup .callout { margin: 0; }
.callout.vet { background: var(--iron); color: #fff; border-left-color: var(--red); }
.callout.vet a { color: #fff; font-weight: 700; }
.partners { padding-bottom: 56px; }
.partners h2 { font-size: 1.3rem; }
.inline-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.inline-list li { border: 1px solid var(--line); border-radius: 3px; padding: 4px 10px; font-size: .92rem; color: var(--muted); }

/* gallery */
.gallery { list-style: none; padding: 0; margin: 24px 0 56px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.band .gallery { margin-bottom: 0; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 3px; }
.gallery a:hover img { outline: 3px solid var(--red); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(20,18,16,.88); }
.lightbox img { max-width: 94vw; max-height: 82vh; width: auto; margin: 0 auto; }
.lb-cap { color: #fff; text-align: center; margin: 10px 0 0; }
.lb-close { position: fixed; top: 14px; right: 18px; background: #fff; color: var(--iron); border: 0; width: 42px; height: 42px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }

/* posts */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; margin: 16px 0 48px; }
.post-card { border: 1px solid var(--line); border-radius: 3px; overflow: hidden; position: relative; }
.post-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.post-card time { font-size: .85rem; color: var(--muted); }
.post-card h3 { font-size: 1.08rem; margin: .3em 0 .5em; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card:hover { border-color: var(--red); }
.post-card p { font-size: .94rem; color: var(--muted); margin: 0; }
.post-img { margin: 0 0 1.5em; }

/* faq */
.faq { margin: 1.5em 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 30px 14px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.4rem; color: var(--red); }
.faq details[open] summary::after { content: "–"; }
.faq .ans { padding-bottom: 12px; }

/* forms */
.form-panel { background: var(--concrete); padding: 26px; border-radius: 3px; max-width: 720px; margin-bottom: 36px; }
.form-title { font-size: 1.35rem; margin-bottom: .7em; }
.lead-form .row { margin-bottom: 12px; }
.lead-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-form .two { grid-template-columns: 1fr; }
.lead-form label { display: block; font-weight: 650; font-size: .93rem; margin-bottom: 4px; }
.lead-form .opt { font-weight: 400; color: var(--muted); }
.lead-form input, .lead-form select, .lead-form textarea { width: 100%; font: inherit; font-size: 1rem; padding: 10px 11px; border: 1px solid #A9AEB2; border-radius: 3px; background: #fff; color: var(--ink); }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { border-color: var(--iron); outline: 3px solid rgba(31,111,178,.35); outline-offset: 0; }
.lead-form [aria-invalid="true"] { border-color: var(--red); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ts-widget { margin: 6px 0 12px; min-height: 0; }
.form-error { background: #FDECEC; border-left: 4px solid var(--red); color: #7A0400; padding: 10px 12px; font-weight: 600; font-size: .95rem; }
.form-note { font-size: .88rem; color: var(--muted); margin: 10px 0 0; }
.cols { columns: 2 260px; }

/* cta + footer */
.cta-band { background: var(--red); color: #fff; padding: 36px 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 .2em; }
.cta-band p { margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.site-footer { background: var(--iron); color: #E7E3DF; font-size: .95rem; }
.site-footer a { color: #fff; }
.foot { max-width: var(--wrap); margin: 0 auto; padding: 48px 20px 28px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.foot h2 { font-size: 1rem; color: #fff; margin-bottom: .7em; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { padding: 2px 0; }
.foot-logo { background: #fff; padding: 8px 10px; border-radius: 3px; width: 220px; margin-bottom: 14px; }
.legal { border-top: 1px solid rgba(255,255,255,.15); }
.legal p { max-width: var(--wrap); margin: 0 auto; padding: 16px 20px; font-size: .85rem; }

/* responsive */
@media (max-width: 960px) {
  .hero-grid, .intro, .with-side, .twoup { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .foot { grid-template-columns: 1fr 1fr; }
  .menu-toggle { display: inline-block; }
  .head-actions .btn { display: none; }
  .navwrap { display: none; }
  .navwrap.open { display: block; max-height: calc(100vh - 80px); overflow-y: auto; }
  .mainnav > ul { flex-direction: column; padding: 6px 0 14px; }
  .mainnav .has-sub { display: flex; }
  .mainnav .has-sub > a { flex: 1; }
  .sub-toggle { width: 48px; margin: 0; }
  .mainnav .sub, .mainnav .mega > .sub { position: static; transform: none; width: 100%; box-shadow: none; display: none; background: rgba(255,255,255,.06); padding: 0 0 6px 12px; }
  .mainnav .has-sub:hover > .sub, .mainnav .has-sub:focus-within > .sub { display: none; }
  .mainnav .has-sub.open > .sub, .mainnav .mega.open > .sub { display: block; }
  .mainnav .sub a, .mainnav .mega .has-sub > a, .mainnav .mega .sub .sub a { color: #fff; border: 0; padding: 8px 12px; font-weight: 500; }
  .mainnav .mega .has-sub { display: flex; }
  .mainnav .mega .sub .sub-toggle { display: inline-block; }
  .mainnav .mega .sub .sub { display: none; padding-left: 12px; }
  .mainnav .mega .has-sub.open > .sub { display: block; }
  .mainnav .sub a:hover { background: rgba(255,255,255,.1); color: #fff; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .logo img { height: 40px; }
  .head-phone span { display: none; }
  .head-phone { font-size: 1rem; }
  .hero { padding: 36px 0 70px; }
  .lead-form .two { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .facts { columns: 1; }
}
@media (max-width: 420px) { .head-phone { display: none; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
