/*
Theme Name: African Primates
Theme URI: https://www.africanprimates.com
Author: African Primates
Author URI: https://www.africanprimates.com
Description: Custom safari-lodge theme for African Primates, a primate-focused safari operator working across eight African countries. Blue-and-gold safari palette (Deep Indigo / Safari Gold / Ivory), Fraunces + Inter typography. Includes dedicated templates for the Tours hub, a single Tour page, the Destinations hub, a single Country page, About Us and Contact Us.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: african-primates
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root{
  --indigo:#1B2A4A;
  --indigo-deep:#101a30;
  --gold:#C9A24B;
  --gold-deep:#a3813a;
  --ivory:#F7F3EA;
  --paper:#ffffff;
  --ink:#211F1C;
  --muted:#6f6558;
  --line:#e4ddd0;
}

/* ==========================================================================
   Base
   ========================================================================== */
*,*::before,*::after{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;}
body{
  margin:0;
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  color:var(--ink);
  background:var(--paper);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block;}
a{color:inherit;text-decoration:none;}
h1,h2,h3,h4,h5{
  font-family:'Fraunces',Georgia,serif;
  font-weight:600;
  margin:0 0 12px;
  text-wrap:balance;
  color:var(--ink);
}
p{margin:0 0 14px;}
ul,ol{margin:0 0 14px;padding-left:22px;}
.screen-reader-text{
  position:absolute!important;clip:rect(1px,1px,1px,1px);
  width:1px;height:1px;overflow:hidden;
}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{
  outline:2px solid var(--gold-deep);outline-offset:2px;
}

.eyebrow{
  display:block;text-transform:uppercase;letter-spacing:.14em;
  font-size:11px;font-weight:700;color:var(--gold-deep);margin-bottom:8px;
}
.center{text-align:center;}
.site-section{padding:72px 24px;}
.site-inner{max-width:1080px;margin:0 auto;}
@media (max-width:760px){ .site-section{padding:44px 20px;} }

.btn{
  display:inline-block;font-family:'Inter',sans-serif;font-weight:700;
  font-size:12.5px;letter-spacing:.04em;text-transform:uppercase;
  padding:13px 24px;border-radius:3px;cursor:pointer;border:1px solid transparent;
  transition:opacity .15s;
}
.btn:hover{opacity:.88;}
.btn-gold{background:var(--gold);color:var(--indigo);}
.btn-outline{background:transparent;border-color:#fff;color:#fff;}
.btn-outline-dark{background:transparent;border-color:var(--gold-deep);color:var(--indigo);}
.btn-sm{padding:9px 18px;font-size:11.5px;white-space:nowrap;}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header{background:#fff;border-bottom:1px solid var(--line);position:relative;z-index:30;}
.site-header-inner{
  max-width:1180px;margin:0 auto;padding:16px 24px;
  display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;
}
.site-logo,.site-logo a{
  font-family:'Fraunces',serif;font-weight:600;font-size:20px;color:var(--indigo);
  white-space:nowrap;display:flex;align-items:center;gap:10px;
}
.site-logo img{max-height:44px;width:auto;display:block;}
.site-nav ul{display:flex;gap:24px;list-style:none;margin:0;padding:0;flex-wrap:wrap;}
.site-nav a{font-size:13.5px;font-weight:600;color:var(--ink);}
.site-nav a:hover{color:var(--gold-deep);}
.site-nav .current-menu-item > a{color:var(--gold-deep);}
.menu-toggle{display:none;}
@media (max-width:820px){
  .site-nav ul{gap:14px 18px;}
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  position:relative;color:#fff;background-size:cover;background-position:center;
  padding:120px 24px 96px;
}
.hero::before{content:"";position:absolute;inset:0;background:rgba(27,42,74,.72);}
.hero-inner{position:relative;max-width:680px;}
.hero h1{color:#fff;font-size:clamp(30px,4vw,46px);}
.hero p{color:rgba(255,255,255,.9);font-size:17px;max-width:520px;}
.hero-actions{display:flex;gap:12px;margin-top:22px;flex-wrap:wrap;}
.hero.small{padding:84px 24px 66px;}
.hero.small h1{font-size:clamp(28px,3.4vw,38px);margin-bottom:8px;}

/* ==========================================================================
   Stat bar
   ========================================================================== */
.statbar{background:var(--ivory);padding:38px 24px;}
.statbar-grid{
  max-width:1080px;margin:0 auto;
  display:grid;grid-template-columns:repeat(4,1fr);gap:20px;text-align:center;
}
.stat-num{font-family:'Fraunces',serif;font-size:30px;font-weight:600;color:var(--indigo);font-variant-numeric:tabular-nums;}
.stat-lbl{font-size:12.5px;color:var(--muted);margin-top:2px;}
@media (max-width:760px){ .statbar-grid{grid-template-columns:repeat(2,1fr);} }

/* ==========================================================================
   Overview / split layouts
   ========================================================================== */
.overview-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:44px;align-items:center;}
.overview-grid img{width:100%;border-radius:6px;}
.split-2-1{display:grid;grid-template-columns:2fr 1fr;gap:44px;}
@media (max-width:760px){ .overview-grid,.split-2-1{grid-template-columns:1fr;} }

/* ==========================================================================
   Cards — tours / destinations
   ========================================================================== */
.grid-5{display:grid;grid-template-columns:repeat(5,1fr);gap:20px;}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
@media (max-width:900px){ .grid-5,.grid-4{grid-template-columns:repeat(2,1fr);} }
@media (max-width:600px){ .grid-3{grid-template-columns:1fr;} }

.card{border-radius:6px;overflow:hidden;}
.card img{width:100%;aspect-ratio:4/3;object-fit:cover;}
.card-body{padding:14px 2px 0;}
.card-body h4{font-size:15px;margin-bottom:6px;line-height:1.3;}
.card-body p{font-size:13px;color:var(--muted);margin-bottom:10px;line-height:1.55;}
.card-link{font-size:11.5px;font-weight:700;letter-spacing:.03em;color:var(--gold-deep);text-transform:uppercase;}

.dest-card{position:relative;border-radius:6px;overflow:hidden;aspect-ratio:4/3;}
.dest-card img{width:100%;height:100%;object-fit:cover;}
.dest-label{
  position:absolute;inset:auto 0 0 0;padding:14px 16px;
  background:linear-gradient(0deg,rgba(16,26,48,.85),transparent);
  color:#fff;font-family:'Fraunces',serif;font-weight:600;font-size:17px;
}

/* ==========================================================================
   Why-us band
   ========================================================================== */
.why-band{background:var(--indigo);color:#fff;}
.why-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:36px;}
.why-grid h3{color:var(--gold);font-size:17px;}
.why-grid p{color:rgba(247,243,234,.82);font-size:14px;margin:0;}
@media (max-width:760px){ .why-grid{grid-template-columns:1fr;} }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq details{border:1px solid var(--line);border-radius:5px;padding:15px 18px;margin-bottom:10px;background:#fff;}
.faq summary{cursor:pointer;font-weight:600;font-size:15px;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px;}
.faq summary::-webkit-details-marker{display:none;}
.faq summary::after{content:"+";color:var(--gold-deep);font-size:19px;font-weight:400;flex-shrink:0;}
.faq details[open] summary::after{content:"\2013";}
.faq p:last-child{margin:12px 0 0;font-size:14px;color:var(--muted);}

/* ==========================================================================
   Blog cards
   ========================================================================== */
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
@media (max-width:760px){ .blog-grid{grid-template-columns:1fr;} }
.blog-card img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:6px;margin-bottom:12px;}
.blog-card span{font-size:11.5px;color:var(--gold-deep);font-weight:700;letter-spacing:.03em;text-transform:uppercase;}
.blog-card h4{font-size:15px;margin:6px 0 0;line-height:1.35;}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band{background:var(--indigo);color:#fff;padding:64px 24px;text-align:center;}
.cta-band h2{color:#fff;}
.cta-band p{color:rgba(247,243,234,.85);max-width:560px;margin:0 auto 20px;}

/* ==========================================================================
   Facts box (Tour / Country templates)
   ========================================================================== */
.facts-box{background:var(--ivory);padding:28px;border-radius:6px;align-self:start;}
.facts-box h4{font-size:15px;margin-bottom:14px;}
.facts-box dl{margin:0;font-size:13.5px;}
.facts-box dt{font-weight:700;color:var(--indigo);margin-top:11px;}
.facts-box dt:first-child{margin-top:0;}
.facts-box dd{margin:2px 0 0;color:var(--muted);}

.links-band{background:var(--ivory);padding:48px 24px;text-align:center;}
.links-band .links-row{margin-bottom:22px;}
.links-band .links-row a{font-size:13.5px;font-weight:600;color:var(--indigo);padding:0 12px;border-right:1px solid var(--line);}
.links-band .links-row a:last-child{border-right:none;}

/* ==========================================================================
   Partners / trust band
   ========================================================================== */
.partners-band{background:#fff;padding:52px 24px 48px;border-top:1px solid var(--line);}
.partners-inner{max-width:1080px;margin:0 auto;text-align:center;}
.partners-inner h3{font-size:18px;margin:0 0 4px;}
.partners-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:26px;}
@media (max-width:760px){ .partners-grid{grid-template-columns:repeat(2,1fr);} }
.partner-badge{
  border:1px solid var(--line);border-radius:6px;background:var(--ivory);
  padding:18px 14px;display:flex;align-items:center;justify-content:center;
  font-family:'Inter',sans-serif;font-weight:700;font-size:13px;color:var(--indigo);
  min-height:64px;text-align:center;line-height:1.35;
}
.partner-badge small{display:block;font-weight:400;font-size:10.5px;color:var(--muted);margin-top:3px;}

/* ==========================================================================
   Contact form (native fallback + Contact Form 7 styling)
   ========================================================================== */
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
@media (max-width:600px){ .form-grid{grid-template-columns:1fr;} }
.form-field{display:flex;flex-direction:column;gap:6px;margin-bottom:18px;}
.form-field.full{grid-column:1/-1;}
.form-field label{font-size:12px;font-weight:700;color:var(--indigo);text-transform:uppercase;letter-spacing:.04em;}
.form-field input[type=text],
.form-field input[type=email],
.form-field input[type=tel],
.form-field select,
.form-field textarea,
.wpcf7-form input[type=text],
.wpcf7-form input[type=email],
.wpcf7-form input[type=tel],
.wpcf7-form textarea,
.wpcf7-form select{
  font-family:'Inter',sans-serif;font-size:14px;padding:12px 14px;width:100%;
  border:1px solid var(--line);border-radius:4px;background:#fff;color:var(--ink);
}
.wpcf7-form p{margin-bottom:16px;}
.wpcf7-form input[type=submit]{
  font-family:'Inter',sans-serif;font-weight:700;font-size:12.5px;letter-spacing:.04em;text-transform:uppercase;
  padding:13px 26px;border-radius:3px;background:var(--gold);color:var(--indigo);border:0;cursor:pointer;
}
.form-note{background:var(--ivory);border:1px solid var(--line);border-radius:6px;padding:20px 22px;font-size:13.5px;color:var(--muted);}
.form-note strong{color:var(--indigo);}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{background:var(--indigo-deep);color:#c7cede;}
.footer-top{max-width:1080px;margin:0 auto;padding:56px 24px 40px;display:grid;grid-template-columns:1.4fr 2fr;gap:40px;}
@media (max-width:760px){ .footer-top{grid-template-columns:1fr;} }
.footer-brand{font-family:'Fraunces',serif;font-size:20px;color:#fff;margin-bottom:10px;}
.footer-col.brand-col p{color:#aab4c9;font-size:13.5px;margin-bottom:18px;max-width:340px;}
.footer-social{display:flex;gap:10px;}
.footer-social a{
  width:34px;height:34px;border-radius:50%;border:1px solid #303c58;
  display:flex;align-items:center;justify-content:center;
  font-size:11px;font-weight:700;color:#c7cede;
}
.footer-social a:hover{border-color:var(--gold);color:var(--gold);}
.footer-menu ul{
  list-style:none;margin:0;padding:0;
  columns:3;column-gap:30px;
}
@media (max-width:600px){ .footer-menu ul{columns:2;} }
.footer-menu li{break-inside:avoid;margin-bottom:12px;}
.footer-menu a{color:#aab4c9;font-size:13.5px;}
.footer-menu a:hover{color:var(--gold);}
.footer-bottom{
  max-width:1080px;margin:0 auto;border-top:1px solid #263050;
  padding:18px 24px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;
  font-size:12px;color:#8a93ab;
}

/* ==========================================================================
   Blog / archive listing (index.php, archive.php)
   ========================================================================== */
.post-list{max-width:820px;margin:0 auto;}
.post-list article{border-bottom:1px solid var(--line);padding:34px 0;}
.post-list article:first-child{padding-top:0;}
.post-list h2{font-size:24px;margin-bottom:8px;}
.post-list .post-meta{font-size:12.5px;color:var(--gold-deep);font-weight:700;text-transform:uppercase;letter-spacing:.03em;margin-bottom:10px;}
.post-list .post-thumb{margin-bottom:16px;border-radius:6px;overflow:hidden;}
.pagination{display:flex;gap:10px;justify-content:center;margin-top:20px;}
.pagination a,.pagination span{
  padding:8px 14px;border:1px solid var(--line);border-radius:4px;font-size:13px;font-weight:600;
}
.pagination .current{background:var(--indigo);color:#fff;border-color:var(--indigo);}

.single-post-content{max-width:760px;margin:0 auto;padding:60px 24px;}
.single-post-content .post-meta{font-size:12.5px;color:var(--gold-deep);font-weight:700;text-transform:uppercase;margin-bottom:14px;}
.single-post-content h1{font-size:clamp(28px,4vw,38px);}
.single-post-content .featured{border-radius:6px;overflow:hidden;margin-bottom:28px;}
.single-post-content .entry-content h2{font-size:24px;margin-top:36px;}
.single-post-content .entry-content h3{font-size:19px;margin-top:26px;}
.single-post-content .entry-content h4{font-size:16px;margin-top:20px;}
