/*
  Style.css for Atkinbull LLC
  Palette:
  YARD NIGHT #22251F (body ground)
  LANTERN CREAM #F1EFE0 (body text)
  CHUTE RUST #A55B33 (accent: brand plate, primary buttons, gate latches, ear tags)
  FENCE WIRE #8A8C7E (secondary structure rail lines)
  CORRAL PANEL #2C302A (card surfaces)
  TAG CREAM #F6F2E3 (light cards)
  BARN BLACK #15170F (deepest shadows, barn base)
*/

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: #22251F;
  color: #F1EFE0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: #A55B33;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.4em;
}

p {
  margin: 0 0 1em;
}

address {
  font-style: normal;
}

/* Reveal motion: default fully visible. Only under <html class="js"> do we
   hide, so the page shows cleanly when scripting is off. */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 700ms ease;
  will-change: opacity, transform;
}

.js .reveal.is-revealed {
  opacity: 1;
  transform: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  display: block;
  padding: 14px 20px;
  background-color: #15170F;
  color: #F6F2E3;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---- YARD GATE HEADER (not sticky) ---- */
.yard-gate {
  background-color: #15170F;
  border-bottom: 6px solid #A55B33;
}

.gate-band {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.latch-plate {
  width: 46px;
  height: 54px;
  background-color: #A55B33;
  border-radius: 6px;
  position: relative;
  flex: 0 0 auto;
}

.latch-plate__pin {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 34px;
  background-color: #F6F2E3;
  border-radius: 4px;
}

.latch-plate__holes::before,
.latch-plate__holes::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 6px;
  background-color: #15170F;
}

.latch-plate__holes::before {
  top: 12px;
}

.latch-plate__holes::after {
  bottom: 12px;
}

.gate-wordmark {
  margin: 0;
  font-size: 30px;
  letter-spacing: 4px;
  color: #F6F2E3;
  background-color: #A55B33;
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 700;
}

.gate-nav {
  margin-left: auto;
}

.gate-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.gate-nav__list li {
  margin: 0;
  padding: 0;
}

/* Ear tags are small labelled tags hanging on a rail line, with a punched
   stamped numeral. Uses clip-path for sharp clipped ear-tag corners. */
.ear-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background-color: #F6F2E3;
  color: #15170F;
  padding: 6px 12px 6px 6px;
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 4px);
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  font-size: 15px;
  border-top: 3px solid #8A8C7E;
}

.ear-tag:hover {
  text-decoration: none;
  background-color: #A55B33;
  color: #F6F2E3;
}

.ear-tag__num {
  display: inline-block;
  min-width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  background-color: #A55B33;
  color: #F6F2E3;
  border-radius: 50%;
  font-size: 13px;
}

.ear-tag--small {
  font-size: 13px;
  padding: 4px 8px 4px 4px;
}

.ear-tag--pen-label {
  pointer-events: none;
}

.ear-tag .ear-tag__num {
  border-radius: 2px;
}

.gate-cta {
  background-color: #A55B33;
  color: #F6F2E3;
  padding: 12px 20px;
  border-radius: 5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.gate-cta:hover {
  background-color: #F6F2E3;
  color: #15170F;
  text-decoration: none;
}

/* ---- Yard main ---- */
.yard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 24px 8px;
}

/* ---- Pens and fence frames ---- */
.pen {
  position: relative;
  margin: 40px 0 64px;
}

.pen-fence {
  position: relative;
  height: 18px;
  background-image: linear-gradient(180deg, transparent calc(50% - 2px), #8A8C7E calc(50% - 2px), #8A8C7E calc(50% + 2px), transparent calc(50% + 2px));
}

.pen-rail--top {
  display: block;
  border-top: 2px solid #8A8C7E;
  position: relative;
}

.pen-rail--bottom {
  display: block;
  border-bottom: 2px solid #8A8C7E;
  position: relative;
}

.pen-fence__post {
  position: absolute;
  top: -4px;
  width: 14px;
  height: 14px;
  background-color: #8A8C7E;
}

.pen-fence__post--tl {
  left: 0;
}

.pen-fence__post--tr {
  right: 0;
}

.pen-fence__post--bl {
  left: 0;
  bottom: -4px;
  top: auto;
}

.pen-fence__post--br {
  right: 0;
  bottom: -4px;
  top: auto;
}

.gate-latch {
  position: absolute;
  left: 22px;
  top: 2px;
  width: 40px;
  height: 16px;
  display: block;
}

.gate-latch__plate {
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 15px;
  background-color: #A55B33;
  border-radius: 3px;
}

.gate-latch__notch {
  position: absolute;
  right: 9px;
  top: 3px;
  width: 12px;
  height: 6px;
  border: 2px solid #15170F;
  border-top: 0;
}

.pen-plaque {
  position: absolute;
  left: 78px;
  top: -2px;
  background-color: #F6F2E3;
  color: #15170F;
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  padding: 4px 12px;
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
}

.pen-label {
  margin: 12px 0 0 6px;
}

/* ---- The Ramp (first pen / first screen) ---- */
.ramp-body {
  text-align: center;
  padding: 34px 10px 10px;
  max-width: 980px;
  margin: 0 auto;
}

.ramp-body--compact {
  padding-top: 30px;
}

.ramp-title {
  font-size: 44px;
  color: #F6F2E3;
  max-width: 880px;
  margin: 0 auto 0.45em;
  letter-spacing: 1px;
}

.ramp-tools {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 6px 0 18px;
}

.brand-iron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: #A55B33;
  color: #F6F2E3;
  font-size: 30px;
}

.ramp-divider {
  display: inline-block;
  width: 120px;
  height: 2px;
  background-color: #8A8C7E;
}

.ramp-standfirst {
  max-width: 62ch;
  margin: 0 auto 18px;
  text-align: center;
  font-size: 18px;
  color: #E7E4D4;
}

.ramp-note {
  max-width: 62ch;
  margin: 0 auto 22px;
  text-align: center;
  color: #C9C6B6;
}

.ramp-rule {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 14px 0 22px;
}

.tread {
  display: inline-block;
  width: 26px;
  height: 6px;
  background-color: #A55B33;
}

.tread--one {
  height: 8px;
}

.tread--two {
  height: 12px;
}

.tread--three {
  height: 16px;
}

.ramp-link, .chute-cta {
  display: inline-block;
  background-color: #A55B33;
  color: #F6F2E3;
  padding: 13px 24px;
  border-radius: 6px;
  font-weight: 700;
}

.ramp-link:hover, .chute-cta:hover {
  background-color: #8C4926;
  color: #F6F2E3;
  text-decoration: none;
}

/* ---- PEN 1 TAG BOARD ---- */
.tag-board, .service-pen, .scale-house, .faq-posts, .contact-columns {
  padding: 20px 26px 12px;
  background-color: #2C302A;
  border: 1px solid #3A3E34;
  border-top: 3px solid #8A8C7E;
}

.pen-heading {
  font-size: 28px;
  color: #F6F2E3;
}

.pen-lede {
  color: #D8D5C4;
  max-width: 62ch;
}

.tag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin: 24px 0 14px;
}

@media (max-width: 820px) {
  .tag-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .tag-grid {
    grid-template-columns: 1fr;
  }
}

/* Ear tag cards: stock tags with sharp clipped corners, a punched hole and
   a wire loop at top shown by ::before. */
.ear-tag-card {
  position: relative;
  background-color: #F6F2E3;
  color: #15170F;
  padding: 46px 18px 18px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.ear-tag-card__wire {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  border: 3px solid #8A8C7E;
  border-radius: 50%;
}

.ear-tag-card__wire::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  transform: translateX(-50%);
  width: 6px;
  height: 8px;
  background-color: #8A8C7E;
}

.ear-tag-card__num {
  position: absolute;
  top: 14px;
  right: 12px;
  display: inline-block;
  width: 44px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  background-color: #A55B33;
  color: #F6F2E3;
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  font-size: 20px;
  transform: rotate(-3deg);
}

.ear-tag-card h3 {
  font-size: 20px;
  margin-bottom: 0.6em;
}

.ear-tag-card h3 a {
  color: #A55B33;
}

.ear-tag-card p {
  font-size: 15px;
  color: #23241E;
}

/* ---- PEN 2 CHUTE RUN ---- */
.chute-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  align-items: flex-start;
  padding: 14px 26px 20px;
}

.chute-column {
  flex: 1 1 380px;
  max-width: 62ch;
}

.chute-column p {
  color: #E4E1D1;
}

.chute-cta {
  margin-top: 8px;
}

/* Drawn chute elevation: vertical rust wall, latch plates and wire ticks. */
.chute-elevation {
  flex: 1 1 300px;
  min-width: 260px;
  display: flex;
}

.chute-elevation__frame {
  width: 100%;
  border: 2px solid #8A8C7E;
  background-color: #2C302A;
  padding: 20px 16px 10px;
  position: relative;
}

.chute-wall {
  width: 16px;
  height: 300px;
  background-color: #A55B33;
  margin-left: 40px;
  position: relative;
}

.chute-plate {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 6px;
  background-color: #15170F;
}

.chute-plate--a {
  top: 40px;
}

.chute-plate--b {
  top: 140px;
}

.chute-plate--c {
  top: 240px;
}

.chute-ticks {
  position: absolute;
  left: 24px;
  bottom: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 300px;
}

.chute-tick {
  display: block;
  width: 14px;
  height: 3px;
  background-color: #8A8C7E;
}

.chute-tick:nth-child(even) {
  margin-left: 6px;
}

.chute-base {
  height: 8px;
  background-color: #8A8C7E;
  margin-top: 8px;
  width: 100%;
}

/* ---- PEN 3 SCALE HOUSE ---- */
.scale-house {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
}

.house-form-col {
  flex: 1 1 360px;
}

.house-brand-col {
  flex: 1 1 300px;
}

.house-blurb, .house-note {
  color: #D8D5C4;
  max-width: 62ch;
}

/* Weigh ticket: light receipt panel with a rust clip. */
.weigh-ticket {
  background-color: #F6F2E3;
  color: #15170F;
  padding: 26px 22px 20px;
  margin: 6px 0 12px;
  position: relative;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 8px);
}

.weigh-ticket::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 22px;
  width: 60px;
  height: 18px;
  background-color: #A55B33;
  border-radius: 3px 3px 0 0;
}

.ticket-head {
  border-bottom: 2px dashed #8A8C7E;
  margin-bottom: 16px;
  text-align: center;
}

.ticket-head p {
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  letter-spacing: 2px;
  color: #A55B33;
  margin: 0 0 10px;
}

.ticket-clip {
  display: inline-block;
  width: 46px;
  height: 14px;
  background-color: #A55B33;
  margin-bottom: 6px;
}

.weigh-ticket label {
  display: block;
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  color: #15170F;
  margin: 12px 0 4px;
}

.weigh-ticket input,
.weigh-ticket textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #B9B49F;
  background-color: #FFFDF3;
  color: #15170F;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  border-radius: 2px;
}

.weigh-ticket input:focus,
.weigh-ticket textarea:focus {
  outline: none;
  border-color: #A55B33;
}

.ticket-submit {
  margin-top: 16px;
  width: 100%;
  background-color: #A55B33;
  color: #F6F2E3;
  border: 0;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 700;
  font-family: Georgia, "Times New Roman", serif;
  cursor: pointer;
  letter-spacing: 1px;
}

.ticket-submit:hover {
  background-color: #15170F;
}

.mailto-note {
  font-size: 14px;
  color: #BDB9A8;
}

.brand-plate {
  background-color: #A55B33;
  color: #F6F2E3;
  padding: 22px 20px;
  margin: 6px 0 18px;
  border: 3px solid #F6F2E3;
  border-radius: 4px;
  max-width: 380px;
}

.brand-plate__top {
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 19px;
  margin-bottom: 12px;
  max-width: 100%;
}

.brand-plate address,
.brand-plate__line {
  color: #F6F2E3;
  margin: 0 0 8px;
  max-width: 100%;
}

.brand-plate a {
  color: #FFF;
  font-weight: 700;
}

.house-hours h3 {
  color: #F6F2E3;
  font-size: 20px;
}

.house-hours p {
  color: #D8D5C4;
}

/* ---- contact columns (contact page plate + form side by side) ---- */
.contact-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.ticket-column {
  flex: 1 1 380px;
}

.plate-column {
  flex: 1 1 320px;
}

.hours-footnote {
  color: #BDB9A8;
  font-size: 15px;
}

/* ---- FAQ brand notes ---- */
.faq-posts {
  display: grid;
  gap: 24px;
}

.faq-post {
  padding: 18px 20px;
  background-color: #2C302A;
  border-left: 4px solid #A55B33;
}

.faq-post h3 {
  color: #F6F2E3;
  font-size: 21px;
}

.faq-post p {
  color: #D8D5C4;
  margin: 0;
}

/* ---- service pens ---- */
.service-pen {
  max-width: 1000px;
}

.service-pen p {
  color: #E4E1D1;
  max-width: 70ch;
}

.service-pen--cta {
  text-align: left;
}

.service-pen--cta p a {
  font-weight: 700;
  color: #C9B38A;
  text-decoration: underline;
}

/* ---- Barn base footer ---- */
.barn-base {
  background-color: #15170F;
  color: #F1EFE0;
  padding: 30px 24px 10px;
  margin-top: 10px;
  position: relative;
  z-index: 1;
}

.barn-rail-rule {
  height: 6px;
  background-image: linear-gradient(180deg, transparent calc(50% - 2px), #8A8C7E calc(50% - 2px), #8A8C7E calc(50% + 2px), transparent calc(50% + 2px));
  margin-bottom: 22px;
}

.barn-links {
  text-align: center;
  margin: 0 0 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
}

.barn-link-gap a {
  color: #F6F2E3;
}

.barn-link-gap a:hover {
  color: #A55B33;
}

.barn-note {
  text-align: center;
  max-width: 70ch;
  margin: 0 auto 10px;
  color: #C9C6B6;
}

.barn-copy {
  text-align: center;
  font-size: 14px;
  color: #8A8C7E;
  margin: 0 0 6px;
}

/* ---- Go to top round button ---- */
.go-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid #F6F2E3;
  background-color: #A55B33;
  color: #F6F2E3;
  font-size: 20px;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.go-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* responsive tweaks */
@media (max-width: 640px) {
  .gate-band {
    flex-direction: column;
    align-items: stretch;
  }
  .gate-nav {
    margin-left: 0;
  }
  .ramp-title {
    font-size: 32px;
  }
  .yard {
    padding: 8px 12px;
  }
  .tag-board, .service-pen, .scale-house, .faq-posts, .contact-columns {
    padding: 16px 14px 8px;
  }
}
