/* ==========================================================
   RIDGE Medical Supply — public site theme (loads after style.css)
   The admin panel still uses style.css only.
   ========================================================== */
:root {
  --blue: #0068A8;          /* brand blue (from logo, darkened for contrast) */
  --blue-dark: #13202E;     /* ink — used for titles */
  --blue-light: #007FC4;    /* logo blue */
  --blue-bg: #E6EFF6;
  --gray: #F4F6F8;
  --text: #13202E;
  --text-muted: #55616C;
  --radius: 12px;
  --shadow: none;
  --rs-ink: #13202E;
  --rs-ink-2: #0C1620;
  --rs-line: #DDE3EA;
  --rs-field: #C3CCD6;
  --rs-sky: #7CC4F0;
  --rs-wa: #1C7A43;
}

body.rs {
  font-family: 'IBM Plex Sans', 'Segoe UI', Tahoma, sans-serif;
  background: var(--gray);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
}
[dir="rtl"] body.rs,
[dir="rtl"] body.rs h1, [dir="rtl"] body.rs h2, [dir="rtl"] body.rs h3, [dir="rtl"] body.rs h4 {
  font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
}
body.rs h1, body.rs h2, body.rs h3, body.rs h4 {
  font-family: Sora, 'Segoe UI', sans-serif;
  color: var(--rs-ink);
  font-weight: 600;
  letter-spacing: normal;
}
[dir="rtl"] body.rs h1, [dir="rtl"] body.rs h2, [dir="rtl"] body.rs h3 { font-weight: 700; line-height: 1.35; }
body.rs a:focus-visible, body.rs button:focus-visible, body.rs input:focus-visible,
body.rs select:focus-visible, body.rs textarea:focus-visible { outline: 3px solid var(--rs-sky); outline-offset: 2px; }

.rs-wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ── Buttons ── */
.rs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: 14px 26px; border-radius: 8px; border: 1.5px solid transparent;
  cursor: pointer; font-family: inherit; text-decoration: none; transition: background .2s, border-color .2s;
}
.rs-btn-primary { background: var(--blue); color: #fff; }
.rs-btn-primary:hover { background: #004C7D; color: #fff; }
.rs-btn-outline { border-color: var(--rs-ink); color: var(--rs-ink); background: transparent; }
.rs-btn-outline:hover { background: var(--rs-ink); color: #fff; }
.rs-btn-dark { background: var(--rs-ink); color: #fff; }
.rs-btn-dark:hover { background: #000; color: #fff; }
.rs-btn-light { border-color: var(--rs-field); color: var(--rs-ink); background: #fff; }
.rs-btn-light:hover { border-color: var(--rs-ink); }
.rs-btn-wa { background: var(--rs-wa); color: #fff; }
.rs-btn-wa:hover { background: #145C32; color: #fff; }
.rs-btn-sm { font-size: .92rem; padding: 10px 16px; }
.rs-btn-block { width: 100%; }
.rs-link { color: var(--blue); font-weight: 600; }
.rs-link:hover { text-decoration: underline; }
.rs-link-light { color: var(--rs-sky); }

/* old buttons on inner pages → new look */
body.rs .btn { border-radius: 8px; padding: 13px 26px; font-weight: 600; }
body.rs .btn-blue { background: var(--blue); }
body.rs .btn-blue:hover { background: #004C7D; transform: none; }

/* ── Header ── */
.rs-header { position: sticky; top: 0; z-index: 100; }
.rs-top { background: var(--rs-ink); color: #DDE3E8; font-size: .85rem; }
.rs-top-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.rs-top a { color: #fff; font-weight: 600; }
.rs-nav { background: #fff; border-bottom: 1px solid var(--rs-line); }
.rs-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 80px; }
.rs-logo img { height: 54px; width: auto; display: block; }
.rs-links { display: flex; align-items: center; gap: 4px; }
.rs-links a { padding: 10px 14px; border-radius: 8px; font-weight: 500; color: var(--rs-ink); font-size: .98rem; }
.rs-links a:hover { background: var(--gray); }
.rs-links a.active { color: var(--blue); font-weight: 600; }
.rs-links .rs-lang { color: var(--blue); font-weight: 600; }
.rs-links .rs-nav-cta { margin-inline-start: 10px; padding: 12px 20px; color: #fff; }
.rs-links .rs-nav-cta:hover { background: #004C7D; }
.rs-burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.rs-burger span { display: block; height: 2px; background: var(--rs-ink); margin: 5px 0; border-radius: 2px; }

/* ── Shared type ── */
.rs-eyebrow { font-size: .85rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
[dir="rtl"] .rs-eyebrow { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.rs-lead { font-size: 1.1rem; color: #3C4852; }
.rs-sec { padding: 96px 0; }
.rs-sec-white { background: #fff; }
.rs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.rs-head h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.18; max-width: 760px; }
.rs-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rs-empty { color: var(--text-muted); padding: 40px 0; }
.rs-card { background: #fff; border: 1px solid var(--rs-line); border-radius: 16px; }
.rs-tag { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--text-muted); letter-spacing: .5px; }

/* ── Hero ── */
.rs-hero { background: #fff; padding: 80px 0 88px; }
.rs-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.rs-hero-text { display: flex; flex-direction: column; gap: 24px; }
.rs-hero h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.1; letter-spacing: -.5px; }
[dir="rtl"] .rs-hero h1 { letter-spacing: 0; line-height: 1.3; }
.rs-hero .rs-lead { font-size: 1.2rem; }
.rs-hero-media { border-radius: 18px; overflow: hidden; background: var(--blue-bg); aspect-ratio: 5/4; }
.rs-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.rs-hero-brand { height: 100%; display: flex; align-items: center; justify-content: center; padding: 48px; background: #fff; border: 1px solid var(--rs-line); border-radius: 18px; }
.rs-hero-brand img { max-width: 80%; height: auto; }

/* ── Trust strip ── */
.rs-trust { background: var(--rs-ink); color: #fff; padding: 34px 0; }
.rs-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.rs-trust-item { display: flex; align-items: center; gap: 14px; font-size: .98rem; line-height: 1.4; }
.rs-trust-item svg { color: var(--rs-sky); flex: none; }

/* ── Products (home) ── */
.rs-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px; }
.rs-product { background: #fff; border: 1px solid var(--rs-line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.rs-product-img { display: block; aspect-ratio: 4/3; background: var(--blue-bg); overflow: hidden; }
.rs-product-img img { width: 100%; height: 100%; object-fit: cover; }
.rs-product-body { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.rs-product-body h3 { font-size: 1.35rem; }
.rs-product-body h3 a { color: inherit; }
.rs-product-body h3 a:hover { color: var(--blue); }
.rs-product-body p { color: #3C4852; font-size: .98rem; flex: 1; }

/* ── Sectors ── */
.rs-sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rs-sector { border: 1px solid var(--rs-line); border-radius: 14px; padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.rs-sector svg { color: var(--blue); }
.rs-sector h3 { font-size: 1.2rem; }
.rs-sector p { color: #3C4852; font-size: .98rem; }

/* ── About band ── */
.rs-about { background: var(--rs-ink); color: #fff; }
.rs-about h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.18; margin-bottom: 18px; }
.rs-about .rs-eyebrow { color: var(--rs-sky); }
.rs-about .rs-lead { color: #DDE3E8; margin-bottom: 20px; }
.rs-about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
.rs-checks { list-style: none; display: flex; flex-direction: column; gap: 18px; font-size: 1.05rem; }
.rs-checks li { display: flex; gap: 14px; align-items: flex-start; }
.rs-checks svg { color: var(--rs-sky); flex: none; margin-top: 3px; }

/* ── Contact / quote ── */
.rs-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.rs-contact-text { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.rs-contact-text h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.18; }
.rs-quote { padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.rs-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rs-field { display: flex; flex-direction: column; gap: 7px; }
body.rs .rs-field label { font-size: .88rem; font-weight: 600; color: var(--rs-ink); margin: 0; }
body.rs .rs-field input, body.rs .rs-field select, body.rs .rs-field textarea {
  height: 48px; border: 1px solid var(--rs-field); border-radius: 8px; padding: 0 14px; font-size: 1rem; background: #fff; color: var(--rs-ink);
}
body.rs .rs-field textarea { height: auto; min-height: 110px; padding: 12px 14px; }
[dir="rtl"] body.rs .rs-field input[type=tel] { text-align: right; }
.rs-note { font-size: .88rem; color: var(--text-muted); text-align: center; }

/* ── Footer ── */
.rs-footer { background: var(--rs-ink-2); color: #B7C2CB; padding: 60px 0 0; font-size: .95rem; }
.rs-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; }
.rs-foot-logo { display: inline-block; background: #fff; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; }
.rs-foot-logo img { height: 44px; width: auto; }
.rs-foot-col { display: flex; flex-direction: column; gap: 10px; }
.rs-foot-col h4 { color: #fff; font-size: 1rem; margin-bottom: 4px; }
.rs-foot-col a { color: #B7C2CB; }
.rs-foot-col a:hover { color: #fff; }
.rs-foot-bottom { border-top: 1px solid #22323F; margin-top: 44px; padding-top: 22px; padding-bottom: 22px; font-size: .85rem; }

/* ── Inner pages (restyle old classes) ── */
body.rs .page-hero { background: #fff; color: var(--rs-ink); padding: 56px 0 48px; border-bottom: 1px solid var(--rs-line); }
body.rs .page-hero .container { max-width: 1240px; padding: 0 32px; }
body.rs .page-hero h1 { color: var(--rs-ink); font-size: clamp(1.8rem, 4vw, 2.6rem); }
body.rs .page-hero p { color: #3C4852; opacity: 1; }
body.rs .section { padding: 72px 32px; }
body.rs .section-alt { background: #fff; }
body.rs .container { max-width: 1240px; }
body.rs .section-label { background: none; padding: 0; color: var(--blue); letter-spacing: 1.5px; }
[dir="rtl"] body.rs .section-label { letter-spacing: 0; }
body.rs .section-title { color: var(--rs-ink); }
body.rs .divider { background: var(--blue); height: 3px; margin: 12px 0 32px; }
body.rs .product-card, body.rs .post-card, body.rs .vm-card {
  background: #fff; border: 1px solid var(--rs-line); border-radius: 16px; box-shadow: none; border-top-width: 1px;
}
body.rs .product-card:hover, body.rs .post-card:hover { transform: none; box-shadow: none; border-color: var(--blue); }
body.rs .product-body h3, body.rs .post-body h3, body.rs .vm-card h3, body.rs .product-section-title,
body.rs .contact-info h2, body.rs .contact-item-text strong, body.rs .post-full h1, body.rs .pd-title { color: var(--rs-ink); }
body.rs .product-body p, body.rs .post-body p { color: #3C4852; }
body.rs .product-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
body.rs .section-tabs { border-bottom-color: var(--rs-line); }
body.rs .section-tab.active, body.rs .section-tab:hover { color: var(--blue); border-color: var(--rs-line); }
body.rs .product-section-title { border-bottom-color: var(--rs-line); }
body.rs .post-tag, body.rs .pd-badge { background: var(--blue-bg); color: var(--blue); }
body.rs .mission-visual { background: var(--rs-ink); border-radius: 16px; }
body.rs .mission-visual h3 { color: #fff; }
body.rs .contact-item-icon { background: var(--blue-bg); }
body.rs .contact-item-text a { color: var(--blue); }
body.rs .contact-map { box-shadow: none; border: 1px solid var(--rs-line); border-radius: 16px; }
body.rs .pd-cta { margin-top: 32px; }
body.rs .post-full { background: #fff; border: 1px solid var(--rs-line); border-radius: 16px; margin: 48px auto; padding: 40px; }
body.rs .swiper-button-prev, body.rs .swiper-button-next { color: var(--blue) !important; }
body.rs .empty-state { color: var(--text-muted); }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .rs-links a { padding: 10px 10px; }
}
@media (max-width: 1000px) {
  .rs-burger { display: block; }
  .rs-links { display: none; position: absolute; top: 100%; inset-inline: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--rs-line); box-shadow: 0 10px 20px rgba(12,22,32,.08); }
  .rs-links.open { display: flex; }
  .rs-links a { padding: 14px 8px; border-bottom: 1px solid var(--gray); border-radius: 0; }
  .rs-links .rs-nav-cta { margin: 12px 0 0; border-radius: 8px; border: 0; }
  .rs-nav { position: relative; }
  .rs-hero-grid, .rs-about-grid, .rs-contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .rs-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .rs-sectors { grid-template-columns: 1fr; }
  .rs-foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body.rs { font-size: 16px; }
  .rs-wrap { padding: 0 20px; }
  .rs-top-msg { display: none; }
  .rs-top-inner { justify-content: center; }
  .rs-nav-inner { height: 68px; }
  .rs-logo img { height: 42px; }
  .rs-hero { padding: 36px 0 48px; }
  .rs-hero .rs-lead { font-size: 1.05rem; }
  .rs-hero .rs-actions .rs-btn { flex: 1 1 100%; }
  .rs-sec { padding: 56px 0; }
  .rs-head { margin-bottom: 28px; }
  .rs-trust-grid { gap: 18px; }
  .rs-trust-item { font-size: .9rem; }
  .rs-products { grid-template-columns: 1fr; }
  .rs-product-body { padding: 20px; }
  .rs-form-grid { grid-template-columns: 1fr; }
  .rs-quote { padding: 22px; }
  .rs-foot-grid { grid-template-columns: 1fr; }
  .rs-contact-text .rs-btn { width: 100%; }
  body.rs .section { padding: 48px 20px; }
  body.rs .page-hero .container { padding: 0 20px; }
  body.rs .post-full { padding: 24px; margin: 24px 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.rs-footer h4 { text-transform: none; letter-spacing: normal; }
#quote, #products { scroll-margin-top: 140px; }
