/* =============================================
   Thurloxton Farm — Site Stylesheet
   Rebuilt from original Divi layout
   ============================================= */

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

:root {
  --teal:         #34545a;
  --teal-dark:    #2a444a;
  --teal-light:   #4a7a82;
  --gold:         #c4a35a;
  --gold-dark:    #a08040;
  --cream:        #f9f9f4;
  --white:        #ffffff;
  --dark:         #333333;
  --grey:         #666666;
  --grey-light:   #999999;
  --orange:       #e09900;
  --border:       #e5e5e0;
  --font-head:    'Paprika', 'Georgia', serif;
  --font-body:    'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-content: 'Lato', 'Montserrat', sans-serif;
  --font-serif:   'Merriweather', 'Georgia', serif;
  --max-width:    1080px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--dark);
  background: var(--white);
}

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

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-light); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.3;
  color: var(--dark);
  margin-bottom: 0.5em;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; margin-top: 0; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; color: var(--grey); font-family: var(--font-body); font-weight: 400; }

p { margin-bottom: 1em; }

ul, ol { margin: 0 0 1em 1.5em; }
li { margin-bottom: 0.3em; }

strong { font-weight: 700; }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

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

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
}

.site-logo { display: flex; align-items: center; }
.logo-img { max-height: 50px; width: auto; }

/* Nav */
.main-nav { display: flex; align-items: center; }

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

.nav-menu li a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 0.15s, background 0.15s;
  border-radius: 4px;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 1.4rem;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  border-radius: 4px;
}

/* --- Hero --- */
.hero {
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(52, 84, 90, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  padding: 3rem 2rem;
}

.hero-logo {
  max-width: 320px;
  margin: 0 auto 2rem;
}

.hero h1 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.2s, transform 0.15s;
  margin-top: 0.5rem;
}
.btn:hover {
  background: var(--teal-dark);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-white {
  background: var(--white);
  color: var(--teal);
}
.btn-white:hover {
  background: var(--cream);
  color: var(--teal-dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
}

/* --- Sections --- */
.section {
  padding: 4rem 0;
}

/* Announcement */
.announcement {
  background: var(--cream);
  padding: 2.5rem 0;
  text-align: center;
}

.announcement h4 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--dark);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Latest Update */
.section-latest-update {
  background: var(--cream);
  padding: 2.5rem 0;
  text-align: center;
  font-family: var(--font-body);
}

.section-latest-update p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--grey);
  font-size: 0.95rem;
  line-height: 1.7;
}

.section-latest-update strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

/* PYO Intro */
.section-pyo {
  background: var(--white);
}

.pyo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.pyo-text h3 {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.pyo-text h4 {
  color: var(--orange);
  font-style: italic;
  margin-bottom: 1rem;
}

.pyo-image img {
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Updates */
.section-updates {
  background: rgba(68, 55, 2, 0.75);
  color: var(--white);
  text-align: center;
}

.section-updates h2 {
  color: var(--white);
}

.section-updates h4 {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
}

.section-updates p {
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255,255,255,0.9);
}

.subscribe-form {
  display: flex;
  gap: 0.5rem;
  max-width: 460px;
  margin: 1.5rem auto 0;
  justify-content: center;
}

.subscribe-form input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 4px;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.4;
}

.subscribe-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.5);
}

.subscribe-form input[type="email"]:focus {
  outline: none;
  background: rgba(255,255,255,0.22);
}

.btn-subscribe {
  margin-top: 0;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
}

.subscribe-msg {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.subscribe-msg.success { color: #b5e6a3; }
.subscribe-msg.error { color: #ffb3b3; }

/* Farm */
.section-farm {
  background: var(--cream);
}

.farm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.farm-image img {
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.farm-text p {
  font-family: var(--font-content);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--grey);
}

/* Pumpkins */
.section-pumpkins {
  background: var(--white);
}

.pumpkin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.pumpkin-image img {
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Team */
.section-team {
  background: var(--white);
  text-align: center;
}

.section-team p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-content);
  color: var(--grey);
}

.section-team h3 {
  font-size: 1.4rem;
  color: var(--teal);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

/* Testimonials */
.section-testimonials {
  background: #fafafa;
}

.section-testimonials h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.testimonial {
  background: var(--white);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: relative;
}

.testimonial blockquote {
  margin: 0;
  padding: 0;
  font-family: var(--font-content);
  font-style: italic;
  color: var(--grey);
  line-height: 1.7;
  font-size: 0.95rem;
}

.testimonial blockquote::before {
  content: "\201C";
  font-size: 3rem;
  color: var(--teal-light);
  position: absolute;
  top: 0.5rem;
  left: 0.75rem;
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-weight: 600;
  color: var(--teal);
  font-size: 0.9rem;
}

/* Bottom CTA */
.section-cta {
  background: var(--teal);
  color: var(--white);
  text-align: center;
  padding: 4rem 0;
}

.section-cta h2 {
  color: var(--white);
  font-size: 2rem;
}

.section-cta p {
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Page Content --- */
.page-content {
  padding: 3rem 0 4rem;
}

.page-title {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--teal);
  color: var(--dark);
}

.entry-content {
  max-width: 760px;
}

.entry-content h2 {
  color: var(--teal);
  margin-top: 2rem;
}

.entry-content h3 {
  color: var(--teal-dark);
  margin-top: 1.5rem;
}

.entry-content p,
.entry-content li {
  font-family: var(--font-content);
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--grey);
}

.entry-content a {
  color: var(--teal);
  text-decoration: underline;
}

/* --- FAQ / accordion --- */
.faq-section { margin-top: 2rem; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.faq-question {
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  cursor: default;
}

.faq-answer {
  margin-top: 0.4rem;
  color: var(--grey);
  font-family: var(--font-content);
  font-size: 0.95rem;
}

/* --- Events / tickets --- */
.events-list { list-style: none; margin: 0; padding: 0; }

.event-item {
  background: var(--white);
  border-left: 4px solid var(--teal);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  border-radius: 0 6px 6px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.event-item .event-name { font-weight: 600; }
.event-item .event-time { color: var(--grey); font-size: 0.9rem; }

/* --- Table --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

th {
  background: var(--teal);
  color: var(--white);
  padding: 0.6rem 1rem;
  text-align: left;
  font-weight: 600;
}

td {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border);
}

tr:nth-child(even) td { background: rgba(52, 84, 90, 0.04); }

/* --- Contact Info --- */
.contact-info {
  background: var(--white);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 1.5rem;
}

.contact-info p { margin-bottom: 0.5rem; }
.contact-info a { font-weight: 600; }

/* --- Team grid --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.team-card {
  background: var(--white);
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-top: 4px solid var(--teal);
}

.team-card h3 { margin-top: 0; font-size: 1rem; color: var(--dark); }
.team-card p { font-size: 0.9rem; color: var(--grey); margin: 0; }

.team-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

/* About page photo */
.about-photo {
  margin: 2rem 0;
}

.about-photo img {
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  max-width: 600px;
}

.about-photo figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--grey-light);
}

/* --- Notice banner --- */
.notice {
  background: #FFF3CD;
  border: 1px solid #FFEAA0;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: #856404;
}

/* --- Fruit availability grid --- */
.fruit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.fruit-card {
  background: var(--white);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-top: 4px solid var(--teal);
}

.fruit-card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.fruit-card h3 { margin-top: 0; font-size: 1rem; color: var(--dark); }
.fruit-card p { font-size: 0.85rem; color: var(--grey); margin: 0; }

/* --- Footer --- */
.site-footer {
  background: var(--teal);
  color: rgba(255,255,255,0.8);
  padding: 2.5rem 2rem 0;
  margin-top: 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: start;
  padding-bottom: 2rem;
}

.footer-logo img {
  max-width: 160px;
  height: auto;
}

.footer-contact p { margin-bottom: 0.3rem; font-size: 0.9rem; }
.footer-contact a { color: rgba(255,255,255,0.9); text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }

.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 0.3rem; }
.footer-nav a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-nav a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  padding: 1rem 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero { min-height: 50vh; }
  .hero h1 { font-size: 1rem; letter-spacing: 3px; }
  .hero-logo { max-width: 220px; }

  .nav-toggle { display: block; }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--teal);
    padding: 0.5rem 1rem 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 99;
  }

  .nav-menu.open { display: flex; }
  .nav-menu li a { padding: 0.6rem 0.5rem; font-size: 1rem; }

  .site-header { position: relative; }

  .pyo-grid,
  .farm-grid,
  .pumpkin-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .testimonials-grid { grid-template-columns: 1fr; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-logo img { max-width: 120px; }

  .section { padding: 2.5rem 0; }
}

@media (max-width: 440px) {
  h1 { font-size: 1.6rem; }
  .fruit-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}
