/* Rosleecia Productions — site styles */
:root {
  --navy: #1B1F3B;
  --navy-2: #252a4d;
  --navy-3: #30365e;
  --amber: #E8A24A;
  --ember: #C1502E;
  --cream: #F5F1E8;
  --ink: #1B1F3B;
  --muted: #5b5f78;
  --line: #e4ddcd;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(27, 31, 59, 0.12);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

h1, h2, h3, h4 {
  font-family: "Poppins", "Quicksand", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a { color: var(--ember); }

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

.container { width: min(var(--max), 92%); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 3px solid var(--amber);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--amber);
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  white-space: nowrap;
}

.brand img { width: 42px; height: 42px; }

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover { background: var(--navy-3); }

.nav-links a.active { color: var(--amber); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--amber);
  color: var(--amber);
  border-radius: 8px;
  padding: 0.35rem 0.7rem;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--navy);
    padding: 0.5rem 4% 1rem;
    border-bottom: 3px solid var(--amber);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.8rem; font-size: 1.05rem; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--cream);
  text-align: center;
  padding: 4.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero h1 { color: var(--amber); margin-bottom: 0.2em; }

.hero .tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: var(--cream);
  opacity: 0.92;
  margin-bottom: 0.5rem;
}

.hero .intro {
  max-width: 640px;
  margin: 1.2rem auto 2rem;
  opacity: 0.85;
}

.heartbeat {
  width: min(380px, 70%);
  height: auto;
  margin: 0.4rem auto 0.8rem;
  display: block;
}

.heartbeat path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: trace 2.2s ease-out 0.3s forwards;
}

@keyframes trace { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .heartbeat path { animation: none; stroke-dashoffset: 0; }
}

.hero-logo { width: 110px; height: 110px; margin: 0 auto 1.2rem; }

.page-hero { padding: 3rem 0 2.6rem; }
.page-hero h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-amber { background: var(--amber); color: var(--navy); }
.btn-amber:hover { background: #f0b263; }

.btn-ember { background: var(--ember); color: #fff; }
.btn-ember:hover { background: #d35d39; }

.btn-outline { border-color: var(--amber); color: var(--amber); background: transparent; }
.btn-outline:hover { background: rgba(232, 162, 74, 0.12); }

.btn-outline-dark { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline-dark:hover { background: rgba(27, 31, 59, 0.06); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }

/* ---------- Sections ---------- */
section { padding: 4rem 0; }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--muted); }

.section-alt { background: #fffdf8; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-navy { background: var(--navy); color: var(--cream); }
.section-navy h2 { color: var(--amber); }
.section-navy .section-head p { color: var(--cream); opacity: 0.85; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ember);
  margin-bottom: 0.5rem;
}

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card p { color: var(--muted); flex: 1; }
.card .btn { align-self: flex-start; margin-top: 0.4rem; }
.card .btn + .btn { margin-left: 0; }
.card .card-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }

.tile {
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border-top: 5px solid var(--amber);
}

.tile:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(27, 31, 59, 0.18); }
.tile .icon { font-size: 2rem; margin-bottom: 0.6rem; }
.tile .more { color: var(--ember); font-weight: 600; font-size: 0.95rem; }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(232, 162, 74, 0.18);
  color: #9a5f17;
  margin-bottom: 0.7rem;
  align-self: flex-start;
}

.tag-ember { background: rgba(193, 80, 46, 0.12); color: var(--ember); }
.tag-navy { background: var(--navy); color: var(--amber); }

/* ---------- Books ---------- */
.book {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 560px) {
  .book { grid-template-columns: 1fr; }
  .book .cover { max-width: 200px; }
}

.cover {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(27, 31, 59, 0.3);
  background: var(--navy);
}

.cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

/* Styled stand-in shown until a real cover image is added */
.cover .placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 0.8rem;
  text-align: center;
  color: var(--cream);
  font-family: "Poppins", sans-serif;
}

.cover .placeholder .ph-title { font-size: 1rem; font-weight: 600; color: var(--amber); line-height: 1.25; margin-top: 1rem; }
.cover .placeholder .ph-by { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }

.cover.c-sea { background: linear-gradient(170deg, #1B1F3B 0%, #2b3a5c 55%, #10142a 100%); }
.cover.c-cross { background: linear-gradient(170deg, #22284a 0%, #1B1F3B 100%); }
.cover.c-dino { background: linear-gradient(170deg, #3a4a7a 0%, #1B1F3B 100%); }
.cover.c-colour { background: linear-gradient(170deg, #C1502E 0%, #8f3820 100%); }
.cover.c-aam { background: linear-gradient(170deg, #E8A24A 0%, #c77f2a 100%); }
.cover.c-aam .placeholder .ph-title, .cover.c-colour .placeholder .ph-title { color: var(--cream); }
.cover.c-raven { background: linear-gradient(170deg, #10142a 0%, #30365e 100%); }

.book-info h3 { font-size: 1.35rem; margin-bottom: 0.2em; }
.book-info .sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.8rem; font-style: italic; }
.book-info p { color: var(--ink); }
.book-info .card-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.series-label {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: var(--ember);
  margin: 0 0 1.4rem;
  font-size: 1.05rem;
}

/* ---------- Featured banner ---------- */
.featured {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--navy-2);
  border: 1px solid var(--navy-3);
  border-radius: var(--radius);
  padding: 2rem;
  color: var(--cream);
}

.featured h3 { color: var(--amber); font-size: 1.6rem; }
.featured p { opacity: 0.9; }
.featured .btn-row { justify-content: flex-start; }

@media (max-width: 640px) {
  .featured { grid-template-columns: 1fr; text-align: center; }
  .featured .cover { max-width: 180px; margin: 0 auto; }
  .featured .btn-row { justify-content: center; }
}

/* ---------- Video cards ---------- */
.video-card { border-top: 5px solid var(--ember); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
}

.about-grid img { width: 100%; max-width: 260px; margin: 0 auto; }

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-grid img { max-width: 180px; }
}

.name-story {
  background: #fff;
  border-left: 5px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.3rem 1.5rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}

.name-story strong { color: var(--ember); }

/* ---------- Forms ---------- */
form.site-form { display: grid; gap: 1rem; max-width: 560px; }
form.site-form.inline { grid-template-columns: 1fr auto; max-width: 520px; margin: 0 auto; }

@media (max-width: 520px) { form.site-form.inline { grid-template-columns: 1fr; } }

.site-form label { font-weight: 600; font-size: 0.9rem; display: block; margin-bottom: 0.3rem; }

.site-form input, .site-form textarea, .site-form select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 2px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.site-form input:focus, .site-form textarea:focus, .site-form select:focus { outline: none; border-color: var(--amber); }

.section-navy .site-form input { border-color: var(--navy-3); }

.hidden { display: none; }

.form-note { font-size: 0.85rem; color: var(--muted); }
.section-navy .form-note { color: var(--cream); opacity: 0.7; text-align: center; margin-top: 0.8rem; }

/* ---------- Socials ---------- */
.socials { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; list-style: none; padding: 0; margin: 0; }

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--navy-3);
  color: var(--cream);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.socials a:hover { background: var(--amber); color: var(--navy); }

.socials svg { width: 18px; height: 18px; fill: currentColor; }

.socials.light a { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.socials.light a:hover { background: var(--amber); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--cream);
  padding: 3rem 0 2rem;
  text-align: center;
  border-top: 3px solid var(--amber);
}

.site-footer .brand { justify-content: center; margin-bottom: 0.4rem; }
.site-footer .foot-tag { opacity: 0.8; margin-bottom: 1.4rem; }
.site-footer .foot-links { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; margin: 1.6rem 0 1rem; }
.site-footer .foot-links a { color: var(--cream); opacity: 0.85; text-decoration: none; font-size: 0.92rem; }
.site-footer .foot-links a:hover { color: var(--amber); opacity: 1; }
.site-footer .copy { font-size: 0.82rem; opacity: 0.6; margin: 0; }

.center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* Real covers keep their own shape (square picture books, tall novels) */
.cover:has(img) { aspect-ratio: auto; background: none; }
.cover:has(img) .placeholder { display: none; }
.cover img { position: relative; height: auto; }
.book { align-items: start; }
