/* ============================================================
   RUSHABH ORNA — Global: reset, typography, shared components
   ============================================================ */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ro-fb);
  font-size: var(--ro-fs-body);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--ro-t2);
  background-color: var(--ro-bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--ro-duration) var(--ro-ease),
              color var(--ro-duration) var(--ro-ease);
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--ro-gold);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--ro-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* ---------- Container ---------- */
.ro-container {
  width: 100%;
  max-width: var(--ro-container);
  margin-inline: auto;
  padding-inline: var(--ro-sp-lg);
}

.ro-container--wide {
  /* Must stay wider than --ro-container, which is now 1440px. */
  max-width: 1600px;
}

.ro-container--narrow {
  max-width: 860px;
}

/* ---------- Typography ---------- */
.ro-h1,
.ro-h2,
.ro-h3 {
  font-family: var(--ro-fh);
  font-weight: 500;
  line-height: 1.12;
  color: var(--ro-t1);
}

.ro-h1 {
  font-size: var(--ro-fs-h1);
  letter-spacing: -0.01em;
}

.ro-h2 {
  font-size: var(--ro-fs-h2);
}

.ro-h3 {
  font-size: var(--ro-fs-h3);
}

.ro-body {
  font-size: var(--ro-fs-body);
  color: var(--ro-t2);
}

.ro-small {
  font-size: var(--ro-fs-small);
  color: var(--ro-t3);
}

.ro-label {
  font-size: var(--ro-fs-label);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ro-accent);
}

.ro-accent-text {
  color: var(--ro-gold);
  font-style: italic;
}

.ro-script {
  font-family: var(--ro-fa);
  font-size: 1.6em;
  line-height: 1;
  color: var(--ro-gold);
}

/* ---------- Eyebrow ---------- */
.ro-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: var(--ro-fs-label);
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ro-accent);
}

.ro-eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--ro-gold);
}

/* ---------- Sections ---------- */
.ro-section {
  padding-block: var(--ro-sp-2xl);
}

.ro-section--sm {
  padding-block: var(--ro-sp-xl);
}

.ro-section--alt {
  background: var(--ro-bg-alt);
}

.ro-section--dark {
  background: var(--ro-dark);
}

.ro-section--dark .ro-h2,
.ro-section--dark .ro-h3 {
  color: var(--ro-tw);
}

.ro-section--dark .ro-body {
  color: rgba(247, 244, 238, 0.72);
}

.ro-section-header {
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: var(--ro-sp-xl);
  text-align: center;
}

.ro-section-header--left {
  margin-inline: 0;
  text-align: left;
}

.ro-section-header__label {
  display: block;
  margin-bottom: var(--ro-sp-md);
}

.ro-section-header__title {
  margin-bottom: var(--ro-sp-md);
}

.ro-section-header__desc {
  color: var(--ro-t3);
}

/* ---------- Buttons ---------- */
.ro-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  font-size: var(--ro-fs-small);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: var(--ro-r-full);
  transition: transform var(--ro-duration) var(--ro-ease),
              box-shadow var(--ro-duration) var(--ro-ease),
              background-color var(--ro-duration) var(--ro-ease),
              color var(--ro-duration) var(--ro-ease),
              border-color var(--ro-duration) var(--ro-ease);
}

.ro-btn--primary {
  background: var(--ro-accent);
  color: #fdfcf9;
}

.ro-btn--primary:hover {
  background: var(--ro-accent-deep);
  transform: translateY(-3px);
  box-shadow: var(--ro-shadow-glow);
}

.ro-btn--outline {
  border: 1px solid var(--ro-line);
  color: var(--ro-t1);
  background: transparent;
}

.ro-btn--outline:hover {
  border-color: var(--ro-gold);
  color: var(--ro-gold);
  transform: translateY(-3px);
}

.ro-btn--ghost {
  padding: 10px 0;
  color: var(--ro-t1);
  border-radius: 0;
  border-bottom: 1px solid var(--ro-gold);
}

.ro-btn--ghost i {
  transition: transform var(--ro-duration) var(--ro-ease);
}

.ro-btn--ghost:hover {
  gap: 18px;
  color: var(--ro-gold);
}

.ro-btn--ghost:hover i {
  transform: translateX(4px);
}

.ro-btn--light {
  background: var(--ro-bg);
  color: var(--ro-ink);
}

.ro-btn--light:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: var(--ro-shadow-md);
}

/* ---------- Cards ---------- */
.ro-card {
  background: var(--ro-surface);
  border: 1px solid var(--ro-line-soft);
  border-radius: var(--ro-r-lg);
  transition: transform var(--ro-duration) var(--ro-ease),
              box-shadow var(--ro-duration) var(--ro-ease),
              border-color var(--ro-duration) var(--ro-ease);
}

.ro-card:hover {
  transform: translateY(-6px);
  border-color: var(--ro-gold-soft);
  box-shadow: var(--ro-shadow-md);
}

/* ---------- Grids ---------- */
.ro-grid {
  display: grid;
  gap: var(--ro-sp-lg);
}

.ro-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.ro-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.ro-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ---------- Scroll reveal ---------- */
.ro-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ro-ease), transform 0.8s var(--ro-ease);
}

.ro-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ro-reveal-d1 { transition-delay: 0.1s; }
.ro-reveal-d2 { transition-delay: 0.2s; }
.ro-reveal-d3 { transition-delay: 0.3s; }
.ro-reveal-d4 { transition-delay: 0.4s; }

/* ---------- Back to top ---------- */
.ro-top-btn {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 60;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--ro-r-full);
  background: var(--ro-accent);
  color: #fdfcf9;
  box-shadow: var(--ro-shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--ro-duration) var(--ro-ease),
              transform var(--ro-duration) var(--ro-ease),
              visibility var(--ro-duration);
}

.ro-top-btn.is-shown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ro-top-btn:hover {
  background: var(--ro-accent-deep);
}
