/*
  CAPTA Social Hub styles
  --------------------------------------------------------------------------
  Colour updates: edit the CSS custom properties below.
  Logo updates: upload logo files into /assets/images/ and update logoImage in /assets/js/park-data.js.
*/
:root {
  --cream: #f7edd7; /* Main tourism-poster cream background colour. */
  --cream-deep: #ead8b7;
  --paper: #fff8e8;
  --green: #294c33; /* Primary earthy green. */
  --green-soft: #6f8a62;
  --brown: #7a4f2b; /* Primary earthy brown. */
  --brown-dark: #4d321d;
  --gold: #c89142;
  --ink: #253126;
  --muted: #6b604f;
  --shadow: 0 24px 70px rgba(54, 40, 24, 0.22);
  --radius-large: 32px;
  --radius-medium: 20px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--cream);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  background:
    radial-gradient(circle at top left, rgba(200, 145, 66, 0.22), transparent 34rem),
    linear-gradient(135deg, var(--cream) 0%, #f3e5c9 52%, #e7d0a8 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: '';
  background-image:
    linear-gradient(rgba(41, 76, 51, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 76, 51, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
}

img,
iframe {
  max-width: 100%;
}

a {
  color: inherit;
}

.site-shell {
  width: 100%;
  min-height: 100vh;
  padding: 18px 12px;
}

.mobile-card {
  width: min(100%, 450px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(122, 79, 43, 0.2);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);
}

.hero,
.index-hero {
  position: relative;
  padding: 28px 22px 24px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 248, 232, 0.96), rgba(246, 233, 205, 0.98)),
    radial-gradient(circle at 20% 0%, rgba(111, 138, 98, 0.35), transparent 45%);
}

.hero::after,
.index-hero::after {
  display: block;
  width: 78px;
  height: 5px;
  margin: 22px auto 0;
  content: '';
  background: var(--gold);
  border-radius: 999px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  color: var(--brown-dark);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.logo-frame {
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  margin: 0 auto 18px;
  padding: 16px;
  background: #fffdf4;
  border: 3px solid rgba(41, 76, 51, 0.16);
  border-radius: 50%;
  box-shadow: inset 0 0 0 7px rgba(200, 145, 66, 0.1);
}

.logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-fallback {
  color: var(--green);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brown);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--green);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.1rem, 12vw, 3.2rem);
}

h2 {
  font-size: 1.45rem;
}

.tagline,
.index-intro {
  margin: 14px auto 0;
  color: var(--brown-dark);
  font-size: 1.08rem;
  font-weight: 700;
}

.intro {
  margin: 14px auto 0;
  color: var(--muted);
}

.section-heading {
  margin-bottom: 14px;
}

.video-section,
.button-section,
.contact-panel,
.hub-list-section {
  padding: 24px 18px;
}

.video-section,
.contact-panel {
  background: rgba(234, 216, 183, 0.38);
}

.video-embed {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 4px solid #fffdf4;
  border-radius: var(--radius-medium);
  box-shadow: 0 14px 30px rgba(54, 40, 24, 0.14);
  aspect-ratio: 16 / 9;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.button-grid,
.park-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.action-button,
.park-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 70px;
  padding: 15px 16px;
  color: #fffdf4;
  text-decoration: none;
  background: var(--green);
  border: 2px solid rgba(255, 253, 244, 0.35);
  border-radius: 20px;
  box-shadow: 0 10px 22px rgba(41, 76, 51, 0.18);
}

.action-button:nth-child(even),
.park-list li:nth-child(even) .park-link {
  background: var(--brown);
}

.action-button:focus-visible,
.action-button:hover,
.park-link:focus-visible,
.park-link:hover {
  outline: 3px solid rgba(200, 145, 66, 0.55);
  outline-offset: 3px;
  transform: translateY(-1px);
}

.action-button span:nth-child(2),
.park-link span:first-child {
  display: grid;
  gap: 2px;
  text-align: left;
}

.action-button strong,
.park-link strong {
  font-size: 1.05rem;
}

.action-button small,
.park-link small {
  color: rgba(255, 253, 244, 0.8);
  font-size: 0.84rem;
}

.action-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--green);
  font-weight: 900;
  background: #fffdf4;
  border-radius: 50%;
}

.contact-button {
  background: var(--brown-dark);
}

.contact-panel dl {
  display: grid;
  gap: 14px;
  margin: 16px 0 0;
}

.contact-panel div {
  padding: 14px;
  background: rgba(255, 253, 244, 0.74);
  border: 1px solid rgba(122, 79, 43, 0.16);
  border-radius: 16px;
}

dt {
  color: var(--brown);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-weight: 700;
}

.site-footer {
  padding: 22px 18px 26px;
  color: var(--muted);
  text-align: center;
  background: var(--paper);
}

.site-footer p {
  margin: 0;
}

.fine-print {
  margin-top: 8px;
  font-size: 0.83rem;
}

.fine-print code {
  padding: 2px 5px;
  background: rgba(234, 216, 183, 0.75);
  border-radius: 5px;
}

@media (min-width: 720px) {
  .site-shell {
    display: grid;
    place-items: start center;
    padding: 38px 18px;
  }

  .mobile-card {
    width: 430px;
  }
}
