/*
Theme Name: Jeff R Burt
Theme URI: https://jeffrburt.com
Author: Custom Build
Author URI: https://jeffrburt.com
Description: A dark, maritime, gold-leafed author & artwork store theme for Jeff R Burt — "Captain Burt: Against the Solstice Tide". WooCommerce-ready, fully responsive.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jeffrburt
Tags: author, ecommerce, woocommerce, dark, custom-menu, featured-images, blog, portfolio
*/

/* =========================================================
   0. Design tokens
   ========================================================= */
:root{
  --ink:        #060d16;   /* deepest bg */
  --navy-950:   #08131f;
  --navy-900:   #0a1826;
  --navy-800:   #0e2032;
  --navy-700:   #12293f;
  --panel:      #0d1c2c;
  --panel-2:    #102638;
  --line:       rgba(201,162,74,.28);
  --line-soft:  rgba(201,162,74,.14);

  --gold:       #c9a24a;
  --gold-2:     #d9b665;
  --gold-hi:    #ecd08a;
  --gold-deep:  #a5822f;

  --cream:      #f0e6cd;
  --cream-dim:  #c9c1ab;
  --muted:      #9aa7b4;

  --maxw: 1200px;
  --radius: 6px;

  --f-display: "Cinzel", Georgia, "Times New Roman", serif;
  --f-body: "EB Garamond", Georgia, serif;

  --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.75);
  --shadow-md: 0 14px 34px -14px rgba(0,0,0,.7);
}

/* =========================================================
   1. Reset / base
   ========================================================= */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  margin:0;
  font-family:var(--f-body);
  font-size:19px;
  line-height:1.7;
  color:var(--cream);
  background:var(--ink);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:var(--gold-2); text-decoration:none; transition:color .2s ease; }
a:hover{ color:var(--gold-hi); }
h1,h2,h3,h4,h5{ font-family:var(--f-display); font-weight:600; line-height:1.15; margin:0 0 .5em; color:var(--cream); letter-spacing:.02em; }
p{ margin:0 0 1.1em; }
ul{ margin:0; padding:0; }
button{ font-family:inherit; cursor:pointer; }
::selection{ background:var(--gold); color:var(--ink); }

/* Inline icon wrappers */
.jrb-ico{ display:inline-flex; align-items:center; justify-content:center; width:1em; height:1em; line-height:0; }
.jrb-ico svg{ width:100%; height:100%; display:block; }

.container{ width:100%; max-width:var(--maxw); margin:0 auto; padding:0 24px; }
.section{ padding:90px 0; position:relative; }
.text-center{ text-align:center; }

/* Ornamental section title */
.eyebrow{
  font-family:var(--f-display);
  color:var(--gold-2);
  letter-spacing:.34em;
  text-transform:uppercase;
  font-size:.72rem;
  margin:0 0 10px;
}
.section-title{
  font-size:clamp(1.9rem,4vw,3rem);
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--gold-2);
  margin:0 0 .1em;
}
.title-rule{
  display:flex; align-items:center; justify-content:center; gap:16px;
  margin:14px 0 46px;
}
.title-rule::before,.title-rule::after{
  content:""; height:1px; width:80px;
  background:linear-gradient(90deg,transparent,var(--gold));
}
.title-rule::after{ background:linear-gradient(90deg,var(--gold),transparent); }
.title-rule .anchor{ color:var(--gold); font-size:1.1rem; }

/* Buttons */
.btn{
  display:inline-block;
  font-family:var(--f-display);
  text-transform:uppercase;
  letter-spacing:.18em;
  font-size:.82rem;
  padding:16px 34px;
  border-radius:4px;
  border:1px solid var(--gold);
  color:var(--ink);
  background:linear-gradient(180deg,var(--gold-2),var(--gold-deep));
  box-shadow:0 8px 22px -10px rgba(201,162,74,.6);
  transition:transform .18s ease, box-shadow .18s ease, background .2s ease;
}
.btn:hover{ color:var(--ink); transform:translateY(-2px); box-shadow:0 12px 26px -8px rgba(201,162,74,.8); background:linear-gradient(180deg,var(--gold-hi),var(--gold)); }
.btn-ghost{
  background:transparent; color:var(--gold-2);
  box-shadow:none;
}
.btn-ghost:hover{ background:rgba(201,162,74,.1); color:var(--gold-hi); }
.btn-block{ display:block; width:100%; text-align:center; }

/* =========================================================
   2. Header / navigation
   ========================================================= */
.site-header{
  position:sticky; top:0; z-index:100;
  background:linear-gradient(180deg,rgba(6,13,22,.96),rgba(6,13,22,.86));
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line-soft);
  transition:background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled{ box-shadow:0 10px 30px -18px #000; background:rgba(6,13,22,.98); }
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:18px; min-height:82px;
}
.brand{ display:flex; align-items:center; gap:14px; }
.brand-anchor{ width:34px; height:34px; color:var(--gold); flex:none; }
.brand-anchor .jrb-ico{ width:100%; height:100%; }
.brand-text{ display:flex; flex-direction:column; line-height:1; }
.brand-name{
  font-family:var(--f-display); font-weight:700;
  font-size:1.35rem; letter-spacing:.14em; color:var(--cream);
  text-transform:uppercase; white-space:nowrap;
}
.brand-tag{ white-space:nowrap; }
.brand-tag{
  font-family:var(--f-display); font-size:.52rem; letter-spacing:.28em;
  color:var(--gold-2); text-transform:uppercase; margin-top:5px;
}

.main-nav ul{ display:flex; align-items:center; gap:30px; list-style:none; }
.main-nav a{
  font-family:var(--f-display);
  color:var(--cream);
  text-transform:uppercase; letter-spacing:.14em; font-size:.78rem;
  padding:6px 0; position:relative;
}
.main-nav a::after{
  content:""; position:absolute; left:0; bottom:-2px; height:2px; width:0;
  background:var(--gold); transition:width .25s ease;
}
.main-nav a:hover, .main-nav .current-menu-item > a{ color:var(--gold-hi); }
.main-nav a:hover::after, .main-nav .current-menu-item > a::after{ width:100%; }

.header-actions{ display:flex; align-items:center; gap:20px; }
.header-actions a{ color:var(--cream); display:flex; }
.header-actions a:hover{ color:var(--gold-hi); }
.header-actions .jrb-ico{ width:21px; height:21px; }
.cart-link{ position:relative; }
.cart-count{
  position:absolute; top:-9px; right:-11px;
  background:var(--gold); color:var(--ink);
  font-family:var(--f-display); font-size:.6rem; font-weight:700;
  min-width:17px; height:17px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; padding:0 3px;
}
.nav-toggle{ display:none; background:none; border:0; color:var(--cream); padding:6px; }
.nav-toggle .jrb-ico{ width:28px; height:28px; }

/* Search overlay */
.search-overlay{
  position:fixed; inset:0; z-index:200; background:rgba(6,13,22,.97);
  display:none; align-items:center; justify-content:center; padding:24px;
}
.search-overlay.open{ display:flex; }
.search-overlay form{ width:min(640px,100%); display:flex; gap:12px; border-bottom:2px solid var(--gold); padding-bottom:12px; }
.search-overlay input[type=search]{
  flex:1; background:none; border:0; outline:none; color:var(--cream);
  font-family:var(--f-display); font-size:1.6rem; letter-spacing:.05em;
}
.search-overlay input::placeholder{ color:var(--muted); }
.search-overlay .search-submit{ background:none; border:0; color:var(--gold); font-family:var(--f-display); text-transform:uppercase; letter-spacing:.15em; }
.search-close{ position:absolute; top:28px; right:34px; background:none; border:0; color:var(--cream); font-size:2rem; line-height:1; }

/* =========================================================
   3. Hero
   ========================================================= */
.hero{
  position:relative; overflow:hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(18,41,63,.55), transparent 60%),
    linear-gradient(180deg,#0a1826 0%, #060d16 100%);
}
.hero::before{
  content:""; position:absolute; inset:0;
  background:url(assets/images/hero-bg.jpg) center/cover no-repeat;
  opacity:.35; mix-blend-mode:screen;
}
.hero::after{
  content:""; position:absolute; inset:0;
  background:radial-gradient(90% 70% at 50% 40%, transparent, rgba(6,13,22,.75) 90%);
}
.hero-inner{
  position:relative; z-index:2;
  display:grid; grid-template-columns:0.9fr 1.1fr 0.85fr; align-items:center;
  gap:20px; min-height:640px; padding:70px 0 60px;
}
.hero-book{ position:relative; }
.hero-book img{
  filter:drop-shadow(0 30px 40px rgba(0,0,0,.7));
  transform:perspective(900px) rotateY(-6deg);
  animation:float 6s ease-in-out infinite;
  max-width:320px; margin-left:auto;
}
@keyframes float{ 0%,100%{transform:perspective(900px) rotateY(-6deg) translateY(0)} 50%{transform:perspective(900px) rotateY(-6deg) translateY(-14px)} }

.hero-copy{ text-align:center; padding:0 6px; }
.hero-mark{ color:var(--gold); font-size:1.3rem; letter-spacing:.4em; margin-bottom:14px; }
.hero-title{
  font-size:clamp(3rem,7vw,5.4rem);
  line-height:.95; text-transform:uppercase; letter-spacing:.04em;
  color:var(--gold-2);
  text-shadow:0 4px 30px rgba(0,0,0,.6);
  margin:0;
}
.hero-sub{
  font-family:var(--f-display); text-transform:uppercase; letter-spacing:.22em;
  color:var(--cream); font-size:clamp(.9rem,2vw,1.25rem); margin:18px 0 4px;
}
.hero-anchor-rule{ color:var(--gold); margin:16px 0 22px; font-size:1.1rem; }
.hero-lede{ color:var(--cream-dim); font-size:1.15rem; font-style:italic; max-width:420px; margin:0 auto 30px; }
.hero-portrait{ position:relative; align-self:end; }
.hero-portrait img{
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 22%,#000 100%);
          mask-image:linear-gradient(90deg,transparent,#000 22%,#000 100%);
  filter:contrast(1.03) saturate(.95);
  margin-top:auto;
}

/* =========================================================
   4. Editions
   ========================================================= */
.editions{ background:linear-gradient(180deg,#060d16,#0a1826); }
.editions-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; max-width:1000px; margin:0 auto; }
.edition-card{
  background:linear-gradient(180deg,var(--panel),var(--navy-950));
  border:1px solid var(--line); border-radius:var(--radius);
  padding:34px 26px; text-align:center;
  box-shadow:var(--shadow-md);
  transition:transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.edition-card:hover{ transform:translateY(-8px); border-color:var(--gold); box-shadow:0 26px 46px -20px rgba(0,0,0,.8); }
.edition-icon{
  width:62px; height:62px; margin:0 auto 18px;
  border:1px solid var(--gold); border-radius:50%;
  display:flex; align-items:center; justify-content:center; color:var(--gold);
}
.edition-icon .jrb-ico{ width:28px; height:28px; }
.edition-card h3{ color:var(--gold-2); text-transform:uppercase; letter-spacing:.1em; font-size:1.3rem; margin-bottom:6px; }
.edition-card .edition-note{ color:var(--muted); font-size:.98rem; margin-bottom:20px; line-height:1.5; }
.edition-cover{ height:200px; display:flex; align-items:flex-end; justify-content:center; margin-bottom:22px; }
.edition-cover img{ max-height:200px; width:auto; filter:drop-shadow(0 16px 22px rgba(0,0,0,.6)); }
.edition-price{ font-family:var(--f-display); color:var(--cream); font-size:1.4rem; margin-bottom:16px; }

/* =========================================================
   5. Gallery
   ========================================================= */
.gallery{ background:linear-gradient(180deg,#0a1826,#08131f); }
.gallery-grid{
  display:grid; grid-template-columns:repeat(5,1fr); gap:16px; margin-bottom:40px;
}
.gallery-item{
  position:relative; border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; aspect-ratio:7/9; background:var(--panel);
  box-shadow:var(--shadow-md);
}
.gallery-item img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.gallery-item:hover img{ transform:scale(1.07); }
.gallery-item .g-overlay{
  position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:flex-end;
  padding:16px; text-align:center;
  background:linear-gradient(180deg,transparent 40%,rgba(6,13,22,.9));
  opacity:0; transition:opacity .3s ease;
}
.gallery-item:hover .g-overlay{ opacity:1; }
.g-overlay .g-name{ font-family:var(--f-display); color:var(--gold-hi); font-size:.9rem; text-transform:uppercase; letter-spacing:.08em; margin-bottom:4px; }
.g-overlay .g-price{ color:var(--cream); font-size:.9rem; margin-bottom:10px; }
.g-overlay .g-buy{
  font-family:var(--f-display); font-size:.68rem; letter-spacing:.15em; text-transform:uppercase;
  border:1px solid var(--gold); color:var(--gold-hi); padding:7px 16px; border-radius:3px;
}
.g-overlay .g-buy:hover{ background:var(--gold); color:var(--ink); }

/* =========================================================
   6. Trust bar
   ========================================================= */
.trust{
  background:
    linear-gradient(180deg,rgba(10,24,38,.9),rgba(10,24,38,.9)),
    url(assets/images/hero-bg.jpg) center/cover fixed;
  border-top:1px solid var(--line-soft); border-bottom:1px solid var(--line-soft);
  padding:56px 0;
}
.trust-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.trust-item{ text-align:center; padding:0 20px; position:relative; }
.trust-item + .trust-item::before{
  content:""; position:absolute; left:0; top:6px; bottom:6px; width:1px; background:var(--line-soft);
}
.trust-icon{ color:var(--gold); margin-bottom:14px; }
.trust-icon .jrb-ico{ width:34px; height:34px; }
.trust-item h4{ color:var(--gold-2); text-transform:uppercase; letter-spacing:.1em; font-size:.95rem; margin-bottom:6px; }
.trust-item p{ color:var(--muted); font-size:.9rem; margin:0; line-height:1.5; }

/* =========================================================
   7. About
   ========================================================= */
.about{ position:relative; background:linear-gradient(180deg,#08131f,#0a1826); overflow:hidden; }
.about::after{
  content:""; position:absolute; right:-60px; top:50%; transform:translateY(-50%);
  width:360px; height:360px; opacity:.12;
  background:url(assets/images/emblem.jpg) center/contain no-repeat;
  filter:sepia(1) saturate(2) hue-rotate(2deg);
  pointer-events:none;
}
.about-inner{ display:grid; grid-template-columns:340px 1fr; gap:56px; align-items:center; position:relative; z-index:2; }
.about-photo{ position:relative; }
.about-photo img{
  border-radius:50%; border:2px solid var(--gold);
  box-shadow:0 0 0 8px rgba(201,162,74,.08), var(--shadow-lg);
}
.about-body h2{ color:var(--gold-2); text-transform:uppercase; letter-spacing:.05em; font-size:clamp(1.8rem,3.5vw,2.6rem); }
.about-body p{ color:var(--cream-dim); font-size:1.12rem; max-width:560px; }

/* =========================================================
   8. Newsletter
   ========================================================= */
.crew{
  background:linear-gradient(180deg,#0a1826,#060d16);
  border-top:1px solid var(--line-soft);
  padding:70px 0;
}
.crew-inner{ display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:center; }
.crew h2{ color:var(--gold-2); text-transform:uppercase; letter-spacing:.05em; font-size:clamp(1.6rem,3vw,2.3rem); margin-bottom:8px; }
.crew p{ color:var(--muted); margin:0; }
.crew-form{ display:flex; gap:12px; }
.crew-form input[type=email]{
  flex:1; background:var(--navy-950); border:1px solid var(--line);
  border-radius:4px; padding:15px 18px; color:var(--cream);
  font-family:var(--f-body); font-size:1rem; outline:none;
}
.crew-form input[type=email]:focus{ border-color:var(--gold); }
.crew-form input::placeholder{ color:var(--muted); }
.crew-msg{ margin-top:12px; color:var(--gold-hi); font-style:italic; min-height:1.2em; }

/* =========================================================
   9. Footer
   ========================================================= */
.site-footer{ background:var(--ink); border-top:1px solid var(--line-soft); padding:64px 0 28px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; }
.footer-brand .brand{ margin-bottom:18px; }
.footer-brand p{ color:var(--muted); font-size:.95rem; max-width:320px; }
.footer-social{ display:flex; gap:12px; margin-top:20px; }
.footer-social a{
  width:38px; height:38px; border:1px solid var(--line);
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  color:var(--cream);
}
.footer-social a:hover{ background:var(--gold); border-color:var(--gold); color:var(--ink); }
.footer-social .jrb-ico{ width:17px; height:17px; }
.footer-col h5{ color:var(--gold-2); text-transform:uppercase; letter-spacing:.14em; font-size:.8rem; margin-bottom:18px; }
.footer-col ul{ list-style:none; }
.footer-col li{ margin-bottom:11px; }
.footer-col a{ color:var(--cream-dim); font-size:.95rem; }
.footer-col a:hover{ color:var(--gold-hi); }
.pay-icons{ display:flex; flex-wrap:wrap; gap:8px; margin-top:6px; }
.pay-icons span{
  background:#fff; color:#0a1826; font-family:Arial,sans-serif; font-weight:700;
  font-size:.62rem; padding:5px 8px; border-radius:3px; letter-spacing:.02em;
}
.footer-secure{ display:flex; align-items:center; gap:8px; color:var(--muted); font-size:.82rem; margin-top:14px; }
.footer-secure .jrb-ico{ width:16px; height:16px; color:var(--gold); }
.footer-bottom{
  margin-top:48px; padding-top:22px; border-top:1px solid var(--line-soft);
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
  color:var(--muted); font-size:.85rem;
}
.footer-bottom a{ color:var(--muted); }
.footer-bottom a:hover{ color:var(--gold-hi); }

/* =========================================================
   10. Generic page / blog / woo content
   ========================================================= */
.page-hero{ padding:80px 0 40px; text-align:center; background:linear-gradient(180deg,#0a1826,#060d16); border-bottom:1px solid var(--line-soft); }
.page-hero h1{ color:var(--gold-2); text-transform:uppercase; letter-spacing:.05em; font-size:clamp(2rem,4vw,3rem); }
.content-area{ padding:70px 0; }
.content-narrow{ max-width:760px; margin:0 auto; }
.content-area h1,.content-area h2,.content-area h3{ color:var(--gold-2); }
.content-area a{ text-decoration:underline; }

.post-card{
  background:linear-gradient(180deg,var(--panel),var(--navy-950));
  border:1px solid var(--line-soft); border-radius:var(--radius); overflow:hidden;
  margin-bottom:34px; box-shadow:var(--shadow-md);
}
.post-card .thumb img{ width:100%; height:260px; object-fit:cover; }
.post-card .post-body{ padding:26px 30px; }
.post-card h2{ font-size:1.5rem; margin-bottom:8px; }
.post-card h2 a{ color:var(--cream); text-decoration:none; }
.post-card h2 a:hover{ color:var(--gold-hi); }
.post-meta{ color:var(--muted); font-size:.85rem; letter-spacing:.05em; text-transform:uppercase; margin-bottom:14px; }
.post-card .excerpt{ color:var(--cream-dim); }

.pagination{ display:flex; gap:8px; justify-content:center; margin-top:40px; flex-wrap:wrap; }
.pagination .page-numbers{
  font-family:var(--f-display); padding:9px 15px; border:1px solid var(--line);
  border-radius:4px; color:var(--cream); font-size:.85rem;
}
.pagination .page-numbers.current,.pagination .page-numbers:hover{ background:var(--gold); color:var(--ink); border-color:var(--gold); }

/* WooCommerce polish */
.woocommerce-store-notice{ display:none !important; }
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price{ color:var(--gold-hi) !important; font-family:var(--f-display); }
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title{ color:var(--cream); font-family:var(--f-display); font-size:1.05rem; }
.woocommerce a.button, .woocommerce button.button,
.woocommerce #respond input#submit, .woocommerce input.button,
.woocommerce .button.alt{
  background:linear-gradient(180deg,var(--gold-2),var(--gold-deep)) !important;
  color:var(--ink) !important; font-family:var(--f-display) !important;
  text-transform:uppercase; letter-spacing:.1em; border-radius:4px !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover{ background:var(--gold-hi) !important; }
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info{ border-top-color:var(--gold) !important; }

/* =========================================================
   11. Responsive
   ========================================================= */
@media (max-width:1024px){
  .hero-inner{ grid-template-columns:1fr 1fr; }
  .hero-portrait{ display:none; }
  .hero-book img{ max-width:260px; }
  .gallery-grid{ grid-template-columns:repeat(3,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; gap:34px; }
}
@media (max-width:820px){
  .main-nav{
    position:fixed; inset:82px 0 auto 0; background:var(--navy-950);
    border-bottom:1px solid var(--line); transform:translateY(-140%);
    transition:transform .35s ease; z-index:90;
  }
  .main-nav.open{ transform:translateY(0); }
  .main-nav ul{ flex-direction:column; gap:0; padding:10px 0; }
  .main-nav li{ width:100%; border-bottom:1px solid var(--line-soft); }
  .main-nav a{ display:block; padding:16px 26px; }
  .nav-toggle{ display:block; }
  .editions-grid{ grid-template-columns:1fr; max-width:420px; }
  .trust-grid{ grid-template-columns:1fr 1fr; gap:36px 10px; }
  .trust-item:nth-child(3)::before{ display:none; }
  .about-inner{ grid-template-columns:1fr; text-align:center; gap:32px; }
  .about-photo{ max-width:280px; margin:0 auto; }
  .crew-inner{ grid-template-columns:1fr; text-align:center; }
  .crew-form{ max-width:480px; margin:0 auto; }
}
@media (max-width:600px){
  body{ font-size:18px; }
  .section{ padding:64px 0; }
  .hero-inner{ grid-template-columns:1fr; text-align:center; min-height:auto; }
  .hero-book img{ max-width:210px; margin:0 auto; }
  .gallery-grid{ grid-template-columns:1fr 1fr; }
  .footer-grid{ grid-template-columns:1fr; text-align:center; }
  .footer-social,.pay-icons{ justify-content:center; }
  .footer-brand p{ margin:0 auto; }
  .footer-bottom{ flex-direction:column; align-items:center; text-align:center; }
  .crew-form{ flex-direction:column; }
  .trust-item + .trust-item::before{ display:none; }
}
