/* ==============================================
   Jolly Acres Farms – Main Stylesheet
   Theme: Kelly Green (#3CB043) & White
   Fonts: Playfair Display (headings), Lato (body)
   ============================================== */

/* --- Reset & Root ----------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green:        #237643;
  --green-dark:   #2A7D30;
  --green-deep:   #1E5C24;
  --green-light:  #E8F5E9;
  --green-complement: #d2ebc6;
  --white:        #FFFFFF;
  --off-white:    #F7FAF7;
  --text:         #2C2C2C;
  --text-muted:   #666666;
  --gold:         #C8860A;
  --border:       #C8E6C9;
  --radius:       8px;
  --shadow:       0 2px 14px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.13);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

/* --- Announcement Banner ---------------------- */
.announcement-bar {
  background: var(--green-complement);
  color: var(--green-deep);
  text-align: center;
  padding: 10px 1.5rem;
  font-size: 0.92rem;
  line-height: 1.4;
}

.announcement-bar p { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.5rem; }

.announcement-link {
  display: inline-block;
  margin-left: 0.6rem;
  background: rgba(30,92,36,0.15);
  color: var(--green-deep);
  padding: 2px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 0.2s;
  white-space: nowrap;
}

.announcement-link:hover { background: rgba(30,92,36,0.28); }

/* --- Header & Nav ----------------------------- */
header {
  background: var(--green);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

nav {
  width: 100%;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  flex-shrink: 0;
}

.logo img {
  height: 52px;
  width: 52px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
}

.logo-text { display: flex; flex-direction: column; line-height: 1.15; }

.logo-text .brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.logo-text .tagline {
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.82;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  color: var(--white);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, opacity 0.2s;
}

.nav-links a:hover,
.nav-links a.active { border-bottom-color: var(--white); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* --- Buttons ---------------------------------- */
.btn {
  display: inline-block;
  padding: 0.78rem 2rem;
  border-radius: 50px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

.btn-white  { background: var(--white); color: var(--green-dark); }
.btn-green  { background: var(--green); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

/* --- Hero ------------------------------------- */
.hero {
  background-image: url('../Images/JollyAcres-0029.jpg');
  background-size: cover;
  background-position: center 30%;
  color: var(--white);
  text-align: center;
  padding: 110px 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
}

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

.hero-logo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: contain;
  margin: 0 auto 2rem;
  border: 5px solid rgba(255,255,255,0.45);
  box-shadow: 0 8px 36px rgba(0,0,0,0.28);
  background: rgba(255,255,255,0.08);
  padding: 6px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.55), 0 4px 24px rgba(0,0,0,0.35);
}

.hero .hero-sub {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 520px;
  margin: 0 auto 2.2rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.85), 0 4px 20px rgba(0,0,0,0.65);
}

.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- Page Hero (inner pages) ------------------ */
.page-hero {
  background: linear-gradient(145deg, var(--green-deep), var(--green));
  color: var(--white);
  padding: 72px 2rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.6rem;
}

.page-hero p {
  opacity: 0.85;
  max-width: 520px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* --- Section Shared --------------------------- */
section { padding: 84px 2rem; }

.section-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--green-dark);
  margin-bottom: 0.4rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 580px;
}

.divider {
  width: 56px;
  height: 3px;
  background: var(--green);
  border-radius: 3px;
  margin: 0.9rem 0 1.8rem;
}

/* --- Feature Cards (Homepage) ----------------- */
.features { background: var(--off-white); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--green);
  transition: transform 0.22s, box-shadow 0.22s;
  overflow: hidden;
}

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

.card-icon { font-size: 2.4rem; margin-bottom: 1rem; }

.card-img {
  margin: -2rem -1.8rem 1.5rem;
  height: 200px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}

.card:hover .card-img img { transform: scale(1.04); }

.card h3 {
  font-size: 1.15rem;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}

.card p { color: var(--text-muted); font-size: 0.95rem; }

/* --- Market Banner (Homepage) ----------------- */
.market-banner {
  background: var(--green-complement);
  color: var(--green-deep);
  text-align: center;
}

.market-banner h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 2rem; }

.market-details {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.market-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.market-item .m-icon  { font-size: 2rem; margin-bottom: 0.2rem; }
.market-item .m-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.75; }
.market-item .m-value { font-weight: 700; font-size: 1rem; }
.market-item .m-value a { color: inherit; }

/* --- About: Two-Column Layout ----------------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col.flip { direction: rtl; }
.two-col.flip > * { direction: ltr; }

.story-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

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

.story-text .eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.story-text h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--green-dark);
  margin-bottom: 1rem;
}

.story-text p { color: var(--text-muted); margin-bottom: 0.9rem; }

/* --- Goat Cards ------------------------------- */
.goat-section { background: var(--off-white); }

.goat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.goat-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.22s, box-shadow 0.22s;
}

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

.goat-img {
  height: 260px;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  overflow: hidden;
}

.goat-img img { width: 100%; height: 100%; object-fit: contain; object-position: center; }

.goat-body { padding: 1.5rem; }

.goat-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 0.6rem;
}

.goat-badge.active    { background: var(--green-light); color: var(--green-dark); }
.goat-badge.memorial  { background: #FFF8E1; color: #7B5800; }

.goat-body h3 { font-size: 1.25rem; color: var(--green-dark); margin-bottom: 0.25rem; }
.goat-body .dates { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.6rem; font-style: italic; }
.goat-body p  { color: var(--text-muted); font-size: 0.95rem; }

/* --- Contact Page ----------------------------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-sidebar h2 {
  font-size: 1.9rem;
  color: var(--green-dark);
  margin-bottom: 0.4rem;
}

.contact-sidebar > p { color: var(--text-muted); margin-bottom: 2rem; }

.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.info-icon {
  width: 46px;
  height: 46px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-text .i-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
}

.info-text .i-value { font-size: 0.95rem; color: var(--text); }
.info-text .i-value a { color: var(--green-dark); }
.info-text .i-value a:hover { text-decoration: underline; }

.social-row { display: flex; gap: 0.8rem; margin-top: 2rem; flex-wrap: wrap; }

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.2rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: transform 0.2s, opacity 0.2s;
}

.social-btn:hover { transform: translateY(-2px); opacity: 0.9; }
.social-btn.fb { background: #1877F2; color: #fff; }
.social-btn.ig {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
}

/* Contact Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.contact-form-wrap h2 {
  font-size: 1.9rem;
  color: var(--green-dark);
  margin-bottom: 1.5rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group { margin-bottom: 1.2rem; }

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.72rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: var(--off-white);
  transition: border-color 0.2s, background 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green);
  background: var(--white);
}

.form-group textarea { resize: vertical; min-height: 140px; }

.form-submit { margin-top: 0.5rem; }
.form-submit .btn { width: 100%; justify-content: center; font-size: 1rem; padding: 0.9rem; }

.form-success {
  display: none;
  margin-top: 1.2rem;
  background: var(--green-light);
  border: 1.5px solid var(--green);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  color: var(--green-dark);
  font-weight: 600;
  text-align: center;
}

/* --- Events Page ------------------------------ */
.events-intro { background: var(--off-white); padding: 56px 2rem; }

.regular-markets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.regular-market-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--green);
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.rm-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.rm-body h3 { font-size: 1.15rem; color: var(--green-dark); margin-bottom: 0.3rem; }
.rm-body .rm-schedule {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 0.4rem;
}

.rm-body p { font-size: 0.92rem; color: var(--text-muted); }

/* Upcoming events */
.upcoming-events { background: var(--white); }

#events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.event-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.22s, box-shadow 0.22s;
}

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

.event-date-bar {
  background: var(--green);
  color: var(--white);
  padding: 1rem;
  text-align: center;
}

.event-date-bar .e-month { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.85; }
.event-date-bar .e-day   { font-family: 'Playfair Display', serif; font-size: 2.8rem; line-height: 1; }
.event-date-bar .e-year  { font-size: 0.78rem; opacity: 0.8; }

.event-body { padding: 1.2rem 1.4rem; }
.event-body h3 { font-size: 1.05rem; color: var(--green-dark); margin-bottom: 0.6rem; }

.event-meta { display: flex; flex-direction: column; gap: 0.3rem; }
.event-meta span { font-size: 0.87rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.4rem; }

.events-note {
  margin-top: 2.5rem;
  padding: 1.2rem 1.5rem;
  background: var(--green-light);
  border-radius: var(--radius);
  border-left: 4px solid var(--green);
  color: var(--green-dark);
  font-size: 0.95rem;
}

/* --- Footer ----------------------------------- */
footer {
  background: var(--green-complement);
  color: var(--green-deep);
  padding: 3.5rem 2rem 1.8rem;
}

.footer-inner { max-width: 1140px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(30,92,36,0.18);
}

.footer-brand .f-name {
  font-family: 'Playfair Display', serif;
  color: var(--green-deep);
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.footer-brand p { font-size: 0.92rem; line-height: 1.65; margin-bottom: 1.2rem; }

.footer-social { display: flex; gap: 0.7rem; }

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(30,92,36,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: background 0.2s;
}

.footer-social a:hover { background: var(--green); }

.footer-col h4 {
  color: var(--green-deep);
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.55rem; }
.footer-col ul li a { font-size: 0.92rem; color: var(--green-dark); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--green-deep); }

.footer-col address { font-style: normal; font-size: 0.92rem; line-height: 1.85; }

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(30,92,36,0.65);
}

/* --- Responsive ------------------------------- */
@media (max-width: 900px) {
  .two-col, .two-col.flip {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2.5rem;
  }

  .contact-wrap { grid-template-columns: 1fr; gap: 2.5rem; }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  nav { padding: 0 1.2rem; }

  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: var(--green-deep);
    flex-direction: column;
    padding: 1.5rem 2rem 2rem;
    gap: 1.3rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  }

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

  .hero  { padding: 75px 1.2rem; }
  section { padding: 60px 1.2rem; }
  .events-intro { padding: 44px 1.2rem; }

  .form-row { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { grid-column: auto; }

  .market-details { gap: 2rem; }
}
