:root {
  --cream: #fff0ce;
  --cream-text: #fff8ee;
  --burgundy: #bb4e39;
  --leaf: #c5da8f;
  --leaf-label: #bfc89f;
  --ink: #1a1a1a;
  --dirt: #5c4033;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #3d2918;
  background-image: url("../images/layout/dirt005.png");
  background-repeat: repeat;
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: #005580;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.site-wrap {
  max-width: 1024px;
  margin: 0 auto;
  padding: 16px 12px 48px;
}

.site-header {
  margin-bottom: 20px;
}

.brand-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--cream-text);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  max-width: 100%;
}

.brand-lockup:hover {
  text-decoration: none;
  color: #fff;
}

.brand-bar .logo {
  width: 72px;
  height: 72px;
  max-width: none;
  min-width: 0;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  line-height: 1.15;
}

.brand-name {
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-tagline {
  margin-top: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  opacity: 0.95;
}

.menu-bar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 6px;
  margin: 0 auto 8px;
  padding: 14px 16px 16px;
  max-width: 860px;
  background: var(--cream);
  border: 2px solid #000;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.menu-bar .branch {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 58%;
  transform: translateY(-50%);
  width: auto;
  height: 28px;
  object-fit: fill;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

.menu-bar > a,
.menu-bar .dropdown {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.menu-bar img.btn-img {
  height: 44px;
  width: auto;
  display: block;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.menu-bar .dropdown img.btn-img {
  height: 36px;
}

.menu-bar a:hover img.btn-img {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.dropdown {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}

/* Invisible bridge so the menu stays open while moving the pointer down */
.dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 16px;
  z-index: 19;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 160px;
  background: var(--cream);
  border: 2px solid #000;
  border-radius: 4px;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 8px 14px;
  color: var(--ink);
  font-size: 0.95rem;
}

.dropdown-menu a:hover {
  background: var(--leaf);
}

.panel {
  background: var(--cream);
  border: 2px solid #000;
  border-radius: 6px;
  padding: 16px 18px;
  margin-bottom: 20px;
  color: var(--ink);
}

.panel.green {
  background: var(--leaf);
}

.layout-two {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.sidebar {
  background: var(--cream);
  border: 2px solid #000;
  border-radius: 6px;
  padding: 12px;
  font-size: 0.95rem;
}

.sidebar img {
  border-radius: 4px;
}

.main-col {
  min-width: 0;
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr minmax(180px, 260px);
  gap: 16px;
  align-items: start;
}

.slider {
  position: relative;
  background: #000;
  border: 2px solid #000;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.slider .slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
}

.slide-caption h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.slide-caption p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.95;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(187, 78, 57, 0.85);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 2;
}

.slider-nav.prev { left: 8px; }
.slider-nav.next { right: 8px; }

.deans-card {
  background: var(--cream);
  border: 2px solid #000;
  border-radius: 6px;
  padding: 14px;
}

.deans-card h4 {
  margin: 0 0 8px;
  color: var(--burgundy);
}

.deans-card a img {
  display: block;
  margin: 12px auto 0;
  max-width: 180px;
}

.plant-list .tree-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding: 10px 6px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  min-height: 110px;
}

.plant-list .tree-row:hover {
  background: rgba(255, 255, 255, 0.35);
}

.plant-list .thumb {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #000;
  background: #ddd;
}

.plant-list .meta strong {
  display: block;
  margin-bottom: 4px;
}

.plant-list .meta .excerpt {
  font-size: 0.92rem;
  color: #333;
}

.categories {
  margin-bottom: 12px;
}

.categories a {
  margin-right: 4px;
}

.collection-header {
  margin: 0 0 4px;
  font-family: Georgia, serif;
}

.plant-shell {
  background: var(--leaf);
  border: 2px solid #000;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 24px;
  font-family: Georgia, serif;
}

.plant-header {
  background: var(--burgundy);
  color: var(--cream);
  border-bottom: 2px solid #000;
  padding: 10px 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.plant-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: normal;
  color: var(--cream-text);
  font-family: Georgia, serif;
}

.plant-header .secondary {
  font-style: italic;
  opacity: 0.95;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.plant-body-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--cream);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.plant-copy {
  padding: 16px 18px;
  border-right: 2px solid #000;
}

.plant-copy .description {
  text-align: justify;
}

.plant-copy .description p:first-child::first-letter {
  font-weight: bold;
  font-size: 1.5em;
  font-family: Georgia, serif;
}

.char-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.92rem;
}

.char-table td {
  border: 1px solid #000;
  padding: 4px 8px;
}

.char-table .label {
  font-weight: bold;
  text-align: right;
  background: var(--leaf-label);
  width: 38%;
}

.char-table .value {
  font-family: Georgia, serif;
  font-style: italic;
  background: var(--leaf);
}

.plant-gallery {
  padding: 12px;
  background: #1a1a1a;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  align-content: start;
}

.plant-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #444;
}

.breadcrumb {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--cream-text);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.breadcrumb a {
  color: #ffe6a8;
}

.post-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.post-card img {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #000;
}

.post-card h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.footer {
  margin-top: 28px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 240, 206, 0.35);
  color: var(--cream);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.9rem;
}

.footer a {
  color: #ffe6a8;
  margin-left: 12px;
}

.map-frame {
  width: 100%;
  height: 350px;
  border: 2px solid #000;
  border-radius: 4px;
  margin: 12px 0;
}

.contact-cta {
  margin-top: 16px;
}

.contact-cta a {
  display: inline-block;
  background: var(--burgundy);
  color: var(--cream-text);
  padding: 10px 16px;
  border-radius: 4px;
  border: 2px solid #000;
  font-weight: 600;
}

.contact-cta a:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

.ck-content img {
  max-width: 100%;
  height: auto;
}

.ck-content a {
  word-break: break-word;
}

@media (max-width: 800px) {
  .layout-two,
  .home-grid,
  .plant-body-grid,
  .post-card,
  .plant-list .tree-row {
    grid-template-columns: 1fr;
  }

  .plant-copy {
    border-right: none;
    border-bottom: 2px solid #000;
  }

  .menu-bar {
    max-width: none;
    padding: 12px 8px;
  }

  .menu-bar .branch {
    display: none;
  }

  .menu-bar img.btn-img {
    height: 36px;
  }

  .plant-list .thumb {
    width: 100%;
    height: 180px;
  }
}
