/* ============================================
   Deckplate Wisdom - Brand-Integrated Stylesheet
   Colors aligned to the Deckplate Wisdom Brand System:
   Navy #14375e | Gold #c9a84c | Cream #f5f1e6 | Charcoal #1c1c1c | Burgundy #7a2e2e
   ============================================ */

:root {
  --navy: #14375e;
  --navy-deep: #0e2540;
  --navy-mid: #1c4a7a;
  --navy-light: #2a5a8a;
  --gold: #c9a84c;
  --gold-bright: #e0c060;
  --gold-soft: #d4b868;
  --cream: #f5f1e6;
  --cream-light: #faf8f0;
  --off-white: #faf9f6;
  --charcoal: #1c1c1c;
  --burgundy: #7a2e2e;
  --text-dark: #1c1c1c;
  --text-gray: #4a4a4a;
  --text-light: #6a6a6a;
  --border-light: #e0ddd3;
  --max-width: 1140px;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--text-dark); background-color: var(--off-white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* Header / Navigation */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(14, 37, 64, 0.96); backdrop-filter: blur(6px); border-bottom: 1px solid rgba(201, 168, 76, 0.25); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; max-width: var(--max-width); margin: 0 auto; }
.logo-wrap { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--gold); flex-shrink: 0; }
.logo { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; color: var(--off-white); letter-spacing: 0.5px; line-height: 1; }
.logo span { color: var(--gold-bright); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--cream); font-size: 0.95rem; font-weight: 500; letter-spacing: 0.3px; transition: color 0.2s ease; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--gold-bright); border-bottom-color: var(--gold-bright); }
.nav-toggle { display: none; background: none; border: none; color: var(--off-white); font-size: 1.6rem; cursor: pointer; }

/* Hero - Uses bg2_website_hero.png */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; background: linear-gradient(180deg, rgba(14,37,64,0.45) 0%, rgba(14,37,64,0.65) 55%, rgba(14,37,64,0.90) 100%), url('images/hero-banner.png'); background-size: cover; background-position: center right; color: var(--off-white); padding-top: 80px; }
.hero-inner { margin: 0 auto; padding: 60px 24px; display: grid; grid-template-columns: 1fr; gap: 0; align-items: center; width: 100%; max-width: 620px; }
.hero-eyebrow { display: inline-block; color: var(--gold-bright); font-size: 0.85rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 18px; }
.hero h1 { font-family: var(--font-serif); font-size: 3rem; line-height: 1.15; font-weight: 700; margin-bottom: 18px; text-shadow: 0 2px 20px rgba(0,0,0,0.4); }
.hero .subtitle { font-size: 1.2rem; color: var(--cream); font-weight: 400; margin-bottom: 28px; max-width: 520px; text-shadow: 0 1px 10px rgba(0,0,0,0.3); }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-block; padding: 14px 30px; font-size: 0.95rem; font-weight: 700; letter-spacing: 0.5px; border-radius: 3px; transition: all 0.2s ease; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid var(--off-white); color: var(--off-white); }
.btn-outline:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn-dark { background: var(--navy-deep); color: var(--off-white); }
.btn-dark:hover { background: var(--navy-light); transform: translateY(-2px); }

/* Section Basics */
section { padding: 90px 0; }
.section-label { color: var(--gold); font-size: 0.85rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; display: block; }
.section-title { font-family: var(--font-serif); font-size: 2.3rem; font-weight: 700; color: var(--navy); margin-bottom: 24px; line-height: 1.25; }
.section-intro { font-size: 1.1rem; color: var(--text-gray); max-width: 700px; margin-bottom: 20px; }
.center { text-align: center; }
.center .section-intro { margin-left: auto; margin-right: auto; }

/* Brand Mark Divider */
.brand-divider { text-align: center; padding: 50px 0; background: var(--cream); }
.brand-divider img { width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 50%; border: 2px solid var(--gold); }
.brand-divider p { font-family: var(--font-serif); font-size: 1.1rem; color: var(--navy); font-style: italic; max-width: 600px; margin: 0 auto; }

/* About the Book */
.about-book { background: var(--off-white); }
.book-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: start; margin-top: 40px; }
.book-cover-wrap img { width: 100%; box-shadow: 0 20px 45px rgba(20,55,94,0.18); border-radius: 4px; }
.book-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 24px 0; font-size: 0.92rem; color: var(--text-gray); }
.book-meta strong { color: var(--navy); }
.book-desc p { margin-bottom: 16px; color: var(--text-dark); font-size: 1.02rem; }
.book-desc p.lead { font-size: 1.1rem; font-weight: 600; color: var(--navy); }
.toc-toggle { margin-top: 28px; }
.toc-list { margin-top: 18px; columns: 2; column-gap: 40px; font-size: 0.95rem; color: var(--text-gray); }
.toc-list li { margin-bottom: 8px; list-style: none; padding-left: 26px; position: relative; break-inside: avoid; }
.toc-list li::before { content: "\2693"; position: absolute; left: 0; color: var(--gold); font-size: 0.75rem; top: 2px; }
.book-ctas { margin-top: 30px; display: flex; gap: 16px; flex-wrap: wrap; }

/* Pull Quote */
.pull-quote-section { background: var(--navy-deep); color: var(--off-white); padding: 100px 0; position: relative; }
.pull-quote-section::before, .pull-quote-section::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.pull-quote-section::before { top: 0; } .pull-quote-section::after { bottom: 0; }
.pull-quote { font-family: var(--font-serif); font-size: 1.9rem; line-height: 1.5; text-align: center; max-width: 780px; margin: 0 auto; font-weight: 400; font-style: italic; color: var(--cream); }
.pull-quote-attr { text-align: center; margin-top: 28px; color: var(--gold-bright); font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; }

/* Endorsements */
.endorsements-section { background: var(--navy-deep); padding: 80px 0; color: var(--cream); }
.endorsements-section .section-label { color: var(--gold); }
.endorsements-section .section-title { color: var(--off-white); margin-bottom: 14px; }
.endorsements-section .section-intro { color: var(--cream); opacity: 0.8; max-width: 640px; margin: 0 auto 50px; }
.endorsements-grid { display: grid; grid-template-columns: 1fr; gap: 30px; max-width: 820px; margin: 0 auto; }
.endorsement { background: var(--navy-mid); border-left: 4px solid var(--gold); border-radius: 6px; padding: 40px; margin: 0; }
.endorsement p { font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.7; color: var(--off-white); margin-bottom: 26px; }
.endorsement-attr { border-top: 1px solid var(--navy-light); padding-top: 18px; }
.endorsement-name { display: block; font-weight: 700; font-size: 1rem; color: var(--gold-bright); margin-bottom: 4px; }
.endorsement-title { display: block; font-size: 0.88rem; color: var(--cream); opacity: 0.75; line-height: 1.4; }
.endorsements-footnote { text-align: center; margin-top: 40px; font-size: 0.88rem; color: var(--cream); opacity: 0.6; font-style: italic; }

/* About the Author */
.about-author { background: var(--cream); }
.author-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; margin-top: 40px; }
.author-photo-wrap { background: var(--navy-deep); border-radius: 4px; padding: 6px; box-shadow: 0 20px 45px rgba(20,55,94,0.15); }
.author-photo-wrap img { width: 100%; border-radius: 2px; }
.author-photo-caption { text-align: center; color: var(--text-gray); font-size: 0.85rem; margin-top: 14px; font-style: italic; }
.linkedin-badge-wrap { margin-top: 24px; display: flex; justify-content: center; }
.linkedin-badge-wrap .LI-profile-badge { display: block !important; }
.author-bio p { margin-bottom: 16px; color: var(--text-dark); }
.credentials-box { background: var(--off-white); border-left: 4px solid var(--gold); padding: 24px 28px; margin-top: 24px; border-radius: 0 4px 4px 0; }
.credentials-box h4 { font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--navy); margin-bottom: 12px; font-weight: 700; }
.credentials-box ul { list-style: none; font-size: 0.95rem; color: var(--text-gray); }
.credentials-box li { margin-bottom: 6px; padding-left: 18px; position: relative; }
.credentials-box li::before { content: "-"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* Community Vision - Features Hero Brand Image */
.wisdom-vision { background: var(--navy-mid); color: var(--off-white); position: relative; }
.wisdom-hero-mark { text-align: center; margin-bottom: 40px; }
.wisdom-hero-mark img { width: 120px; height: 120px; margin: 0 auto; border-radius: 50%; border: 2px solid var(--gold); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.wisdom-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.wisdom-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(201,168,76,0.25); border-radius: 6px; padding: 32px 28px; transition: transform 0.25s ease, border-color 0.25s ease; }
.wisdom-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.wisdom-card .icon { font-size: 1.8rem; margin-bottom: 16px; color: var(--gold-bright); }
.wisdom-card h3 { font-family: var(--font-serif); font-size: 1.25rem; margin-bottom: 12px; color: var(--off-white); }
.wisdom-card p { color: var(--cream); font-size: 0.95rem; opacity: 0.9; }
.wisdom-cta { text-align: center; margin-top: 50px; }
.wisdom-cta p { color: var(--cream); font-size: 1.05rem; margin-bottom: 22px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Notes / Blog */
.notes-section { background: var(--off-white); }
.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.note-card { background: var(--cream); border-radius: 6px; padding: 30px; border-top: 3px solid var(--gold); }
.note-card .note-tag { font-size: 0.75rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 12px; display: block; }
.note-card h3 { font-family: var(--font-serif); font-size: 1.2rem; color: var(--navy); margin-bottom: 12px; line-height: 1.4; }
.note-card p { color: var(--text-gray); font-size: 0.93rem; }
.note-card .coming-soon { display: inline-block; margin-top: 16px; font-size: 0.82rem; color: var(--text-gray); font-style: italic; }
.note-card-published { border-top-color: var(--navy-mid); background: linear-gradient(180deg, #fffdf7 0%, var(--cream) 100%); }
.note-read { display: inline-block; margin-top: 16px; font-size: 0.9rem; font-weight: 700; color: var(--navy); letter-spacing: 0.3px; }
.note-read:hover { color: var(--gold); }

/* Contact */
.contact-section { background: var(--navy-deep); color: var(--off-white); text-align: center; }
.contact-section .section-title { color: var(--off-white); }
.contact-section .section-intro { color: var(--cream); margin: 0 auto 36px; }
.newsletter-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto 50px; flex-wrap: wrap; justify-content: center; }
.newsletter-form input[type="email"] { flex: 1; min-width: 220px; padding: 14px 18px; border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.06); color: var(--off-white); border-radius: 3px; font-size: 0.95rem; }
.newsletter-form input[type="email"]::placeholder { color: rgba(245,241,230,0.5); }
.contact-methods { display: flex; justify-content: center; gap: 50px; flex-wrap: wrap; margin-top: 40px; border-top: 1px solid rgba(201,168,76,0.2); padding-top: 40px; }
.contact-method { text-align: center; }
.contact-method .label { display: block; font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 8px; font-weight: 700; }
.contact-method .value { color: var(--cream); font-size: 1rem; }

/* Footer */
.site-footer { background: var(--navy-deep); border-top: 1px solid rgba(201,168,76,0.2); padding: 40px 0; text-align: center; }
.footer-mark { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; border: 1.5px solid var(--gold); display: block; }
.footer-logo { font-family: var(--font-serif); color: var(--off-white); font-size: 1.1rem; margin-bottom: 12px; }
.footer-logo span { color: var(--gold-bright); }
.footer-tagline { color: var(--cream); opacity: 0.6; font-size: 0.85rem; margin-bottom: 20px; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--cream); opacity: 0.75; font-size: 0.85rem; transition: opacity 0.2s ease; }
.footer-links a:hover { opacity: 1; color: var(--gold-bright); }
.footer-copyright { color: var(--cream); opacity: 0.4; font-size: 0.8rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero .subtitle { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }

  .book-grid, .author-grid { grid-template-columns: 1fr; gap: 36px; }
  .book-cover-wrap { max-width: 280px; margin: 0 auto; }
  .author-photo-wrap { max-width: 280px; margin: 0 auto; }
  .wisdom-grid, .notes-grid { grid-template-columns: 1fr; }
  .toc-list { columns: 1; }
}
@media (max-width: 720px) {
  .nav-links { position: fixed; top: 64px; left: 0; right: 0; background: var(--navy-deep); flex-direction: column; padding: 20px 24px; gap: 18px; display: none; border-bottom: 1px solid rgba(201,168,76,0.25); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 2.2rem; }
  .section-title { font-size: 1.8rem; }
  .pull-quote { font-size: 1.4rem; }
  .contact-methods { gap: 30px; }
}
@media (max-width: 480px) {
  .hero-ctas, .book-ctas { flex-direction: column; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; }
}

/* Career Gallery */
.gallery-section { padding: 80px 0 70px; background: linear-gradient(180deg, rgba(20, 55, 94, 0.03) 0%, transparent 100%), var(--cream); }
.gallery-intro { text-align: center; font-size: 1.05rem; color: var(--text-light); max-width: 620px; margin: 0 auto 40px; line-height: 1.6; }
.gallery-folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; max-width: 1100px; margin: 0 auto; }
.gallery-folder { background: #fff; border-radius: 12px; overflow: hidden; cursor: pointer; box-shadow: 0 3px 14px rgba(20, 55, 94, 0.12); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; }
.gallery-folder:hover { transform: translateY(-6px); box-shadow: 0 8px 28px rgba(20, 55, 94, 0.2); }
.folder-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; height: 200px; background: var(--navy-deep); }
.folder-preview-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.folder-preview:has(.folder-preview-img:only-child) { grid-template-columns: 1fr; }
.folder-preview:has(.folder-preview-img:nth-child(2):last-child) { grid-template-columns: 1fr 1fr; }
.folder-preview:has(.folder-preview-img:nth-child(3):last-child) { grid-template-columns: 1fr 1fr; }
.folder-preview:has(.folder-preview-img:nth-child(4)) { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.folder-info { padding: 18px 20px 22px; text-align: center; }
.folder-title { font-family: var(--font-serif); font-size: 1.2rem; color: var(--navy); margin: 0 0 8px; line-height: 1.3; }
.folder-count { font-size: 0.85rem; color: var(--gold); font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.gallery-page { display: none; max-width: 1100px; margin: 0 auto; }
.gallery-page-header { display: flex; align-items: center; gap: 20px; margin-bottom: 36px; padding-bottom: 16px; border-bottom: 2px solid var(--gold); }
.back-to-folders { background: var(--navy-deep); color: var(--cream); border: none; padding: 10px 20px; border-radius: 6px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: background 0.2s ease, transform 0.2s ease; white-space: nowrap; flex-shrink: 0; }
.back-to-folders:hover { background: var(--navy-mid); transform: translateY(-2px); }
.gallery-page-title { font-family: var(--font-serif); font-size: 1.5rem; color: var(--navy); margin: 0; flex: 1; }
.gallery-page-count { font-size: 0.85rem; color: var(--gold); font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; align-items: start; }
.gallery-item { margin: 0; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(20, 55, 94, 0.12); cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative; }
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(20, 55, 94, 0.22); }
.gallery-item img { display: block; width: 100%; height: 180px; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption { padding: 10px 14px 12px; font-size: 0.88rem; color: var(--navy-mid); font-weight: 600; line-height: 1.3; text-align: center; }

/* Lightbox */
.lightbox { display: none; position: fixed; z-index: 9999; top: 0; left: 0; width: 100%; height: 100%; background: rgba(8, 18, 36, 0.92); backdrop-filter: blur(3px); flex-direction: column; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 78vh; border: 4px solid var(--cream); border-radius: 6px; box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5); }
.lightbox-caption { color: var(--cream); font-size: 1rem; font-weight: 600; text-align: center; margin-top: 18px; max-width: 600px; line-height: 1.4; }
.lightbox-close { position: absolute; top: 20px; right: 32px; color: var(--cream); font-size: 2.4rem; font-weight: 300; cursor: pointer; line-height: 1; transition: color 0.2s ease, transform 0.2s ease; user-select: none; }
.lightbox-close:hover { color: var(--gold); transform: scale(1.15); }

@media (max-width: 768px) {
  .gallery-section { padding: 56px 0 50px; }
  .gallery-folders { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
  .folder-preview { height: 160px; }
  .gallery-page-header { flex-wrap: wrap; gap: 12px; }
  .gallery-page-title { font-size: 1.2rem; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
  .gallery-item img { height: 120px; }
  .gallery-item figcaption { font-size: 0.78rem; padding: 8px 10px 10px; }
  .lightbox-close { top: 14px; right: 20px; font-size: 2rem; }
}
