/*
Theme Name: Imen Pooya
Theme URI: https://imenpooya.org/
Author: Imen Pooya
Description: A professional RTL-ready WordPress and WooCommerce theme for Imen Pooya.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: imenpooya
*/

:root {
  --ip-red: #b5121b;
  --ip-red-dark: #7f0d14;
  --ip-red-soft: #fff1f2;
  --ip-ink: #16181d;
  --ip-muted: #686c75;
  --ip-line: #e9e7e5;
  --ip-surface: #f7f6f4;
  --ip-white: #fff;
  --ip-radius: 22px;
  --ip-shadow: 0 18px 50px rgba(22, 24, 29, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ip-ink); background: var(--ip-white); font-family: Tahoma, Arial, sans-serif; line-height: 1.85; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.ip-container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.ip-section { padding: 84px 0; }
.ip-section--soft { background: var(--ip-surface); }
.ip-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--ip-red); font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.ip-kicker::before { width: 22px; height: 2px; background: currentColor; content: ""; }
.ip-title { margin: 12px 0 16px; font-size: clamp(28px, 4vw, 48px); line-height: 1.35; letter-spacing: -.035em; }
.ip-lead { max-width: 680px; margin: 0; color: var(--ip-muted); font-size: 17px; }
.ip-button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 10px; padding: 0 24px; border: 1px solid transparent; border-radius: 14px; background: var(--ip-red); color: #fff; font-weight: 800; transition: .2s ease; }
.ip-button:hover { transform: translateY(-2px); background: var(--ip-red-dark); box-shadow: 0 12px 24px rgba(181,18,27,.22); }
.ip-button--ghost { border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.07); }

.ip-topbar { padding: 8px 0; background: var(--ip-ink); color: rgba(255,255,255,.82); font-size: 12px; }
.ip-topbar__inner, .ip-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ip-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(22,24,29,.08); background: rgba(255,255,255,.94); backdrop-filter: blur(16px); }
.ip-header__inner { min-height: 78px; }
.ip-brand { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 900; }
.ip-brand__mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: var(--ip-red); color: #fff; font-size: 15px; }
.ip-brand__text small { display: block; color: var(--ip-muted); font-size: 10px; font-weight: 500; line-height: 1.2; }
.ip-nav ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.ip-nav a { font-size: 14px; font-weight: 700; }
.ip-nav a:hover, .ip-nav .current-menu-item > a { color: var(--ip-red); }
.ip-menu-toggle { display: none; padding: 9px; border: 0; background: transparent; font-size: 24px; }

.ip-stories { padding: 24px 0; border-bottom: 1px solid var(--ip-line); }
.ip-stories__track { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; }
.ip-story { flex: 0 0 78px; border: 0; background: none; cursor: pointer; text-align: center; }
.ip-story__ring { display: block; width: 72px; height: 72px; padding: 3px; border-radius: 50%; background: linear-gradient(135deg,var(--ip-red),#ff6b72); }
.ip-story__ring img { width: 100%; height: 100%; padding: 3px; border-radius: 50%; background: white; object-fit: cover; }
.ip-story__name { display: block; overflow: hidden; margin-top: 7px; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.ip-hero { position: relative; overflow: hidden; min-height: 660px; background: #171719; color: #fff; }
.ip-hero::before { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(15,15,17,.2),rgba(15,15,17,.94) 72%), var(--ip-hero-image, linear-gradient(135deg,#2e3036,#171719)) center/cover; content: ""; }
.ip-hero::after { position: absolute; width: 520px; height: 520px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; content: ""; inset-inline-start: -170px; bottom: -280px; }
.ip-hero__inner { position: relative; z-index: 2; display: grid; min-height: 660px; align-content: center; }
.ip-hero__content { max-width: 680px; }
.ip-hero h1 { margin: 12px 0 22px; font-size: clamp(42px, 6vw, 76px); line-height: 1.18; letter-spacing: -.05em; }
.ip-hero h1 span { color: #ff5d64; }
.ip-hero p { max-width: 610px; color: rgba(255,255,255,.74); font-size: 18px; }
.ip-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ip-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-top: -42px; border-radius: var(--ip-radius); background: var(--ip-line); box-shadow: var(--ip-shadow); overflow: hidden; position: relative; z-index: 3; }
.ip-metric { padding: 28px; background: #fff; }
.ip-metric strong { display: block; color: var(--ip-red); font-size: 30px; line-height: 1.2; }
.ip-metric span { color: var(--ip-muted); font-size: 13px; }

.ip-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 38px; }
.ip-card { overflow: hidden; border: 1px solid var(--ip-line); border-radius: var(--ip-radius); background: #fff; transition: .25s ease; }
.ip-card:hover { transform: translateY(-5px); box-shadow: var(--ip-shadow); }
.ip-card__image { aspect-ratio: 4/3; overflow: hidden; background: #eee; }
.ip-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ip-card:hover .ip-card__image img { transform: scale(1.04); }
.ip-card__body { padding: 24px; }
.ip-card__body h3 { margin: 0 0 8px; font-size: 20px; }
.ip-card__body p { margin: 0; color: var(--ip-muted); font-size: 14px; }
.ip-card__link { display: inline-block; margin-top: 18px; color: var(--ip-red); font-size: 13px; font-weight: 800; }
.ip-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.ip-feature__media { overflow: hidden; border-radius: 32px; box-shadow: var(--ip-shadow); }
.ip-feature__media img { display: block; width: 100%; min-height: 460px; object-fit: cover; }
.ip-checks { display: grid; gap: 12px; margin: 28px 0; padding: 0; list-style: none; }
.ip-checks li { display: flex; gap: 11px; align-items: center; font-weight: 700; }
.ip-checks li::before { display: grid; flex: 0 0 26px; height: 26px; place-items: center; border-radius: 50%; background: var(--ip-red-soft); color: var(--ip-red); content: "✓"; }
.ip-cta { padding: 50px; border-radius: 28px; background: linear-gradient(135deg,var(--ip-red-dark),var(--ip-red)); color: #fff; }
.ip-cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.ip-cta h2 { margin: 0 0 8px; font-size: clamp(26px,4vw,42px); }
.ip-cta p { margin: 0; color: rgba(255,255,255,.77); }

.ip-footer { margin-top: 80px; padding: 70px 0 26px; background: #121316; color: #fff; }
.ip-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; }
.ip-footer h3 { margin-top: 0; font-size: 15px; }
.ip-footer p, .ip-footer a { color: rgba(255,255,255,.62); font-size: 13px; }
.ip-footer ul { margin: 0; padding: 0; list-style: none; }
.ip-footer__bottom { margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.45); font-size: 12px; }

.ip-story-viewer { position: fixed; z-index: 1000; inset: 0; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.92); }
.ip-story-viewer.is-open { display: flex; }
.ip-story-viewer__frame { position: relative; width: min(420px,100%); height: min(760px,88vh); overflow: hidden; border-radius: 24px; background: #111; }
.ip-story-viewer__frame img, .ip-story-viewer__frame video { width: 100%; height: 100%; object-fit: contain; }
.ip-story-viewer__close { position: absolute; z-index: 2; top: 16px; inset-inline-end: 16px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; cursor: pointer; }

.woocommerce ul.products li.product, .woocommerce div.product { border-radius: 18px; }
.woocommerce ul.products li.product .button, .woocommerce button.button.alt, .woocommerce a.button.alt { border-radius: 12px; background: var(--ip-red); color: #fff; }
.woocommerce span.onsale { background: var(--ip-red); }
.ip-content { padding: 70px 0; }

@media (max-width: 900px) {
  .ip-menu-toggle { display: block; }
  .ip-nav { position: absolute; top: 78px; right: 16px; left: 16px; display: none; padding: 20px; border: 1px solid var(--ip-line); border-radius: 16px; background: #fff; box-shadow: var(--ip-shadow); }
  .ip-nav.is-open { display: block; }
  .ip-nav ul { align-items: stretch; flex-direction: column; gap: 12px; }
  .ip-header .ip-button { display: none; }
  .ip-grid { grid-template-columns: repeat(2,1fr); }
  .ip-feature { grid-template-columns: 1fr; gap: 34px; }
  .ip-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .ip-section { padding: 60px 0; }
  .ip-topbar { display: none; }
  .ip-header__inner { min-height: 68px; }
  .ip-nav { top: 68px; }
  .ip-hero, .ip-hero__inner { min-height: 570px; }
  .ip-hero::before { background: linear-gradient(0deg,rgba(15,15,17,.96),rgba(15,15,17,.32)), var(--ip-hero-image, linear-gradient(135deg,#2e3036,#171719)) center/cover; }
  .ip-hero h1 { font-size: 42px; }
  .ip-metrics { grid-template-columns: 1fr; margin-top: -20px; }
  .ip-metric { padding: 20px; }
  .ip-grid { grid-template-columns: 1fr; }
  .ip-feature__media img { min-height: 320px; }
  .ip-cta { padding: 32px 24px; }
  .ip-cta__inner { align-items: flex-start; flex-direction: column; }
  .ip-footer__grid { grid-template-columns: 1fr; gap: 30px; }
}
