/* ============================================================
   Lakeside Nursery — demo site stylesheet
   Slug: lakesidenursery
   All asset paths are absolute: /lakesidenursery/assets/...
   ============================================================ */

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

:root {
  --green:       #4a6741;
  --green-dark:  #3a5233;
  --green-light: #5d7e54;
  --red:         #c0392b;
  --red-dark:    #a93226;
  --cream:       #f5f0e8;
  --cream-dark:  #ede7d9;
  --charcoal:    #3a3a3a;
  --text:        #2c2c2c;
  --white:       #ffffff;
  --font-body:   'Lato', sans-serif;
  --font-head:   'Playfair Display', serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- Utility ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.1s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-red   { background: var(--red);   color: var(--white); }
.btn-red:hover   { background: var(--red-dark); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }

/* ---------- Navigation ---------- */
.site-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}
.site-nav .logo img {
  width: 120px;
  background: white;
  padding: 6px;
  border-radius: 4px;
}
.nav-links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.nav-links a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  border-radius: 3px;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  transition: background 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.18);
  text-decoration: none;
}
.nav-links a::after { content: '|'; margin-left: 0.75rem; opacity: 0.4; font-weight: 300; }
.nav-links a:last-child::after { content: ''; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Page hero banner (inner pages) ---------- */
.page-hero {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--green-dark);
}
.page-hero .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
}
.page-hero h1 {
  position: relative;
  color: var(--white);
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  z-index: 1;
}

/* ---------- Homepage hero ---------- */
.home-hero {
  position: relative;
  height: 100vh;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--green-dark);
}
.home-hero .hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/lakesidenursery/assets/img/IMG_3438.jpg');
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.5);
}
.home-hero .hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 0 1.5rem;
  max-width: 700px;
}
.home-hero h1 {
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  margin-bottom: 1.5rem;
}

/* ---------- Section: Our Plants ---------- */
.section-plants {
  padding: 5rem 0;
  background: var(--white);
}
.plants-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.plant-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.plant-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.plants-text h2 { color: var(--green-dark); }
.plants-text .btn { margin-top: 1.5rem; }

/* ---------- Section: Pricing ---------- */
.section-pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 360px;
}
.pricing-text {
  background: var(--charcoal);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem;
}
.pricing-text h2 {
  color: var(--white);
  font-family: var(--font-head);
  margin-bottom: 1.25rem;
}
.pricing-text p { color: rgba(255,255,255,0.85); }
.pricing-text a { color: #a8d5a2; }
.pricing-image {
  background-image: url('/lakesidenursery/assets/img/IMG_3783-500.jpg');
  background-size: cover;
  background-position: center;
  min-height: 300px;
}

/* ---------- Section: Locations ---------- */
.section-locations {
  padding: 5rem 0;
  background: var(--cream);
}
.section-locations h2 {
  text-align: center;
  color: var(--green-dark);
  margin-bottom: 3rem;
}
.locations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.location-card {
  text-align: center;
}
.location-card h3 {
  color: var(--green-dark);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.location-card .map-thumb {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--cream-dark);
  border-radius: 4px;
  overflow: hidden;
}
.location-card .map-thumb img {
  width: 100%;
  display: block;
}
.location-card .badge {
  display: inline-block;
  background: var(--green);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.location-card address {
  font-style: normal;
  line-height: 1.8;
  color: var(--text);
}
.location-card address a { color: var(--green); }
.location-card address a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green);
  color: var(--white);
  padding: 3rem 0 2rem;
  text-align: center;
}
.footer-hours h3 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.footer-hours p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.footer-copy {
  margin-top: 2rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

/* ---------- Page content area ---------- */
.page-content {
  padding: 4rem 0;
  background: var(--cream);
}
.page-content h2 {
  color: var(--green-dark);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.page-content h2:first-child { margin-top: 0; }
.page-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.page-content ul li { margin-bottom: 0.4rem; }
.page-content .btn { margin-top: 0.5rem; margin-right: 0.75rem; }

/* ---------- Purchasing page ---------- */
.purchasing-forms {
  background: var(--cream-dark);
  border-radius: 6px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}
.purchasing-forms h2 { color: var(--green-dark); margin-bottom: 1rem; }
.purchasing-forms p { margin-bottom: 1.25rem; }
.purchasing-forms .btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* ---------- Availability page ---------- */
.availability-downloads {
  background: var(--green);
  padding: 1.5rem 0;
  text-align: center;
}
.availability-downloads h3 {
  color: var(--white);
  font-family: var(--font-head);
  margin-bottom: 1rem;
}
.availability-downloads .btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

.availability-table-wrap {
  background: var(--white);
  padding: 3rem 0;
}
.table-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.table-controls h2 { margin: 0; color: var(--green-dark); }
.table-meta { font-size: 0.85rem; color: #666; text-align: right; }
.table-search {
  width: 100%;
  max-width: 320px;
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: var(--font-body);
}
.avail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.avail-table thead th {
  background: var(--charcoal);
  color: var(--white);
  padding: 0.65rem 0.9rem;
  text-align: left;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.avail-table thead th:hover { background: #555; }
.avail-table thead th .sort-arrow { margin-left: 4px; opacity: 0.6; font-size: 0.8em; }
.avail-table tbody tr:nth-child(even) { background: #f9f7f3; }
.avail-table tbody tr:hover { background: #eef5ec; }
.avail-table td {
  padding: 0.5rem 0.9rem;
  border-bottom: 1px solid #e8e4dc;
  vertical-align: top;
}
.avail-table td.col-qty { text-align: right; font-variant-numeric: tabular-nums; }
.avail-table td.col-comment { color: #666; font-size: 0.85rem; }
.avail-table .low-qty { color: #c0392b; font-weight: 700; }
.no-results { text-align: center; padding: 3rem; color: #888; font-style: italic; }

/* ---------- Retail page ---------- */
.retail-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}
.retail-intro p { font-size: 1.1rem; }
.retail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.retail-card {
  background: var(--white);
  border-radius: 6px;
  padding: 1.5rem;
  border-left: 4px solid var(--green);
}
.retail-card h3 { color: var(--green-dark); margin-bottom: 0.5rem; }
.retail-card address { font-style: normal; line-height: 1.8; font-size: 0.95rem; }
.retail-card address a { color: var(--green); }
.retail-card address a:hover { text-decoration: underline; }
.retail-card.wide { grid-column: 1 / -1; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-form-wrap h2 { color: var(--green-dark); margin-bottom: 1.5rem; }
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-form .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}
.contact-form .form-group.full { grid-column: 1 / -1; }
.contact-form label {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--charcoal);
}
.contact-form input,
.contact-form textarea {
  padding: 0.6rem 0.9rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form .btn { margin-top: 0.5rem; }
.contact-info-wrap h2 { color: var(--green-dark); margin-bottom: 1.5rem; }
.contact-location { margin-bottom: 2rem; }
.contact-location h3 { color: var(--green); margin-bottom: 0.5rem; }
.contact-location .badge {
  display: inline-block;
  background: var(--cream-dark);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.contact-location address { font-style: normal; line-height: 1.9; }
.contact-location address a { color: var(--green); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(42, 62, 38, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.3rem; }
  .nav-links a::after { display: none; }

  .plants-inner { grid-template-columns: 1fr; }
  .plant-grid { grid-template-columns: repeat(4, 1fr); }
  .section-pricing { grid-template-columns: 1fr; }
  .pricing-image { min-height: 220px; }
  .locations-grid { grid-template-columns: 1fr; }
  .retail-grid { grid-template-columns: 1fr; }
  .retail-card.wide { grid-column: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .table-controls { flex-direction: column; align-items: flex-start; }
  .table-search { max-width: 100%; }
  .avail-table { font-size: 0.82rem; }
  .avail-table td, .avail-table th { padding: 0.4rem 0.6rem; }
}

@media (max-width: 480px) {
  .plant-grid { grid-template-columns: repeat(3, 1fr); }
  .home-hero { min-height: 420px; }
  .page-hero { height: 220px; }
  .pricing-text { padding: 2.5rem 1.5rem; }
}
