/* Clyde Cattle Co - Mobile Friendly Site Styles */
:root {
  --brown: #5b3218;
  --dark-brown: #2f1b0d;
  --tan: #f4ead8;
  --cream: #fffaf0;
  --gold: #c08a37;
  --green: #3d5a35;
  --text: #2a211b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

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

.site-header {
  background: linear-gradient(135deg, var(--dark-brown), var(--brown));
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 3px 12px rgba(0,0,0,.2);
}

.nav-wrap {
  width: min(1120px, 94%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.brand {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 999px;
}

.nav a:hover, .nav a.active { background: rgba(255,255,255,.15); }

.hero {
  min-height: 62vh;
  background:
    linear-gradient(rgba(47,27,13,.65), rgba(47,27,13,.55)),
    url('../images/cattle-hero.svg') center/cover no-repeat;
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 20px;
}

.hero-content { width: min(850px, 100%); }
.hero h1 { font-size: clamp(2.2rem, 7vw, 4.8rem); margin: 0 0 15px; line-height: 1.05; }
.hero p { font-size: clamp(1.1rem, 2.4vw, 1.45rem); margin: 0 auto 28px; max-width: 720px; }

.btn {
  display: inline-block;
  background: var(--gold);
  color: #1e1209;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  min-height: 48px;
}

.btn:hover { filter: brightness(.95); }

.container { width: min(1120px, 94%); margin: 0 auto; padding: 54px 0; }
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); color: var(--brown); margin: 0 0 14px; }
.lead { font-size: 1.15rem; max-width: 850px; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 28px;
}

.card {
  background: #fff;
  border: 1px solid rgba(91,50,24,.13);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 8px 22px rgba(47,27,13,.08);
}
.card h3 { margin-top: 0; color: var(--green); font-size: 1.35rem; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

.photo-box {
  background: var(--tan);
  border-radius: 20px;
  padding: 16px;
  border: 1px solid rgba(91,50,24,.16);
}

.form-card {
  background: #fff;
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 8px 22px rgba(47,27,13,.08);
}

label { display: block; font-weight: 700; margin: 14px 0 6px; }
input, textarea {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  border: 1px solid #cdbda6;
  border-radius: 10px;
  font-family: inherit;
}
textarea { min-height: 150px; resize: vertical; }

.contact-info p { margin: 8px 0; }

.footer {
  background: var(--dark-brown);
  color: #fff;
  text-align: center;
  padding: 28px 18px;
}

.notice {
  background: var(--tan);
  border-left: 5px solid var(--gold);
  padding: 16px 18px;
  border-radius: 12px;
  margin-top: 22px;
}

@media (max-width: 860px) {
  .nav-wrap { flex-direction: column; align-items: stretch; gap: 10px; }
  .brand { text-align: center; white-space: normal; }
  .nav { justify-content: center; flex-wrap: wrap; gap: 8px; }
  .nav a { padding: 10px 12px; }
  .hero { min-height: 54vh; padding: 58px 18px; }
  .grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .container { width: 92%; padding: 38px 0; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .nav { flex-direction: column; }
  .nav a { width: 100%; text-align: center; background: rgba(255,255,255,.08); }
  .hero h1 { font-size: 2.25rem; }
  .btn { width: 100%; text-align: center; }
  .card, .form-card { padding: 18px; border-radius: 14px; }
  input, textarea, button { width: 100%; }
}

/* Image additions */
.ranch-hero {
  background:
    linear-gradient(rgba(47,27,13,.62), rgba(47,27,13,.55)),
    url('../images/ranch-bg.jpg') center/cover no-repeat;
}

.hero-logo {
  width: min(230px, 58vw);
  height: auto;
  margin: 0 auto 18px;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
  background: rgba(255,255,255,.85);
}

.contact-logo {
  width: min(240px, 70vw);
  height: auto;
  margin: 0 0 18px;
  border-radius: 18px;
}

.image-grid {
  display: grid;
  gap: 22px;
  margin: 28px 0;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.image-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(47,27,13,.16);
  background: #fff;
}

.image-grid img,
.photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-grid:not(.compact) figure {
  aspect-ratio: 4 / 3;
}

.compact figure {
  aspect-ratio: 3 / 2;
}

.feature-section {
  margin-top: 34px;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .image-grid:not(.compact) figure,
  .compact figure {
    aspect-ratio: auto;
  }

  .image-grid img,
  .photo-box img {
    height: auto;
  }

  .hero-logo {
    width: min(180px, 62vw);
  }

  .contact-logo {
    margin-left: auto;
    margin-right: auto;
  }
}
