/* Box4 Ranch Aberdeens — shared styles */
:root {
  --cream: #f7f1e6;
  --cream-dark: #ebe3d4;
  --brown: #4a3426;
  --brown-deep: #2f2118;
  --green: #3d5a3a;
  --green-deep: #2a3f28;
  --accent: #8b5e3c;
  --text: #2a2118;
  --muted: #5c4f42;
  --white: #fffef9;
  --shadow: rgba(47, 33, 24, 0.18);
  --max: 1100px;
  --radius: 10px;
  --font: "Georgia", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
}

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

a {
  color: var(--green-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Header / nav */
.site-header {
  background: var(--brown-deep);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px var(--shadow);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.logo {
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.logo:hover,
.logo:focus-visible {
  color: var(--cream-dark);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--accent);
}

/* Layout */
main {
  min-height: 60vh;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  font-family: var(--font);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  color: var(--brown-deep);
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.page-header p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

/* Hero (home) */
.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: flex-end;
  background-color: var(--brown-deep);
  background-image: url("assets/box4-ranch.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(47, 33, 24, 0.88) 0%,
    rgba(47, 33, 24, 0.45) 45%,
    rgba(47, 33, 24, 0.25) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.25rem 2.75rem;
  color: var(--cream);
}

.hero-content h1 {
  font-family: var(--font);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  margin: 0 0 0.6rem;
  font-weight: 700;
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.hero-content .tagline {
  margin: 0 0 1.5rem;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--cream-dark);
  max-width: 36rem;
}

.btn {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--green-deep);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border-color: var(--cream);
  color: var(--cream);
  margin-left: 0.65rem;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(247, 241, 230, 0.15);
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-actions .btn-secondary {
  margin-left: 0;
}

/* Intro strip */
.intro {
  background: var(--cream-dark);
  border-bottom: 1px solid #d9cfc0;
}

.intro .container {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.intro p {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.08rem;
}

/* Bull cards */
.bulls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

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

.bull-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 18px var(--shadow);
  border: 1px solid #e0d5c5;
  display: flex;
  flex-direction: column;
}

.bull-photo {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center center;
  background: var(--cream-dark);
  display: block;
}

.bull-body {
  padding: 1.5rem 1.4rem 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bull-body h2 {
  font-family: var(--font);
  font-size: 1.65rem;
  margin: 0 0 0.35rem;
  color: var(--brown-deep);
}

.bull-meta {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.bull-body p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  flex: 1;
}

.bull-body p:last-child {
  margin-bottom: 0;
}

/* About / contact */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}

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

.panel {
  background: var(--white);
  border: 1px solid #e0d5c5;
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 2px 12px var(--shadow);
}

.panel h2 {
  font-family: var(--font);
  font-size: 1.4rem;
  margin: 0 0 0.85rem;
  color: var(--brown-deep);
}

.panel p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.panel p:last-child {
  margin-bottom: 0;
}

.contact-email {
  font-size: 1.15rem;
  font-weight: 600;
  word-break: break-all;
}

.placeholder-note {
  font-style: italic;
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin: 1rem 0 0;
}

/* Footer */
.site-footer {
  background: var(--brown-deep);
  color: var(--cream-dark);
  margin-top: 3rem;
}

.site-footer .container {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--cream);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
}

/* Photo fallback when images missing */
.photo-fallback {
  min-height: 12rem;
  width: 100%;
  background: linear-gradient(145deg, var(--cream-dark), #cfc3b0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
  padding: 1rem;
}


/* Pictures gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

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

.gallery-item {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #e0d5c5;
  box-shadow: 0 4px 18px var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: var(--cream-dark);
}

.gallery-item-wide {
  grid-column: 1 / -1;
}


.gallery-note {
  margin: 0.75rem 0 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.02rem;
}

/* Available listings */
.listings {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.listing-card {
  display: grid;
  grid-template-columns: minmax(12rem, 22rem) 1fr;
  gap: 0;
  align-items: stretch;
  background: var(--white);
  border: 1px solid #e0d5c5;
  border-radius: var(--radius);
  box-shadow: 0 4px 18px var(--shadow);
  overflow: hidden;
}

@media (max-width: 720px) {
  .listing-card {
    grid-template-columns: 1fr;
  }
}

.listing-photo-wrap {
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 12rem;
}

.listing-photo {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.listing-body {
  padding: 1.5rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
}

.listing-body h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font);
  font-size: 1.55rem;
  color: var(--brown-deep);
}

.listing-tag {
  font-size: 0.85em;
  font-weight: 400;
  color: var(--muted);
}

.listing-badge {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 0.65rem;
  padding: 0.2rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: var(--cream-dark);
  border-radius: 999px;
}

.listing-facts {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.01em;
}

.listing-body > p:not(.listing-badge):not(.listing-facts) {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.listings-contact {
  margin: 0;
  padding: 1.1rem 1.25rem;
  background: var(--cream-dark);
  border: 1px solid #e0d5c5;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 1.02rem;
}

.listings-contact a {
  font-weight: 600;
}
