/*
Theme Name: Untamed Safariz Blog
Theme URI: https://untamedsafariz.com
Author: Untamed Safariz
Description: Standalone brand-matched blog theme for Untamed Safariz. Coded to mirror the static site's blog.html layout exactly, so every post uses the same Field Notes template.
Version: 1.0
Text Domain: untamed-safariz-blog
*/

:root {
  --jungle: #1F4D36;
  --gold: #D4A017;
  --moss: #5B7D4A;
  --ivory: #F7F5EF;
  --gray: #6B6B6B;
  --dark: #0F1F16;
  --light-gold: #E8C462;
  --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--ivory);
  color: var(--dark);
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 { font-family: 'Cormorant Garamond', serif; }
a { text-decoration: none; }
img { max-width: 100%; }

/* ===================== NAVIGATION ===================== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s ease;
  background: rgba(15,31,22,0.97);
}
body.admin-bar nav { top: 32px; }
.nav-logo { text-decoration: none; display: flex; align-items: center; line-height: 0; }
.nav-logo img { height: 46px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  color: rgba(247,245,239,0.85);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover, .nav-links a.current { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.current::after { width: 100%; }
.nav-cta {
  background: var(--gold);
  color: var(--dark) !important;
  padding: 0.55rem 1.4rem;
  font-weight: 600 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--light-gold) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ivory); transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===================== SECTIONS / TYPE ===================== */
section { padding: 6rem 4rem; }
.section-label {
  font-size: 0.65rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.8rem;
  font-family: 'Montserrat', sans-serif; font-weight: 500;
}
.section-title { font-size: clamp(2.2rem, 4vw, 3.5rem); font-weight: 400; line-height: 1.15; color: var(--dark); margin-bottom: 1rem; }
.section-title em { font-style: italic; color: var(--jungle); }
.section-subtitle { font-size: 0.9rem; color: var(--gray); max-width: 560px; line-height: 1.8; font-weight: 300; }
.divider { width: 60px; height: 1px; background: var(--gold); margin: 1.5rem 0; }

/* ===================== BLOG ===================== */
#blog { background: var(--ivory); }
.blog-hero {
  height: 60vh;
  min-height: 380px;
  background: linear-gradient(rgba(15,31,22,0.45),rgba(15,31,22,0.65)), url('/images/blog.jpg') center/cover;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 2rem;
}
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3.5rem; }

.blog-card { overflow: hidden; }

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}
		
.blog-card:hover .blog-img { transform: scale(1.04); }
.blog-img-wrap {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--dark);
}
.blog-body { padding: 1.5rem 0; }
.blog-cat { font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; font-weight: 600; }
.blog-title { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 400; color: var(--dark); line-height: 1.4; margin-bottom: 0.8rem; }
.blog-title a { color: inherit; text-decoration: none; }
.blog-excerpt { font-size: 0.8rem; color: var(--gray); line-height: 1.8; margin-bottom: 1rem; }
.blog-meta { display: flex; align-items: center; gap: 1rem; font-size: 0.7rem; color: var(--gray); }
.blog-read-link {
  color: var(--jungle); text-decoration: none; font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.08em;
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: gap 0.3s;
}
.blog-read-link:hover { gap: 0.8rem; }
.blog-pagination { margin-top: 3.5rem; display: flex; justify-content: center; gap: 1.5rem; }
.blog-pagination a, .blog-pagination span {
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--jungle); text-decoration: none; font-weight: 600;
}
.blog-pagination .current { color: var(--gold); }

/* ===================== SINGLE POST CONTENT ===================== */
#single-post {
  width: 85%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem 6rem;
}
.entry-content { font-size: 0.95rem; color: var(--dark); line-height: 1.9; }
.entry-content p { margin-bottom: 1.4rem; color: var(--gray); }
.entry-content h2 {
  font-family: 'Cormorant Garamond', serif; font-weight: 400; color: var(--jungle);
  font-size: 1.9rem; margin: 2.5rem 0 1rem;
}
.entry-content h3 {
  font-family: 'Cormorant Garamond', serif; font-weight: 500; color: var(--dark);
  font-size: 1.4rem; margin: 2rem 0 0.8rem;
}
.entry-content img { display: block; margin: 2rem 0; width: 100%; height: auto; }
.entry-content figcaption { font-size: 0.72rem; color: var(--gray); text-align: center; margin-top: -1.4rem; margin-bottom: 2rem; }
.entry-content ul, .entry-content ol { margin: 0 0 1.4rem 1.4rem; color: var(--gray); }
.entry-content li { margin-bottom: 0.5rem; }
.entry-content a { color: var(--jungle); text-decoration: underline; }
.entry-content a:hover { color: var(--gold); }
.entry-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--jungle);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
}
.entry-content strong { color: var(--dark); }
.post-back-link { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(0,0,0,0.08); }

/* ===================== FOOTER ===================== */
footer { background: var(--dark); color: var(--ivory); padding: 5rem 4rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.footer-brand p { font-size: 0.8rem; color: rgba(247,245,239,0.5); line-height: 1.9; margin: 1rem 0 1.5rem; }
.footer-logo { height: 56px; width: auto; margin-bottom: 0.5rem; display: block; }
.footer-heading {
  font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.2rem;
  font-family: 'Montserrat', sans-serif; font-weight: 600;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { color: rgba(247,245,239,0.5); text-decoration: none; font-size: 0.8rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--gold); }

.social-btn { width: 40px; height: 40px; border: 1px solid rgba(31,77,54,0.2); display: flex; align-items: center; justify-content: center; text-decoration: none; transition: background 0.3s, border-color 0.3s; position: relative; overflow: hidden; }
.social-btn img { width: 16px; height: 16px; display: block; transition: opacity 0.3s; pointer-events: none; }
footer .contact-social .social-btn { border-color: rgba(255,255,255,0.15); background: transparent; }
footer .contact-social .social-btn img.icon-default { opacity: 1; }
footer .contact-social .social-btn img.icon-hover { opacity: 0; position: absolute; }
footer .contact-social .social-btn:hover { background: var(--ivory); border-color: var(--ivory); }
footer .contact-social .social-btn:hover img.icon-default { opacity: 0; }
footer .contact-social .social-btn:hover img.icon-hover { opacity: 1; }
.contact-social { display: flex; gap: 0.8rem; margin-top: 1.2rem; }

.newsletter-form { display: flex; margin-top: 0.5rem; }
.newsletter-form input {
  flex: 1; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); border-right: none;
  padding: 0.75rem 1rem; color: var(--ivory); font-family: 'Montserrat', sans-serif; font-size: 0.78rem; outline: none;
}
.newsletter-form input::placeholder { color: rgba(247,245,239,0.35); }
.newsletter-form input:focus { border-color: var(--gold); }
.newsletter-form button { background: var(--gold); color: var(--dark); border: none; padding: 0.75rem 1.2rem; cursor: pointer; font-weight: 700; font-size: 0.75rem; transition: background 0.3s; }
.newsletter-form button:hover { background: var(--light-gold); }
.newsletter-success { font-size: 0.78rem; color: var(--gold); margin-top: 0.6rem; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { font-size: 0.73rem; color: rgba(247,245,239,0.35); }
.footer-bottom-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-bottom-links a { font-size: 0.73rem; color: rgba(247,245,239,0.35); text-decoration: none; transition: color 0.3s; }
.footer-bottom-links a:hover { color: var(--gold); }

/* ===================== BACK TO TOP ===================== */
#back-top {
  position: fixed; bottom: 2rem; right: 2rem; width: 44px; height: 44px;
  background: var(--gold); color: var(--dark); border: none; cursor: pointer;
  display: none; align-items: center; justify-content: center; z-index: 999; transition: background 0.3s;
  font-size: 1rem;
}
#back-top:hover { background: var(--light-gold); }
#back-top.visible { display: flex; }

/* ===================== SCROLL REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  section { padding: 5rem 2.5rem; }
  nav { padding: 1rem 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: fixed; inset: 0;
    background: var(--dark); align-items: center; justify-content: center; gap: 2.5rem; z-index: 999;
  }
  .nav-links.open a { font-size: 1.1rem; }
  .hamburger { display: flex; z-index: 1000; }
  section { padding: 4rem 1.5rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  footer { padding: 4rem 1.5rem 2rem; }
  #single-post { padding: 3.5rem 1.2rem 4rem; }
}

/* ===================== COMMENTS ===================== */
#comments-section {
  width: 85%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 6rem;
}
.comments-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  color: var(--jungle);
  font-size: 1.7rem;
  margin: 0 0 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.comment-list { list-style: none; margin: 0 0 3rem; padding: 0; }
.comment-list .children { list-style: none; margin: 0; padding: 0 0 0 2.5rem; }
.comment-list > li { margin-bottom: 2rem; }
.comment-body {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 1.5rem;
}
.comment-author { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.6rem; }
.comment-author .avatar { border-radius: 50%; display: block; }
.comment-author .fn {
  font-family: 'Cormorant Garamond', serif;
  font-style: normal;
  font-size: 1.05rem;
  color: var(--dark);
  font-weight: 500;
}
.comment-metadata {
  font-size: 0.7rem;
  color: var(--gray);
  letter-spacing: 0.04em;
}
.comment-metadata a { color: var(--gray); text-decoration: none; }
.comment-content { font-size: 0.9rem; color: var(--gray); line-height: 1.8; }
.comment-content p { margin-bottom: 0.8rem; }
.comment-content p:last-child { margin-bottom: 0; }
.reply { margin-top: 0.8rem; }
.comment-reply-link {
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--jungle); text-decoration: none; font-weight: 600;
}
.comment-reply-link:hover { color: var(--gold); }
.comment-awaiting-moderation {
  display: block; margin-top: 0.6rem; font-size: 0.78rem; font-style: italic; color: var(--gold);
}
.comments-closed { color: var(--gray); font-size: 0.88rem; padding-top: 2.5rem; border-top: 1px solid rgba(0,0,0,0.08); }

#respond {
  padding-top: 2.5rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}
#reply-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  color: var(--jungle);
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
}
#reply-title small a {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray);
  margin-left: 0.8rem;
}
.comment-form p { margin: 0 0 1.2rem; }
.comment-form label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--jungle);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.12);
  padding: 0.75rem 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  color: var(--dark);
  outline: none;
}
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  border-color: var(--gold);
}
.comment-form textarea { resize: vertical; }
.comment-form-note { font-size: 0.72rem; color: var(--gray); margin: -0.5rem 0 1.2rem; }
.comment-form-cookies-consent { display: flex; align-items: center; gap: 0.5rem; }
.comment-form-cookies-consent label { margin: 0; text-transform: none; letter-spacing: normal; font-weight: 400; font-size: 0.78rem; color: var(--gray); }
.comment-submit-btn {
  background: var(--gold);
  color: var(--dark) !important;
  border: none;
  padding: 0.7rem 1.6rem;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
}
.comment-submit-btn:hover { background: var(--light-gold); gap: inherit; }
.comment-nav { margin-top: 1rem; font-size: 0.78rem; color: var(--jungle); }

@media (max-width: 768px) {
  #comments-section { padding: 0 1.2rem 4rem; }
}
