:root {
  --bg: #edf7dc;
  --surface: #ffffff;
  --surface-soft: #f7fbe9;
  --text: #3d4930;
  --muted: #66775a;
  --brand: #5c743d;
  --brand-deep: #43582b;
  --accent: #8f3f22;
  --line: #c8d9b0;
  --shadow: 0 10px 30px rgba(45, 64, 27, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% -20%, #f9fff1 0%, rgba(249, 255, 241, 0) 45%),
    linear-gradient(180deg, #e4f3cd 0%, #edf7dc 220px, #edf7dc 100%);
  color: var(--text);
  font:
    17px "Trebuchet MS",
    "Segoe UI",
    Tahoma,
    Geneva,
    Verdana,
    sans-serif;
  line-height: 1.5;
}

.site-shell {
  max-width: 1100px;
  margin: 24px auto 30px;
  padding: 0 16px;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--brand-deep);
}

.site-header {
  width: 100%;
  border: 1px solid #9db87a;
  box-shadow: var(--shadow);
  background: #e3f2cc;
  display: grid;
  grid-template-columns: minmax(170px, 320px) 1fr;
}

.header-logo {
  overflow: hidden;
  border-right: 1px solid #8aa55f;
}

.header-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-brand {
  min-height: 101px;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 12px 20px;
  text-align: center;
}

.header-brand a {
  color: var(--brand);
  font-size: clamp(1.15rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.header-tagline {
  margin: 0;
  color: var(--accent);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-weight: 700;
}

.site-topnav {
  width: 100%;
  border: 1px solid #5e7b3b;
  border-top: 0;
  background: #6f9545;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #f4ffe4;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.topnav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topnav-list a {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  color: #f8fff0;
  font-size: 0.84rem;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(36, 65, 8, 0.15);
}

.topnav-list a:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.nav-date {
  opacity: 0.92;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.site-main {
  width: 100%;
  border: 1px solid #b7cda0;
  border-top: 0;
  background: var(--surface);
  padding: 26px;
}

.site-footer {
  width: 100%;
  border: 1px solid #334a1a;
  border-top: 3px solid #a6c67e;
  background: #334b1b;
  color: #eaf8d8;
  padding: 24px;
}

.page-content {
  width: min(980px, 100%);
  margin-inline: auto;
}

.page-title {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  color: var(--brand);
  letter-spacing: 0.05em;
  line-height: 1.15;
}

.page-intro {
  color: var(--muted);
  max-width: 70ch;
  margin: 0 0 20px;
  font-size: 1.04rem;
}

p {
  margin-top: 0;
  margin-bottom: 0.9rem;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(120px, 170px) 1fr;
  background: var(--brand-deep);
  border: 1px solid #3a4b24;
  border-radius: 10px;
  overflow: hidden;
}

.home-hero__logo-wrap {
  display: grid;
  place-items: center;
  background: #f4ffe4;
  min-height: 190px;
  padding: 12px;
}

.home-layout {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 20px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.panel--soft {
  background: var(--surface-soft);
}

.home-content,
.home-sidebar {
  padding: 20px;
}

.home-content {
  font-size: 1.03rem;
}

.home-sidebar {
  color: var(--muted);
  font-size: 0.98rem;
}

.home-sidebar a {
  font-weight: 700;
}

.home-sidebar p {
  margin: 0 0 14px;
}

.subhead {
  color: var(--accent);
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 700;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.gallery-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.13);
}

.gallery-card a {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 196px;
  padding: 12px;
  text-align: center;
}

.gallery-card img {
  width: 110px;
  height: 110px;
  object-fit: cover;
}

.gallery-card__title {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.cta-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
}

.rock-detail {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(180px, 340px) 1fr;
  gap: 20px;
  align-items: start;
}

.rock-detail__image {
  background: #f8fdf0;
  border: 1px solid #e2ebd1;
  border-radius: 8px;
  padding: 8px;
}

.rock-detail__image img {
  width: 100%;
  object-fit: cover;
}

.rock-detail__nav {
  margin-top: 14px;
}

.tour-lead {
  display: flow-root;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 16px;
}

.tour-lead__photo {
  float: right;
  margin-left: 16px;
  margin-bottom: 8px;
  width: min(42%, 320px);
  border-radius: 8px;
  border: 1px solid #dfe8cc;
}

.tour-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.tour-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 12px 14px;
}

.tour-card h2 {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tour-card p {
  margin: 0 0 9px;
  font-size: 1rem;
}

.notfound-card {
  padding: 18px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 20px;
}

.footer-block h3 {
  margin: 0 0 8px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 4px;
}

.footer-nav {
  display: grid;
  gap: 6px;
}

.footer-nav a,
.footer-block a {
  color: #deefc8;
  font-size: 0.96rem;
}

.footer-nav a:hover,
.footer-block a:hover {
  color: #ffffff;
}

.footer-contact {
  font-style: normal;
  font-size: 0.96rem;
  line-height: 1.55;
}

.btn {
  width: 135px;
  height: 50px;
  border: 0;
  background-image: url(Images/Button.gif);
  background-color: transparent;
  background-repeat: no-repeat;
  cursor: pointer;
  color: var(--brand-deep);
  font-weight: 700;
}

.btn:hover,
.btn:focus-visible {
  background-image: url(Images/Button-Bright.gif);
  outline: none;
}

.btn-link {
  width: 135px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-image: url(Images/Button.gif);
  background-repeat: no-repeat;
  background-position: center;
  color: var(--brand-deep);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
}

.btn-link:hover,
.btn-link:focus-visible {
  background-image: url(Images/Button-Bright.gif);
  color: var(--brand-deep);
  outline: none;
}

@media (max-width: 980px) {
  .site-shell {
    margin-top: 0;
    padding: 0 12px 12px;
  }

  .home-layout {
    grid-template-columns: 1fr;
  }

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

  .nav-date {
    width: 100%;
    padding-top: 2px;
  }

  .rock-detail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-main {
    padding: 14px;
  }

  .header-brand {
    padding: 10px 12px;
  }

  .site-topnav {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .topnav-list {
    width: 100%;
    flex-wrap: wrap;
  }

  .site-topnav a {
    font-size: 0.67rem;
  }

  .home-hero {
    grid-template-columns: 1fr;
  }

  .home-hero a {
    display: none;
  }

  .tour-lead__photo {
    float: none;
    width: 100%;
    margin: 0 0 12px;
  }

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