/*
Theme Name: RotiMitra Premium Preview
Theme URI: https://rotimitra.in/
Author: RotiMitra
Description: Inactive administrator-preview theme for the RotiMitra premium redesign.
Version: 1.0.7
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: rotimitra-premium-preview
*/

:root {
  --rm-bg: #fffaf4;
  --rm-surface: rgba(255, 255, 255, .82);
  --rm-surface-solid: #ffffff;
  --rm-text: #1f1729;
  --rm-muted: #6d6474;
  --rm-line: rgba(75, 45, 93, .13);
  --rm-primary: #7c2b8e;
  --rm-primary-2: #d24f72;
  --rm-gold: #f2a93b;
  --rm-shadow: 0 24px 70px rgba(68, 30, 76, .13);
  --rm-radius: 26px;
  --rm-content: 1180px;
}

[data-theme="dark"] {
  --rm-bg: #130f19;
  --rm-surface: rgba(35, 27, 44, .82);
  --rm-surface-solid: #211a29;
  --rm-text: #fff8f1;
  --rm-muted: #c8bbc9;
  --rm-line: rgba(255, 255, 255, .1);
  --rm-shadow: 0 24px 70px rgba(0, 0, 0, .32);
}
html[data-theme="dark"] body { background: #130f19 !important; color: #fff8f1 !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--rm-bg);
  color: var(--rm-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  transition: background .35s ease, color .35s ease;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 8%, rgba(242,169,59,.13), transparent 30%),
    radial-gradient(circle at 92% 20%, rgba(124,43,142,.13), transparent 32%);
}
a { color: inherit; }
img, video { max-width: 100%; height: auto; }
.rm-shell { width: min(calc(100% - 40px), var(--rm-content)); margin-inline: auto; }
.rm-skip { position: fixed; top: -60px; left: 16px; z-index: 9999; background: #fff; color: #111; padding: 12px 18px; border-radius: 12px; }
.rm-skip:focus { top: 16px; }

.rm-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--rm-line);
  background: color-mix(in srgb, var(--rm-bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
}
.rm-nav { min-height: 78px; display: flex; align-items: center; gap: 28px; }
.rm-brand { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.rm-brand img { width: 142px; max-height: 50px; object-fit: contain; }
.rm-menu { display: flex; align-items: center; justify-content: center; gap: 8px; margin-left: auto; }
.rm-menu ul { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; }
.rm-menu a { display: block; padding: 11px 13px; color: var(--rm-muted); text-decoration: none; font-size: .92rem; font-weight: 700; border-radius: 14px; transition: .3s ease; }
.rm-menu a:hover, .rm-menu .current-menu-item > a { color: var(--rm-primary); background: color-mix(in srgb, var(--rm-primary) 9%, transparent); }
.rm-nav-tools { display: flex; align-items: center; gap: 10px; }
.rm-icon-button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--rm-line); border-radius: 50%; background: var(--rm-surface); color: var(--rm-text); cursor: pointer; transition: .3s ease; }
.rm-icon-button:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(76,37,89,.15); }
.rm-menu-toggle { display: none; }

.rm-button, .wp-element-button, input[type="submit"] {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 22px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--rm-primary), var(--rm-primary-2));
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(124,43,142,.25);
  cursor: pointer;
  overflow: hidden;
  transition: transform .32s ease, box-shadow .32s ease, filter .32s ease;
}
.rm-button:hover, .wp-element-button:hover, input[type="submit"]:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(124,43,142,.34); filter: saturate(1.08); }
.rm-button--ghost { color: var(--rm-text); background: var(--rm-surface); border: 1px solid var(--rm-line); box-shadow: none; }
.rm-button--small { min-height: 44px; padding: 10px 16px; font-size: .9rem; }

.rm-hero { position: relative; padding: clamp(64px, 8vw, 112px) 0 70px; overflow: clip; }
.rm-hero::after { content: ""; position: absolute; width: 420px; height: 420px; right: -150px; top: 40px; border-radius: 50%; background: linear-gradient(145deg, rgba(124,43,142,.18), rgba(242,169,59,.14)); filter: blur(1px); z-index: -1; }
.rm-hero-grid { display: grid; grid-template-columns: 1.03fr .97fr; gap: clamp(42px, 7vw, 96px); align-items: center; }
.rm-kicker { display: inline-flex; align-items: center; gap: 9px; padding: 8px 13px; border: 1px solid var(--rm-line); border-radius: 999px; background: var(--rm-surface); color: var(--rm-primary); font-size: .82rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.rm-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rm-gold); box-shadow: 0 0 0 5px rgba(242,169,59,.15); }
.rm-hero h1 { margin: 22px 0 18px; font-size: clamp(2.6rem, 5.4vw, 5.2rem); line-height: .98; letter-spacing: -.055em; max-width: 760px; }
.rm-gradient-text { background: linear-gradient(100deg, var(--rm-primary), var(--rm-primary-2) 56%, #db8b1f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rm-hero-copy > p { max-width: 650px; margin: 0; color: var(--rm-muted); font-size: clamp(1rem, 1.5vw, 1.2rem); }
.rm-hero-copy > .rm-food-label { margin-top: 22px; color: var(--rm-text); font-size: .88rem; font-weight: 850; }
.rm-food-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 10px; }
.rm-food-tags span { padding: 7px 11px; border: 1px solid var(--rm-line); border-radius: 999px; background: var(--rm-surface); color: var(--rm-text); font-size: .8rem; font-weight: 800; }
.rm-hero-copy > .rm-tagline { margin-top: 18px; color: var(--rm-primary); font-weight: 850; }
.rm-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 28px; }
.rm-trust-row { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 30px; color: var(--rm-muted); font-size: .9rem; font-weight: 700; }
.rm-trust-row span::before { content: "✓"; color: var(--rm-primary); margin-right: 7px; font-weight: 900; }
.rm-product-stage { position: relative; min-height: 520px; display: grid; place-items: center; }
.rm-product-orbit { position: absolute; inset: 6% 2%; border: 1px dashed rgba(124,43,142,.24); border-radius: 50%; animation: rm-spin 12s linear 1 both; }
.rm-product-card { position: relative; z-index: 1; padding: 18px; border: 1px solid rgba(255,255,255,.45); border-radius: 38px; background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(255,255,255,.36)); box-shadow: var(--rm-shadow); backdrop-filter: blur(16px); transform: rotate(2deg); }
[data-theme="dark"] .rm-product-card { background: linear-gradient(145deg, rgba(53,42,64,.9), rgba(26,20,33,.6)); }
.rm-product-card img, .rm-product-card video { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 28px; }
.rm-product-card video { background: #17131a; }
.rm-hotspot { position: absolute; width: 20px; height: 20px; border: 5px solid #fff; border-radius: 50%; background: var(--rm-primary); box-shadow: 0 0 0 8px rgba(124,43,142,.18); }
.rm-hotspot--one { left: 28%; top: 42%; }
.rm-hotspot--two { right: 22%; top: 58%; }
.rm-float-card { position: absolute; z-index: 2; max-width: 210px; padding: 14px 16px; border: 1px solid var(--rm-line); border-radius: 18px; background: var(--rm-surface); box-shadow: var(--rm-shadow); backdrop-filter: blur(14px); font-size: .86rem; font-weight: 750; animation: rm-float 5s ease-in-out 2 both; }
.rm-float-card strong { display: block; color: var(--rm-primary); font-size: 1rem; }
.rm-float-card--top { right: -18px; top: 38px; }
.rm-float-card--bottom { left: -24px; bottom: 34px; animation-delay: -2.2s; }

.rm-section { padding: clamp(68px, 8vw, 112px) 0; }
.rm-section--tint { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--rm-primary) 5%, transparent), transparent); }
.rm-section-head { max-width: 760px; margin-bottom: 40px; }
.rm-section-head h2 { margin: 15px 0 12px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.08; letter-spacing: -.04em; }
.rm-section-head p { margin: 0; color: var(--rm-muted); font-size: 1.06rem; }
.rm-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.rm-card { padding: clamp(24px, 3vw, 34px); border: 1px solid var(--rm-line); border-radius: var(--rm-radius); background: var(--rm-surface); box-shadow: 0 12px 44px rgba(68,30,76,.06); backdrop-filter: blur(12px); transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.rm-card:hover { transform: translateY(-7px); border-color: rgba(124,43,142,.26); box-shadow: var(--rm-shadow); }
.rm-card-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 17px; background: linear-gradient(145deg, rgba(124,43,142,.16), rgba(242,169,59,.16)); color: var(--rm-primary); font-size: 1.35rem; font-weight: 900; }
.rm-card h3 { margin: 0 0 8px; font-size: 1.22rem; }
.rm-card p { margin: 0; color: var(--rm-muted); }
.rm-stat-strip { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 48px; border: 1px solid var(--rm-line); border-radius: 24px; background: var(--rm-surface); overflow: hidden; }
.rm-stat { padding: 25px; text-align: center; border-right: 1px solid var(--rm-line); }
.rm-stat:last-child { border: 0; }
.rm-stat strong { display: block; color: var(--rm-primary); font-size: clamp(1.55rem,3vw,2.25rem); line-height: 1; }
.rm-stat span { display: block; margin-top: 8px; color: var(--rm-muted); font-size: .84rem; font-weight: 700; }

.rm-showcase { display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(34px,6vw,80px); align-items: center; }
.rm-showcase-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 34px; box-shadow: var(--rm-shadow); }
.rm-check-list { display: grid; gap: 15px; padding: 0; margin: 26px 0 0; list-style: none; }
.rm-check-list li { position: relative; padding: 17px 18px 17px 52px; border: 1px solid var(--rm-line); border-radius: 18px; background: var(--rm-surface); }
.rm-check-list li::before { content: "✓"; position: absolute; left: 18px; top: 16px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(124,43,142,.12); color: var(--rm-primary); font-weight: 900; }

.rm-video-shell { position: relative; overflow: hidden; border-radius: 30px; background: #17131a; box-shadow: var(--rm-shadow); aspect-ratio: 16/9; }
.rm-video-shell video { width: 100%; height: 100%; object-fit: cover; display: block; }
.rm-video-load { position: absolute; inset: 0; width: 100%; border: 0; display: grid; place-items: center; background: linear-gradient(180deg, transparent 30%, rgba(13,7,17,.62)); color: #fff; cursor: pointer; }
.rm-video-load span { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(135deg, var(--rm-primary), var(--rm-primary-2)); box-shadow: 0 18px 44px rgba(0,0,0,.3); font-size: 1.35rem; padding-left: 4px; transition: transform .3s ease; }
.rm-video-load:hover span { transform: scale(1.08); }
.rm-hover-demo { isolation: isolate; transition: transform .35s ease, box-shadow .35s ease; }
.rm-hover-demo::before { content: ""; position: absolute; inset: -2px; z-index: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(135deg, rgba(124,43,142,.55), rgba(210,79,114,.45), rgba(242,169,59,.34)); opacity: 0; filter: blur(18px); transition: opacity .35s ease; }
.rm-hover-demo video, .rm-hover-demo .rm-video-load { position: relative; z-index: 1; }
.rm-hover-demo:hover, .rm-hover-demo.is-previewing { transform: translateY(-4px) scale(1.01); box-shadow: 0 32px 90px rgba(85,31,96,.24); }
.rm-hover-demo:hover::before, .rm-hover-demo.is-previewing::before { opacity: 1; }
.rm-hover-demo .rm-video-load { background: linear-gradient(180deg, rgba(17,10,24,.08), rgba(17,10,24,.64)); transition: opacity .25s ease, background .25s ease; }
.rm-hover-demo.is-previewing .rm-video-load { opacity: 0; pointer-events: none; }
.rm-hover-demo .rm-video-load::after { content: "Hover to preview"; position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); padding: 8px 13px; border-radius: 999px; color: #fff; background: rgba(31,23,41,.68); backdrop-filter: blur(12px); font-size: .82rem; font-weight: 850; letter-spacing: 0; white-space: nowrap; }
.rm-video-guide.rm-hover-demo { position: relative; border-radius: 30px; padding: clamp(18px,3vw,28px); background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,250,244,.72)); box-shadow: var(--rm-shadow); }
.rm-video-card.rm-hover-demo { position: relative; }

.rm-cta-panel { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: clamp(34px,5vw,60px); border-radius: 34px; color: #fff; background: linear-gradient(120deg, #57226d, #9f367c 58%, #d77a34); box-shadow: 0 30px 80px rgba(92,35,96,.28); }
.rm-cta-panel h2 { margin: 0 0 8px; font-size: clamp(2rem,4vw,3.2rem); line-height: 1.05; }
.rm-cta-panel p { max-width: 700px; margin: 0; color: rgba(255,255,255,.82); }
.rm-cta-panel p + p { margin-top: 8px; }
.rm-cta-panel .rm-button { background: #fff; color: #5f276d; box-shadow: 0 16px 35px rgba(40,8,48,.24); }
.rm-cta-panel .rm-button--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.rm-kicker--inverse { margin-bottom: 16px; color: #fff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.12); }
.rm-actions--stacked { display: grid; width: min(100%, 360px); margin-top: 0; }

.rm-page-hero { padding: 80px 0 44px; text-align: center; }
.rm-page-hero h1 { margin: 15px auto 12px; max-width: 900px; font-size: clamp(2.5rem,5vw,4.8rem); line-height: 1; letter-spacing: -.05em; }
.rm-page-content { padding: 20px 0 100px; }
.rm-content-card { padding: clamp(26px,5vw,62px); border: 1px solid var(--rm-line); border-radius: 32px; background: var(--rm-surface); box-shadow: var(--rm-shadow); }
.rm-content-card h2, .rm-content-card h3 { line-height: 1.15; letter-spacing: -.025em; }
.rm-content-card h2 { margin-top: 2.2em; font-size: clamp(1.7rem,3.2vw,2.7rem); }
.rm-content-card > h2:first-child { margin-top: 0; }
.rm-content-card p, .rm-content-card li { color: var(--rm-muted); }
.rm-content-card figure { margin: 30px 0; }
.rm-content-card img { border-radius: 22px; }
.rm-content-card table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.rm-content-card th, .rm-content-card td { padding: 14px; border: 1px solid var(--rm-line); }
.rm-content-card details { margin: 12px 0; padding: 17px 20px; border: 1px solid var(--rm-line); border-radius: 16px; background: color-mix(in srgb,var(--rm-surface-solid) 72%, transparent); }
.rm-content-card summary { cursor: pointer; font-weight: 800; }
.rm-content-card a[href*="share%20feedback"],
.rm-content-card a[href*="share%20Feedback"],
.rm-content-card a[href*="subject=RotiMitra%20Feedback"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin: 8px 10px 0 0;
  padding: 13px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--rm-primary), var(--rm-primary-2));
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(124,43,142,.22);
  transition: transform .32s ease, box-shadow .32s ease, filter .32s ease;
}
.rm-content-card a[href*="share%20feedback"]:hover,
.rm-content-card a[href*="share%20Feedback"]:hover,
.rm-content-card a[href*="subject=RotiMitra%20Feedback"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(124,43,142,.32);
  filter: saturate(1.08);
}

.rm-footer { padding: 68px 0 28px; border-top: 1px solid var(--rm-line); background: color-mix(in srgb, var(--rm-primary) 4%, var(--rm-bg)); }
.rm-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(2,1fr); gap: 48px; }
.rm-footer-brand img { width: 155px; }
.rm-footer-brand p { max-width: 470px; }
.rm-footer-note { font-weight: 700; }
.rm-footer p, .rm-footer a { color: var(--rm-muted); }
.rm-footer h3 { margin: 0 0 14px; font-size: 1rem; }
.rm-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.rm-footer a { text-decoration: none; }
.rm-footer a:hover { color: var(--rm-primary); }
.rm-footer-copy { display: inline; }
.rm-footer-copy .rm-apzom-credit { display: inline; color: var(--rm-primary); font-weight: 850; text-decoration: none; }
.rm-footer-copy .rm-apzom-credit:hover { text-decoration: underline; }
.rm-footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--rm-line); color: var(--rm-muted); font-size: .84rem; }
.rm-contact-list li { color: var(--rm-muted); overflow-wrap: anywhere; }
.rm-legal-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.rm-legal-links a { color: var(--rm-muted); text-decoration: none; }
.rm-floating-cta { position: fixed; right: 20px; bottom: 20px; z-index: 900; }
.rm-floating-cta .rm-button { border-radius: 999px; }
.rm-back-top { position: fixed; right: 24px; bottom: 88px; z-index: 880; opacity: 0; pointer-events: none; transform: translateY(12px); }
.rm-back-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.rm-reveal { opacity: 0; transform: translateY(28px); transition: opacity .72s ease, transform .72s ease; }
.rm-reveal.is-visible { opacity: 1; transform: none; }

@keyframes rm-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes rm-spin { to { transform: rotate(360deg); } }

@media (max-width: 1024px) {
  .rm-nav { min-height: 70px; }
  .rm-menu-toggle { display: grid; }
  .rm-menu { position: fixed; left: 20px; right: 20px; top: 80px; display: block; padding: 14px; border: 1px solid var(--rm-line); border-radius: 22px; background: var(--rm-surface-solid); box-shadow: var(--rm-shadow); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .3s ease; }
  .rm-menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .rm-menu ul { display: grid; }
  .rm-menu a { padding: 12px 14px; }
  .rm-nav-tools > .rm-button { display: none; }
  .rm-hero-grid, .rm-showcase { grid-template-columns: 1fr; }
  .rm-product-stage { min-height: 460px; max-width: 680px; width: 100%; margin-inline: auto; }
  .rm-showcase-media { max-width: 620px; margin-inline: auto; }
  .rm-grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 768px) {
  .rm-shell { width: min(calc(100% - 28px), var(--rm-content)); }
  .rm-brand img { width: 122px; }
  .rm-hero { padding-top: 54px; }
  .rm-hero-grid { gap: 32px; }
  .rm-product-stage { min-height: 390px; }
  .rm-float-card { max-width: 170px; font-size: .75rem; }
  .rm-float-card--top { right: -5px; }
  .rm-float-card--bottom { left: -4px; }
  .rm-grid-3 { grid-template-columns: 1fr; }
  .rm-stat-strip { grid-template-columns: repeat(2,1fr); }
  .rm-stat:nth-child(2) { border-right: 0; }
  .rm-stat:nth-child(-n+2) { border-bottom: 1px solid var(--rm-line); }
  .rm-cta-panel { grid-template-columns: 1fr; }
  .rm-actions--stacked { margin-top: 8px; }
  .rm-footer-grid { grid-template-columns: 1fr 1fr; }
  .rm-footer-brand { grid-column: 1 / -1; }
  .rm-footer-bottom { display: grid; }
}

@media (max-width: 430px) {
  .rm-shell { width: min(calc(100% - 22px), var(--rm-content)); }
  .rm-nav { gap: 12px; }
  .rm-nav-tools { margin-left: auto; }
  .rm-hero h1 { font-size: clamp(2.45rem, 13vw, 3.5rem); }
  .rm-actions { display: grid; }
  .rm-actions .rm-button { width: 100%; }
  .rm-food-tags { gap: 7px; }
  .rm-food-tags span { font-size: .76rem; }
  .rm-trust-row { display: grid; gap: 8px; }
  .rm-product-stage { min-height: 330px; }
  .rm-product-card { padding: 10px; border-radius: 26px; }
  .rm-product-card img { border-radius: 20px; }
  .rm-float-card { display: none; }
  .rm-stat { padding: 19px 10px; }
  .rm-content-card { border-radius: 24px; }
  .rm-content-card a[href*="share%20feedback"],
  .rm-content-card a[href*="share%20Feedback"],
  .rm-content-card a[href*="subject=RotiMitra%20Feedback"] { width: 100%; margin-right: 0; text-align: center; }
  .rm-footer-grid { grid-template-columns: 1fr; }
  .rm-footer-brand { grid-column: auto; }
  .rm-floating-cta { position: static; margin: 0 11px 18px; }
  .rm-floating-cta .rm-button { width: 100%; }
  .rm-back-top { right: 16px; bottom: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rm-reveal { opacity: 1; transform: none; }
}

/* Responsive media polish - RotiMitra */
:root { --rm-media-radius: clamp(18px, 2vw, 34px); }
html, body { overflow-x: hidden; }
.rm-wrap,
.rm-page-shell,
.rm-section,
.rm-gallery-page,
.rm-how-page,
.rm-about-page,
.rm-contact-page,
.rm-faq-page {
  max-width: min(100% - 32px, 1320px);
  margin-left: auto;
  margin-right: auto;
}
img, video, iframe { max-width: 100%; }
.rm-media-frame img,
.rm-hero-card img,
.rm-gallery-card img,
.rm-gallery-page img,
.rm-how-page img,
.rm-video-card img,
.rm-showcase-image {
  width: 100%;
  height: auto;
  display: block;
}
.rm-video-shell,
.rm-video-guide,
.rm-video-card,
.rm-gallery-page .rm-video-card {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--rm-media-radius);
  background: linear-gradient(145deg, #fff8ef, #fff);
  isolation: isolate;
}
.rm-video-shell video,
.rm-video-guide video,
.rm-video-card video,
.rm-gallery-page video,
.rm-how-page video,
.rm-deferred-video,
.rm-hover-video {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9;
  object-fit: contain !important;
  object-position: center center;
  background: #160f1d;
  border-radius: inherit;
}
.rm-hero-visual,
.rm-hero-card,
.rm-showcase,
.rm-media-frame { min-width: 0; }
.rm-hero-video,
.rm-hero-card video {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}
.rm-video-guide {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(360px, 1fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: center;
}
.rm-video-guide .rm-video-shell,
.rm-video-guide video { align-self: center; }
.rm-gallery-grid,
.rm-gallery-list,
.rm-gallery-videos,
.rm-proof-grid,
.rm-steps-grid,
.rm-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.rm-gallery-card,
.rm-video-card,
.rm-proof-card,
.rm-step-card,
.rm-feature-card { min-width: 0; }
.rm-gallery-card img,
.rm-proof-card img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}
@media (min-width: 1180px) {
  .rm-hero {
    grid-template-columns: minmax(0, .95fr) minmax(480px, .9fr);
    align-items: center;
  }
  .rm-video-guide video,
  .rm-video-shell video { max-height: min(70vh, 620px); }
}
@media (max-width: 1024px) {
  .rm-wrap,
  .rm-page-shell,
  .rm-section,
  .rm-gallery-page,
  .rm-how-page,
  .rm-about-page,
  .rm-contact-page,
  .rm-faq-page { max-width: min(100% - 28px, 940px); }
  .rm-hero,
  .rm-split,
  .rm-video-guide,
  .rm-showcase,
  .rm-about-hero,
  .rm-contact-grid,
  .rm-faq-layout { grid-template-columns: 1fr !important; }
  .rm-hero-visual,
  .rm-video-guide .rm-video-shell,
  .rm-video-guide video {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 720px) {
  .rm-wrap,
  .rm-page-shell,
  .rm-section,
  .rm-gallery-page,
  .rm-how-page,
  .rm-about-page,
  .rm-contact-page,
  .rm-faq-page { max-width: calc(100% - 20px); }
  .rm-video-shell,
  .rm-video-guide,
  .rm-video-card,
  .rm-gallery-page .rm-video-card,
  .rm-media-frame,
  .rm-hero-card { border-radius: 18px; }
  .rm-video-shell video,
  .rm-video-guide video,
  .rm-video-card video,
  .rm-gallery-page video,
  .rm-how-page video,
  .rm-deferred-video,
  .rm-hover-video {
    aspect-ratio: 4 / 5;
    object-fit: contain !important;
    max-height: 72vh;
  }
  .rm-gallery-card img,
  .rm-proof-card img { aspect-ratio: 1 / 1; }
  .rm-hero-video,
  .rm-hero-card video {
    aspect-ratio: 4 / 5;
    max-height: 68vh;
  }
  .rm-actions,
  .rm-buttons,
  .rm-cta-row {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .rm-actions a,
  .rm-buttons a,
  .rm-cta-row a,
  .rm-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
@media (max-width: 420px) {
  .rm-video-shell video,
  .rm-video-guide video,
  .rm-video-card video,
  .rm-gallery-page video,
  .rm-how-page video {
    aspect-ratio: 3 / 4;
    max-height: 66vh;
  }
}

/* Demo video hover resume state */
.rm-hover-demo.is-previewing {
  transform: translateY(-4px) scale(1.01);
}
.rm-hover-demo.is-hover-paused video {
  filter: saturate(1.04) contrast(1.02);
}
.rm-hover-demo.is-hover-paused::after {
  content: "Hover to resume";
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 4;
  padding: 9px 13px;
  border-radius: 999px;
  color: #fff;
  background: rgba(26, 18, 34, .72);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 10px 28px rgba(26, 18, 34, .2);
  pointer-events: none;
}
.rm-hover-demo.is-previewing::after {
  opacity: 0;
}
@media (max-width: 720px) {
  .rm-hover-demo.is-hover-paused::after {
    content: "Tap to resume";
    left: 12px;
    bottom: 12px;
    font-size: 12px;
  }
}

/* Price-on-request presentation */
.rm-price.rm-price-on-request {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.08;
  color: var(--rm-primary);
  max-width: 14ch;
}
@media (max-width: 720px) {
  .rm-price.rm-price-on-request {
    max-width: 100%;
    font-size: 26px;
  }
}

/* Hide public prices on About page */
.page-id-18 .rm-price {
  font-size: 0 !important;
  line-height: 1 !important;
}
.page-id-18 .rm-price::after {
  content: "Contact Us on WhatsApp for Price";
  display: block;
  font-size: clamp(23px, 2.6vw, 36px);
  line-height: 1.12;
  color: var(--rm-primary);
  font-weight: 900;
  max-width: 13ch;
}
.page-id-18 .rm-note {
  font-size: 0 !important;
}
.page-id-18 .rm-note::after {
  content: "Current price and shipping details are shared on WhatsApp.";
  font-size: 17px;
  line-height: 1.7;
}
@media (max-width: 720px) {
  .page-id-18 .rm-price::after {
    max-width: 100%;
    font-size: 25px;
  }
}


/* RotiMitra full-site dark-mode repair — 2026-08-11 */
html[data-theme="dark"] .rm-page-content .rm-content-card,html[data-theme="dark"] .rm-page-content .rm-card,html[data-theme="dark"] .rm-page-content .rm-video-card,html[data-theme="dark"] .rm-page-content .rm-photo-card,html[data-theme="dark"] .rm-page-content details,html[data-theme="dark"] .rm-page-content .rm-spec,html[data-theme="dark"] .rm-page-content .rm-how-step,html[data-theme="dark"] .rm-page-content .rm-how-chip,html[data-theme="dark"] .rm-page-content .rm-how-note,html[data-theme="dark"] .rm-page-content .rm-how-flow-item,html[data-theme="dark"] .rm-page-content .rm-model-card,html[data-theme="dark"] .rm-page-content .rm-sheet-card{background:#1c2636!important;color:#f8fafc!important;border-color:rgba(255,255,255,.14)!important;box-shadow:0 16px 38px rgba(0,0,0,.26)!important}
html[data-theme="dark"] .rm-page-content h1,html[data-theme="dark"] .rm-page-content h2,html[data-theme="dark"] .rm-page-content h3,html[data-theme="dark"] .rm-page-content h4,html[data-theme="dark"] .rm-page-content strong,html[data-theme="dark"] .rm-page-content summary,html[data-theme="dark"] .rm-page-content .rm-number,html[data-theme="dark"] .rm-page-content .rm-model-power,html[data-theme="dark"] .rm-page-content .rm-how-step-num{color:#f8fafc!important}
html[data-theme="dark"] .rm-page-content p,html[data-theme="dark"] .rm-page-content li,html[data-theme="dark"] .rm-page-content small,html[data-theme="dark"] .rm-page-content figcaption,html[data-theme="dark"] .rm-page-content .rm-muted,html[data-theme="dark"] .rm-page-content .rm-note,html[data-theme="dark"] .rm-page-content .rm-caption{color:#cbd5e1!important}
html[data-theme="dark"] .rm-page-content .rm-soft,html[data-theme="dark"] .rm-page-content .rm-how-v2,html[data-theme="dark"] .rm-page-content .rm-faq-v2,html[data-theme="dark"] .rm-page-content .rm-contact-v2,html[data-theme="dark"] .rm-page-content .rm-gallery-v2{background:#0b1220!important;color:#f8fafc!important}
html[data-theme="dark"] .rm-page-content .rm-how-v2{--ink:#f8fafc!important;--muted:#cbd5e1!important;--leaf:#78d58a!important;--leaf-dark:#9be5a8!important;--mint:#16251c!important;--cream:#101820!important;--line:rgba(255,255,255,.14)!important}
html[data-theme="dark"] .rm-page-content .rm-kicker,html[data-theme="dark"] .rm-page-content .rm-model-badge,html[data-theme="dark"] .rm-page-content .rm-chip,html[data-theme="dark"] .rm-page-content .rm-category{color:#bfdbfe!important;background:rgba(59,130,246,.16)!important;border-color:rgba(147,197,253,.28)!important}
html[data-theme="dark"] .rm-page-content input,html[data-theme="dark"] .rm-page-content textarea,html[data-theme="dark"] .rm-page-content select{background:#111c2c!important;color:#f8fafc!important;border-color:rgba(255,255,255,.2)!important}
html[data-theme="dark"] .rm-footer,html[data-theme="dark"] .rm-footer p,html[data-theme="dark"] .rm-footer a,html[data-theme="dark"] .rm-footer li{color:#dbe5f1}
html[data-theme="dark"] .rm-footer a:hover,html[data-theme="dark"] .rm-footer a:focus-visible{color:#fff}
html[data-theme="dark"] .rm-dark,html[data-theme="dark"] .rm-dark p,html[data-theme="dark"] .rm-dark li{color:#f8fafc!important}
@media (prefers-reduced-motion:reduce){.rm-reveal,.rm-card,.rm-video-card,.rm-photo-card{transition:none!important;animation:none!important}}
html[data-theme="dark"] .rm-learn-details{background:#111c2c!important;border-color:rgba(255,255,255,.14)!important;color:#f8fafc!important}
html[data-theme="dark"] .rm-learn-details summary{color:#bfdbfe!important}
html[data-theme="dark"] .rm-learn-details p,html[data-theme="dark"] .rm-learn-details li{color:#cbd5e1!important}


/* Gallery-only video presentation repair — 2026-08-23 */
body.page-id-20 .rm-video-hub .rm-video-frame {
  position: relative !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
  background: #020713 !important;
}
body.page-id-20 .rm-video-hub .rm-video-shell {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
  border-radius: inherit !important;
  background: #020713 !important;
}
body.page-id-20 .rm-video-hub .rm-video-shell .rm-deferred-video {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: transparent !important;
  border-radius: inherit !important;
}
body.page-id-20 .rm-video-hub .rm-video-shell .rm-video-load {
  position: absolute !important;
  inset: 50% auto auto 50% !important;
  z-index: 4 !important;
  display: grid !important;
  width: 68px !important;
  height: 68px !important;
  min-width: 68px !important;
  padding: 0 !important;
  margin: 0 !important;
  place-items: center !important;
  transform: translate(-50%, -50%) !important;
}
body.page-id-20 .rm-video-hub .rm-video-shell .rm-video-load span {
  transform: none !important;
}
body.page-id-20 .rm-video-hub .rm-video-shell .rm-video-load:hover span,
body.page-id-20 .rm-video-hub .rm-video-shell .rm-video-load:focus-visible span {
  transform: scale(1.06) !important;
}
body.page-id-20 .rm-video-hub .rm-video-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
@media (max-width: 900px) {
  body.page-id-20 .rm-video-hub .rm-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 620px) {
  body.page-id-20 .rm-video-hub .rm-video-grid { grid-template-columns: minmax(0, 1fr) !important; }
  body.page-id-20 .rm-video-hub .rm-video-frame,
  body.page-id-20 .rm-video-hub .rm-video-shell { aspect-ratio: 16 / 9 !important; }
  body.page-id-20 .rm-video-hub .rm-video-shell .rm-video-load {
    width: 62px !important;
    height: 62px !important;
    min-width: 62px !important;
  }
}

/* Requested navigation refinement — 2026-08-23 */
#rm-theme-toggle {
  width: 52px;
  height: 52px;
  font-size: 1.18rem;
  border-width: 2px;
}
.rm-menu-list { align-items: center; }
@media (max-width: 720px) {
  #rm-theme-toggle { width: 48px; height: 48px; }
}
