/*
Theme Name: Wild Encounters Editable
Theme URI: https://wildencounters.in/
Author: Wild Encounters
Description: A cinematic, Gutenberg-friendly wildlife safari and photography theme. Page content is editable with the standard WordPress block editor.
Version: 2.0.0
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: wild-encounters
*/

:root {
  --we-jungle: #10261e;
  --we-forest: #1e3a2f;
  --we-moss: #4e6545;
  --we-gold: #c79a4a;
  --we-sand: #e9e1d2;
  --we-ivory: #f7f5ef;
  --we-charcoal: #1c1c1a;
  --we-white: #f5f2ea;
  --we-muted: #6c726d;
  --we-border: rgba(16, 38, 30, .16);
  --we-serif: "DM Serif Display", Georgia, serif;
  --we-sans: Manrope, Arial, sans-serif;
  --we-content: 760px;
  --we-wide: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--we-ivory); color: var(--we-charcoal); font-family: var(--we-sans); font-size: 17px; line-height: 1.75; }
body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--we-forest); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--we-gold); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; color: var(--we-jungle); font-family: var(--we-serif); font-weight: 400; line-height: 1.08; }
h1 { font-size: clamp(3rem, 7vw, 6.4rem); }
h2 { font-size: clamp(2.25rem, 5vw, 4.3rem); }
h3 { font-size: clamp(1.55rem, 3vw, 2.25rem); }
p { margin: 0 0 1.35em; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; padding: .75rem 1rem; margin: 0; left: 1rem; top: 1rem; z-index: 99999; background: #fff; color: #000; }

.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(16,38,30,.96); color: var(--we-white); border-bottom: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(12px); }
.header-inner { width: min(calc(100% - 40px), var(--we-wide)); min-height: 82px; margin: 0 auto; display: flex; align-items: center; gap: 2rem; }
.site-branding { margin-right: auto; }
.custom-logo { width: auto; max-height: 58px; }
.site-title { color: var(--we-white); font-family: var(--we-serif); font-size: 1.55rem; text-decoration: none; }
.site-title:hover { color: var(--we-gold); }
.primary-menu { display: flex; align-items: center; gap: 1.65rem; margin: 0; padding: 0; list-style: none; }
.primary-menu a { color: var(--we-white); font-size: .8rem; font-weight: 700; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--we-gold); }
.header-cta, .wp-block-button__link, .we-button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--we-gold); border-radius: 0; background: var(--we-gold); color: var(--we-jungle) !important; font-size: .78rem; font-weight: 800; letter-spacing: .09em; line-height: 1.2; padding: 1rem 1.35rem; text-decoration: none; text-transform: uppercase; transition: .2s ease; }
.header-cta:hover, .wp-block-button__link:hover, .we-button:hover { background: transparent; color: var(--we-gold) !important; }
.menu-toggle { display: none; border: 0; background: transparent; color: #fff; font: inherit; font-weight: 700; }

.site-main { min-height: 60vh; }
.entry-content > :where(:not(.alignwide):not(.alignfull)) { width: min(calc(100% - 40px), var(--we-content)); margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { width: min(calc(100% - 40px), var(--we-wide)); margin-left: auto; margin-right: auto; }
.entry-content > .alignfull { width: 100%; }
.entry-content > * { margin-top: 0; margin-bottom: 0; }
.entry-content > p, .entry-content > ul, .entry-content > ol, .entry-content > blockquote { margin-bottom: 1.35em; }
.entry-content > h1, .entry-content > h2, .entry-content > h3 { margin-top: 1.25em; }
.entry-content::after { display: table; clear: both; content: ""; }
.page-header { min-height: 48vh; padding: 8rem 1.25rem 5rem; display: grid; place-items: end center; background: linear-gradient(rgba(16,38,30,.42), rgba(16,38,30,.9)), var(--we-forest); background-position: center; background-size: cover; text-align: center; }
.page-header h1 { max-width: 980px; color: var(--we-white); }
.page-header .eyebrow { color: var(--we-gold); }
.page-content-pad { padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(4rem, 8vw, 7rem); }

.eyebrow, .we-eyebrow { display: block; margin-bottom: 1rem; color: var(--we-gold); font-size: .75rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.we-hero { min-height: min(860px, 90vh); display: grid; align-items: end; padding: clamp(7rem, 15vw, 12rem) max(20px, calc((100vw - var(--we-wide))/2)) clamp(4rem, 8vw, 7rem); }
.we-hero::before { background: linear-gradient(90deg, rgba(8,23,17,.86) 0%, rgba(8,23,17,.4) 60%, rgba(8,23,17,.18) 100%) !important; }
.we-hero .wp-block-cover__inner-container { width: min(760px, 100%); margin: 0; }
.we-hero h1, .we-hero p { color: var(--we-white); }
.we-hero p { max-width: 650px; font-size: clamp(1rem, 2vw, 1.25rem); }
.we-section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.we-section-dark { background: var(--we-jungle); color: var(--we-white); }
.we-section-dark h2, .we-section-dark h3, .we-section-dark p, .we-section-dark a:not(.wp-block-button__link) { color: var(--we-white); }
.we-split { gap: clamp(2rem, 6vw, 6rem); align-items: center !important; }
.we-split img { min-height: 540px; object-fit: cover; }
.we-destination-grid { gap: 1.25rem; }
.we-card { position: relative; min-height: 430px; overflow: hidden; background: var(--we-forest); }
.we-card .wp-block-cover__image-background { transition: transform .6s ease; }
.we-card:hover .wp-block-cover__image-background { transform: scale(1.04); }
.we-card .wp-block-cover__inner-container { align-self: end; }
.we-card h3 { color: #fff; }
.we-gallery-grid { gap: .8rem; }
.we-gallery-grid figure, .we-gallery-grid img { height: 100%; }
.we-gallery-grid img { min-height: 300px; object-fit: cover; }
.we-testimonials { gap: 1.25rem; }
.we-testimonial { height: 100%; padding: clamp(1.75rem, 4vw, 3rem); border-top: 2px solid var(--we-gold); background: #fff; box-shadow: 0 15px 45px rgba(16,38,30,.08); }
.we-testimonial blockquote { margin: 0; }
.we-cta { padding: clamp(5rem, 10vw, 9rem) 1.25rem; text-align: center; }
.we-cta h2, .we-cta p { color: #fff; }
.we-cta .wp-block-buttons { justify-content: center; }
.wp-block-button.is-style-outline .wp-block-button__link { border-color: currentColor; background: transparent; color: var(--we-gold) !important; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--we-gold); color: var(--we-jungle) !important; }
.is-style-we-image-frame img { border: 1px solid rgba(199,154,74,.55); box-shadow: 22px 22px 0 rgba(199,154,74,.18); }
.is-style-we-gold-line { padding-top: 1.25rem; border-top: 2px solid var(--we-gold); }
.is-style-we-dark-panel { padding: clamp(2rem, 5vw, 4rem); background: var(--we-jungle); color: var(--we-white); }
.is-style-we-dark-panel h2, .is-style-we-dark-panel h3, .is-style-we-dark-panel p { color: var(--we-white); }

.site-footer { padding: 4.5rem 0 1.5rem; background: #0a1a14; color: rgba(245,242,234,.75); }
.footer-grid { width: min(calc(100% - 40px), var(--we-wide)); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; }
.site-footer h2, .site-footer h3 { color: var(--we-white); }
.site-footer h3 { font-size: 1.2rem; }
.site-footer a { color: rgba(245,242,234,.8); text-decoration: none; }
.site-footer a:hover { color: var(--we-gold); }
.footer-menu { margin: 0; padding: 0; list-style: none; }
.footer-menu li { margin-bottom: .4rem; }
.footer-bottom { width: min(calc(100% - 40px), var(--we-wide)); margin: 3rem auto 0; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; }

.posts-grid { width: min(calc(100% - 40px), var(--we-wide)); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.post-card { background: #fff; }
.post-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.post-card-content { padding: 1.5rem; }
.post-card h2 { font-size: 2rem; }
.pagination { width: min(calc(100% - 40px), var(--we-wide)); margin: 3rem auto 0; }
.post-navigation { width: min(calc(100% - 40px), var(--we-content)); margin: 3rem auto; }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .primary-navigation { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 1.5rem 20px; background: var(--we-jungle); }
  .primary-navigation.is-open { display: block; }
  .primary-menu { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
@media (max-width: 700px) {
  body { font-size: 16px; }
  .header-inner { min-height: 70px; }
  .custom-logo { max-height: 46px; }
  .we-split { gap: 2rem; }
  .we-split img { min-height: 340px; }
  .footer-grid, .posts-grid { grid-template-columns: 1fr; }
}

