@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --ink: #191917;
  --muted: #54534e;
  --paper: #f7f6f2;
  --red: #ab260d;
  --yellow: #ffcf3e;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #d86532;
  outline-offset: 4px;
}
.wrap { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.header { color: #fff; background: var(--ink); border-bottom: 1px solid #383631; }
.nav, .nav nav, .brand { display: flex; align-items: center; }
.nav { justify-content: space-between; gap: 1.5rem; min-height: 5rem; }
.nav nav { gap: clamp(0.8rem, 3vw, 2.2rem); font-size: .95rem; font-weight: 700; }
.nav a { text-decoration: none; }
.nav nav a:hover { color: var(--yellow); }
.brand { gap: .75rem; line-height: 1; font-weight: 800; letter-spacing: .025em; text-transform: uppercase; }
.brand small { display: block; color: #e0ddd6; margin-top: .32rem; font-size: .68rem; letter-spacing: .17em; }
.mark { display: grid; place-items: center; width: 2.65rem; height: 2.65rem; background: #b82816; color: #fff; font: italic 800 1.45rem/1 var(--display); border-left: 3px solid var(--yellow); }
.nav-cta { color: var(--yellow); }

.hero {
  color: #fff;
  background: #191917;
  background-image: linear-gradient(90deg, #191917 13%, rgba(25,25,23,.95) 33%, rgba(25,25,23,.50) 58%, rgba(25,25,23,.08)), url("welder.webp");
  background-position: center, right 45%;
  background-size: cover, auto 123%;
  background-repeat: no-repeat;
  border-bottom: .28rem solid var(--yellow);
}
.hero-content { padding-block: clamp(4.5rem, 9vw, 8rem); }
.eyebrow { color: var(--red); font-size: .875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; }
.hero .eyebrow { color: var(--yellow); }
h1, h2, h3 { font-family: var(--display); }
h1 { font-size: clamp(4.1rem, 9.1vw, 8rem); line-height: .87; font-weight: 800; text-transform: uppercase; margin-block: .9rem 1.5rem; }
h1 em { color: var(--yellow); font-style: normal; }
.intro { max-width: 32rem; color: #eeeae4; font-size: 1.125rem; }
.actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.75rem; }
.button { min-height: 3.1rem; display: inline-flex; justify-content: center; align-items: center; padding: .7rem 1.1rem; font: 700 1rem/1.25 "DM Sans", system-ui, sans-serif; cursor: pointer; text-decoration: none; border: 1px solid transparent; border-radius: 4px; }
.primary { background: var(--yellow); color: var(--ink); }
.primary:hover { background: #f3bc1c; }
.outline { background: #19191785; color: #fff; border-color: #cecbc3; }
.outline:hover { background: #35332d; }

.services, .quotation { padding-block: clamp(3.5rem, 7vw, 6rem); }
h2 { font-size: clamp(3rem, 6vw, 4.7rem); font-weight: 800; line-height: .98; margin-block: .5rem 1.25rem; }
h3 { font-size: 2rem; line-height: 1.1; }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: #d7d4cb; border: 1px solid #d7d4cb; margin-top: 2rem; }
.services-grid article { background: #fff; padding: clamp(1.3rem, 3vw, 2rem); display: flex; flex-direction: column; align-items: flex-start; }
.services-grid p { color: var(--muted); margin-block: .65rem 1.25rem; }
.services-grid a, .contact-links a { color: var(--red); font-weight: 700; text-underline-offset: .22em; }
.services-grid a { margin-top: auto; }
.service-icon { width: 2.7rem; height: 1.8rem; display: block; color: var(--red); margin: .15rem 0 1.25rem; }
.gate, .grille { border: 2px solid currentColor; background: repeating-linear-gradient(90deg, transparent 0 5px, currentColor 5px 7px); }
.gate { border-radius: 8px 8px 0 0; }
.grille { background: repeating-linear-gradient(90deg, transparent 0 8px, currentColor 8px 10px), linear-gradient(transparent 44%, currentColor 44% 54%, transparent 54%); }
.canopy { border: 2px solid currentColor; border-bottom: 0; transform: skewY(-10deg); background: linear-gradient(transparent 45%, currentColor 45% 54%, transparent 54%); }

.quotation { background: #ece9e1; }
.quote-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 7vw, 6rem); align-items: start; }
.quote-layout p:not(.eyebrow) { color: var(--muted); }
.contact { border-top: 1px solid #ccc6b9; padding-top: 1.25rem; margin-top: 2rem; }
.number { display: inline-block; font: 800 2.65rem/1.2 var(--display); margin-block: .2rem .65rem; text-decoration: none; }
.contact-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
form { background: #fff; border: 1px solid #d7d4cb; padding: clamp(1.1rem, 3.5vw, 2rem); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.full { grid-column: 1 / -1; width: 100%; }
label { display: block; font-weight: 700; font-size: .93rem; }
label span { font-weight: 500; color: var(--muted); }
input, select, textarea { display: block; width: 100%; background-color: #faf9f6; border: 1px solid #c7c4bb; border-radius: 4px; font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink); margin-top: .35rem; padding: .65rem .72rem; }
select { appearance: none; padding-right: 1.9rem; background-image: linear-gradient(45deg, transparent 50%, #54534e 50%), linear-gradient(135deg, #54534e 50%, transparent 50%); background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
textarea { resize: vertical; }
form button { margin-top: 1.15rem; }
footer { background: var(--ink); color: #ece9e1; }
.footer-content { display: flex; gap: 1rem; justify-content: space-between; padding-block: 1.4rem; font-size: .9rem; }
.footer-content a { text-underline-offset: .22em; }

@media (max-width: 780px) {
  .wrap { width: min(100% - 2rem, 72rem); }
  .hero { background-position: center, 61% center; background-size: cover, cover; background-image: linear-gradient(90deg, rgba(25,25,23,.95), rgba(25,25,23,.53)), url("welder.webp"); }
  .services-grid, .quote-layout { grid-template-columns: 1fr; }
}
@media (max-width: 530px) {
  .nav { flex-wrap: wrap; padding-block: .8rem; gap: .8rem; }
  .nav nav { width: 100%; justify-content: space-between; font-size: .875rem; gap: .55rem; }
  .form-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(3.55rem, 12vw, 4.2rem); }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}

.service-links { display: grid; gap: .45rem; margin-top: auto; }
.service-links a + a { color: var(--muted); font-weight: 600; }
.catalog { padding-block: clamp(3.5rem, 7vw, 6rem); background: #fff; border-top: 1px solid #e0ddd4; }
.catalog-description { max-width: 44rem; color: var(--muted); }
.catalog-filters { display: flex; gap: .5rem; margin-block: 1.5rem; flex-wrap: wrap; }
.catalog-filters button, .preview-close button, .design-choice button {
  background: #fff;
  color: var(--ink);
  border: 1px solid #c7c4bb;
  border-radius: 4px;
  min-height: 2.6rem;
  padding: .4rem .85rem;
  font: 700 .9rem/1.2 "DM Sans", system-ui, sans-serif;
  cursor: pointer;
}
.catalog-filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.catalog-card { display: flex; flex-direction: column; border: 1px solid #d7d4cb; background: var(--paper); }
.catalog-image { display: block; background: #e0ddd4; cursor: zoom-in; }
.catalog-image img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.catalog-card-body { padding: 1rem 1.2rem 1.15rem; }
.catalog-card-body h3 { font-size: 1.65rem; }
.catalog-card-body a { display: inline-block; color: var(--red); font-weight: 700; text-underline-offset: .22em; margin-top: .55rem; }
#catalog-preview { border: 0; padding: 0; width: min(42rem, calc(100% - 2rem)); max-height: 92dvh; color: var(--ink); }
#catalog-preview::backdrop { background: #10100ed9; }
.preview-heading, .preview-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.15rem; }
.preview-close { margin: 0; padding: 0; border: 0; }
.preview-close button { margin: 0; }
.preview-photo { display: block; width: 100%; max-height: 65dvh; object-fit: contain; background: var(--ink); }
.preview-footer { justify-content: flex-end; }
.design-choice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .7rem .8rem; background: #fff6d5; margin-bottom: 1rem; }
.design-choice strong { display: block; color: var(--ink); }
[hidden] { display: none !important; }

@media (max-width: 780px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 530px) {
  .nav nav { flex-wrap: wrap; }
  .catalog-grid { gap: .65rem; }
  .catalog-card-body { padding: .7rem; }
  .catalog-card-body h3 { font-size: 1.4rem; }
  .catalog-card-body a { font-size: .875rem; }
}
