/* Austin Brothers Fence Company — the website's one stylesheet.
   Colors and type come from the 2024 WordPress design (Elementor's global kit).
   Build pages from the components below; website/README.md lists them. */

:root {
  --ink: #161717;
  --navy: #18212d;
  --blue: #3f98d4;
  --blue-dark: #2b7fb8;
  --gray: #8f9496;
  --gray-light: #c0c4ca;
  --paper: #ffffff;
  --mist: #f4f5f6;
  --text: #000000;
  --muted: #555a5c;

  --font: "Century Gothic", CenturyGothic, "URW Gothic", "Avenir Next", Avenir, "Futura", "Trebuchet MS", sans-serif;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 60px);
  --section: clamp(56px, 8vw, 110px);
  --radius: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 400; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--dark { background: var(--ink); color: var(--paper); }
.section--navy { background: var(--navy); color: var(--paper); }
.section--mist { background: var(--mist); }
.eyebrow { font-size: 16px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray); margin-bottom: 0.75em; }
.section--dark .eyebrow, .section--navy .eyebrow { color: var(--gray-light); }
.title { font-size: clamp(34px, 5vw, 64px); }
.lede { font-size: 20px; line-height: 1.6; max-width: 46em; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--paper); padding: 8px 16px; }
.skip-link:focus { left: 8px; top: 8px; }

/* Buttons */
.button {
  display: inline-block;
  padding: 11px 28px;
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  background: var(--blue);
  color: var(--paper);
  font: 700 16px/1.25 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.button:hover, .button:focus-visible { background: var(--blue-dark); border-color: var(--blue-dark); }
.button--outline { background: transparent; color: inherit; border-color: currentColor; }
.button--outline:hover, .button--outline:focus-visible { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.button--dark { background: var(--ink); border-color: var(--ink); }
.button--dark:hover, .button--dark:focus-visible { background: var(--navy); border-color: var(--navy); }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.center .buttons { justify-content: center; }

/* Announcement bar and header */
.announcement { margin: 0; padding: 4px var(--gutter); background: var(--blue); color: var(--paper); text-align: center; font-weight: 700; font-size: 16px; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--paper); border-bottom: 1px solid rgba(255, 255, 255, 0.35); transition: background 0.2s, color 0.2s; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1440px; margin: 0 auto; padding: 22px var(--gutter); }
.site-header__logo img { width: 220px; }
.logo-dark { display: none !important; }
.site-header.is-scrolled { background: var(--paper); color: var(--ink); border-bottom-color: transparent; box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08); }
.site-header.is-scrolled .logo-light { display: none !important; }
.site-header.is-scrolled .logo-dark { display: block !important; }
.site-header.is-scrolled .button--outline { color: var(--blue); }
/* A page with a full-bleed hero puts the header over it until you scroll. */
.has-hero .site-header { position: fixed; left: 0; right: 0; top: 0; }
.has-hero .site-header:not(.is-scrolled) { background: transparent; top: 32px; }

.site-nav { display: contents; }
.site-nav__toggle { display: none; }
.site-nav__menu { display: flex; align-items: center; gap: 28px; }
.site-nav__links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; font-weight: 700; font-size: 17px; }
.site-nav__links > li { position: relative; }
.site-nav__links a, .site-nav__links span { text-decoration: none; cursor: pointer; }
.site-nav__links a:hover, .site-nav__links a[aria-current="page"] { color: var(--blue); }
.site-nav__links ul { position: absolute; left: -16px; top: 100%; min-width: 210px; list-style: none; margin: 0; padding: 12px 0; background: var(--paper); color: var(--ink); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); visibility: hidden; opacity: 0; transition: opacity 0.15s; }
.site-nav__links ul a { display: block; padding: 6px 16px; font-weight: 400; }
.has-sub:hover > ul, .has-sub:focus-within > ul { visibility: visible; opacity: 1; }
.site-nav__buttons { display: flex; gap: 10px; }

@media (max-width: 1100px) {
  /* The announcement wraps on a phone, so the header stops floating over the hero. */
  .has-hero .site-header, .has-hero .site-header:not(.is-scrolled) { position: sticky; top: 0; background: var(--ink); }
  .site-header__inner { padding-top: 14px; padding-bottom: 14px; }
  .site-header__logo img { width: 180px; }
  .site-nav { display: block; }
  .site-nav__toggle { display: flex; flex-direction: column; gap: 5px; list-style: none; cursor: pointer; padding: 10px; }
  .site-nav__toggle::-webkit-details-marker { display: none; }
  .site-nav__toggle span { display: block; width: 26px; height: 2px; background: currentColor; }
  .site-nav__menu { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 20px; padding: 20px var(--gutter) 28px; background: var(--paper); color: var(--ink); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15); max-height: calc(100vh - 100px); overflow: auto; }
  .site-nav__links { flex-direction: column; gap: 12px; }
  .site-nav__links ul { position: static; visibility: visible; opacity: 1; box-shadow: none; padding: 4px 0 0 16px; min-width: 0; }
  .site-nav__links ul a { padding: 4px 0; }
  .site-nav__buttons { flex-direction: column; }
  .site-nav__buttons .button { text-align: center; }
  .site-nav__buttons .button--outline { color: var(--blue); }
}

/* Heroes */
.hero { position: relative; display: grid; place-items: center; min-height: min(100vh, 900px); padding: 160px var(--gutter) 100px; background: var(--ink) center / cover no-repeat; color: var(--paper); text-align: center; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: -1; }
.hero h1 { font-size: clamp(36px, 5.4vw, 70px); text-transform: uppercase; letter-spacing: 0.04em; max-width: 15em; margin: 0 auto 0.4em; }
.hero p { font-size: 20px; max-width: 46em; margin: 0 auto 1.5em; }
.hero .buttons { justify-content: center; }
.hero__more { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: var(--paper); text-decoration: none; letter-spacing: 0.12em; text-transform: uppercase; font-size: 16px; }
/* A shorter hero for inner pages. */
.page-hero { position: relative; padding: clamp(72px, 10vw, 140px) 0 clamp(48px, 7vw, 90px); background: var(--ink) center / cover no-repeat; color: var(--paper); isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: -1; }
.page-hero h1 { font-size: clamp(36px, 5vw, 64px); text-transform: uppercase; letter-spacing: 0.04em; }
.page-hero p { font-size: 20px; max-width: 42em; }

/* Layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split--flush { gap: 0; }
.split--flush > .split__text { padding: var(--section) var(--gutter); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 32px; background: var(--paper); color: var(--ink); border: 1px solid var(--gray-light); }
.card h2, .card h3 { font-size: 26px; font-weight: 700; }
.card .button { align-self: flex-start; margin-top: auto; }
.card img { width: 100%; }
.card--plain { padding: 0; border: 0; background: none; color: inherit; }
.ticks { list-style: none; padding: 0; margin: 1.5em 0; }
.ticks li { position: relative; padding-left: 32px; margin-bottom: 10px; font-weight: 700; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); }

/* Fence styles (home and /fences/) */
.styles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.style { display: block; text-decoration: none; }
.style img { width: 100%; aspect-ratio: 430 / 588; object-fit: cover; margin-bottom: 16px; }
.style__number { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray); }
.style h2, .style h3 { font-size: 30px; margin: 4px 0 8px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--gray-light); padding-bottom: 60px; }
.stat { padding: 0 32px; border-left: 1px solid var(--gray-light); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__label { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray); }
.stat__number { font-size: clamp(44px, 5vw, 72px); margin: 0; }
.stat__number small { font-size: 18px; letter-spacing: 0.12em; text-transform: uppercase; }
.stat p { color: var(--muted); }

/* A blue call-to-action band */
.band { display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; background: var(--blue); color: var(--paper); overflow: hidden; }
.band__text { padding: clamp(32px, 5vw, 70px) clamp(24px, 4vw, 50px); }
.band__text h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; margin-bottom: 1em; }
.band img { width: 100%; }

/* Gallery grid */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 774 / 952; object-fit: cover; }
.gallery--landscape img { aspect-ratio: 4 / 3; }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 22%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.scroller > * { scroll-snap-align: start; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.quote { display: flex; flex-direction: column; gap: 12px; }
.quote__headline { font-size: 22px; font-weight: 700; }
.quote img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.quote__name { font-size: 18px; font-weight: 700; margin: 0; }

/* Lists of places */
.places { columns: 2; list-style: none; padding: 0; }
.places li { padding: 4px 0; }

/* Article text (resources, privacy, service-area pages) */
.prose { max-width: 50em; }
.prose h2 { font-size: clamp(26px, 3vw, 36px); margin-top: 1.6em; }
.prose h3 { font-size: 24px; font-weight: 700; margin-top: 1.4em; }
.prose img { margin: 1.5em 0; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--blue-dark); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 16px; }
.prose th, .prose td { border: 1px solid var(--gray-light); padding: 8px 12px; text-align: left; vertical-align: top; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--gray-light); padding: 18px 0; }
.faq summary { font-weight: 700; font-size: 20px; cursor: pointer; }
.faq details > *:not(summary) { margin-top: 12px; }

/* Forms (quick quote, repair) */
.form { display: grid; gap: 28px; max-width: 880px; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; }
.form legend, .form h2 { font-size: 16px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; margin-bottom: 4px; padding: 0; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 16px; }
.form label small { font-weight: 400; color: var(--muted); }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form input[type="number"], .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--gray-light); border-radius: 4px; font: 400 17px/1.4 var(--font); background: var(--paper); color: var(--ink);
}
.form textarea { min-height: 140px; }
.form select { appearance: none; padding-right: 40px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23161717' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.choices { display: flex; flex-wrap: wrap; gap: 12px; }
.choices label { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.choices--pictures label { flex-direction: column; align-items: stretch; width: 180px; border: 2px solid var(--gray-light); padding: 8px; cursor: pointer; }
.choices--pictures label:has(input:checked) { border-color: var(--blue); }
.choices--pictures img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.honeypot { position: absolute; left: -9999px; }
.form .button { justify-self: start; font-size: 18px; padding: 14px 40px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); font-size: 16px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--blue); }
.site-footer__inner { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; max-width: var(--wrap); margin: 0 auto; padding: 72px var(--gutter) 48px; }
.site-footer h2 { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-light); margin-bottom: 1em; }
.site-footer p { margin-bottom: 0.6em; }
.site-footer__social { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; text-transform: uppercase; letter-spacing: 0.12em; font-size: 14px; }
.site-footer__badges { display: flex; gap: 16px; align-items: center; margin-top: 16px; }
.site-footer__badges img { width: auto; height: 90px; }
.site-footer__legal { display: flex; justify-content: space-between; gap: 16px; max-width: var(--wrap); margin: 0 auto; padding: 20px var(--gutter) 32px; border-top: 1px solid rgba(255, 255, 255, 0.15); color: var(--gray-light); font-size: 14px; }

/* Phones and tablets */
@media (max-width: 900px) {
  body { font-size: 17px; }
  .split, .band { grid-template-columns: 1fr; }
  .styles { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .quotes { grid-template-columns: 1fr; }
  .scroller { grid-auto-columns: 70%; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__legal { flex-direction: column; }
  .hero { min-height: 80vh; padding-top: 72px; }
}
@media (max-width: 520px) {
  .styles { grid-template-columns: 1fr; }
  .places { columns: 1; }
  .hero p, .page-hero p, .lede { font-size: 18px; }
}

/* About, contact, the fence pages and the gallery */
/* About, gallery, contact and the fence pages. Loaded after site.css. */

.page-hero.center p { margin-left: auto; margin-right: auto; }
.page-hero h2 { font-size: clamp(32px, 4vw, 52px); }
.section--blue { background: var(--blue); color: var(--paper); }
.hardware .card { padding: 20px 24px; font-size: 15px; }
.hardware .card h3 { font-size: 16px; }
.hardware .card ul { margin: 0; padding-left: 1.2em; }
.button--white { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.button--white:hover, .button--white:focus-visible { background: var(--mist); border-color: var(--mist); }
.muted { color: var(--muted); font-size: 16px; }
.split--top { align-items: start; }

/* About: colored blocks beside photos */
.blocks { display: grid; grid-template-columns: repeat(3, 1fr); }
.block { padding: clamp(32px, 4vw, 60px); background: var(--ink); color: var(--paper); font-size: 16px; }
.block--blue { background: var(--blue); }
.block--wide { grid-column: span 2; }
.block h2 { font-size: clamp(32px, 3.4vw, 48px); }
.block h2::after { content: ""; display: block; width: 40px; height: 3px; margin-top: 28px; background: var(--blue); }
.block--blue h2::after { background: var(--ink); }
.blocks > img { width: 100%; height: 100%; object-fit: cover; }

.people { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 32px; margin-top: 40px; }
.person { padding: 24px 24px 32px; background: #f0f2f5; border-radius: 6px; text-align: center; }
.person img { width: 80%; margin: 0 auto 20px; border-radius: 50%; border: 10px solid var(--paper); }
.person h3 { font-size: 22px; font-weight: 700; margin: 0; }
.person__role { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.person p:last-child { font-size: 16px; color: var(--muted); margin: 0; }

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

.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 24px; font-size: 16px; }
.steps h3 { font-size: 16px; font-weight: 700; text-transform: uppercase; margin: 0 0 4px; }
.steps p { margin: 0; }

/* Contact: four colored tiles */
.contact-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 12px; }
.contact-tile { display: flex; flex-direction: column; gap: 16px; padding: clamp(28px, 3vw, 40px) clamp(20px, 2.4vw, 34px); background: var(--blue); color: var(--paper); }
.contact-tile:nth-child(even) { background: var(--gray-light); color: var(--ink); }
.contact-tile .eyebrow { color: inherit; font-weight: 700; font-size: 15px; letter-spacing: 0; margin: 0; }
.contact-tile h2 { font-size: clamp(26px, 2.4vw, 32px); font-weight: 700; margin: 0; }
.contact-tile .button { align-self: flex-start; }
.contact-tile ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-weight: 700; }
.contact-tile ul a { text-decoration: none; }

/* /fences/: the four styles as colored tiles */
.types { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.type { display: grid; grid-template-columns: 1fr 1fr; align-items: center; background: var(--ink); color: var(--paper); }
.type:nth-child(2) { background: var(--blue); }
.type:nth-child(3) { background: var(--gray-light); color: var(--ink); }
.type > div { padding: 32px clamp(20px, 3vw, 44px); }
.type .button { margin-top: 8px; }
.type h2 { font-size: clamp(32px, 3.4vw, 48px); }
.type img { align-self: end; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: left; }
.type:nth-child(2) .button { background: var(--ink); border-color: var(--ink); }
.type__number { font-size: 15px; font-weight: 700; margin: 0 0 8px; }
.type__number::before { content: ""; display: inline-block; width: 16px; height: 1px; margin-right: 6px; vertical-align: middle; background: var(--blue); }

/* A fence page: the design tiles, then one section per design */
.designs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.designs--two { grid-template-columns: repeat(2, 1fr); }
.design-tile { display: flex; flex-direction: column; text-decoration: none; background: var(--mist); outline: 1px solid var(--ink); }
.design-tile img { width: 50%; margin: auto; padding: 32px 0; }
.design-tile span { padding: 8px; background: var(--ink); color: var(--paper); text-align: center; font-weight: 700; letter-spacing: 0.06em; }
.design-tile:hover span, .design-tile:focus-visible span { background: var(--blue); }

.design { display: grid; grid-template-columns: 1fr 1fr; scroll-margin-top: 90px; }
.design--mist { background: var(--mist); }
.design > div { padding: clamp(40px, 5vw, 80px) clamp(20px, 3vw, 40px); }
.design > div:first-child { display: flex; flex-direction: column; align-items: center; text-align: center; border-right: 1px solid var(--ink); }
.design h2 { font-size: clamp(36px, 4vw, 52px); }
.design > div:first-child img { width: min(100%, 360px); margin: 24px 0 40px; }
.design h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.design p, .design ul { font-size: 15px; color: var(--muted); }
.design p { margin-bottom: 4px; }
.design ul { padding-left: 1.4em; margin: 0; }
.variations { list-style: none; padding: 0 !important; display: grid; gap: 28px; margin-bottom: 32px !important; }
.variations > li { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: start; }
.upgrades { padding-top: 24px; border-top: 1px solid var(--muted); margin-bottom: 24px; }
.design .button { float: right; font-size: 14px; padding: 8px 20px; }

.faq--boxed details { border: 1px solid var(--gray-light); border-radius: 8px; background: #f0f2f5; padding: 18px 24px; margin-bottom: 12px; }
.faq--boxed summary { font-size: 17px; }
.faq--boxed p { font-size: 16px; color: var(--muted); }

.scroller--pairs { grid-auto-columns: calc(50% - 6px); }
.scroller--pairs img { width: 100%; aspect-ratio: 1184 / 952; object-fit: cover; }

/* Gallery: grouped by fence type */
.filters { justify-content: center; margin-bottom: 8px; }
.filters .button { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 20px; }
.gallery--square { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-bottom: 56px; }
.gallery--square img { aspect-ratio: 1; }
.gallery-group { scroll-margin-top: 110px; text-align: center; margin-top: 48px; }

@media (max-width: 900px) {
  .blocks, .types, .type, .design, .pair { grid-template-columns: 1fr; }
  .block--wide { grid-column: auto; }
  .contact-tiles { grid-template-columns: 1fr 1fr; }
  .designs { grid-template-columns: repeat(2, 1fr); }
  .design > div:first-child { border-right: 0; border-bottom: 1px solid var(--ink); }
  .scroller--pairs { grid-auto-columns: 85%; }
}
@media (max-width: 520px) {
  .people, .contact-tiles { grid-template-columns: 1fr; }
  .variations > li { grid-template-columns: 90px 1fr; }
}

/* Service-area pages, resources and the privacy policy */
/* Service-area pages, resources, articles and the privacy policy. Loaded after site.css. */

/* Heroes: centered; a service area's headline keeps its own capitals */
.page-hero--area h1 { text-transform: none; letter-spacing: 0; }
.page-hero--area p { font-size: 18px; }
.button--light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.button--light:hover, .button--light:focus-visible { background: var(--mist); border-color: var(--mist); }

/* Three quote options in colored tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); }
.tile { display: flex; flex-direction: column; gap: 12px; padding: clamp(32px, 4vw, 60px); background: var(--ink); color: var(--paper); }
.tile:nth-child(2) { background: var(--blue); }
.tile:nth-child(3) { background: var(--gray); }
.tile h2 { font-size: clamp(26px, 2.4vw, 32px); font-weight: 700; margin: 0; }
.tile p { font-size: 16px; }
.tile .button { align-self: flex-start; margin-top: auto; }

/* Heading on the left, text on the right */
.rows > .split { align-items: start; padding: clamp(28px, 4vw, 56px) 0; }
.rows .split > h2 { font-size: clamp(32px, 4vw, 52px); }
.rows .prose { color: var(--muted); font-size: 17px; }
.rows .prose h3 { color: var(--ink); margin-top: 1em; }
.rows .prose strong { color: var(--ink); }

/* The four fence styles as colored panels */
.panels { display: grid; grid-template-columns: repeat(4, 1fr); }
.panel { display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 36px; background: var(--ink); color: var(--paper); }
.panel:nth-child(2) { background: var(--blue); }
.panel:nth-child(3) { background: var(--gray-light); color: var(--ink); }
.panel__number { align-self: flex-end; font-size: 15px; font-weight: 700; }
.panel__number::before { content: ""; display: inline-block; width: 40px; height: 1px; margin-right: 8px; vertical-align: middle; background: currentColor; }
.panel img { width: 100%; aspect-ratio: 43 / 30; object-fit: cover; object-position: top; }
.panel h2 { font-size: 22px; font-weight: 700; margin: 12px 0 0; }
.panel p { font-size: 16px; margin: 0; }

.faq--boxed summary { font-size: 18px; }

/* Resources: one card per article */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.post { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; aspect-ratio: 380 / 398; padding: 28px; color: var(--paper); text-decoration: none; isolation: isolate; overflow: hidden; }
.post img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.post::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.35); z-index: -1; transition: background 0.15s; }
.post:hover::before, .post:focus-visible::before { background: rgba(0, 0, 0, 0.55); }
.post h2 { font-size: 26px; font-weight: 700; margin: 0; }
.post__more { align-self: flex-start; font-size: 16px; font-weight: 700; border-bottom: 2px solid currentColor; }

/* Articles */
.prose--article { margin: 0 auto; }
.prose--article h2 { font-weight: 700; }
.article-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: 48px; padding: 20px 0; border-top: 1px solid var(--gray-light); border-bottom: 1px solid var(--gray-light); font-size: 16px; }
.article-meta__author { font-weight: 700; margin: 0; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; list-style: none; margin: 0; padding: 0; }
.share a { color: var(--blue-dark); font-weight: 700; }
.back-link { display: inline-block; margin-top: 32px; font-weight: 700; text-decoration: none; }
.back-link:hover { color: var(--blue); }

.eyebrow--blue { color: var(--blue); font-weight: 700; font-size: 22px; letter-spacing: 0.04em; }

@media (max-width: 900px) {
  .tiles, .posts { grid-template-columns: 1fr; }
  .panels { grid-template-columns: repeat(2, 1fr); }
  .post { aspect-ratio: 4 / 3; }
}
@media (max-width: 520px) {
  .panels { grid-template-columns: 1fr; }
}

/* The quick quote, repair and thank-you pages */
/* The quick quote, repair, thank-you, not-found and form-problem pages. */

.page-hero--center { text-align: center; }
.page-hero--center p { margin-left: auto; margin-right: auto; }
.page-hero--overlap { padding-bottom: 200px; }

/* Quick quote: the blue "what we need from you" box over the bottom of the hero. */
.need { position: relative; margin-top: -160px; padding: clamp(32px, 4vw, 50px) clamp(20px, 3vw, 40px); background: var(--blue); color: var(--paper); text-align: center; }
.need .eyebrow { color: var(--paper); margin: 0 0 8px; }
.need h2 { font-size: clamp(20px, 2.2vw, 24px); font-weight: 700; max-width: 34em; margin: 0 auto; }
.need__items { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; padding-top: 40px; border-top: 1px solid rgba(255, 255, 255, 0.6); text-align: left; }
.need__item { padding: 0 40px; }
.need__item:first-child { padding-left: 0; }
.need__item:last-child { padding-right: 0; }
.need__item + .need__item { border-left: 1px solid rgba(255, 255, 255, 0.6); }
.need__item h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.need__item img { width: 100%; margin-top: 32px; }

/* The long forms: section headings in blue, labels in capitals like the old site. */
.form-page { max-width: 880px; margin: 0 auto; }
.form-page .form { margin: 0 auto; }
.form-page > h2 { font-size: clamp(34px, 5vw, 56px); text-align: center; margin: 1em 0 0.6em; }
.form-page > h2.form-page__ruled { margin-top: 0; padding-bottom: 0.8em; border-bottom: 1px solid var(--ink); margin-bottom: 1em; }
.form .form__heading { margin: 32px 0 0; padding-top: 48px; border-top: 1px solid var(--gray-light); font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: 0; color: var(--blue); }
.form .form__heading--first { margin-top: 0; padding-top: 0; border-top: 0; }
.form label, .form legend { text-transform: uppercase; letter-spacing: 0.06em; }
.form .choices label, .form label small { text-transform: none; letter-spacing: 0; }
.form .row { align-items: end; }
.form__sub { margin: 0; letter-spacing: 0.12em; text-transform: uppercase; }
.form__note { margin: 0; font-size: 16px; color: var(--muted); }
.form input[type="file"] { font: 400 16px var(--font); }
.choices--pictures label { width: 160px; text-align: center; }
.choices--pictures img { aspect-ratio: 295 / 266; object-fit: contain; }
.form-later { display: grid; gap: 28px; }
/* A later section shows once its "yes" is ticked. A browser without :has() shows them all. */
@supports selector(:has(*)) {
  .form-later { display: none; }
  .form-ask:has(input[value="Yes"]:checked) + .form-later { display: grid; }
}

/* Thank you: words on dark beside a photo. */
.thanks { display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); color: var(--paper); }
.thanks__text { display: grid; place-content: center; justify-items: center; gap: 28px; padding: var(--section) var(--gutter); text-align: center; }
.thanks__box { max-width: 520px; padding: 24px 0; border-top: 2px solid var(--blue); border-bottom: 2px solid var(--blue); }
.thanks h1 { font-size: clamp(40px, 5vw, 64px); text-transform: uppercase; letter-spacing: 0.06em; }
.thanks__box p { margin: 0; }
.thanks__social { display: flex; gap: 24px; list-style: none; padding: 0; margin: 0; text-transform: uppercase; letter-spacing: 0.12em; font-size: 15px; color: var(--gray-light); }
.thanks__social a { text-decoration: none; }
.thanks__social a:hover { color: var(--blue); }
.thanks img { width: 100%; height: 100%; max-height: 900px; object-fit: cover; }

/* Not found and form problem. */
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; list-style: none; padding: 0; margin: 0 0 1.5em; font-weight: 700; }
.links a { color: var(--blue-dark); }

@media (max-width: 900px) {
  .need { margin-top: -120px; }
  .need__items { grid-template-columns: 1fr; gap: 36px; }
  .need__item, .need__item:first-child, .need__item:last-child { padding: 0; }
  .need__item + .need__item { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.6); padding-top: 36px; }
  .need__item img { max-width: 240px; margin: 24px auto 0; }
  .thanks { grid-template-columns: 1fr; }
  .thanks img { max-height: 420px; }
}
@media (max-width: 520px) {
  .choices--pictures label { width: calc(50% - 6px); }
}
