:root {
  --forest: #1e3a2f;
  --forest-deep: #12241c;
  --forest-mid: #2d4a3a;
  --cream: #f3efe6;
  --cream-dark: #e8e1d4;
  --gold: #a68966;
  --gold-light: #c4a882;
  --ink: #1a1a17;
  --muted: #5c5a52;
  --white: #ffffff;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --font-script: "Great Vibes", cursive;
  --nav-h: 78px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--forest);
}

/* —— Buttons —— */
.btn-gold {
  --bs-btn-color: var(--white);
  --bs-btn-bg: var(--gold);
  --bs-btn-border-color: var(--gold);
  --bs-btn-hover-color: var(--white);
  --bs-btn-hover-bg: #8f7352;
  --bs-btn-hover-border-color: #8f7352;
  --bs-btn-active-color: var(--white);
  --bs-btn-active-bg: #7a6245;
  --bs-btn-active-border-color: #7a6245;
  border-radius: 0;
  padding: 0.85rem 1.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.btn-outline-gold {
  --bs-btn-color: var(--gold);
  --bs-btn-border-color: var(--gold);
  --bs-btn-hover-color: var(--white);
  --bs-btn-hover-bg: var(--gold);
  --bs-btn-hover-border-color: var(--gold);
  border-radius: 0;
  padding: 0.7rem 1.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* —— Navbar —— */
.navbar {
  padding: 1rem 0;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), padding 0.35s var(--ease);
}

.navbar.scrolled,
.navbar.menu-open {
  background: rgba(18, 36, 28, 0.96);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  padding: 0.65rem 0;
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--white) !important;
  letter-spacing: 0.04em;
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem !important;
  position: relative;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.2rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0;
  padding: 0.35rem 0.5rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.05);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 36, 28, 0.55) 0%, rgba(18, 36, 28, 0.35) 40%, rgba(18, 36, 28, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-h);
  max-width: 820px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.2s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.35s forwards;
}

.hero-subtitle {
  font-weight: 300;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  max-width: 520px;
  margin: 0 auto 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.5s forwards;
}

.hero-author {
  font-family: var(--font-script);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--gold-light);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.65s forwards;
}

.hero-content .btn-gold {
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.8s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--white);
  font-size: 1.5rem;
  animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* —— Sections —— */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-cream {
  background: var(--cream);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(166, 137, 102, 0.08), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(30, 58, 47, 0.06), transparent 45%);
}

.section-dark {
  background: var(--forest-deep);
  background-image:
    linear-gradient(180deg, rgba(18, 36, 28, 0.92), rgba(18, 36, 28, 0.95)),
    url("../images/molly4.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-label span {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.section-label::before,
.section-label::after {
  content: "";
  height: 1px;
  width: 2.5rem;
  background: var(--gold);
}

.section-label-light span {
  color: var(--gold-light);
}

.section-label-light::before,
.section-label-light::after {
  background: var(--gold-light);
}

.section-label.text-center,
.section .text-center .section-label {
  justify-content: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--forest-deep);
}

.section-title.text-white {
  color: var(--white);
}

.section-desc {
  color: var(--muted);
  max-width: 540px;
}

.lead-text {
  font-size: 1.1rem;
  color: var(--forest-mid);
  font-weight: 400;
}

/* —— Book —— */
.book-frame {
  display: inline-block;
  padding: 0.75rem;
  background: linear-gradient(145deg, #2a2118, #4a3a2a);
  box-shadow:
    0 25px 60px rgba(18, 36, 28, 0.28),
    0 0 0 1px rgba(166, 137, 102, 0.35);
  transition: transform 0.5s var(--ease);
}

.book-frame:hover {
  transform: translateY(-8px);
}

.book-cover {
  max-height: 520px;
  width: auto;
  margin: 0 auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* —— Story —— */
.section-story {
  background: var(--forest);
  padding: 5.5rem 0;
}

.story-text {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.story-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold-light);
  margin: 0;
}

/* —— Bear cards —— */
.bear-card {
  height: 100%;
  padding: 0.85rem;
  border: 1px solid var(--gold);
  background: rgba(0, 0, 0, 0.25);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}

.bear-card:hover {
  transform: translateY(-6px);
  background: rgba(0, 0, 0, 0.4);
}

.bear-card-img {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  margin-bottom: 1.25rem;
}

.bear-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.bear-card:hover .bear-card-img img {
  transform: scale(1.06);
}

.bear-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
}

.bear-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin: 0;
}

/* —— Gallery —— */
.gallery-item {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  position: relative;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 36, 28, 0.35);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* —— Understanding —— */
.section-understanding {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
  overflow: hidden;
}

.understanding-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.understanding-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.understanding-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 36, 28, 0.15) 0%, rgba(18, 36, 28, 0.55) 45%, rgba(18, 36, 28, 0.88) 100%);
}

.section-understanding .container {
  position: relative;
  z-index: 1;
}

.understanding-panel {
  color: var(--white);
  padding: 2rem 0;
}

.understanding-panel .section-title {
  color: var(--white);
}

.understanding-panel p {
  color: rgba(255, 255, 255, 0.88);
}

.understanding-close {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold-light) !important;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

/* —— CTA —— */
.section-cta {
  background: var(--forest-deep);
  padding: 5rem 0;
}

.cta-box {
  max-width: 720px;
  margin: 0 auto;
}

.cta-copy {
  max-width: 520px;
  margin-bottom: 1.75rem !important;
}

/* —— Contact —— */
.contact-list li {
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.contact-list i {
  color: var(--gold);
  margin-right: 0.65rem;
}

.contact-list a {
  color: var(--ink);
}

.contact-list a:hover {
  color: var(--gold);
}

.social-row {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.social-row a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.social-row a:hover {
  background: var(--gold);
  color: var(--white);
}

.contact-form .form-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form .form-control {
  border-radius: 0;
  border: 1px solid var(--cream-dark);
  background: var(--white);
  padding: 0.85rem 1rem;
  box-shadow: none;
}

.contact-form .form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.2rem rgba(166, 137, 102, 0.2);
}

.form-feedback {
  font-size: 0.95rem;
  color: var(--forest);
  font-weight: 500;
}

/* —— Footer —— */
.site-footer {
  background: var(--forest-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 1.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--white) !important;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-place {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--gold-light);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.up-map {
  width: 48px;
  height: 24px;
  flex-shrink: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-nav a:hover {
  color: var(--gold-light);
}

.footer-follow {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
}

.social-row-footer a {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.social-row-footer a:hover {
  background: var(--gold-light);
  color: var(--forest-deep);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

.footer-quote {
  color: var(--gold-light);
}

/* —— Lightbox —— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 16, 12, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox img {
  max-width: min(960px, 92vw);
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
}

/* —— Reveal —— */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— Responsive —— */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(18, 36, 28, 0.98);
    margin-top: 0.75rem;
    padding: 1rem;
  }

  .section-dark {
    background-attachment: scroll;
  }

  .understanding-overlay {
    background: linear-gradient(180deg, rgba(18, 36, 28, 0.35) 0%, rgba(18, 36, 28, 0.9) 55%);
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 575.98px) {
  .section {
    padding: 4rem 0;
  }

  .hero-title {
    letter-spacing: 0.04em;
  }
}
