/* ==========================================================================
   David L Duffy Books - shared design system
   Clone of https://www.davidlduffybooks.com/ (source platform: Wix)
   OWNED BY ORCHESTRATOR. Page agents append page-scoped rules below their
   own banner only; never edit this shared block.
   Fonts loaded via <link> in every page head (Poppins + Open Sans).
   Poppins substitutes for Wix "Madefor" display face; Open Sans for the
   HelveticaNeue body face. Substitution noted in CLONE-REPORT.md.
   ========================================================================== */

:root {
  --navy: #14375f;
  --navy-deep: #003461;
  --orange: #ff8000;
  --orange-dk: #e6720a;
  --cream: #fce9d7;
  --cream-2: #fdf1e7;
  --black: #000000;
  --ink: #2b2b2b;
  --muted: #5d5d61;
  --white: #ffffff;
  --line: #e4e4e4;

  --maxw: 1180px;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(0,0,0,.18);

  --font-head: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Open Sans", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---- buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  padding: 12px 26px;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); transform: translateY(-2px); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dk); transform: translateY(-2px); }
.btn-amazon {
  background: var(--navy); color: #fff; font-size: .85rem; padding: 11px 22px;
}
.btn-amazon:hover { background: var(--navy-deep); transform: translateY(-2px); }

/* ---- brand logo ---- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 44px; height: 44px; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.02; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--navy); }
.brand-sub  { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--orange); }
.brand-light .brand-name { color: #fff; }

/* ---- header ---- */
.site-header { background: #fff; }
.hdr-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px 24px; max-width: 1360px; margin: 0 auto; flex-wrap: wrap;
}
.hdr-contact { display: flex; align-items: center; gap: 34px; }
.hdr-item { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.hdr-item img { width: 30px; height: 30px; }
.hdr-item .lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.hdr-item .val { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--navy); }

/* ---- nav ---- */
.site-nav { background: var(--navy); }
.site-nav ul {
  list-style: none; margin: 0 auto; padding: 0; max-width: 1360px;
  display: flex; flex-wrap: wrap; justify-content: space-around; align-items: stretch;
}
.site-nav li { display: flex; }
.site-nav a {
  display: flex; align-items: center; padding: 15px 14px;
  font-family: var(--font-head); font-weight: 500; font-size: .82rem;
  letter-spacing: .03em; text-transform: uppercase; color: #fff;
  transition: color .2s ease, background-color .2s ease;
}
.site-nav a:hover { color: var(--orange); }
.site-nav a.active { color: var(--orange); }

/* ---- generic section ---- */
.section { padding: 64px 0; }
.section-cream { background: var(--cream); }
.section-cream-2 { background: var(--cream-2); }
.eyebrow { color: var(--orange); font-family: var(--font-head); font-weight: 700; }

/* ---- hero (home) ---- */
.hero {
  position: relative; background: var(--cream); overflow: hidden;
  padding: 70px 0 120px;
}
.hero::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 46%;
  background: #fff; clip-path: polygon(0 100%, 100% 22%, 100% 100%);
  z-index: 1;
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-title { color: var(--navy-deep); font-size: 2.6rem; font-weight: 800; }
.hero-title span { display: block; }
.hero-title .lead { font-weight: 600; font-size: 1.5rem; color: var(--navy-deep); }
.hero-copy { color: #3a3a3a; font-size: .95rem; }
.hero-media img { width: 100%; height: auto; filter: drop-shadow(0 22px 34px rgba(0,0,0,.28)); }

/* ---- dark band (My Books Collections) ---- */
.band-dark { background: var(--black); color: #fff; padding: 70px 0; }
.band-dark h2 { color: var(--orange); text-align: center; font-size: 2rem; margin-bottom: 40px; }

/* ---- full-bleed photo band ---- */
.photo-band { position: relative; width: 100%; height: 360px; overflow: hidden; }
.photo-band img { width: 100%; height: 100%; object-fit: cover; }

/* ---- page banner (category / interior pages) ---- */
.page-banner { position: relative; width: 100%; height: 300px; overflow: hidden; }
.page-banner img { width: 100%; height: 100%; object-fit: cover; }
.page-title {
  position: absolute; inset: 0; margin: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--orange); font-size: 2.5rem; font-weight: 700;
  text-shadow: 0 2px 12px rgba(0,0,0,.55);
}

/* ---- contact info band ---- */
.info-band { background: var(--navy); color: #fff; padding: 30px 0; }
.info-band .wrap { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 30px; align-items: center; }
.info-band .divider { background: rgba(255,255,255,.35); width: 1px; height: 60px; }
.info-col { display: flex; align-items: center; gap: 16px; }
.info-col img { width: 42px; height: 42px; }
.info-col h4 { color: var(--orange); margin: 0 0 4px; font-size: 1.15rem; }
.info-col p { margin: 0; color: #eaeaea; font-size: .92rem; }
.info-col a { color: #eaeaea; }

/* ---- forms ---- */
.form-card { max-width: 720px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .8rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field textarea {
  font-family: var(--font-body); font-size: .95rem; padding: 11px 12px;
  border: 1px solid #cfcfcf; border-radius: var(--radius); background: #fff; color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,128,0,.15);
}
.field textarea { min-height: 130px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 20px; }

/* ---- book listing rows (category pages) ---- */
.page-head { text-align: center; padding: 54px 0 10px; }
.page-head h1 { color: var(--navy-deep); font-size: 2.3rem; }
.book-row {
  display: grid; grid-template-columns: 1fr 452px; gap: 56px; align-items: center;
  padding: 56px 0;
}
.book-info h2 { color: var(--navy-deep); font-size: 1.9rem; }
.book-info .subtitle { font-family: var(--font-head); font-weight: 600; color: #333; letter-spacing: .02em; margin-bottom: 4px; }
.book-info .avail { font-family: var(--font-head); font-weight: 600; color: #3a3a3a; letter-spacing: .03em; margin: 16px 0; }
.book-info p { color: #3a3a3a; font-size: .95rem; }
.book-media img { width: 100%; max-width: 452px; height: auto; margin: 0 auto; box-shadow: var(--shadow); border-radius: 3px; }

/* ---- collections grid (home) ---- */
.collections { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.collection-card { text-align: center; }
.collection-card .thumb {
  aspect-ratio: 3 / 4; overflow: hidden; border-radius: 4px; background: #111;
  box-shadow: 0 8px 22px rgba(0,0,0,.4);
}
.collection-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.collection-card:hover .thumb img { transform: scale(1.05); }
.collection-card .label { display: block; margin-top: 14px; color: var(--orange); font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }

/* ---- about / two-column feature rows (home) ---- */
.feature { display: grid; grid-template-columns: 1fr 1.2fr; gap: 46px; align-items: center; }
.feature.reverse { grid-template-columns: 1.2fr 1fr; }
.feature h2 { color: var(--navy-deep); font-size: 1.9rem; }
.feature .eyebrow-h { color: var(--orange); font-size: 1.9rem; font-weight: 700; font-family: var(--font-head); line-height: 1.15; margin-bottom: 18px; }
.framed { border: 6px solid var(--orange); border-radius: 2px; overflow: hidden; }
.framed img { width: 100%; height: auto; }

/* ---- testimonials ---- */
.testimonials { background: var(--cream); padding: 70px 0; }
.testimonials h2 { text-align: center; color: var(--orange); font-size: 2rem; margin-bottom: 34px; }
.tst-track { display: grid; gap: 26px; max-width: 900px; margin: 0 auto; }
.tst-card { background: rgba(255,255,255,.55); border-radius: 8px; padding: 26px 30px; }
.tst-card p { color: #333; font-style: italic; }
.tst-card .who { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-style: normal; margin-top: 8px; }

/* ---- video gallery (healing thoughts / spiritual concepts) ---- */
.video-intro { text-align: center; max-width: 820px; margin: 0 auto 8px; }
.video-intro .sub { font-family: var(--font-head); font-weight: 600; color: var(--navy); letter-spacing: .03em; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.video-card { display: flex; flex-direction: column; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,.12); transition: transform .25s ease, box-shadow .25s ease; text-decoration: none; }
.video-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.2); }
.video-thumb { display: block; position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-thumb .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.video-thumb .play span {
  width: 62px; height: 62px; border-radius: 50%; background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center; transition: background .2s ease, transform .2s ease;
}
.video-card:hover .play span { background: var(--orange); transform: scale(1.08); }
.video-thumb .play span::after { content: ""; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }
.video-thumb .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.8); color: #fff; font-size: .74rem; padding: 2px 7px; border-radius: 3px; }
.video-meta { display: block; padding: 14px 16px 18px; }
.video-meta h3 { overflow-wrap: anywhere; }
.video-meta .by { display: block; }
.video-meta h3 { font-size: .96rem; color: var(--navy-deep); margin-bottom: 6px; line-height: 1.3; }
.video-meta .by { font-size: .8rem; color: var(--muted); }

/* ---- map (contact) ---- */
#map { width: 100%; height: 420px; border-radius: 6px; overflow: hidden; z-index: 0; }
.map-caption { margin-top: 14px; font-family: var(--font-head); font-weight: 700; color: var(--navy); }

/* ---- footer ---- */
.site-footer { background: var(--navy); color: #dfe6ef; }
.ftr-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 34px 0 20px; flex-wrap: wrap; }
.site-footer hr { border: none; border-top: 1px solid rgba(255,255,255,.16); margin: 0; }
.ftr-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 40px 0 46px; }
.ftr-cols h4 { color: var(--orange); font-size: 1.05rem; margin-bottom: 16px; }
.ftr-cols p { font-size: .88rem; color: #cdd6e2; }
.ftr-links { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.ftr-links a { font-size: .88rem; color: #cdd6e2; padding: 3px 0; transition: color .2s ease; }
.ftr-links a:hover { color: var(--orange); }
.ftr-contact { font-size: .88rem; color: #cdd6e2; }
.ftr-contact .k { color: var(--orange); font-family: var(--font-head); font-weight: 600; display: block; margin-top: 12px; }
.ftr-bar { background: var(--orange); color: #fff; text-align: center; padding: 12px; font-size: .82rem; }

/* ==========================================================================
   Motion - reproduced in plain CSS from the Wix source (fade/slide reveals,
   hover transitions). Content is NEVER hidden by a static rule: entrance
   animations run on load with animation-fill-mode:both, so every animated
   element always ends visible even if scripting is disabled.
   ========================================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes zoomIn {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.anim-up   { animation: fadeUp .7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.anim-in   { animation: fadeIn .9s ease both; }
.anim-zoom { animation: zoomIn .7s ease both; }
.anim-right{ animation: slideInRight .8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.d1 { animation-delay: .12s; }
.d2 { animation-delay: .24s; }
.d3 { animation-delay: .36s; }
.d4 { animation-delay: .48s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- responsive ---- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.1rem; }
  .feature, .feature.reverse { grid-template-columns: 1fr; }
  .book-row, .book-row:nth-child(even) { grid-template-columns: 1fr; gap: 24px; }
  .book-row:nth-child(even) .book-media, .feature .framed { order: 0; }
  .collections { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .info-band .wrap { grid-template-columns: 1fr; }
  .info-band .divider { display: none; }
  .ftr-cols { grid-template-columns: 1fr; gap: 26px; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .collections, .video-grid { grid-template-columns: 1fr; }
  .hdr-inner { justify-content: center; text-align: center; }
  .book-media img { max-width: 320px; }
}
