/*
Theme Name: Daniel Cross
Theme URI: https://crossdaniel.com
Author: Daniel Cross
Description: Custom theme for Daniel Cross - practical marketing and business ebooks for freelancers, local shops, and small business owners.
Version: 1.0
Text Domain: crossdaniel
*/

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root{
  /* Colors */
  --navy:        #1B2A4A;
  --navy-deep:   #131F38;
  --orange:      #F4772C;
  --orange-deep: #E8672A;
  --paper:       #F7F4EE;
  --white:       #FFFFFF;
  --ink:         #1C2230;
  --slate:       #6B7280;
  --line:        #E4DFD3;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', Menlo, monospace;

  /* Layout */
  --max-width: 1120px;
  --radius: 6px;
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
/*a{ color: inherit; text-decoration:none; }*/
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4{ font-family: var(--font-display); font-weight:600; line-height:1.15; margin:0 0 .5em; color: var(--navy); }
p{ margin:0 0 1em; }
.container{ max-width: var(--max-width); margin:0 auto; padding: 0 24px; }

a:focus-visible, button:focus-visible{
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  background: var(--navy);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.site-title{
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.3px;
}
.site-title span{ color: var(--orange); }

.primary-nav ul{ display:flex; gap: 32px; }
.primary-nav a{
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  font-weight: 500;
  transition: color .15s ease;
}
.primary-nav a:hover{ color: var(--orange); }

.nav-toggle{ display:none; }

@media (max-width: 780px){
  .primary-nav ul{
    position:absolute; left:0; right:0; top:64px;
    background: var(--navy-deep);
    flex-direction:column;
    gap:0;
    padding: 8px 24px 16px;
    display:none;
  }
  .primary-nav ul.is-open{ display:flex; }
  .primary-nav a{ display:block; padding: 12px 0; border-bottom:1px solid rgba(255,255,255,0.08); }
  .nav-toggle{
    display:block;
    background:none; border:0; color:var(--white);
    font-size: 26px; cursor:pointer; line-height:1;
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero{
  background: var(--navy);
  color: var(--white);
  padding: 96px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero::after{
  content:"";
  position:absolute;
  right:-120px; top:-120px;
  width:360px; height:360px;
  border-radius:50%;
  background: radial-gradient(circle, rgba(244,119,44,0.25) 0%, rgba(244,119,44,0) 70%);
}
.hero .eyebrow{
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  color: var(--orange);
  margin-bottom: 18px;
  display:block;
}
.hero h1{
  color: var(--white);
  font-size: clamp(34px, 5vw, 56px);
  max-width: 760px;
  margin-bottom: 22px;
}
.hero h1 em{
  font-style: normal;
  color: var(--orange);
}
.hero p.lead{
  font-size: 19px;
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  margin-bottom: 34px;
}
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background: var(--orange);
  color: var(--white);
  font-weight:600;
  font-size:16px;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: none;
  cursor:pointer;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover{ background: var(--orange-deep); transform: translateY(-1px); }
.btn-outline{
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-outline:hover{ border-color: var(--orange); background: rgba(244,119,44,0.08); }
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; }

/* =========================================================
   SHELF (signature section — 5 category "spines")
   ========================================================= */
.shelf{
  padding: 88px 0;
}
.shelf-head{ max-width: 620px; margin-bottom: 48px; }
.shelf-head .eyebrow{
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  color: var(--orange-deep);
  display:block;
  margin-bottom: 12px;
}
.shelf-head h2{ font-size: clamp(26px, 3.4vw, 36px); }
.shelf-head p{ color: var(--slate); font-size: 17px; }

.spines{
  display:flex;
  gap: 4px;
  align-items: stretch;
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: 0 18px 40px -20px rgba(27,42,74,0.35);
}
.spine{
  flex: 1;
  background: var(--navy);
  color: var(--white);
  padding: 32px 18px;
  min-height: 340px;
  display:flex;
  flex-direction:column;
  justify-content: space-between;
  position:relative;
  transition: flex-grow .25s ease, background .25s ease;
  cursor:pointer;
}
.spine:nth-child(2n){ background: var(--navy-deep); }
.spine:hover{ flex-grow: 1.5; background: var(--orange); }
.spine:hover .spine-count,
.spine:hover .spine-desc{ color: rgba(255,255,255,0.92); }
.spine-label{
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.spine-meta{ margin-top: 18px; }
.spine-count{
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  display:block;
  margin-bottom: 6px;
}
.spine-desc{
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  display:none;
}
.spine:hover .spine-desc{ display:block; }

@media (max-width: 900px){
  .spines{ flex-direction:column; }
  .spine{ min-height: auto; flex-direction:row; align-items:center; gap:16px; }
  .spine-label{ writing-mode: horizontal-tb; transform:none; font-size:19px; }
  .spine-desc{ display:block; }
}

/* =========================================================
   LEAD MAGNET / EMAIL CAPTURE STRIP
   ========================================================= */
.magnet-strip{
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
}
.magnet-strip .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 32px;
  flex-wrap:wrap;
}
.magnet-strip h3{ font-size: 24px; margin-bottom: 6px; }
.magnet-strip p{ color: var(--slate); margin:0; max-width:480px; }

/* =========================================================
   ABOUT / TRUST SECTION
   ========================================================= */
.about-section{ padding: 88px 0; }
.about-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items:center;
}
.about-grid h2{ font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 18px; }
.about-grid p{ color: var(--slate); font-size: 17px; }
.about-card{
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
}
.about-card .quote{
  font-family: var(--font-display);
  font-size: 22px;
  line-height:1.4;
  margin-bottom: 18px;
}
.about-card .quote-by{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1px;
}
@media (max-width: 780px){
  .about-grid{ grid-template-columns: 1fr; }
}

/* =========================================================
   FAQ
   ========================================================= */
.faq-section{ padding: 88px 0; }
.faq-item{
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.faq-item summary{
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--navy);
  cursor:pointer;
  list-style:none;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{
  content: "+";
  font-family: var(--font-body);
  font-size: 24px;
  color: var(--orange);
  transition: transform .2s ease;
}
.faq-item[open] summary::after{ transform: rotate(45deg); }
.faq-item p{ color: var(--slate); margin-top: 14px; font-size: 16px; }

/* =========================================================
   GENERIC PAGE CONTENT
   ========================================================= */
.page-hero{
  background: var(--navy);
  color: var(--white);
  padding: 72px 0;
}
.page-hero h1{ color: var(--white); font-size: clamp(30px, 4.5vw, 44px); margin:0; }
.entry-content{
  padding: 64px 0;
  max-width: 760px;
  margin: 0 auto;
}
.entry-content h2{ margin-top: 1.4em; }
.entry-content p{ font-size: 17px; color: var(--ink); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  background: var(--navy-deep);
  color: rgba(255,255,255,0.65);
  padding: 56px 0 32px;
  margin-top: 40px;
}
.footer-grid{
  display:flex;
  justify-content:space-between;
  gap: 32px;
  flex-wrap:wrap;
  margin-bottom: 32px;
}
.footer-brand{
  font-family: var(--font-display);
  color: var(--white);
  font-size: 20px;
}
.footer-brand span{ color: var(--orange); }
.footer-nav ul{ display:flex; gap: 24px; flex-wrap:wrap; }
.footer-nav a{ font-size: 14px; color: rgba(255,255,255,0.65); }
.footer-nav a:hover{ color: var(--orange); }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  font-size: 13px;
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px;
}
