/* ==========================================================================
   The Ritual Club — Shared Stylesheet
   Used across all site pages (index.html + 7 more to come).
   ========================================================================== */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@1.3.9/dist/web/static/pretendard.css');

:root {
  /* Brand palette, sampled from the approved mockup */
  --lime: #d2f88b;
  --lime-pale: #f1fec6;
  --blue: #7b93d6;
  --blue-deep: #5c74c4;
  --ink: #211d1e;
  --black: #000000;
  --gold: #fbbe25;
  --white: #ffffff;
  --gray-muted: #8a8a8a;
  --gray-line: #e7e7e7;

  --font-base: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;

  --max-width: 1200px;
  --gutter: 32px;

  --radius-sm: 8px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Visible keyboard focus */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  box-shadow: 0 6px 16px rgba(123, 147, 214, 0.45);
}

.btn-dark {
  background: var(--ink);
  color: var(--lime);
}

.btn-dark:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--gray-line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-link img {
  height: 40px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--blue-deep);
}

.nav-item-dropdown {
  position: relative;
}

.nav-item-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-item-dropdown .chevron {
  width: 10px;
  height: 10px;
  transition: transform 0.2s ease;
}

.nav-item-dropdown:hover .chevron {
  transform: rotate(180deg);
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgba(33, 29, 30, 0.14);
  padding: 10px;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.nav-item-dropdown:hover .dropdown-panel,
.nav-item-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 14px;
}

.dropdown-panel a:hover {
  background: var(--lime-pale);
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  padding: 6px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span {
  margin: 5px 0;
}

.nav-toggle[aria-expanded='true'] span {
  opacity: 0;
}

.nav-toggle[aria-expanded='true']::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded='true']::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background: var(--white);
  padding: 88px var(--gutter) 96px;
  text-align: center;
}

.hero img {
  width: 220px;
  margin: 0 auto;
}

/* ==========================================================================
   Poster carousel
   ========================================================================== */

.carousel-section {
  background: var(--lime);
  padding: 80px var(--gutter);
}

.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  max-width: 680px;
  margin: 0 auto;
}

.carousel-arrow {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.15s ease;
}

.carousel-arrow:hover {
  background: rgba(33, 29, 30, 0.08);
}

.carousel-arrow svg {
  width: 26px;
  height: 26px;
}

.carousel-track {
  position: relative;
  width: 260px;
  height: 380px;
  overflow: hidden;
}

.poster-card {
  position: absolute;
  inset: 0;
  background: var(--ink);
  color: var(--lime);
  border-radius: 4px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.poster-card.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.poster-card .poster-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

.poster-card .poster-tagline {
  align-self: flex-end;
  text-align: right;
  font-size: 14px;
  line-height: 1.5;
}

/* ==========================================================================
   Intro / statement section
   ========================================================================== */

.statement {
  background: var(--blue);
  color: var(--white);
  padding: 92px var(--gutter);
  text-align: center;
}

.statement-inner {
  max-width: 640px;
  margin: 0 auto;
}

.statement h2 {
  font-size: 25px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 32px;
}

.statement p {
  font-size: 15.5px;
  line-height: 1.9;
  margin: 0 0 22px;
  opacity: 0.95;
}

.statement p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Icon link grid
   ========================================================================== */

.icon-grid-section {
  background: var(--lime-pale);
  padding: 88px var(--gutter);
}

.icon-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 44px 40px;
}

.icon-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 128px;
}

.icon-grid-item img {
  width: 108px;
  height: 108px;
  margin-bottom: 18px;
  transition: transform 0.2s ease;
}

.icon-grid-item:hover img {
  transform: translateY(-4px);
}

.icon-grid-item .icon-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--blue-deep);
  white-space: nowrap;
}

.icon-grid-item .arrow-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.4px solid var(--blue-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.icon-grid-item .arrow-circle svg {
  width: 9px;
  height: 9px;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.reviews-section {
  background: var(--ink);
  color: var(--white);
  padding: 88px var(--gutter) 64px;
}

.reviews-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.review-arrow {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.review-arrow:hover {
  background: rgba(255, 255, 255, 0.22);
}

.review-arrow svg {
  width: 18px;
  height: 18px;
}

.review-track {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
}

.review-slide {
  display: none;
}

.review-slide.is-active {
  display: block;
}

.review-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 22px;
}

.review-stars svg {
  width: 22px;
  height: 22px;
  fill: var(--gold);
}

.review-quote {
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 10px;
}

.review-quote.is-empty {
  opacity: 0.55;
  font-style: italic;
}

.review-readmore {
  display: inline-block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: underline;
  margin-bottom: 28px;
}

.review-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.review-author img,
.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.review-avatar {
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  flex: 0 0 auto;
}

.review-author-name {
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

.review-author-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  text-align: left;
}

.review-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.review-dots button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  padding: 0;
}

.review-dots button.is-active {
  background: var(--white);
}

/* ==========================================================================
   CTA
   ========================================================================== */

.cta-section {
  background: var(--lime);
  padding: 64px var(--gutter) 88px;
  text-align: center;
}

.cta-eyebrow {
  text-align: right;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.8;
  max-width: var(--max-width);
  margin: 0 auto 40px;
}

.cta-section h2 {
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 14px;
}

.cta-section .cta-sub {
  font-size: 15px;
  margin: 0 0 28px;
  opacity: 0.85;
}

/* ==========================================================================
   Page header (inner pages)
   ========================================================================== */

.page-header {
  background: var(--lime);
  padding: 64px var(--gutter) 56px;
  text-align: center;
}

.page-header .breadcrumb {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.65;
  margin: 0 0 14px;
}

.page-header .breadcrumb a:hover {
  color: var(--blue-deep);
}

.page-header h1 {
  font-size: 34px;
  font-weight: 700;
  margin: 0 0 14px;
}

.page-header p {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ink);
  opacity: 0.8;
  max-width: 520px;
  margin: 0 auto;
}

/* ==========================================================================
   About — story split section
   ========================================================================== */

.about-story {
  background: var(--white);
  padding: 96px var(--gutter);
}

.about-story-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 64px;
}

.about-story-media {
  flex: 0 0 260px;
  display: flex;
  justify-content: center;
}

.about-story-media img {
  width: 220px;
  height: 220px;
}

.about-story-text {
  flex: 1 1 auto;
}

.about-story-text h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 24px;
}

.about-story-text p {
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--ink);
  opacity: 0.85;
  margin: 0 0 18px;
}

.about-story-text p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   About — core values
   ========================================================================== */

.values-section {
  background: var(--lime-pale);
  padding: 88px var(--gutter);
}

.values-section .section-heading {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 48px;
}

.values-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}

.value-card {
  width: 320px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  text-align: center;
}

.value-card img {
  width: 88px;
  height: 88px;
  margin: 0 auto 22px;
}

.value-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
}

.value-card p {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink);
  opacity: 0.75;
  margin: 0;
}

/* ==========================================================================
   About — stats
   ========================================================================== */

.stats-section {
  background: var(--ink);
  color: var(--white);
  padding: 80px var(--gutter);
}

.stats-eyebrow {
  text-align: center;
  font-size: 13px;
  opacity: 0.6;
  margin: 0 0 40px;
}

.stats-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 36px;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 40px;
  font-weight: 700;
  color: var(--lime);
  margin-bottom: 8px;
}

.stat-item .stat-label {
  font-size: 14px;
  opacity: 0.7;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 56px var(--gutter) 40px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 44px;
}

.footer-logo img {
  height: 34px;
  width: auto;
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
}

.footer-col h3 {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-muted);
  margin: 0 0 14px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  font-weight: 600;
}

.footer-col ul li a:hover {
  color: var(--lime);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 28px;
}

.footer-company {
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 20px;
}

.footer-copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 20px var(--gutter) 28px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    overflow-y: auto;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav a {
    width: 100%;
    padding: 12px 4px;
    border-bottom: 1px solid var(--gray-line);
  }

  .nav-item-dropdown {
    width: 100%;
  }

  .dropdown-panel {
    position: static;
    transform: none;
    box-shadow: none;
    padding: 0 0 0 14px;
    display: none;
    min-width: 0;
    opacity: 1;
    visibility: visible;
  }

  .nav-item-dropdown.is-open .dropdown-panel {
    display: block;
  }

  .header-actions .btn-primary {
    padding: 9px 16px;
    font-size: 14px;
  }

  .nav-toggle {
    display: flex;
  }

  .about-story-inner {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .about-story-media {
    flex: 0 0 auto;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
  }

  .site-header .wrap {
    height: 64px;
  }

  .logo-link img {
    height: 32px;
  }

  .hero {
    padding: 56px var(--gutter) 64px;
  }

  .hero img {
    width: 168px;
  }

  .carousel-section {
    padding: 56px var(--gutter);
  }

  .carousel {
    gap: 12px;
  }

  .carousel-track {
    width: 200px;
    height: 300px;
  }

  .poster-card {
    padding: 20px 18px;
  }

  .poster-card .poster-title {
    font-size: 26px;
  }

  .poster-card .poster-tagline {
    font-size: 12px;
  }

  .statement {
    padding: 60px var(--gutter);
  }

  .statement h2 {
    font-size: 20px;
    margin-bottom: 24px;
  }

  .statement p {
    font-size: 14.5px;
    line-height: 1.8;
  }

  .icon-grid-section {
    padding: 56px var(--gutter);
  }

  .icon-grid {
    gap: 32px 22px;
  }

  .icon-grid-item {
    width: 84px;
  }

  .icon-grid-item img {
    width: 76px;
    height: 76px;
    margin-bottom: 12px;
  }

  .icon-grid-item .icon-label {
    font-size: 12px;
    white-space: normal;
  }

  .reviews-section {
    padding: 56px var(--gutter) 48px;
  }

  .reviews-inner {
    gap: 10px;
  }

  .review-arrow {
    width: 32px;
    height: 32px;
  }

  .review-arrow svg {
    width: 15px;
    height: 15px;
  }

  .review-quote {
    font-size: 14.5px;
  }

  .cta-section {
    padding: 48px var(--gutter) 64px;
  }

  .cta-eyebrow {
    font-size: 13px;
    margin-bottom: 28px;
  }

  .cta-section h2 {
    font-size: 23px;
  }

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  .footer-cols {
    gap: 28px 36px;
  }

  .page-header {
    padding: 48px var(--gutter) 40px;
  }

  .page-header h1 {
    font-size: 26px;
  }

  .about-story {
    padding: 56px var(--gutter);
  }

  .about-story-media img {
    width: 160px;
    height: 160px;
  }

  .about-story-text h2 {
    font-size: 21px;
    margin-bottom: 18px;
  }

  .values-section {
    padding: 56px var(--gutter);
  }

  .values-section .section-heading {
    font-size: 21px;
    margin-bottom: 32px;
  }

  .value-card {
    width: 100%;
    padding: 32px 24px;
  }

  .stats-section {
    padding: 56px var(--gutter);
  }

  .stat-item .stat-number {
    font-size: 30px;
  }
}
