/* ============================================================
   Albarakat Goat Farm — Stylesheet
   Edit colors in :root below to change the whole site's palette.
   ============================================================ */

:root {
  --green-dark: #2f3e1f;
  --green: #4a5d2e;
  --green-light: #7a9450;
  --cream: #faf7f0;
  --gold: #c89a3c;
  --gold-light: #e0b95c;
  --text-dark: #2a2a22;
  --text-light: #6b6b5e;
  --white: #ffffff;
  --border: #e4ddc9;
  --radius: 12px;
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 28px rgba(0,0,0,0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
}

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

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 70px 0;
}

.alt-bg {
  background: #f1ede1;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.site-header nav {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span:not(.leaf) {
  color: var(--gold);
  font-weight: 600;
}

.leaf { font-size: 1.4rem; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  color: var(--text-dark);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--green); }

.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--green-dark);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,28,12,0.55) 0%, rgba(20,28,12,0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  line-height: 1.15;
  margin: 18px 0;
}

.hero .lede {
  font-size: 1.15rem;
  opacity: 0.92;
  max-width: 560px;
  margin: 0 auto 28px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Stamp / labels ---------- */
.stamp {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-light);
  background: rgba(122,148,80,0.12);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.hero .stamp {
  color: var(--gold-light);
  background: rgba(255,255,255,0.12);
}

.stamp.gold {
  color: var(--gold);
  background: rgba(200,154,60,0.12);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover { transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}

.btn-ghost:hover { background: rgba(255,255,255,0.12); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
}

.btn-gold:hover { background: var(--gold-light); }

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover { background: var(--green-dark); }

.btn-card {
  width: 100%;
  margin-top: 4px;
}

/* ---------- Section heads ---------- */
.section-head {
  max-width: 600px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head h2 { margin: 6px 0 12px; font-size: 2rem; }
.section-head p { color: var(--text-light); margin: 0; }

h2 { color: var(--green-dark); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-grid h2 { font-size: 2rem; margin: 6px 0 16px; }
.about-grid p { color: var(--text-light); }

.about-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.about-stats {
  display: flex;
  gap: 36px;
  margin-top: 28px;
}

.about-stats div { display: flex; flex-direction: column; }

.about-stats strong {
  font-size: 1.7rem;
  color: var(--gold);
}

.about-stats span {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ---------- Cards (goats + feed) ---------- */
.card-grid, .feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-img { aspect-ratio: 4/3; overflow: hidden; }

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body { padding: 22px; }

.card-body h3 { margin: 0 0 8px; color: var(--green-dark); }

.card-body p {
  color: var(--text-light);
  font-size: 0.94rem;
  margin: 0 0 14px;
}

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(200,154,60,0.1);
  padding: 4px 10px;
  border-radius: 14px;
  margin-bottom: 12px;
}

.card-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 14px;
}

.card-price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-light);
}

.unit-toggle {
  text-align: center;
  color: var(--text-light);
  font-size: 0.92rem;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.g-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g-big { grid-column: span 2; grid-row: span 2; }
.g-wide { grid-column: span 2; aspect-ratio: auto; }

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

.video-embed iframe,
.video-embed video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.play-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(0,0,0,0.6);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 4px;
  pointer-events: none;
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 28px 24px;
  background: var(--green-dark);
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,20,14,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 460px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 30px;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-light);
}

.modal-head h3 {
  margin: 0 0 8px;
  color: var(--green-dark);
}

.modal-head p {
  color: var(--text-light);
  font-size: 0.92rem;
  margin: 0 0 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin: 14px 0 6px;
}

.form-input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
}

.form-input:focus {
  outline: none;
  border-color: var(--green-light);
}

.modal-placeholder-contact {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-placeholder-contact div {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  gap: 12px;
}

.modal-placeholder-contact strong { color: var(--text-dark); }
.modal-placeholder-contact span { color: var(--text-light); text-align: right; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { order: -1; }
  .card-grid, .feed-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .g-big { grid-column: span 2; }
}

@media (max-width: 640px) {
  .menu-btn { display: block; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    display: none;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 14px 24px;
    border-top: 1px solid var(--border);
  }

  .hero h1 { font-size: 2.1rem; }

  .card-grid, .feed-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .g-big, .g-wide { grid-column: span 1; grid-row: span 1; }

  .about-stats { gap: 22px; flex-wrap: wrap; }
}
