/* ==========================================================================
   REALCREATIVECARTOONS - CUSTOM PALETTE, EDITORIAL LAYOUTS & ANIMATIONS
   ========================================================================== */

/* Color Variables */
:root {
  --turquoise: #31AAA9;
  --coral: #E76F51;
  --black: #000000;
  --white: #FFFFFF;
  --soft-neutral: #F5F3EE;
  --max-width: 1440px;
}

/* Base Reset & Core Styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Lora", serif;
  background-color: var(--turquoise);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background Utility Classes */
.turquoise-bg { background-color: var(--turquoise) !important; }
.white-bg { background-color: var(--white) !important; }
.coral-bg { background-color: var(--coral) !important; }
.black-bg { background-color: var(--black) !important; }

/* Text Color Utility Classes */
.turquoise-text { color: var(--turquoise) !important; }
.black-text { color: var(--black) !important; }
.white-text { color: var(--white) !important; }

/* Typography Helper Classes */
.kenia-regular {
  font-family: "Kenia", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.lora-regular {
  font-family: "Lora", serif;
  font-weight: 400;
  font-style: normal;
}

/* Layout Containers & Spacing */
.content-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.section-pad {
  padding: 100px 0;
}

.relative-box { position: relative; }
.overflow-visible { overflow: visible !important; }

.mt-5 { margin-top: 5px; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.mb-20 { margin-bottom: 20px; }

.text-center { text-align: center; }
.text-sm { font-size: 0.9rem; }
.inline-block { display: inline-block; }
.w-100 { width: 100%; }

/* Custom Square Corner Image Wrap */
.square-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--soft-neutral);
  position: relative;
}

.square-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0 !important; /* Strictly sharp square corners */
  transition: transform 0.4s ease;
}

.zoom-hover:hover img {
  transform: scale(1.05);
}

/* ==========================================================================
   FLOATING BRAND HEADER
   ========================================================================== */
.floating-header {
  position: relative;
  width: 100%;
  background-color: transparent;
  padding: 25px 40px 10px 40px;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.desktop-nav {
  display: flex;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  font-family: "Kenia", sans-serif;
  font-size: 1.25rem;
  color: var(--black);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
  color: var(--white);
  transform: translateY(-2px);
}

/* Logo Between Two Worlds - Overlapping Hero Boundary */
.center-logo-container {
  position: relative;
  z-index: 110;
}

.brand-logo {
  text-decoration: none;
  font-size: 2.8rem;
  color: var(--black);
  white-space: nowrap;
  line-height: 0.9;
  margin-top: 4rem;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 2px 2px 0px var(--white);
  transform: translateY(15px); /* Overlaps boundary */
  transition: transform 0.3s ease;
}

.brand-logo:hover {
  transform: translateY(12px) scale(1.02);
}

.star-icon {
  color: var(--coral);
  font-size: 2rem;
  display: inline-block;
}

/* Mobile Hamburger Menu */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

.hamburger-btn .bar {
  width: 28px;
  height: 4px;
  background-color: var(--black);
  transition: all 0.3s ease;
}

.mobile-drawer {
  display: none;
  flex-direction: column;
  background-color: var(--black);
  padding: 20px 40px;
  gap: 15px;
  margin-top: 15px;
}

.mobile-drawer.active {
  display: flex;
}

.mobile-link {
  color: var(--white);
  text-decoration: none;
  font-family: "Kenia", sans-serif;
  font-size: 1.5rem;
}

.mobile-link:hover {
  color: var(--coral);
}

/* ==========================================================================
   HERO SLIDESHOW SECTION
   ========================================================================== */
.hero-section {
  padding: 40px 0 80px 0;
}

.slideshow-container {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 850px;
  overflow: hidden;
  background-color: var(--black);
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: rgba(0, 0, 0, 0.75);
  color: var(--white);
  padding: 10px 20px;
  font-size: 1.1rem;
  max-width: 80%;
}

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: var(--white);
  border: none;
  font-size: 2rem;
  padding: 12px 18px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  z-index: 10;
}

.slide-arrow:hover {
  background-color: var(--coral);
}

.slide-arrow.prev { left: 15px; }
.slide-arrow.next { right: 15px; }

.slide-indicators {
  position: absolute;
  bottom: 20px;
  right: 25px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 14px;
  height: 14px;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: var(--coral);
}

/* ==========================================================================
   JUMPING TYPEWRITER & HEADLINES
   ========================================================================== */
.section-title {
  font-size: 3.5rem;
  line-height: 1.1;
  position: relative;
  z-index: 2;
}

/* Overlapping Title Effect - Extends beyond upper boundary */
.overlapping-title {
  font-size: 4rem;
  line-height: 1;
  transform: translateY(-130px);
  margin-bottom: -90px;
  position: relative;
  z-index: 10;
  text-shadow: 2px 2px 0px var(--white);
}

.turquoise-bg .overlapping-title {
  text-shadow: 2px 2px 0px var(--turquoise);
}

.coral-bg .overlapping-title {
  text-shadow: 2px 2px 0px var(--coral);
}

.decorative-quote {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14rem;
  color: var(--soft-neutral);
  z-index: 1;
  user-select: none;
  pointer-events: none;
  line-height: 1;
}

/* Jumping Typewriter Character Keyframe Animation */
.jumping-typewriter .char {
  display: inline-block;
  opacity: 0;
}

.jumping-typewriter .char.revealed {
  opacity: 1;
  animation: jumpBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes jumpBounce {
  0% {
    transform: translateY(25px) scale(0.8);
    opacity: 0;
  }
  50% {
    transform: translateY(-12px) scale(1.15);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Sub-quotes & Intro Paragraphs */
.sub-quote {
  font-size: 1.4rem;
  font-style: italic;
}

.intro-paragraph {
  font-size: 1.25rem;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.oversized-title {
  font-size: 3.8rem;
  line-height: 1.1;
}

/* ==========================================================================
   LAYOUT GRIDS
   ========================================================================== */
.grid-2-asymmetric {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* ==========================================================================
   CARD STYLES & INTERACTION
   ========================================================================== */
.card-headline {
  font-size: 1.8rem;
}

/* Hover Badge Reveal on Image */
.hover-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--black);
  color: var(--white);
  padding: 10px 0;
  text-align: center;
  font-size: 1.2rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.hover-label-card:hover .hover-badge,
.portfolio-item-box:hover .hover-badge {
  transform: translateY(0);
}

.portfolio-item-box {
  cursor: pointer;
}

/* Asymmetric White Note Cards */
.white-note-card {
  background-color: var(--white);
  padding: 50px 40px;
  position: relative;
}

.note-card-left {
  transform: translateY(-10px);
}

.note-card-right {
  transform: translateY(20px);
}

.note-num {
  font-size: 4rem;
  line-height: 1;
  display: block;
}

/* Coral Manifesto styling */
.narrow-col {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.manifesto-text {
  font-size: 1.5rem;
  line-height: 1.5;
}

.manifesto-bold-tag {
  font-size: 2.2rem;
  letter-spacing: 1px;
}

/* Category Filter Bar */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: 2px solid var(--black);
  padding: 8px 20px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--black);
  color: var(--white);
}

/* Links & CTA Buttons */
.cta-link {
  color: var(--black);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.2s ease;
}

.cta-link:hover {
  color: var(--turquoise);
}

.cta-button {
  background-color: var(--black);
  color: var(--white);
  padding: 14px 28px;
  text-decoration: none;
  font-size: 1.3rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
  background-color: var(--coral);
  transform: translateY(-2px);
}

/* ==========================================================================
   NEWSLETTER & CONTACT FORMS
   ========================================================================== */
.newsletter-form-container {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.input-group {
  display: flex;
  gap: 10px;
}

.input-group input,
.form-input {
  flex: 1;
  padding: 15px;
  border: 2px solid var(--black);
  font-size: 1.05rem;
  outline: none;
}

.input-group input:focus,
.form-input:focus {
  border-color: var(--turquoise);
}

.btn-black {
  background-color: var(--black);
  color: var(--white);
  border: none;
  padding: 15px 30px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-black:hover {
  background-color: var(--coral);
}

.unsubscribe-link {
  background: none;
  border: none;
  color: var(--turquoise);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.95rem;
}

.unsubscribe-link:hover {
  color: var(--black);
}

.status-message {
  font-size: 1.05rem;
  font-weight: bold;
}

.status-message.success { color: #2e7d32; }
.status-message.error { color: #c62828; }

.demo-note {
  font-size: 0.85rem;
  color: #666;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group label {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-black {
  background-color: var(--black);
  color: var(--white);
  padding: 80px 0 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  font-size: 2.2rem;
  color: var(--white);
}

.footer-desc {
  font-size: 1rem;
  color: #ccc;
  max-width: 320px;
}

.footer-heading {
  font-size: 1.4rem;
  color: var(--coral);
  margin-bottom: 10px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--turquoise);
}

.footer-hr {
  border: none;
  border-top: 1px solid #333;
  margin-bottom: 25px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #888;
}

.footer-legal-links a {
  color: #888;
  text-decoration: none;
}

.footer-legal-links a:hover {
  color: var(--white);
}

.footer-legal-links .sep {
  margin: 0 8px;
}

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 85%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-caption {
  color: var(--white);
  font-size: 1.8rem;
  margin-top: 15px;
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: var(--white);
  font-size: 3rem;
  cursor: pointer;
}

.lightbox-close:hover {
  color: var(--coral);
}

/* Single Page App Routing View Controllers */
.page-view {
  display: none;
}

.page-view.active-view {
  display: block;
}

/* ==========================================================================
   RESPONSIVE DESIGN & ACCESSIBILITY
   ========================================================================== */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .overlapping-title {
    font-size: 3rem;
    transform: translateY(-80px);
    margin-bottom: -50px;
  }

  .brand-logo {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  .content-wrapper {
    padding: 0 20px;
  }

  .grid-2-asymmetric,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .note-card-left,
  .note-card-right {
    transform: none;
  }

  .overlapping-title {
    font-size: 2.3rem;
    transform: translateY(-50px);
    margin-bottom: -30px;
  }

  .brand-logo {
    font-size: 1.6rem;
    transform: translateY(5px);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .input-group {
    flex-direction: column;
  }

  .slideshow-container {
    aspect-ratio: 4 / 3;
  }
}

/* Reduced Motion Respect */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .jumping-typewriter .char {
    opacity: 1 !important;
    transform: none !important;
  }
}