/*! HTML5 Boilerplate v9.0.0-RC1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

/*header*/
/* General Header Styles */
.header, .navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background-image: url('../img/background2.png'); 
  background-size: 200px 200px;
  background-repeat: repeat; 
  color: white;
}

.logo img { height: 140px; }

/*body*/
  :root {
    --brown-dark: #3b2010;
    --brown-mid: #5c3317;
    --brown-light: #8b5c2a;
    --cream: #f5ead6;
    --cream-dark: #e8d5b0;
    --gold: #c9923a;
    --gold-bright: #e8b84b;
    --green: #4a6741;
    --red-barn: #8b2018;
    --shadow: rgba(0, 0, 0, 0.5);
  }
  
body {
  background-image: url('../img/background2.jpg'); 
  background-size: cover;
  background-repeat: no-repeat; 
}

/* ── HEADER ── */
  header {
    background: url('../img/background.png') repeat center center;
    background-size: 400px auto;
    border-bottom: 6px solid var(--brown-dark);
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    gap: 16px;
  }
  .logo-wrap {
    flex-shrink: 0;
    cursor: pointer;
  }
  .logo-wrap img {
    height: 110px;
    width: auto;
    display: block;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.7));
    transition: transform 0.2s;
  }
  .logo-wrap img:hover { transform: scale(1.04); }
  .site-title {
    font-family: 'Rye', serif;
    color: var(--cream);
    text-align: center;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.4);
    flex: 1;
    line-height: 1.2;
  }

  .site-title .main { font-size: clamp(1.4rem, 3.5vw, 2.4rem); }
  .site-title .sub { font-size: clamp(0.75rem, 1.8vw, 1.1rem); color: var(--gold-bright); letter-spacing: 0.12em; }


  /* ── NAV ── */
  nav {
   /* background: var(--brown-dark);*/
    border-bottom: 3px solid var(--gold);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  nav::-webkit-scrollbar { display: none; }
  .nav-inner {
    display: flex;
    justify-content: center;
    align-items: stretch;
    min-width: max-content;
    margin: 0 auto;
  }
  .nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    cursor: pointer;
    border: none;
    background: transparent;
    gap: 4px;
    position: relative;
    transition: background 0.2s;
    text-decoration: none;
  }
  .nav-btn:hover, .nav-btn.active {
    background: rgba(255,255,255,0.1);
  }
  .nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 60%; height: 3px;
    background: var(--gold-bright);
    border-radius: 2px 2px 0 0;
  }
  .nav-medallion {
    /*width: 58px;*/ height: 50px;
    border-radius: 0%;
    object-fit: cover;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    transition: transform 0.2s, filter 0.2s;
  }
  .nav-btn:hover .nav-medallion,
  .nav-btn.active .nav-medallion {
    transform: scale(1.12);
    filter: drop-shadow(0 3px 8px rgba(201,146,58,0.6));
  }
  .nav-label {
    font-family: 'Rye', serif;
    font-size: 0.6rem;
    color: var(--cream);
    letter-spacing: 0.05em;
    white-space: nowrap;
  }
  .nav-btn.active .nav-label { color: var(--gold-bright); }
  
  
  /* ── PAGE SECTIONS ── */
  .page { display: none; animation: fadeIn 0.4s ease; }
  .page.active { display: block; }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

  /* ── HERO ── */
  .hero {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown-mid) 50%, var(--brown-dark) 100%);
  }
  .hero-content {
    text-align: center;
    z-index: 2;
    padding: 40px 20px;
  }
  .hero h1 {
    font-family: 'Rye', serif;
    font-size: clamp(2rem, 6vw, 4rem);
    color: var(--cream);
    text-shadow: 3px 3px 10px rgba(0,0,0,0.8);
    line-height: 1.2;
    margin-bottom: 16px;
  }
  .hero p {
    font-family: 'Lora', serif;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--cream-dark);
    max-width: 600px;
    margin: 0 auto 24px;
    font-style: italic;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
  }
  .hero-deco {
    position: absolute;
    opacity: 0.08;
    font-size: 18rem;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
  }

  /* ── DIVIDER ── */
  .divider {
    text-align: center;
    padding: 8px 0;
    color: var(--gold);
    font-size: 1.4rem;
    letter-spacing: 0.5em;
  }

  /* ── CONTENT WRAPPER ── */
  .content-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 60px;
  }

  /* ── CTA BUTTON ── */
  .cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), var(--brown-light));
    color: var(--brown-dark);
    font-family: 'Rye', serif;
    font-size: 1rem;
    padding: 14px 36px;
    border-radius: 40px;
    border: 2px solid var(--brown-dark);
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.05em;
    margin-top: 20px;
  }
  
  .cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  }
  
    /* ── CARD GRID ── */
  .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 40px;
  }
  .card {
    background: linear-gradient(160deg, #fdf4e3 0%, #f0ddb8 100%);
    border: 2px solid var(--gold);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  }
  .card-img {
    width: 100%; height: 200px;
    object-fit: cover;
    display: block;
    background: var(--brown-light);
  }
  .card-img-placeholder {
    width: 100%; height: 200px;
    background: linear-gradient(135deg, var(--brown-mid), var(--brown-dark));
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem;
  }
  .card-body { padding: 20px; }
  .card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--brown-dark);
    margin-bottom: 8px;
  }
  .card-text {
    font-size: 0.95rem;
    color: #5a3a1a;
    line-height: 1.7;
  }

/* ── SECTION HEADING ── */
  .section-heading {
    font-family: 'Rye', serif;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    color: var(--cream-dark);
    text-align: center;
    margin-bottom: 8px;
    position: relative;
  }
  .section-heading::after {
    content: '';
    display: block;
    width: 80px; height: 3px;
    background: var(--gold);
    margin: 10px auto 0;
    border-radius: 2px;
  }
  
  /* ── FEATURE BAND ── */
  .feature-band {
    background: linear-gradient(135deg, var(--brown-dark), var(--brown-mid));
    color: var(--cream);
    padding: 50px 20px;
    text-align: center;
    border-top: 4px solid var(--gold);
    border-bottom: 4px solid var(--gold);
    margin: 40px 0;
  }
  .feature-band h2 {
    font-family: 'Rye', serif;
    font-size: clamp(1.3rem, 3vw, 2rem);
    margin-bottom: 16px;
  }
  .feature-band p {
    max-width: 700px;
    margin: 0 auto;
    font-style: italic;
    opacity: 0.9;
    font-size: 1.05rem;
    line-height: 1.8;
  }

  /* ── TWO-COL LAYOUT ── */
  .two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
  }
  @media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }
  .two-col-img {
    width: 100%;
    border-radius: 12px;
    border: 3px solid var(--gold);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    background: var(--brown-light);
    min-height: 240px;
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem;
    overflow: hidden;
  }
  .two-col-img img { width: 100%; height: 100%; object-fit: cover; }
  .two-col-text h3 {
    font-family: 'Rye', serif;
    font-size: 1.4rem;
    color: var(--cream-dark);
    margin-bottom: 12px;
  }
  .two-col-text p {
    line-height: 1.8;
    color: var(--cream-dark);
    font-size: 1rem;
  }

  /* ── HOURS BOX ── */
  .info-box {
    background: linear-gradient(160deg, #fdf4e3, #f0ddb8);
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 28px 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    margin-top: 32px;
  }
  .info-box h3 {
    font-family: 'Rye', serif;
    font-size: 1.2rem;
    color: var(--brown-dark);
    margin-bottom: 14px;
    display: flex; align-items: center; gap: 8px;
  }
  .info-box p, .info-box li {
    line-height: 1.9; color: #4a2e0e; font-size: 0.98rem;
  }
  .info-box ul { list-style: none; padding: 0; }
  .info-box ul li::before { content: '🌿 '; }

  /* ── INFO GRID ── */
  .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 36px;
  }
  .info-tile {
    background: linear-gradient(160deg, #fdf4e3, #f0ddb8);
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  }
  .info-tile .icon { font-size: 2.4rem; margin-bottom: 10px; }
  .info-tile h4 { font-family: 'Playfair Display', serif; margin-bottom: 8px; color: var(--brown-dark); }
  .info-tile p { font-size: 0.9rem; color: #5a3a1a; line-height: 1.7; }

/* ── CONTACT FORM ── */
  .contact-form {
    background: linear-gradient(160deg, #fdf4e3, #f0ddb8);
    border: 2px solid var(--gold);
    border-radius: 14px;
    padding: 36px 40px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    max-width: 600px;
    margin: 40px auto 0;
  }
  @media (max-width: 600px) { .contact-form { padding: 24px 20px; } }
  .form-group { margin-bottom: 20px; }
  .form-group label {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    color: var(--brown-dark);
    margin-bottom: 6px;
    font-weight: 700;
  }
  .form-group input,
  .form-group textarea,
  .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--brown-light);
    border-radius: 8px;
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    background: #fffdf5;
    color: var(--brown-dark);
    transition: border-color 0.2s;
    outline: none;
  }
  .form-group input:focus,
  .form-group textarea:focus,
  .form-group select:focus { border-color: var(--gold); }
  .form-group textarea { min-height: 130px; resize: vertical; }
  .form-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--gold), var(--brown-light));
    color: var(--brown-dark);
    font-family: 'Rye', serif;
    font-size: 1.05rem;
    padding: 14px;
    border: 2px solid var(--brown-dark);
    border-radius: 40px;
    cursor: pointer;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .form-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.3); }

  /* ── ABOUT US TIMELINE ── */
  .timeline { margin-top: 40px; position: relative; }
  .timeline::before {
    content: '';
    position: absolute;
    left: 24px; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(to bottom, var(--gold), var(--brown-light));
    border-radius: 2px;
  }
  .timeline-item {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    padding-left: 60px;
    position: relative;
  }
  .timeline-dot {
    position: absolute;
    left: 12px; top: 4px;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--gold);
    border: 3px solid var(--brown-dark);
    z-index: 1;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem;
  }
  .timeline-content {
    background: linear-gradient(160deg, #fdf4e3, #f0ddb8);
    border: 2px solid var(--gold);
    border-radius: 10px;
    padding: 18px 22px;
    flex: 1;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  }
  .timeline-year {
    font-family: 'Rye', serif;
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 4px;
  }
  .timeline-content h4 { font-family: 'Playfair Display', serif; margin-bottom: 6px; color: var(--brown-dark); }
  .timeline-content p { font-size: 0.93rem; line-height: 1.7; color: #5a3a1a; }

  /* ── ANIMAL GRID ── */
  .animal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 40px;
  }
  .animal-tile {
    background: linear-gradient(160deg, #fdf4e3, #f0ddb8);
    border: 2px solid var(--gold);
    border-radius: 14px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transition: transform 0.2s;
  }
  .animal-tile:hover { transform: translateY(-4px); }
  .animal-tile .emoji { font-size: 3rem; margin-bottom: 10px; display: block; }
  .animal-tile h4 { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--brown-dark); margin-bottom: 4px; }
  .animal-tile p { font-size: 0.82rem; color: #5a3a1a; }

  /* ── PRODUCE GRID ── */
  .produce-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 16px;
    margin-top: 36px;
  }
  .produce-item {
    background: linear-gradient(160deg, #fdf4e3, #f0ddb8);
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 18px 12px;
    text-align: center;
    font-size: 0.88rem;
    color: var(--brown-dark);
    font-weight: 600;
  }
  .produce-item .emoji { font-size: 2rem; display: block; margin-bottom: 6px; }

  /* ── FOOTER ── */
  footer {
    background: url('header-bg.png') repeat center center;
    background-size: 400px auto;
    border-top: 4px solid var(--gold);
    padding: 30px 20px;
    text-align: center;
    color: var(--cream);
    font-size: 0.9rem;
  }
  footer .footer-inner { max-width: 900px; margin: 0 auto; }
  footer .footer-logo { font-family: 'Rye', serif; font-size: 1.1rem; color: var(--gold-bright); margin-bottom: 8px; }
  footer p { color: var(--cream-dark); line-height: 1.8; }

  /* ── SCROLL REVEAL ── */
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.visible { opacity: 1; transform: translateY(0); }

  /* ── MOBILE TWEAKS ── */
  @media (max-width: 600px) {
    .header-inner { flex-direction: column; padding: 10px 12px; gap: 6px; }
    .logo-wrap img { height: 80px; }
    .nav-medallion { width: 46px; height: 46px; }
    .nav-btn { padding: 6px 10px; }
    .content-wrap { padding: 28px 14px 50px; }
    .contact-form { padding: 22px 16px; }
    .feature-band { padding: 36px 16px; }
  }
  
  /* Standard link style */
a:link {
  color: var(--green);
  text-decoration: none;
}

/* Style for links already visited */
a:visited {
  color: #551a8b;
}

/* Interaction effects */
a:hover {
  color: #d93025;
  text-decoration: underline;
}

/* Click state */
a:active {
  color: #e67e22;
}
