/* ── assets/css/style.css ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brown-dark:  #2a1200;
  --brown-mid:   #5c3010;
  --brown-warm:  #8b5a2b;
  --gold:        #c8943a;
  --gold-light:  #e8c060;
  --green-ranch: #4a6020;
  --green-light: #6a8830;
  --cream:       #f8f2e4;
  --cream-dark:  #ede0c0;
  --text-dark:   #2a1200;
  --nav-h:       58px;
}

html { scroll-behavior: smooth; }
body { font-family: 'PT Sans', sans-serif; background: var(--cream); color: var(--text-dark); min-height: 100vh; }

/* HEADER */
.site-header { width: 100%; line-height: 0; background: #1a0a00; }
.site-header img { width: 100%; display: block; height: auto; }

/* NAV */
.site-nav {
  background: linear-gradient(to bottom, var(--brown-dark), var(--brown-mid));
  border-top: 3px solid var(--green-ranch);
  border-bottom: 3px solid var(--green-ranch);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 3px 12px rgba(0,0,0,.35);
}
.nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 1.2rem; height: var(--nav-h); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 26px; height: 3px; background: var(--gold-light); border-radius: 2px; }
.nav-list { list-style: none; display: flex; flex-wrap: wrap; }
.nav-list > li { position: relative; }
.nav-list > li > a,
.nav-list > li > button {
  display: flex; align-items: center; gap: 4px;
  padding: 0 13px; height: var(--nav-h);
  font-family: 'Rye', serif; font-size: .7rem; color: #d4b070;
  text-decoration: none; letter-spacing: .06em;
  background: none; border: none; cursor: pointer; white-space: nowrap;
  transition: color .2s;
  position: relative;
}
.nav-list > li > a::after { content: ''; position: absolute; bottom: 0; left: 50%; right: 50%; height: 3px; background: var(--green-light); transition: left .25s, right .25s; }
.nav-list > li > a:hover::after, .nav-list > li > a.active::after { left: 8px; right: 8px; }
.nav-list > li > a:hover, .nav-list > li > button:hover { color: #fff; }
.nav-list > li > a.active { color: var(--gold-light); }
.arrow { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid #c8a050; transition: transform .25s; }
.nav-list > li.open .arrow { transform: rotate(180deg); }
.sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 170px;
  background: linear-gradient(to bottom, var(--brown-dark), #1e0e00);
  border: 1px solid var(--green-ranch); border-top: none;
  list-style: none; display: none; z-index: 200;
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
}
.nav-list > li.open .sub-menu { display: block; }
.sub-menu li a { display: block; padding: 10px 16px; font-family: 'PT Sans', sans-serif; font-size: .85rem; color: #d4b880; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.06); transition: background .2s, color .2s; }
.sub-menu li a:hover, .sub-menu li a.active { background: rgba(106,136,48,.2); color: #fff; }

/* PAGE */
.page-wrap { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.5rem 3rem; }
.section-title { font-family: 'Rye', serif; font-size: clamp(1.3rem,2.5vw,2rem); color: var(--brown-dark); margin-bottom: 1.5rem; text-align: center; }

/* ROPE DIVIDER */
.rope-divider { display: flex; align-items: center; gap: 1rem; margin: 2rem 0 2.5rem; }
.rope-divider::before, .rope-divider::after { content: ''; flex: 1; height: 4px; background: repeating-linear-gradient(90deg, var(--brown-warm) 0px, var(--brown-warm) 6px, var(--gold) 6px, var(--gold) 8px); border-radius: 2px; }
.rope-divider .icon { font-size: 1.4rem; }

/* INFO BOX */
.info-box { background: linear-gradient(135deg,#fff9ef,#fff3dc); border-left: 5px solid var(--green-ranch); border-radius: 0 6px 6px 0; padding: 1.1rem 1.4rem; margin-bottom: 1.5rem; box-shadow: 0 2px 8px rgba(61,31,0,.07); }
.info-box h3 { font-family: 'Rye', serif; color: var(--brown-dark); font-size: 1rem; margin-bottom: .5rem; }
.info-box p { font-size: .88rem; color: #5a3e1a; line-height: 1.65; }

/* BREADCRUMB */
.breadcrumb { font-size: .8rem; color: var(--brown-warm); margin-bottom: 2rem; }
.breadcrumb a { color: var(--brown-warm); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 .4rem; color: #a08050; }

/* PAGE HERO */
.page-hero { padding: 2rem 1.5rem; text-align: center; background: linear-gradient(135deg,var(--brown-dark),var(--brown-mid)); border-bottom: 3px solid var(--green-ranch); }
.page-hero h1 { font-family: 'Rye', serif; font-size: clamp(1.8rem,4vw,2.8rem); color: var(--gold-light); text-shadow: 2px 3px 10px rgba(0,0,0,.5); margin-bottom: .3rem; }
.page-hero p { color: #b8a060; font-family: 'Libre Baskerville', serif; font-style: italic; font-size: .95rem; }

/* BUTTON */
.btn-ranch { display: inline-block; margin-top: .5rem; padding: .75rem 1.8rem; background: linear-gradient(135deg,var(--green-ranch),#3a5018); color: #e8d890; font-family: 'Rye', serif; font-size: .82rem; letter-spacing: .05em; text-decoration: none; border-radius: 3px; border: 1px solid #6a8830; box-shadow: inset 0 1px 0 rgba(255,255,255,.12),0 3px 8px rgba(0,0,0,.2); transition: filter .2s, transform .15s; }
.btn-ranch:hover { filter: brightness(1.15); transform: translateY(-2px); }

/* WELCOME */
.welcome { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; margin-bottom: 3rem; }
.welcome-text h1 { font-family: 'Rye', serif; font-size: clamp(1.6rem,3vw,2.4rem); color: var(--brown-dark); line-height: 1.25; margin-bottom: 1rem; }
.welcome-text h1 em { color: var(--green-ranch); font-style: normal; }
.welcome-text p { font-family: 'Libre Baskerville', serif; font-size: .95rem; line-height: 1.8; color: #4a3010; margin-bottom: .9rem; }
.welcome-logo { display: flex; justify-content: center; }
.welcome-logo img { max-width: 260px; width: 100%; filter: drop-shadow(0 4px 18px rgba(0,0,0,.25)); }

/* ANIMAL CARDS */
.animals-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(210px,1fr)); gap: 1.4rem; margin-bottom: 3rem; }
.animal-card { background: #fff; border: 2px solid var(--cream-dark); border-radius: 6px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s,box-shadow .2s,border-color .2s; box-shadow: 0 2px 8px rgba(61,31,0,.08); display: block; }
.animal-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(61,31,0,.15); border-color: var(--green-light); }
.animal-card .card-top { padding: .7rem 1rem .5rem; background: linear-gradient(135deg,var(--brown-dark),var(--brown-mid)); }
.animal-card .card-top h3 { font-family: 'Rye', serif; font-size: .9rem; color: var(--gold-light); }
.card-placeholder { width: 100%; aspect-ratio: 4/3; background: linear-gradient(135deg,var(--cream-dark),#c8b080); display: flex; align-items: center; justify-content: center; font-size: 3.2rem; }
.animal-card img.card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.animal-card .card-body { padding: .8rem 1rem; }
.animal-card .card-body p { font-size: .82rem; color: #6b4f2a; line-height: 1.5; }

/* NEWS CARDS */
.news-card { display: flex; border-radius: 5px; overflow: hidden; margin-bottom: 1rem; box-shadow: 0 2px 10px rgba(61,31,0,.1); }
.news-card .nc-date { writing-mode: vertical-rl; text-orientation: mixed; transform: rotate(180deg); padding: .8rem .6rem; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-light); background: linear-gradient(to bottom,var(--brown-dark),var(--brown-mid)); border-right: 2px solid var(--green-ranch); white-space: nowrap; min-width: 38px; }
.news-card .nc-body { background: #fff9f0; padding: 1rem 1.3rem; flex: 1; display: flex; flex-direction: column; }
.news-card .nc-body h4 { font-family: 'Libre Baskerville', serif; font-size: .95rem; color: var(--brown-dark); margin-bottom: .4rem; }
.news-card .nc-body p { font-size: .85rem; color: #5a3e1a; line-height: 1.6; }
.news-card .nc-body .nc-content { font-size: .85rem; color: #5a3e1a; line-height: 1.6; flex: 1; }
.news-card .nc-body .nc-content p { margin-bottom: 0; }
.news-card .nc-footer { display: flex; justify-content: flex-end; margin-top: .6rem; padding-top: .4rem; border-top: 1px solid #ede0c0; }
.news-card .nc-date-stamp { font-size: .72rem; color: #a08060; font-style: italic; }

/* GALLERY */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.album-card { background: #fff; border: 2px solid var(--cream-dark); border-radius: 6px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s,box-shadow .2s,border-color .2s; box-shadow: 0 2px 8px rgba(61,31,0,.08); }
.album-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(61,31,0,.15); border-color: var(--green-light); }
.album-cover { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: linear-gradient(135deg,var(--cream-dark),#c8b080); }
.album-cover-placeholder { width: 100%; aspect-ratio: 4/3; background: linear-gradient(135deg,var(--cream-dark),#c8b080); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.album-title { padding: .8rem 1rem; font-family: 'Rye', serif; font-size: .9rem; color: var(--brown-dark); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 1rem; }
.photo-grid a { display: block; border-radius: 4px; overflow: hidden; border: 2px solid var(--cream-dark); transition: border-color .2s,transform .2s; }
.photo-grid a:hover { border-color: var(--green-light); transform: scale(1.02); }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }

/* PAGE CONTENT */
.page-content { font-family: 'Libre Baskerville', serif; font-size: .97rem; line-height: 1.8; color: #3a2800; }
.page-content h2 { font-family: 'Rye', serif; color: var(--brown-dark); font-size: 1.4rem; margin: 1.5rem 0 .7rem; }
.page-content h3 { font-family: 'Rye', serif; color: var(--brown-mid); font-size: 1.1rem; margin: 1.2rem 0 .5rem; }
.page-content p { margin-bottom: 1rem; }
.page-content ul, .page-content ol { margin: .5rem 0 1rem 1.5rem; }
.page-content a { color: var(--green-ranch); }

/* FOOTER */
.site-footer { background: linear-gradient(to bottom, var(--brown-dark), #160900); border-top: 4px solid var(--green-ranch); }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem 1.4rem; display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.footer-brand img { width: 120px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); }
.footer-brand p { font-size: .78rem; color: #a08050; margin-top: .6rem; line-height: 1.5; }
.footer-brand a { color: #8a6840; text-decoration: none; }
.footer-links h5 { font-family: 'Rye', serif; color: var(--gold-light); font-size: .78rem; margin-bottom: .7rem; letter-spacing: .05em; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: .35rem; }
.footer-links ul li a { color: #b89060; font-size: .82rem; text-decoration: none; transition: color .2s; }
.footer-links ul li a:hover { color: var(--gold-light); }
.footer-copy { width: 100%; text-align: center; padding: 1rem 0 .5rem; border-top: 1px solid rgba(255,255,255,.08); color: #7a5830; font-size: .78rem; }
.footer-copy a { color: #a08050; text-decoration: none; }
.footer-copy a:hover { color: var(--gold-light); }

/* RESPONSIVE */
@media(max-width:780px){
  .hamburger { display: flex; }
  .nav-list { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: linear-gradient(to bottom,var(--brown-dark),#1e0e00); border-bottom: 3px solid var(--green-ranch); z-index: 99; padding: .5rem 0; }
  .nav-list.open { display: flex; }
  .nav-list > li > a, .nav-list > li > button { height: auto; padding: 12px 20px; font-size: .85rem; width: 100%; justify-content: space-between; }
  .nav-list > li > a::after { display: none; }
  .sub-menu { position: static; border: none; border-top: 1px solid rgba(255,255,255,.07); background: rgba(0,0,0,.2); }
  .sub-menu li a { padding-left: 2.5rem; }
  .welcome { grid-template-columns: 1fr; text-align: center; }
  .welcome-logo { order: -1; }
  .welcome-logo img { max-width: 200px; }
}
@media(max-width:500px){ .animals-grid { grid-template-columns: 1fr 1fr; } }

/* ── PAGINATION ─────────────────────────────────────────────────── */
.pagination { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 2px solid var(--cream-dark); }
.page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 .8rem; background: #fff; border: 2px solid var(--cream-dark); border-radius: 5px; font-family: 'PT Sans', sans-serif; font-size: .85rem; color: var(--brown-warm); text-decoration: none; transition: background .2s, border-color .2s, color .2s; }
.page-btn:hover { background: var(--cream-dark); border-color: var(--brown-warm); color: var(--brown-dark); text-decoration: none; }
.page-btn.active { background: var(--green-ranch); border-color: var(--green-ranch); color: #fff; font-weight: 700; }

/* ── COOKIE BANNER ──────────────────────────────────────────────── */
#cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 999; background: rgba(30,15,0,.97); border-top: 3px solid var(--green-ranch); padding: 1rem 1.5rem; }
.cookie-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cookie-inner span { font-size: .85rem; color: #c8a870; line-height: 1.5; }
.cookie-inner a { color: var(--gold-light); text-decoration: underline; }
.cookie-btn { background: var(--green-ranch); color: #fff; border: none; border-radius: 5px; padding: .55rem 1.4rem; font-size: .85rem; font-weight: 700; cursor: pointer; white-space: nowrap; transition: filter .2s; flex-shrink: 0; }
.cookie-btn:hover { filter: brightness(1.15); }
