/*
Theme Name:   Ripple Child
Theme URI:    https://ripplepodcaststudio.com
Description:  Child theme of GeneratePress for Ripple Podcast Studio, Dhaka.
Author:       Olive IT
Template:     generatepress
Version:      1.0.0
Text Domain:  ripple-child
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */

:root {
  /* Brand — sampled from the Ripple logo */
  --rp-signal:        #EDE205;
  --rp-signal-press:  #C9C004;
  --rp-signal-wash:   #FBF8CC;
  --rp-ink:           #0B0B0B;

  /* Neutrals — slight olive cast so they sit with the yellow */
  --rp-paper:         #FAFAF6;
  --rp-surface:       #FFFFFF;
  --rp-graphite:      #56564E;
  --rp-line:          #E2E2DA;
  --rp-line-strong:   #C6C6BC;
  --rp-ink-surface:   #141412;

  /* Booking states */
  --rp-open:          #EDE205;
  --rp-held:          #C6C6BC;
  --rp-booked:        #0B0B0B;
  --rp-error:         #B3261E;

  /* Type */
  --rp-font-display: 'Archivo', system-ui, sans-serif;
  --rp-font-body:    'Instrument Sans', system-ui, sans-serif;
  --rp-font-bn:      'Hind Siliguri', 'Instrument Sans', sans-serif;

  /* Space */
  --rp-1: 4px;   --rp-2: 8px;   --rp-3: 12px;  --rp-4: 16px;
  --rp-5: 24px;  --rp-6: 32px;  --rp-7: 48px;  --rp-8: 64px;
  --rp-9: 96px;  --rp-10: 128px;

  /* Shape */
  --rp-radius-sm: 4px;
  --rp-radius-md: 8px;
  --rp-radius-pill: 999px;

  /* Layout */
  --rp-container: 1200px;
  --rp-gutter: 32px;
  --rp-header-h: 72px;

  /* Motion */
  --rp-ease: cubic-bezier(0.2, 0, 0, 1);
  --rp-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --rp-fast: 150ms;
  --rp-base: 250ms;
  --rp-slow: 600ms;
}

@media (max-width: 768px) {
  :root { --rp-gutter: 20px; --rp-header-h: 64px; }
}

/* ==========================================================================
   2. Base
   ========================================================================== */

body {
  background-color: var(--rp-paper);
  color: var(--rp-ink);
  font-family: var(--rp-font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--rp-font-display);
  color: var(--rp-ink);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 var(--rp-4);
}

p { margin: 0 0 var(--rp-4); max-width: 68ch; }

a { color: var(--rp-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Taka sign and Bangla need Hind Siliguri or the glyph falls back badly */
.rp-bdt, [lang="bn"] { font-family: var(--rp-font-bn); }

/* Visible focus everywhere — never removed */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--rp-ink);
  outline-offset: 2px;
  border-radius: 2px;
}
.rp-dark a:focus-visible,
.rp-dark button:focus-visible,
.rp-dark input:focus-visible,
.rp-dark [tabindex]:focus-visible {
  outline-color: var(--rp-signal);
}

.rp-container {
  width: 100%;
  max-width: var(--rp-container);
  margin: 0 auto;
  padding-left: var(--rp-gutter);
  padding-right: var(--rp-gutter);
}

.rp-skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--rp-ink); color: var(--rp-paper);
  padding: var(--rp-3) var(--rp-4);
}
.rp-skip-link:focus { left: 0; }

/* GeneratePress resets so our full-width sections behave */
.ripple-home .site-content { padding: 0; }
.ripple-home .content-area,
.ripple-home .site-main,
.ripple-home .entry-content { margin: 0; padding: 0; }
.ripple-home .entry-content > *:first-child { margin-top: 0; }

/* ==========================================================================
   3. Buttons
   ========================================================================== */

.rp-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--rp-2);
  height: 48px;
  padding: 0 var(--rp-5);
  border: 1px solid transparent;
  border-radius: var(--rp-radius-sm);
  font-family: var(--rp-font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--rp-fast) var(--rp-ease),
              border-color var(--rp-fast) var(--rp-ease),
              color var(--rp-fast) var(--rp-ease);
}
.rp-btn i { font-size: 16px; }

.rp-btn--primary { background: var(--rp-ink); color: var(--rp-paper); }
.rp-btn--primary:hover { background: #1F1F1C; color: var(--rp-paper); }

.rp-btn--signal { background: var(--rp-signal); color: var(--rp-ink); }
.rp-btn--signal:hover { background: var(--rp-signal-press); color: var(--rp-ink); }

.rp-btn--secondary { background: transparent; color: var(--rp-ink); border-color: var(--rp-ink); }
.rp-btn--secondary:hover { background: var(--rp-ink); color: var(--rp-paper); }

.rp-btn--ghost { background: transparent; color: var(--rp-graphite); padding: 0; height: auto; }
.rp-btn--ghost:hover { color: var(--rp-ink); }

.rp-dark .rp-btn--secondary { color: var(--rp-paper); border-color: rgba(250,250,246,0.4); }
.rp-dark .rp-btn--secondary:hover { background: var(--rp-paper); color: var(--rp-ink); border-color: var(--rp-paper); }

@media (max-width: 768px) {
  .rp-btn { height: 52px; width: 100%; justify-content: center; }
  .rp-btn--ghost { width: auto; }
}

/* ==========================================================================
   4. Header
   ========================================================================== */

.rp-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--rp-header-h);
  background: rgba(250, 250, 246, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--rp-base) var(--rp-ease);
}
.rp-header.is-scrolled { border-bottom-color: var(--rp-line); }

.rp-header__inner {
  display: flex;
  align-items: center;
  gap: var(--rp-6);
  height: 100%;
}

.rp-header__brand { display: flex; align-items: center; margin-right: auto; }
.rp-header__brand img,
.rp-header__brand .custom-logo {
  height: 36px;
  width: auto;
  max-width: 200px;
  display: block;
}
.rp-header__brand-text {
  font-family: var(--rp-font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.rp-nav { display: flex; align-items: center; gap: var(--rp-5); }
.rp-nav a {
  position: relative;
  font-size: 15px;
  color: var(--rp-ink);
  text-decoration: none;
  padding: var(--rp-2) 0;
  transition: color var(--rp-fast) var(--rp-ease);
}
.rp-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--rp-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--rp-base) var(--rp-ease);
}
.rp-nav a:hover::after,
.rp-nav a.is-active::after { transform: scaleX(1); }

.rp-header__cta { flex-shrink: 0; }
.rp-header__cta .rp-btn { height: 42px; padding: 0 var(--rp-4); font-size: 15px; }

.rp-header__toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: none;
  font-size: 20px; color: var(--rp-ink);
  cursor: pointer;
}

/* Mobile sheet */
.rp-mobile-nav {
  position: fixed;
  inset: var(--rp-header-h) 0 0 0;
  z-index: 190;
  background: var(--rp-paper);
  padding: var(--rp-6) var(--rp-gutter) var(--rp-8);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  transition: opacity var(--rp-base) var(--rp-ease),
              transform var(--rp-base) var(--rp-ease),
              visibility var(--rp-base);
}
.rp-mobile-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
.rp-mobile-nav a {
  display: block;
  font-family: var(--rp-font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  padding: var(--rp-4) 0;
  border-bottom: 1px solid var(--rp-line);
}
.rp-mobile-nav__actions { margin-top: var(--rp-6); display: grid; gap: var(--rp-3); }

@media (max-width: 900px) {
  .rp-nav, .rp-header__cta { display: none; }
  .rp-header__toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* Sticky mobile action bar */
.rp-mobile-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 180;
  background: var(--rp-paper);
  box-shadow: 0 -1px 0 var(--rp-line);
  padding: var(--rp-3) var(--rp-gutter);
  gap: var(--rp-3);
}
.rp-mobile-bar .rp-btn { height: 46px; font-size: 15px; flex: 1; }
@media (max-width: 768px) {
  .rp-mobile-bar { display: flex; }
  body { padding-bottom: 72px; }
}

/* ==========================================================================
   5. Footer
   ========================================================================== */

.rp-footer {
  background: var(--rp-ink);
  color: rgba(250, 250, 246, 0.72);
  padding: var(--rp-9) 0 var(--rp-6);
}
.rp-footer h3 {
  color: var(--rp-paper);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--rp-font-body);
  letter-spacing: 0.01em;
  margin-bottom: var(--rp-4);
}
.rp-footer a { color: rgba(250, 250, 246, 0.72); text-decoration: none; transition: color var(--rp-fast) var(--rp-ease); }
.rp-footer a:hover { color: var(--rp-signal); }

.rp-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--rp-7);
  padding-bottom: var(--rp-8);
}
.rp-footer__brand img,
.rp-footer__brand .custom-logo {
  height: 40px; width: auto; display: block;
  margin-bottom: var(--rp-4);
  /* Logo is black-on-yellow; invert so the mark reads on the ink footer */
  filter: invert(1) brightness(1.6);
}
.rp-footer__brand p { font-size: 15px; max-width: 34ch; }
.rp-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--rp-3); font-size: 15px; }

.rp-footer__social { display: flex; gap: var(--rp-4); margin-top: var(--rp-5); font-size: 18px; }

.rp-footer__bottom {
  border-top: 1px solid rgba(250, 250, 246, 0.14);
  padding-top: var(--rp-5);
  display: flex;
  justify-content: space-between;
  gap: var(--rp-4);
  font-size: 14px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .rp-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--rp-6); }
}
@media (max-width: 560px) {
  .rp-footer__grid { grid-template-columns: 1fr; }
  .rp-footer { padding-top: var(--rp-7); }
}

/* ==========================================================================
   6. Reveal animation (respects reduced motion)
   ========================================================================== */

.rp-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--rp-slow) var(--rp-ease-out),
              transform var(--rp-slow) var(--rp-ease-out);
  will-change: opacity, transform;
}
.rp-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .rp-reveal { opacity: 1; transform: none; }
}
