/*
Theme Name: Manav Raj Equine
Theme URI: https://example.com
Author: Manav Raj
Author URI: https://example.com
Description: Dark, editorial equine portfolio theme with blog series, video and gallery support. Built for horsemanship photography, conformation series writing, and video content.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: manav-raj-equine
*/

/* ==========================================================================
   Design tokens — dark, warm, equine palette
   ========================================================================== */
:root{
  --bg:            #16110d;   /* near-black saddle base */
  --bg-alt:        #1e1712;   /* slightly lifted panel bg */
  --accent:        #c89b3c;   /* burnished gold */
  --accent-dim:    #8a6a28;
  --rust:          #a24e2c;   /* leather rust, secondary accent */
  --text:          #f4ede4;   /* warm off white */
  --text-muted:    #cbbfae;
  --line:          rgba(244,237,228,0.12);
  --max-w:         1320px;
  --gutter:        clamp(20px, 5vw, 64px);
  --radius:        2px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Reset --------------------------------------------------------------- */
*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:var(--accent); text-decoration:none; }
a:hover{ color:var(--text); }
h1,h2,h3,h4{ font-family:var(--serif); font-weight:600; line-height:1.15; margin:0 0 .5em; color:var(--text); }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family:inherit; }

.container{ max-width:var(--max-w); margin:0 auto; padding:0 var(--gutter); }
.eyebrow{
  font-family:var(--sans); text-transform:uppercase; letter-spacing:.18em;
  font-size:.75rem; color:var(--accent); font-weight:600;
}
.btn{
  display:inline-block; padding:.85em 1.8em; border:1px solid var(--accent);
  color:var(--accent); text-transform:uppercase; letter-spacing:.12em; font-size:.78rem;
  font-weight:600; transition:all .25s ease; border-radius:var(--radius);
}
.btn:hover{ background:var(--accent); color:var(--bg); }
.btn.solid{ background:var(--accent); color:var(--bg); }
.btn.solid:hover{ background:var(--text); border-color:var(--text); }

/* ==========================================================================
   Site header / nav
   ========================================================================== */
.site-header{
  position:absolute; top:0; left:0; right:0; z-index:50;
  padding:28px 0;
}
.site-header.is-solid{
  position:sticky; background:rgba(22,17,13,.92); backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line); padding:16px 0;
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; }
.site-branding a{ font-family:var(--serif); font-size:1.3rem; letter-spacing:.08em; color:var(--text); }
.site-branding span{ color:var(--accent); }
.main-nav ul{ display:flex; gap:34px; }
.main-nav a{
  color:var(--text); font-size:.82rem; text-transform:uppercase; letter-spacing:.14em; font-weight:500;
}
.main-nav a:hover{ color:var(--accent); }
.menu-toggle{ display:none; background:none; border:0; color:var(--text); font-size:1.6rem; cursor:pointer; }

@media (max-width:860px){
  .main-nav{ position:fixed; inset:0 0 0 auto; width:min(320px,80%); height:100vh; background:var(--bg-alt);
    transform:translateX(100%); transition:transform .35s ease; padding:100px 32px; border-left:1px solid var(--line); }
  .main-nav.open{ transform:translateX(0); }
  .main-nav ul{ flex-direction:column; gap:26px; }
  .menu-toggle{ display:block; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  position:relative; min-height:100vh; display:flex; align-items:flex-end;
  background-size:cover; background-position:center 30%;
  background-color:#211a14;
}
.hero::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(15,11,8,.35) 0%, rgba(15,11,8,.55) 55%, rgba(15,11,8,.92) 100%);
}
.hero-inner{ position:relative; z-index:2; width:100%; padding-bottom:9vh; }
.hero-name{
  font-family:var(--serif); font-size:clamp(3rem, 10vw, 7.5rem); letter-spacing:.03em;
  line-height:.95; margin:0;
}
.hero-tagline{
  color:var(--text-muted); font-size:clamp(1rem,2vw,1.25rem); max-width:560px; margin-top:18px;
}
.hero-scroll{
  position:absolute; bottom:34px; left:50%; transform:translateX(-50%); z-index:2;
  width:1px; height:60px; background:var(--line); overflow:hidden;
}
.hero-scroll::after{
  content:""; position:absolute; top:-60px; left:0; width:100%; height:60px; background:var(--accent);
  animation:scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine{ to{ top:100%; } }

/* ==========================================================================
   Series rows (front page)
   ========================================================================== */
.series-intro{ padding:min(14vh,140px) 0 40px; text-align:center; }
.series-intro h2{ font-size:clamp(1.8rem,4vw,2.6rem); max-width:680px; margin:14px auto 0; }
.series-row{
  display:grid; grid-template-columns:1.1fr 1fr; align-items:center; gap:0;
  border-top:1px solid var(--line);
}
.series-row:last-child{ border-bottom:1px solid var(--line); }
.series-row .series-media{ position:relative; aspect-ratio:4/3; overflow:hidden; }
.series-row .series-media img{ width:100%; height:100%; object-fit:cover; transition:transform .6s ease; }
.series-row:hover .series-media img{ transform:scale(1.05); }
.series-row .series-copy{ padding:var(--gutter); }
.series-row:nth-child(even){ direction:rtl; }
.series-row:nth-child(even) .series-copy{ direction:ltr; }
.series-index{ font-family:var(--serif); font-size:.95rem; color:var(--accent-dim); }
.series-copy h3{ font-size:clamp(1.6rem,3vw,2.3rem); margin-top:10px; }
.series-copy p{ color:var(--text-muted); max-width:480px; }
.series-count{ display:inline-block; margin-top:6px; font-size:.78rem; color:var(--text-muted); letter-spacing:.08em; text-transform:uppercase; }
.series-copy .btn{ margin-top:22px; }

@media (max-width:780px){
  .series-row, .series-row:nth-child(even){ grid-template-columns:1fr; direction:ltr; }
  .series-row .series-copy{ padding:36px var(--gutter); }
}

/* ==========================================================================
   Generic section header
   ========================================================================== */
.page-hero{
  padding:calc(120px + 6vh) 0 60px; border-bottom:1px solid var(--line); background:var(--bg-alt);
}
.page-hero h1{ font-size:clamp(2.2rem,5vw,3.6rem); }
.page-hero p{ color:var(--text-muted); max-width:640px; }

/* ==========================================================================
   Blog / archive / single
   ========================================================================== */
.post-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:44px; padding:70px 0; }
.post-card .thumb{ aspect-ratio:3/2; overflow:hidden; margin-bottom:18px; background:var(--bg-alt); }
.post-card .thumb img{ width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.post-card:hover .thumb img{ transform:scale(1.04); }
.post-card .eyebrow{ display:block; margin-bottom:8px; }
.post-card h3{ font-size:1.35rem; }
.post-card .excerpt{ color:var(--text-muted); font-size:.95rem; }
.post-meta{ color:var(--text-muted); font-size:.8rem; letter-spacing:.05em; text-transform:uppercase; margin-top:10px; }

.single-post{ padding:60px 0 100px; }
.single-post .post-featured{ margin-bottom:40px; aspect-ratio:16/9; overflow:hidden; }
.single-post .post-featured img{ width:100%; height:100%; object-fit:cover; }
.single-post .entry-content{ max-width:760px; margin:0 auto; font-size:1.08rem; }
.single-post .entry-content p{ margin:0 0 1.4em; }
.single-post .entry-content h2{ margin-top:1.6em; font-size:1.6rem; }
.single-post .entry-content img{ margin:2em 0; }
.single-post .entry-content blockquote{
  border-left:3px solid var(--accent); margin:2em 0; padding-left:24px; font-family:var(--serif);
  font-style:italic; color:var(--text-muted); font-size:1.2rem;
}
.series-nav{
  max-width:760px; margin:60px auto 0; padding-top:30px; border-top:1px solid var(--line);
  display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap;
}
.series-nav a{ font-size:.85rem; text-transform:uppercase; letter-spacing:.08em; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid{ column-count:3; column-gap:14px; padding:70px 0 100px; }
.gallery-grid figure{ break-inside:avoid; margin:0 0 14px; position:relative; overflow:hidden; cursor:zoom-in; }
.gallery-grid img{ width:100%; display:block; transition:transform .4s ease; }
.gallery-grid figure:hover img{ transform:scale(1.04); }
.gallery-grid figcaption{
  position:absolute; left:0; right:0; bottom:0; padding:14px; font-size:.8rem;
  background:linear-gradient(180deg, transparent, rgba(0,0,0,.75)); opacity:0; transition:opacity .25s ease;
}
.gallery-grid figure:hover figcaption{ opacity:1; }
@media (max-width:900px){ .gallery-grid{ column-count:2; } }
@media (max-width:560px){ .gallery-grid{ column-count:1; } }

.lightbox{
  position:fixed; inset:0; background:rgba(10,8,6,.94); z-index:999; display:none;
  align-items:center; justify-content:center; padding:5vw;
}
.lightbox.open{ display:flex; }
.lightbox img{ max-height:90vh; max-width:100%; margin:0 auto; }
.lightbox-close{
  position:absolute; top:24px; right:34px; color:var(--text); font-size:2rem; background:none; border:0; cursor:pointer;
}

/* ==========================================================================
   Videos
   ========================================================================== */
.video-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:36px; padding:70px 0 100px; }
.video-card .video-thumb{ position:relative; aspect-ratio:16/9; overflow:hidden; cursor:pointer; background:var(--bg-alt); }
.video-card .video-thumb img{ width:100%; height:100%; object-fit:cover; }
.video-card .play-btn{
  position:absolute; inset:0; margin:auto; width:64px; height:64px; border-radius:50%;
  background:rgba(200,155,60,.9); display:flex; align-items:center; justify-content:center;
}
.video-card .play-btn::after{
  content:""; border-left:16px solid var(--bg); border-top:10px solid transparent; border-bottom:10px solid transparent; margin-left:4px;
}
.video-card h3{ font-size:1.15rem; margin-top:16px; }
.video-modal{
  position:fixed; inset:0; background:rgba(10,8,6,.95); z-index:999; display:none; align-items:center; justify-content:center; padding:4vw;
}
.video-modal.open{ display:flex; }
.video-modal .frame-wrap{ width:100%; max-width:1000px; aspect-ratio:16/9; }
.video-modal iframe{ width:100%; height:100%; border:0; }
.video-modal-close{ position:absolute; top:24px; right:34px; color:var(--text); font-size:2rem; background:none; border:0; cursor:pointer; }

/* ==========================================================================
   About page
   ========================================================================== */
.about-layout{ display:grid; grid-template-columns:.9fr 1.1fr; gap:60px; align-items:start; padding:80px 0 110px; }
.about-layout img{ position:sticky; top:120px; }
.about-copy p{ color:var(--text-muted); }
.about-stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin:40px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:26px 0; }
.about-stats .num{ font-family:var(--serif); font-size:2rem; color:var(--accent); }
.about-stats .label{ font-size:.75rem; text-transform:uppercase; letter-spacing:.1em; color:var(--text-muted); }
@media (max-width:820px){ .about-layout{ grid-template-columns:1fr; } .about-layout img{ position:static; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{ border-top:1px solid var(--line); padding:60px 0 40px; background:var(--bg-alt); }
.footer-grid{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:30px; }
.footer-brand{ font-family:var(--serif); font-size:1.4rem; }
.footer-social a{ margin-right:18px; font-size:.8rem; text-transform:uppercase; letter-spacing:.08em; }
.footer-bottom{ margin-top:40px; padding-top:24px; border-top:1px solid var(--line); font-size:.78rem; color:var(--text-muted); display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }

/* WP core alignment helpers */
.alignwide{ max-width:1100px; }
.alignfull{ width:100vw; position:relative; left:50%; right:50%; margin-left:-50vw; margin-right:-50vw; }
.wp-block-quote{ border-left:3px solid var(--accent); padding-left:20px; }
