/* =========================================================================
   ripiy.com showcase stylesheet.

   Reuses the Gahori (gahori.ripiy.com) class system so both sites share one
   visual language: monochrome, square corners, tracked-out Montserrat headings,
   Inter body. Showcase-only additions are clearly sectioned below.
   ========================================================================= */

/* ---- Reset ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }

/* ---- Base ----------------------------------------------------------- */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--espresso);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--black);
}

a { color: inherit; }

::selection { background: var(--black); color: var(--white); }

/* ---- Layout helpers ------------------------------------------------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1rem;
}
.container-narrow { max-width: var(--container-narrow); margin-inline: auto; padding-inline: 1rem; }
.section { padding-block: var(--space-7); }
.section--tight { padding-block: var(--space-6); }
.stack > * + * { margin-top: 1rem; }
.muted { color: var(--grey-600); }
.text-center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---- Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-5);
  border-radius: 0;
  border: 1px solid transparent;
  min-height: 44px;
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--duration) var(--ease),
    color var(--duration) var(--ease),
    border-color var(--duration) var(--ease),
    transform var(--duration-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--black);
  color: var(--white);
}
.btn--primary:hover { background: var(--grey-800); }

.btn--outline {
  background: transparent;
  color: var(--black);
  border-color: var(--grey-300);
}
.btn--outline:hover { border-color: var(--black); background: var(--grey-50); }

.btn--lg { padding: 1rem 2rem; font-size: var(--text-base); }
.btn--block { width: 100%; }

/* ---- Announcement bar ---------------------------------------------- */
.announce {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-head);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  text-align: center;
  padding: var(--space-2) 1rem;
}

/* ---- Header --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
}
.brand { text-decoration: none; display: inline-flex; flex-direction: column; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--text-xl);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--black);
  line-height: 1;
}
.brand__tag {
  font-family: var(--font-head);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--grey-500);
  margin-top: 2px;
}
.site-nav { display: flex; gap: var(--space-5); align-items: center; }
.site-nav a {
  font-family: var(--font-head);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  text-decoration: none;
  color: var(--grey-700);
  transition: color var(--duration) var(--ease);
}
.site-nav a:hover { color: var(--black); }

/* ---- Hero ----------------------------------------------------------- */
.hero {
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
/* subtle layered radial gradients for texture */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.08), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(255, 255, 255, 0.05), transparent 50%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  padding-block: var(--space-8) var(--space-7);
}
.hero__eyebrow {
  font-family: var(--font-head);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.7;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 6vw, var(--text-5xl));
  letter-spacing: var(--tracking-wide);
  max-width: 16ch;
  margin-top: var(--space-4);
}
.hero__lede {
  margin-top: var(--space-4);
  font-size: var(--text-lg);
  color: var(--grey-300);
  max-width: 52ch;
}
.hero__actions {
  margin-top: var(--space-6);
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
/* On the black hero, the outline button inverts to white */
.hero .btn--outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.hero .btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

/* ---- Section heading + kicker -------------------------------------- */
.section-head { margin-bottom: var(--space-6); }
.section-head__kicker {
  font-family: var(--font-head);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--grey-500);
}
.section-head h2 {
  margin-top: var(--space-2);
  font-size: var(--text-3xl);
}

/* ---- Product grid --------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-5);
}

/* ---- Card ----------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  transition:
    border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}
.card:hover { border-color: var(--black); box-shadow: var(--shadow); }

.card__media {
  aspect-ratio: 4 / 3;
  background: var(--grey-100);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Real images fill the media area edge-to-edge (square corners preserved). */
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keep photos on-brand with the monochrome system. */
  filter: grayscale(1) contrast(1.03);
}
.card__media--placeholder {
  background: linear-gradient(135deg, var(--grey-100), var(--grey-200));
}
.card__placeholder-icon {
  font-size: 3rem;
  filter: grayscale(1);
  opacity: 0.4;
}
.card__chips {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card__body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}
.card__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--text-lg);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}
.card__desc {
  font-size: var(--text-sm);
  color: var(--grey-600);
  flex: 1;
}
.card__meta {
  font-family: var(--font-head);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--grey-500);
}
.card__foot {
  margin-top: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* ---- Chips / status tags ------------------------------------------- */
.chip {
  background: var(--white);
  color: var(--grey-700);
  border: 1px solid var(--grey-300);
  border-radius: 0;
  font-family: var(--font-head);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  padding: 3px 10px;
}
.chip--live {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.chip--soon {
  color: var(--grey-500);
  border-color: var(--grey-300);
}

/* ---- Placeholder card ("more coming soon") ------------------------- */
.card--placeholder {
  border-style: dashed;
  border-color: var(--grey-300);
  background: transparent;
}
.card--placeholder:hover { border-color: var(--grey-500); box-shadow: none; }
.card--placeholder .card__title { color: var(--grey-500); }
.card--placeholder .card__placeholder-icon { opacity: 0.3; }

/* ---- About band (dark) --------------------------------------------- */
.about {
  background: var(--black);
  color: var(--white);
}
.about__inner {
  padding-block: var(--space-8);
  max-width: 60ch;
}
.about__kicker {
  font-family: var(--font-head);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.7;
}
.about h2 {
  color: var(--white);
  font-size: var(--text-3xl);
  margin-top: var(--space-3);
}
.about__body {
  margin-top: var(--space-4);
  font-size: var(--text-lg);
  color: var(--grey-300);
}
.about__body p + p { margin-top: var(--space-4); }

/* ---- Footer --------------------------------------------------------- */
.site-footer {
  background: var(--black);
  color: var(--grey-300);
  padding-block: var(--space-7);
  margin-top: var(--space-8);
}
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h4 {
  color: var(--white);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-3);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-6);
}
.footer-brand__name {
  font-family: var(--font-head);
  font-size: var(--text-xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--white);
}
.footer-grid p { margin-top: var(--space-3); max-width: 42ch; }
.footer-grid p + p { margin-top: var(--space-3); }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-family: var(--font-head);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--grey-500);
}

/* ---- Responsive ----------------------------------------------------- */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-5); }
}
@media (max-width: 620px) {
  .site-nav { display: none; }
  .hero__actions .btn { width: 100%; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
