/* ============================================
   OZ BOOKS — HOMEPAGE STYLES
   Loaded only on front-page.php.
   ============================================ */

/* HERO */
.hero {
  position: relative;
  padding: 130px 0 70px;
  overflow: hidden;
  background-color: var(--kraft-light);
  background-image:
    repeating-linear-gradient(90deg,
      transparent 0, transparent 2px,
      rgba(139, 115, 85, 0.03) 2px, rgba(139, 115, 85, 0.03) 4px),
    url("data:image/svg+xml,%3Csvg width='300' height='300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto; padding: 0 24px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-notebook {
  position: relative;
  background: var(--paper);
  padding: 40px 40px 40px 72px;
  box-shadow: 4px 5px 20px var(--shadow-deep), 0 0 0 1px rgba(0,0,0,0.04);
  border-radius: 1px;
  transform: rotate(-1.2deg);
  background-image: repeating-linear-gradient(
    var(--paper) 0px, var(--paper) 29px,
    var(--notebook-line) 29px, var(--notebook-line) 30px);
  background-size: 100% 30px;
  background-position: 0 18px;
  min-height: 400px;
  opacity: 0;
  animation: notebookSlideIn 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s forwards;
}
@keyframes notebookSlideIn {
  0%   { opacity: 0; transform: translateX(-60px) rotate(-4deg) scale(0.96); }
  70%  { opacity: 1; transform: translateX(6px) rotate(0deg) scale(1.01); }
  100% { opacity: 1; transform: translateX(0) rotate(-1.2deg) scale(1); }
}
.hero-notebook::before {
  content: ''; position: absolute; top: 0; bottom: 0;
  left: 58px; width: 2px;
  background: var(--notebook-margin); z-index: 2;
}
.hero-notebook::after {
  content: ''; position: absolute; top: 30px; bottom: 30px;
  left: 14px; width: 22px;
  background: radial-gradient(circle at center, var(--kraft-light) 4px, transparent 4.5px) 0 0 / 22px 36px repeat-y;
  z-index: 3;
}
.hero-pen {
  position: absolute; bottom: -10px; right: -30px;
  width: 140px; transform: rotate(-30deg); z-index: 10;
  filter: drop-shadow(2px 3px 4px rgba(0,0,0,0.15));
  opacity: 0; animation: penAppear 0.5s ease 0.9s forwards;
}
@keyframes penAppear {
  from { opacity: 0; transform: rotate(-40deg) translateY(10px); }
  to   { opacity: 0.85; transform: rotate(-30deg) translateY(0); }
}
.hero-scribble { position: absolute; opacity: 0.08; pointer-events: none; z-index: 1; }
.hero-from {
  font-family: var(--font-hand);
  font-size: 1.35rem; color: var(--warm-gold);
  margin-bottom: 4px;
}
.writing-line { display: inline-block; position: relative; }
.writing-text {
  display: inline-block; overflow: hidden;
  white-space: nowrap; width: 0;
  animation: typewrite 2s steps(14) 1.2s forwards;
  vertical-align: bottom;
}
@keyframes typewrite { from { width: 0; } to { width: 100%; } }
.writing-cursor {
  display: inline-block; width: 2px; height: 1.2em;
  background: var(--ink); vertical-align: text-bottom;
  margin-left: 2px; opacity: 0;
  animation: cursorAppear 0s 1.2s forwards, cursorBlink 0.7s step-end infinite 3.2s;
}
@keyframes cursorAppear { to { opacity: 1; } }
@keyframes cursorBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero-title {
  font-family: var(--font-serif);
  font-size: 2.8rem; font-weight: 800;
  line-height: 1.18; color: var(--ink);
  margin-bottom: 8px;
}
.hero-title em { font-style: italic; color: var(--warm-gold); }
.hero-title .line { display: block; opacity: 0; animation: lineReveal 0.5s ease forwards; }
.hero-title .line:nth-child(1) { animation-delay: 3.4s; }
.hero-title .line:nth-child(2) { animation-delay: 3.7s; }
.hero-title .line:nth-child(3) { animation-delay: 4.0s; }
@keyframes lineReveal {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-subtitle {
  font-family: var(--font-type);
  font-size: 0.82rem; color: var(--charcoal-light);
  letter-spacing: 1.2px; text-transform: uppercase;
  margin-bottom: 6px; opacity: 0;
  animation: lineReveal 0.5s ease 4.2s forwards;
}
.hero-tagline {
  font-family: var(--font-hand);
  font-size: 1.55rem; color: rgba(27, 42, 74, 0.85); /* was --ink-faded (3.97:1); now 9.85:1 */
  margin-bottom: 26px; line-height: 1.35;
  opacity: 0; animation: lineReveal 0.5s ease 4.4s forwards;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; animation: lineReveal 0.5s ease 4.6s forwards; }
.hero-collage {
  position: relative; display: flex;
  justify-content: center; align-items: center;
  min-height: 500px;
  animation: deskDriftIn 0.9s ease-out 0.2s both;
}
@keyframes deskDriftIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.book-frame {
  position: relative; background: white;
  padding: 10px 10px 42px;
  box-shadow: 4px 6px 22px var(--shadow-deep);
  transform: rotate(2deg); z-index: 4;
  transition: transform 0.4s;
}
.book-frame:hover { transform: rotate(0.5deg) scale(1.02); }
.book-frame img { width: 280px; display: block; }
.book-frame .caption {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  text-align: center;
  font-family: var(--font-hand);
  font-size: 1.05rem; color: var(--ink-faded);
}
.scat {
  position: absolute;
  box-shadow: 3px 4px 14px var(--shadow);
  border-radius: 2px; overflow: hidden;
  z-index: 2; transition: transform 0.4s, z-index 0s;
}
.scat:hover { z-index: 10; transform: scale(1.1) rotate(0deg) !important; }
.scat img { width: 100%; height: 100%; object-fit: cover; }
.scat-texas       { width: 165px; height: 115px; bottom: 10px;  left: -20px;   transform: rotate(-12deg); }
.scat-canada      { width: 145px; height: 145px; top: 5px;     right: -8px;    transform: rotate(8deg); }
.scat-venice      { width: 115px; height: 155px; top: 50px;    left: -35px;    transform: rotate(-5deg); z-index: 1; }
.scat-handwritten { width: 185px; height: 130px; bottom: -18px; right: -22px;  transform: rotate(6deg);  z-index: 3; }
.hero-pencil {
  position: absolute; top: -12px; left: 28%;
  width: 125px; transform: rotate(25deg);
  opacity: 0.65; z-index: 8;
  filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.12));
  pointer-events: none;
}

/* BOOK STRIP */
.book-strip { position: relative; padding: 65px 0; background: var(--ink); color: white; }
.book-strip-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 180px 1fr 310px;
  gap: 36px; align-items: center;
}
.strip-cover img { width: 155px; box-shadow: 4px 6px 16px rgba(0,0,0,0.35); transform: rotate(-2deg); }
.strip-text h2 { font-family: var(--font-serif); font-size: 1.7rem; color: var(--gold-light); margin-bottom: 10px; }
.strip-text p { font-size: 0.98rem; line-height: 1.75; opacity: 0.88; margin-bottom: 18px; }
.review-card {
  background: var(--paper); color: var(--charcoal);
  padding: 22px; border-radius: 2px;
  position: relative; transform: rotate(1.5deg);
  box-shadow: 2px 3px 12px rgba(0,0,0,0.25);
}
.review-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(-60deg,
    var(--airmail-blue) 0 6px, var(--paper) 6px 8px,
    var(--airmail-red) 8px 14px, var(--paper) 14px 16px);
}
.review-stars { color: var(--warm-gold-text); font-size: 1.15rem; letter-spacing: 2px; margin-bottom: 8px; display: block; }
.review-card blockquote { font-family: var(--font-hand); font-size: 1.15rem; line-height: 1.5; color: var(--ink); margin-bottom: 8px; }
.review-card cite { font-family: var(--font-type); font-style: normal; font-size: 0.7rem; color: var(--kraft-dark); }
.review-stamp {
  position: absolute; top: 14px; right: 14px;
  width: 44px; height: 54px; background: var(--stamp-red);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: white; font-family: var(--font-type);
  font-size: 0.45rem; letter-spacing: 0.5px;
  border: 3px solid white; outline: 1px solid var(--stamp-red);
}
.review-stamp .big { font-size: 1.1rem; font-family: var(--font-serif); font-weight: 700; }

/* COMMUNITY */
.community {
  position: relative; padding: 80px 0;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(
    var(--paper) 0px, var(--paper) 29px,
    var(--notebook-line) 29px, var(--notebook-line) 30px);
  background-size: 100% 30px;
}
.community::before {
  content: ''; position: absolute; top: 0; bottom: 0;
  left: calc((100% - var(--max-w)) / 2 + 64px);
  width: 2px; background: var(--notebook-margin);
  z-index: 1; pointer-events: none;
}
.prompt-postcard {
  position: relative; background: var(--paper-aged);
  margin-bottom: 50px;
  box-shadow: 3px 4px 16px var(--shadow);
  border-radius: 2px;
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 280px; overflow: hidden;
  transform: rotate(-0.5deg); z-index: 2;
}
.prompt-photo { position: relative; overflow: hidden; }
.prompt-photo img { width: 100%; height: 100%; object-fit: cover; }
.prompt-postcard .divider-line { position: absolute; top: 20px; bottom: 20px; left: 50%; width: 1px; background: rgba(0,0,0,0.1); z-index: 3; }
.prompt-message { padding: 30px 28px; position: relative; }
.prompt-message::before {
  content: ''; position: absolute;
  left: 28px; right: 28px; bottom: 55px; height: 72px;
  background: repeating-linear-gradient(
    transparent, transparent 23px,
    rgba(0,0,0,0.07) 23px, rgba(0,0,0,0.07) 24px);
  pointer-events: none;
}
.prompt-badge {
  display: inline-block; background: var(--stamp-red);
  color: white; font-family: var(--font-type);
  font-size: 0.6rem; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 4px 10px; margin-bottom: 12px;
}
.prompt-message h3 { font-family: var(--font-hand); font-size: 1.75rem; color: var(--ink); line-height: 1.3; margin-bottom: 12px; }
.prompt-message p { font-size: 0.92rem; line-height: 1.65; color: var(--charcoal); margin-bottom: 18px; position: relative; z-index: 2; }
.prompt-message .postmark { top: 8px; right: 10px; width: 65px; height: 65px; transform: rotate(12deg); }

.community-pen { position: absolute; bottom: 40px; right: 8%; width: 110px; transform: rotate(-45deg); opacity: 0.4; z-index: 1; pointer-events: none; filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.1)); }
.view-all a {
  font-family: var(--font-hand); font-size: 1.3rem;
  color: var(--ink); position: relative;
}
.view-all a::after {
  content: ''; position: absolute;
  bottom: -4px; left: 0; right: 0; height: 6px;
  background: url('../images/scribble3.png') no-repeat center / contain;
  opacity: 0.3;
}

/* ABOUT */
.about-section { padding: 80px 0; background: var(--cream-warm); position: relative; }
.about-section .deco-pencil { position: absolute; top: 30px; right: 8%; width: 120px; transform: rotate(35deg); opacity: 0.45; z-index: 1; pointer-events: none; }
.about-card-wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.about-card {
  background: var(--paper);
  box-shadow: 4px 6px 24px var(--shadow-deep);
  border-radius: 2px;
  display: grid; grid-template-columns: 370px 1fr;
  overflow: hidden; position: relative; z-index: 2;
}
.about-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 7px;
  background: repeating-linear-gradient(-60deg,
    var(--airmail-blue) 0 8px, var(--paper) 8px 11px,
    var(--airmail-red) 11px 19px, var(--paper) 19px 22px);
  z-index: 5;
}
.about-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 7px;
  background: repeating-linear-gradient(-60deg,
    var(--airmail-blue) 0 8px, var(--paper) 8px 11px,
    var(--airmail-red) 11px 19px, var(--paper) 19px 22px);
  z-index: 5;
}
.about-photo { position: relative; overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 430px; }
.about-card .card-divider { position: absolute; top: 30px; bottom: 30px; left: 370px; width: 1px; background: rgba(0,0,0,0.08); z-index: 3; }
.about-msg { padding: 40px 36px; position: relative; }
.about-msg::after {
  content: ''; position: absolute;
  left: 36px; right: 36px; bottom: 45px; height: 55px;
  background: repeating-linear-gradient(
    transparent, transparent 23px,
    rgba(0,0,0,0.05) 23px, rgba(0,0,0,0.05) 24px);
  pointer-events: none;
}
.about-msg .from { font-family: var(--font-hand); font-size: 1.35rem; color: var(--warm-gold); margin-bottom: 4px; }
.about-msg h2 { font-family: var(--font-serif); font-size: 2.1rem; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.about-msg p { font-size: 0.98rem; line-height: 1.8; margin-bottom: 12px; max-width: 460px; }
.about-sticky {
  background: #FFF8B8; padding: 14px 16px;
  font-family: var(--font-hand); font-size: 1.1rem;
  color: var(--ink); line-height: 1.4;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
  transform: rotate(-1.5deg); display: inline-block;
  margin: 6px 0 20px; position: relative; z-index: 2;
}
.about-msg .mini-stamp {
  position: absolute; top: 14px; right: 20px;
  width: 52px; height: 62px;
  border: 3px solid white; outline: 1px solid #ddd;
  overflow: hidden; z-index: 4;
}
.about-msg .mini-stamp img { width: 100%; height: 100%; object-fit: cover; }

/* NEWSLETTER */
.newsletter { position: relative; padding: 65px 0; background: var(--ink); color: white; text-align: center; overflow: hidden; }
.newsletter::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 8px;
  background: repeating-linear-gradient(-60deg,
    rgba(91, 141, 184, 0.5) 0 8px, transparent 8px 11px,
    rgba(192, 57, 43, 0.5) 11px 19px, transparent 19px 22px);
}
.newsletter-inner { max-width: 580px; margin: 0 auto; padding: 0 24px; }
.newsletter .label { font-family: var(--font-hand); font-size: 1.4rem; color: var(--gold-light); display: block; margin-bottom: 4px; }
.newsletter h2 { font-family: var(--font-serif); font-size: 2rem; margin-bottom: 10px; }
.newsletter p { font-size: 0.98rem; opacity: 0.82; margin-bottom: 26px; line-height: 1.7; }
.nl-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.nl-form input {
  flex: 1; padding: 13px 16px;
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: 2px;
  background: rgba(255,255,255,0.07);
  color: white; font-family: var(--font-body); font-size: 0.92rem;
}
.nl-form input::placeholder { color: rgba(255,255,255,0.4); }
.nl-form input:focus { outline: none; border-color: var(--warm-gold); }

/* INSTAGRAM */
.insta { padding: 70px 0 50px; background: var(--cream); position: relative; }
.insta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 880px; margin: 0 auto; }
.insta-pc {
  background: white; padding: 5px 5px 26px;
  box-shadow: 2px 2px 10px var(--shadow);
  transition: transform 0.3s; cursor: pointer;
}
.insta-pc:nth-child(1) { transform: rotate(-2deg); }
.insta-pc:nth-child(2) { transform: rotate(1.5deg); }
.insta-pc:nth-child(3) { transform: rotate(-0.7deg); }
.insta-pc:nth-child(4) { transform: rotate(2.2deg); }
.insta-pc:nth-child(5) { transform: rotate(0.8deg); }
.insta-pc:nth-child(6) { transform: rotate(-1.5deg); }
.insta-pc:nth-child(7) { transform: rotate(0.3deg); }
.insta-pc:nth-child(8) { transform: rotate(-1.2deg); }
.insta-pc:hover { transform: rotate(0deg) scale(1.06) !important; z-index: 3; }
.insta-pc img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.insta-pc .cap { font-family: var(--font-hand); font-size: 0.8rem; color: var(--ink-faded); text-align: center; margin-top: 5px; }
.insta-handle { text-align: center; margin-top: 22px; font-family: var(--font-hand); font-size: 1.3rem; }

/* FAQ */
.faq { padding: 64px 24px; background: var(--cream-warm); }
.faq-inner { max-width: var(--max-w); margin: 0 auto; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.faq-item {
  background: var(--paper);
  padding: 28px 28px 28px 40px;
  border-radius: 2px;
  box-shadow: 2px 3px 12px var(--shadow);
  position: relative;
  background-image: repeating-linear-gradient(
    var(--paper) 0px, var(--paper) 27px,
    var(--notebook-line) 27px, var(--notebook-line) 28px);
  background-size: 100% 28px;
  background-position: 0 20px;
}
.faq-item::before { content: ''; position: absolute; top: 0; bottom: 0; left: 28px; width: 1.5px; background: var(--notebook-margin); }
.faq-item h3 { font-family: var(--font-hand); font-size: 1.3rem; color: var(--ink); margin-bottom: 10px; line-height: 1.3; }
.faq-item p { font-family: var(--font-body); font-size: 0.92rem; color: var(--charcoal); line-height: 1.7; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 36px; }
  .hero-notebook { padding-left: 40px; }
  @keyframes notebookSlideIn {
    0%   { opacity: 0; transform: translateX(-40px) scale(0.96); }
    70%  { opacity: 1; transform: translateX(4px) scale(1.01); }
    100% { opacity: 1; transform: translateX(0) rotate(0) scale(1); }
  }
  .hero-notebook::before { left: 28px; }
  .hero-notebook::after { display: none; }
  .hero-buttons { justify-content: center; }
  .hero-title { font-size: 2.3rem; }
  .hero-pen, .hero-pencil { display: none; }
  .hero-collage { min-height: 380px; }
  .book-frame img { width: 220px; }
  .scat-venice { display: none; }

  .book-strip-inner { grid-template-columns: 1fr; text-align: center; }
  .strip-cover { order: -1; }
  .strip-cover img { margin: 0 auto; }
  .review-card { margin: 0 auto; max-width: 360px; transform: rotate(0); }

  .community::before { display: none; }
  .community-pen { display: none; }
  .prompt-postcard { grid-template-columns: 1fr; }
  .prompt-postcard .divider-line { display: none; }
  .prompt-photo { height: 200px; }

  .post-cards { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }

  .about-card { grid-template-columns: 1fr; }
  .about-card .card-divider { display: none; }
  .about-photo img { min-height: 280px; }
  .about-msg { text-align: center; }
  .about-msg p { max-width: 100%; }
  .about-section .deco-pencil { display: none; }

  .insta-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }

  .hero { padding-top: 100px; }
}

@media (max-width: 600px) {
  .hero { padding: 90px 0 45px; }
  .hero-title { font-size: 1.9rem; }
  .book-frame img { width: 180px; }
  .scat-texas, .scat-canada, .scat-handwritten { display: none; }
  .nl-form { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-notebook, .hero-pen, .hero-pencil, .hero-collage,
  .hero-title .line, .hero-subtitle, .hero-tagline, .hero-buttons,
  .writing-text, .writing-cursor {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    width: auto !important;
  }
  .hero-notebook { transform: rotate(-1.2deg); }
  .book-frame { transform: rotate(2deg); }
}
