/* irbet365 — emerald gold luxury editorial */
:root {
  --bg-deep: #071a14;
  --bg: #0c241c;
  --bg-elevated: #123028;
  --bg-soft: #1a3d32;
  --surface: rgba(18, 48, 40, 0.72);
  --gold: #d4a84b;
  --gold-bright: #f0c66a;
  --gold-dim: #9a7530;
  --cream: #f3ead7;
  --cream-muted: #cbbfa6;
  --mint: #7dcbad;
  --line: rgba(212, 168, 75, 0.22);
  --danger: #e85d4c;
  --radius: 14px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-body: "Vazirmatn", "DM Sans", system-ui, sans-serif;
  --max: 1120px;
  --cta: #d4a84b;
  --cta-text: #071a14;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(212, 168, 75, 0.14), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(125, 203, 173, 0.1), transparent 50%),
    linear-gradient(180deg, #0a1f18 0%, var(--bg-deep) 40%, #091812 100%);
  color: var(--cream);
  line-height: 1.85;
  font-size: 1.02rem;
  min-height: 100vh;
}

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

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

a:hover {
  color: #ffe09a;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 26, 20, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cream);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.brand span {
  color: var(--gold);
}

.brand-fa {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--cream-muted);
  font-weight: 500;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--cream-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-bright);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--cream);
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--cta-text);
  box-shadow: 0 10px 30px rgba(212, 168, 75, 0.28);
}

.btn-primary:hover {
  color: var(--cta-text);
  box-shadow: 0 14px 36px rgba(212, 168, 75, 0.4);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--cream);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn-lg {
  padding: 1rem 1.8rem;
  font-size: 1.05rem;
}

/* Hero — one composition, brand first, full-bleed */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 26, 20, 0.92) 0%, rgba(7, 26, 20, 0.55) 48%, rgba(7, 26, 20, 0.35) 100%),
    linear-gradient(0deg, rgba(7, 26, 20, 0.95) 0%, rgba(7, 26, 20, 0.2) 45%, rgba(7, 26, 20, 0.45) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(4rem, 10vh, 7rem) 0 clamp(3rem, 6vh, 4.5rem);
  max-width: 720px;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 6.2rem);
  line-height: 0.95;
  margin: 0 0 0.35rem;
  letter-spacing: 0.03em;
  color: var(--cream);
}

.hero-brand em {
  font-style: normal;
  color: var(--gold);
}

.hero-kicker {
  font-size: 1.05rem;
  color: var(--mint);
  margin: 0 0 1rem;
}

.hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--cream-muted);
  max-width: 34rem;
  margin: 0 0 1.6rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.js-ready .hero-brand,
.js-ready .hero-kicker,
.js-ready .hero-lead,
.js-ready .hero-cta {
  animation: riseIn 0.9s ease both;
}
.js-ready .hero-kicker { animation-delay: 0.1s; }
.js-ready .hero-lead { animation-delay: 0.18s; }
.js-ready .hero-cta { animation-delay: 0.26s; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .js-ready .hero-brand,
  .js-ready .hero-kicker,
  .js-ready .hero-lead,
  .js-ready .hero-cta {
    animation: none;
  }
}

/* Sections */
.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 0.5rem;
  font-weight: 600;
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: var(--cream-muted);
  max-width: 40rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: -1.5rem;
  position: relative;
  z-index: 3;
}

.trust-item {
  padding: 1.1rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.trust-item span {
  color: var(--cream-muted);
  font-size: 0.9rem;
}

/* Article prose */
.prose {
  max-width: 760px;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  margin: 2.4rem 0 0.9rem;
  line-height: 1.25;
  font-weight: 600;
}

.prose h3 {
  font-size: 1.25rem;
  margin: 1.8rem 0 0.7rem;
  color: var(--gold-bright);
  font-weight: 600;
}

.prose p {
  margin: 0 0 1.15rem;
  color: #ebe1cf;
}

.prose ul,
.prose ol {
  padding-inline-start: 1.3rem;
  margin: 0 0 1.2rem;
  color: #ebe1cf;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose figure {
  margin: 1.8rem 0 2rem;
}

.prose figure img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.prose figcaption {
  margin-top: 0.55rem;
  font-size: 0.88rem;
  color: var(--cream-muted);
}

.cta-banner {
  margin: 2.5rem 0;
  padding: 1.6rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(212, 168, 75, 0.14), rgba(18, 48, 40, 0.5));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-banner p {
  margin: 0;
  max-width: 28rem;
  color: var(--cream);
}

/* Blog grid — interaction containers only */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 168, 75, 0.45);
  color: inherit;
}

.blog-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.blog-card-body {
  padding: 1.15rem 1.2rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.blog-card time {
  font-size: 0.82rem;
  color: var(--mint);
}

.blog-card h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.45;
  font-weight: 600;
  color: var(--cream);
}

.blog-card p {
  margin: 0;
  color: var(--cream-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* Post layout */
.post-hero {
  padding: 3rem 0 1.5rem;
}

.post-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin: 0.4rem 0 0.8rem;
  line-height: 1.2;
}

.post-meta {
  color: var(--cream-muted);
  font-size: 0.92rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
}

.post-cover {
  margin: 0 0 2rem;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.post-cover img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

.related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  padding: 2.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 0 0 0.5rem;
}

.footer-brand span { color: var(--gold); }

.site-footer p {
  color: var(--cream-muted);
  margin: 0 0 1rem;
}

.site-footer h4 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
  color: var(--gold-bright);
}

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

.site-footer li { margin-bottom: 0.45rem; }

.site-footer a {
  color: var(--cream-muted);
  text-decoration: none;
}

.site-footer a:hover { color: var(--gold-bright); }

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--cream-muted);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.disclaimer {
  font-size: 0.85rem;
  color: var(--cream-muted);
  max-width: 52rem;
  margin: 1rem auto 0;
  text-align: center;
  opacity: 0.85;
}

/* FAQ */
.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.75rem;
  background: var(--surface);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--cream);
}

.faq details[open] summary {
  color: var(--gold-bright);
  margin-bottom: 0.55rem;
}

.faq p {
  margin: 0;
  color: var(--cream-muted);
}

/* Reveal on scroll — visible by default; JS only adds motion class */
.reveal {
  opacity: 1;
  transform: none;
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem;
    gap: 0.85rem;
  }
  .nav-links.open { display: flex; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content { max-width: 100%; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
}
