/* ==========================================================================
   Rosemary Poultry — design tokens
   Palette pulled from the source art: barn-shirt red, straw bedding gold,
   the overcast sky both photos share, and the rosette pink for award mentions.
   ========================================================================== */

:root {
  --sky: #D8E3E8;
  --sky-deep: #B9CBD3;
  --cream: #F7F4EC;
  --barn-red: #A8342A;
  --barn-red-deep: #7C2620;
  --straw: #D9A441;
  --straw-pale: #EFD9A2;
  --charcoal: #241F1A;
  --charcoal-soft: #4A423A;
  --rosette: #C9527A;

  --font-display: "Bitter", Georgia, serif;
  --font-body: "Karla", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --radius-ribbon: 3px;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
}

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

a { color: var(--barn-red-deep); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--straw);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 0.4em;
  color: var(--charcoal);
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* -------------------- Nav -------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--cream);
  border-bottom: 3px solid var(--charcoal);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--barn-red-deep);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand span { color: var(--charcoal); font-weight: 400; font-size: 0.85rem; display: block; font-family: var(--font-body); }
.site-nav nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.site-nav nav a {
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav nav a:hover { color: var(--barn-red-deep); }

/* -------------------- Ribbon label (signature element) -------------------- */
.ribbon-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--barn-red);
  padding: 6px 16px 6px 14px;
  position: relative;
  margin-bottom: 22px;
}
.ribbon-label::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 0;
  border-style: solid;
  border-width: 12px 0 12px 14px;
  border-color: transparent transparent transparent var(--barn-red);
}
.ribbon-label::before {
  content: "";
  position: absolute;
  left: -12px;
  bottom: -8px;
  border-style: solid;
  border-width: 0 6px 8px 6px;
  border-color: transparent transparent var(--barn-red-deep) transparent;
}

/* -------------------- Hero: portrait top-right, sky-blue background to match -------------------- */
.hero {
  position: relative;
  /* Lighter version of the sampled sky blue */
  background: linear-gradient(180deg, #5FC4FA 0%, #2FA3E8 100%);
  padding: 56px 0 64px;
  overflow: hidden;
}
.hero-frame {
  position: relative;
  min-height: 460px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.hero-media {
  position: absolute;
  top: 0;
  right: 24px;
  width: clamp(320px, 42vw, 540px);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 18px 40px -14px rgba(8, 40, 60, 0.45);
  z-index: 1;
}
.hero-img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-photo-credit {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--charcoal);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  text-transform: uppercase;
}
.hero-overlay {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding-top: 44px;
}
.hero-overlay .ribbon-label { margin-bottom: 18px; }
.hero-overlay h1 {
  color: var(--cream);
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  line-height: 1.08;
  margin-bottom: 0.3em;
}
.hero-overlay h1 em {
  font-style: normal;
  color: var(--charcoal);
}
.hero-overlay p.lede {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  max-width: 46ch;
  color: #F0F8FD;
  margin-bottom: 26px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: var(--radius-ribbon);
  border: 2px solid var(--charcoal);
  transition: transform 0.15s ease;
}
.btn-primary {
  background: var(--barn-red);
  color: var(--cream);
  border-color: var(--barn-red-deep);
}
.btn-secondary {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.btn:hover { transform: translateY(-2px); }

/* Gentle one-time load-in for the overlay copy */
.hero-overlay > * {
  opacity: 0;
  transform: translateY(16px);
  animation: hero-in 0.7s ease forwards;
}
.hero-overlay .ribbon-label { animation-delay: 0.05s; }
.hero-overlay h1 { animation-delay: 0.16s; }
.hero-overlay p.lede { animation-delay: 0.27s; }
.hero-overlay .hero-actions { animation-delay: 0.38s; }
@keyframes hero-in {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-overlay > * { animation: none; opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  .hero-frame { min-height: 0; }
  .hero-media {
    position: relative;
    width: min(70vw, 320px);
    margin: 0 auto 28px;
  }
  .hero-overlay {
    max-width: none;
    padding-top: 0;
    padding-right: 0;
    text-align: center;
  }
  .hero-overlay p.lede { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
}

/* -------------------- Section shared -------------------- */
section { padding: 76px 0; }
.section-head { max-width: 60ch; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.section-head p { color: var(--charcoal-soft); font-size: 1.05rem; }

/* -------------------- About -------------------- */
.about { background: var(--cream); }
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-body p { margin-bottom: 1em; font-size: 1.05rem; }
.about-facts {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.about-facts li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  border-top: 1px dashed var(--charcoal-soft);
  padding-top: 10px;
}
.about-facts li strong { color: var(--barn-red-deep); min-width: 120px; }

/* -------------------- Available now (chalkboard) -------------------- */
.available {
  background: var(--charcoal);
  color: var(--cream);
}
.available .section-head p { color: #C9C2B6; }
.available .ribbon-label { background: var(--straw); color: var(--charcoal); }
.available .ribbon-label::after { border-color: transparent transparent transparent var(--straw); }
.available .ribbon-label::before { border-color: transparent transparent #A9782B transparent; }

.board {
  background: #1B1712;
  border: 2px solid #3A322A;
  border-radius: 6px;
  padding: 8px;
}
.board-note {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--straw-pale);
  padding: 18px 22px 6px;
  white-space: pre-line;
}
.board-list { list-style: none; margin: 0; padding: 10px 6px 6px; }
.board-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
  font-family: var(--font-mono);
  padding: 14px 16px;
  border-top: 1px dashed #3A322A;
}
.board-list li:first-child { border-top: none; }
.item-name { font-size: 1.05rem; color: var(--cream); }
.item-note { display: block; font-size: 0.8rem; color: #9A9184; margin-top: 3px; }
.item-price { font-size: 1.05rem; color: var(--straw); white-space: nowrap; }
.board-empty { font-family: var(--font-mono); padding: 20px; color: #9A9184; }

/* -------------------- Awards -------------------- */
.awards { background: var(--sky); }
.awards .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.awards-photo { position: relative; }
.awards-photo img { border-radius: 8px; box-shadow: 0 18px 40px -14px rgba(36,31,26,0.4); }
.awards .ribbon-label { background: var(--rosette); color: var(--cream); }
.awards .ribbon-label::after { border-color: transparent transparent transparent var(--rosette); }
.awards .ribbon-label::before { border-color: transparent transparent #93395A transparent; }
.awards-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.awards-list li {
  background: rgba(255,255,255,0.55);
  border-left: 4px solid var(--rosette);
  padding: 12px 16px;
  font-size: 0.98rem;
}

/* -------------------- Contact -------------------- */
.contact { background: var(--cream); }
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-details { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.contact-details li { font-size: 1.05rem; }
.contact-details span.label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  margin-bottom: 3px;
}
.contact-form { display: grid; gap: 14px; }
.contact-form label { font-weight: 700; font-size: 0.92rem; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 2px solid var(--charcoal);
  border-radius: var(--radius-ribbon);
  background: #fff;
}
.contact-form textarea { min-height: 120px; resize: vertical; }

/* -------------------- Footer -------------------- */
footer {
  background: var(--charcoal);
  color: #C9C2B6;
  padding: 28px 0;
  font-size: 0.85rem;
}
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
footer a { color: var(--straw); }

/* -------------------- Responsive -------------------- */
@media (max-width: 860px) {
  .about .wrap,
  .awards .wrap,
  .contact .wrap { grid-template-columns: 1fr; }
  .site-nav nav ul { gap: 16px; }
  section { padding: 56px 0; }
}
@media (max-width: 560px) {
  .site-nav nav ul { display: none; }
}
