/*
Theme Name: RealSense Web Infrastructure
Theme URI: https://realsenseweb.com/
Author: RealSense Web
Author URI: https://realsenseweb.com/
Description: Premium infrastructure, hosting, and WHMCS-aligned block theme for RealSense Web.
Version: 1.1.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.2
License: GPL-2.0-or-later
Text Domain: realsenseweb
*/

:root {
  --rsw-ink: #101826;
  --rsw-graphite: #323c46;
  --rsw-muted: #637082;
  --rsw-line: #dce3ec;
  --rsw-surface: #f4f6f9;
  --rsw-soft: #eaf6fb;
  --rsw-white: #ffffff;
  --rsw-blue: #0a78c3;
  --rsw-blue-deep: #0f4c81;
  --rsw-cyan: #00a6d6;
  --rsw-green: #20a070;
  --rsw-amber: #f2a93b;
  --rsw-shadow: 0 2px 2px rgba(50, 60, 70, 0.08), 0 18px 46px rgba(50, 60, 70, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--rsw-surface);
  color: var(--rsw-graphite);
}

a {
  color: var(--rsw-blue-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

h1,
h2,
h3,
h4 {
  color: var(--rsw-graphite);
  letter-spacing: 0;
}

.wp-site-blocks > * {
  margin-block-start: 0;
}

.rsw-offerbar {
  background: #cfeffa;
  border-bottom: 1px solid #b5e0ee;
  color: var(--rsw-graphite);
  font-weight: 700;
  padding: 0.28rem 1rem;
}

.rsw-offerbar p {
  margin: 0;
}

.rsw-offerbar a {
  color: var(--rsw-blue-deep);
  text-decoration: none;
}

.rsw-topbar {
  background: var(--rsw-white);
  border-bottom: 1px solid var(--rsw-line);
  color: var(--rsw-muted);
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

.rsw-topbar p {
  margin: 0;
}

.rsw-topbar a {
  color: var(--rsw-graphite);
  font-weight: 800;
  text-decoration: none;
}

.rsw-site-header {
  background: var(--rsw-white);
  border-bottom: 1px solid var(--rsw-line);
  box-shadow: 0 1px 0 rgba(16, 24, 38, 0.03);
  padding: 0.85rem 1rem;
  position: sticky;
  top: 0;
  z-index: 30;
}

.rsw-brand-logo {
  align-items: center;
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
}

.rsw-brand-logo img {
  display: block;
  height: auto;
  max-width: min(300px, 66vw);
  width: 300px;
}

.rsw-site-header .wp-block-navigation a {
  color: var(--rsw-graphite);
  font-weight: 800;
  text-decoration: none;
}

.rsw-site-header .wp-block-navigation a:hover,
.rsw-site-header .wp-block-navigation a:focus {
  color: var(--rsw-blue);
}

.rsw-hero {
  background:
    linear-gradient(90deg, rgba(50, 60, 70, 0.86), rgba(50, 60, 70, 0.52)),
    url("assets/hero-datacenter-v2.png");
  background-position: center;
  background-size: cover;
  color: var(--rsw-white);
  min-height: 660px;
  padding: 4.5rem 1rem;
}

.rsw-hero-inner {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(280px, 0.85fr) minmax(520px, 1.15fr);
  margin: 0 auto;
  max-width: 1200px;
}

.rsw-hero-copy h1 {
  color: var(--rsw-white);
  font-size: 4.25rem;
  line-height: 1.04;
  margin: 0 0 1rem;
  max-width: 820px;
}

.rsw-hero-copy h2 {
  color: var(--rsw-white);
  font-size: 1.9rem;
  line-height: 1.3;
  margin: 0 0 2rem;
  max-width: 900px;
}

.rsw-kicker,
.rsw-eyebrow {
  color: var(--rsw-cyan);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.rsw-hero-bullets {
  display: grid;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  max-width: 520px;
  padding: 0;
}

.rsw-hero-bullets li {
  color: var(--rsw-white);
  font-weight: 700;
  padding-left: 1.5rem;
  position: relative;
}

.rsw-hero-bullets li::before {
  background: var(--rsw-cyan);
  border-radius: 50%;
  content: "";
  height: 0.55rem;
  left: 0;
  position: absolute;
  top: 0.62rem;
  width: 0.55rem;
}

.rsw-product-stack {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rsw-product-card,
.rsw-card,
.rsw-plan {
  background: var(--rsw-white);
  border: 1px solid var(--rsw-line);
  border-radius: 16px;
  box-shadow: var(--rsw-shadow);
  color: var(--rsw-graphite);
  height: 100%;
  padding: 1.5rem;
}

.rsw-product-card {
  min-height: 330px;
  padding: 1.35rem;
}

.rsw-product-label {
  color: var(--rsw-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 0.6rem;
  text-transform: uppercase;
}

.rsw-product-card h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0 0 1rem;
  min-height: 4rem;
  text-align: center;
}

.rsw-price-line {
  align-items: baseline;
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  margin: 0 0 1.2rem;
}

.rsw-price-line span {
  color: var(--rsw-muted);
  font-size: 0.84rem;
}

.rsw-price-line strong {
  color: var(--rsw-graphite);
  font-size: 3rem;
  line-height: 1;
}

.rsw-pill-button,
.wp-block-button__link {
  align-items: center;
  background: var(--rsw-blue);
  border-radius: 999px;
  box-shadow: 0 2px 2px rgba(50, 60, 70, 0.15);
  color: var(--rsw-white);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 3rem;
  padding: 0.82rem 1.25rem;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.rsw-product-card .rsw-pill-button {
  display: flex;
  margin-bottom: 1.25rem;
  width: 100%;
}

.rsw-pill-button:hover,
.rsw-pill-button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus {
  background: var(--rsw-blue-deep);
  box-shadow: 0 14px 28px rgba(10, 120, 195, 0.24);
  color: var(--rsw-white);
  transform: translateY(-1px);
}

.rsw-promo-band {
  background: #d4f2fb;
  border-bottom: 1px solid #c1e5f2;
  border-top: 1px solid #c1e5f2;
  font-weight: 800;
  padding: 1rem;
  text-align: center;
}

.rsw-promo-band a {
  color: var(--rsw-blue-deep);
  text-decoration: none;
}

.rsw-section {
  margin: 0 auto;
  max-width: 1200px;
  padding: 4.5rem 1rem;
}

.rsw-light-section {
  background: var(--rsw-surface);
  max-width: none;
}

.rsw-section-surface {
  background: var(--rsw-surface);
  max-width: none;
}

.rsw-section-surface > * {
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
}

.rsw-light-section > * {
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
}

.rsw-section-heading {
  margin: 0 auto 2rem;
  max-width: 860px;
  text-align: center;
}

.rsw-section-heading h2,
.rsw-split h2 {
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.rsw-section-heading p,
.rsw-split p {
  color: var(--rsw-muted);
  font-size: 1.05rem;
}

.rsw-grid-2,
.rsw-grid-3,
.rsw-grid-4 {
  display: grid;
  gap: 1.25rem;
}

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

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

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

.rsw-card h3,
.rsw-plan h3 {
  margin-top: 0;
}

.rsw-card a,
.rsw-plan a {
  color: var(--rsw-blue-deep);
  font-weight: 800;
}

.rsw-map-section {
  max-width: none;
  padding-left: 1rem;
  padding-right: 1rem;
}

.rsw-map-section .rsw-split,
.rsw-support-section .rsw-split {
  margin: 0 auto;
  max-width: 1200px;
}

.rsw-split {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
}

.rsw-split-compact {
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
}

.rsw-signal-panel {
  background:
    linear-gradient(140deg, rgba(10, 120, 195, 0.12), rgba(32, 160, 112, 0.12)),
    var(--rsw-white);
  border: 1px solid var(--rsw-line);
  border-radius: 16px;
  box-shadow: var(--rsw-shadow);
  padding: 1.5rem;
}

.rsw-signal-grid {
  background-image:
    linear-gradient(rgba(10, 120, 195, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 120, 195, 0.16) 1px, transparent 1px);
  background-size: 38px 38px;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 340px;
  padding: 2rem;
  place-content: center;
}

.rsw-signal-grid span {
  background: var(--rsw-white);
  border: 1px solid var(--rsw-line);
  border-left: 4px solid var(--rsw-cyan);
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(50, 60, 70, 0.08);
  color: var(--rsw-graphite);
  font-weight: 800;
  padding: 0.9rem;
}

.rsw-feature-panel {
  background: var(--rsw-white);
  border: 1px solid var(--rsw-line);
  border-radius: 16px;
  box-shadow: var(--rsw-shadow);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.rsw-feature-panel article {
  background: var(--rsw-white);
  padding: 2rem;
}

.rsw-rating-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rsw-rating-grid div {
  background: var(--rsw-white);
  border: 1px solid var(--rsw-line);
  border-radius: 16px;
  box-shadow: var(--rsw-shadow);
  min-height: 150px;
  padding: 1.5rem;
}

.rsw-rating-grid strong {
  color: var(--rsw-blue);
  display: block;
  font-size: 2.6rem;
  line-height: 1;
}

.rsw-rating-grid span {
  color: var(--rsw-muted);
  display: block;
  font-weight: 800;
  margin-top: 0.7rem;
}

.rsw-inline-cta {
  color: var(--rsw-blue-deep);
  display: inline-flex;
  font-weight: 800;
  margin-top: 0.5rem;
}

.rsw-faq-list {
  display: grid;
  gap: 0.75rem;
  margin: 0 auto;
  max-width: 920px;
}

.rsw-faq-list details {
  background: var(--rsw-white);
  border: 1px solid var(--rsw-line);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(50, 60, 70, 0.06);
  padding: 1rem 1.2rem;
}

.rsw-faq-list summary {
  color: var(--rsw-graphite);
  cursor: pointer;
  font-weight: 800;
}

.rsw-page-hero {
  background:
    linear-gradient(90deg, rgba(50, 60, 70, 0.9), rgba(10, 120, 195, 0.68)),
    url("assets/hero-datacenter-v2.png");
  background-position: center;
  background-size: cover;
  color: var(--rsw-white);
}

.rsw-product-page-hero {
  padding: 5rem 1rem;
}

.rsw-page-hero h1,
.rsw-page-hero h2,
.rsw-page-hero p {
  color: var(--rsw-white);
}

.rsw-product-hero-layout {
  align-items: center;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.75fr);
}

.rsw-product-hero-layout h1 {
  font-size: 4rem;
  line-height: 1.05;
  margin: 0 0 1rem;
}

.rsw-product-summary {
  font-size: 1.25rem;
  max-width: 760px;
}

.rsw-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.rsw-ghost-button {
  align-items: center;
  background: var(--rsw-white);
  border-radius: 999px;
  color: var(--rsw-blue-deep);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 3rem;
  padding: 0.82rem 1.25rem;
  text-decoration: none;
}

.rsw-service-graphic,
.rsw-product-brief {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  box-shadow: var(--rsw-shadow);
  color: var(--rsw-graphite);
}

.rsw-service-graphic {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.rsw-graphic-screen {
  background:
    linear-gradient(90deg, rgba(10, 120, 195, 0.18) 1px, transparent 1px),
    linear-gradient(rgba(10, 120, 195, 0.18) 1px, transparent 1px),
    #f8fbfd;
  background-size: 28px 28px;
  border: 1px solid var(--rsw-line);
  border-radius: 12px;
  display: grid;
  gap: 0.65rem;
  min-height: 160px;
  padding: 1rem;
}

.rsw-graphic-screen span {
  background: var(--rsw-white);
  border-left: 4px solid var(--rsw-cyan);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(50, 60, 70, 0.08);
}

.rsw-graphic-rack {
  display: grid;
  gap: 0.5rem;
}

.rsw-graphic-rack i {
  background: var(--rsw-graphite);
  border-radius: 8px;
  display: block;
  height: 18px;
  position: relative;
}

.rsw-graphic-rack i::after {
  background: var(--rsw-green);
  border-radius: 999px;
  content: "";
  height: 7px;
  position: absolute;
  right: 12px;
  top: 5px;
  width: 7px;
}

.rsw-graphic-flow {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rsw-graphic-flow b {
  background: var(--rsw-soft);
  border-radius: 999px;
  color: var(--rsw-blue-deep);
  font-size: 0.82rem;
  padding: 0.55rem;
  text-align: center;
}

.rsw-product-brief {
  padding: 1.5rem;
}

.rsw-route-map,
.rsw-option-matrix {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rsw-route-map article,
.rsw-option-matrix article {
  background: var(--rsw-white);
  border: 1px solid var(--rsw-line);
  border-radius: 16px;
  box-shadow: var(--rsw-shadow);
  padding: 1.35rem;
}

.rsw-route-map span {
  align-items: center;
  background: var(--rsw-blue);
  border-radius: 50%;
  color: var(--rsw-white);
  display: inline-flex;
  font-weight: 800;
  height: 2.4rem;
  justify-content: center;
  margin-bottom: 0.8rem;
  width: 2.4rem;
}

.rsw-usecase-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.rsw-usecase-strip span {
  background: var(--rsw-white);
  border: 1px solid var(--rsw-line);
  border-left: 4px solid var(--rsw-cyan);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(50, 60, 70, 0.06);
  color: var(--rsw-graphite);
  font-weight: 800;
  padding: 0.75rem 1rem;
}

.rsw-plan {
  border-top: 4px solid var(--rsw-cyan);
}

.rsw-plan strong {
  color: var(--rsw-blue);
  display: block;
  font-size: 2rem;
  line-height: 1.1;
}

.rsw-checklist {
  list-style: none;
  padding-left: 0;
}

.rsw-checklist li {
  border-bottom: 1px solid var(--rsw-line);
  padding: 0.6rem 0;
}

.rsw-checklist li::before {
  color: var(--rsw-green);
  content: "✓";
  font-weight: 800;
  margin-right: 0.55rem;
}

.rsw-process-step {
  border-left: 3px solid var(--rsw-cyan);
  padding-left: 1rem;
}

.rsw-link-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rsw-link-list a {
  align-items: center;
  background: var(--rsw-white);
  border: 1px solid var(--rsw-line);
  border-radius: 10px;
  color: var(--rsw-ink);
  display: flex;
  font-weight: 800;
  justify-content: space-between;
  padding: 1rem;
  text-decoration: none;
}

.rsw-link-list a::after {
  color: var(--rsw-cyan);
  content: ">";
  font-weight: 800;
}

.rsw-link-list a:hover,
.rsw-link-list a:focus {
  border-color: var(--rsw-cyan);
  box-shadow: 0 10px 26px rgba(15, 76, 129, 0.12);
}

.rsw-site-footer {
  background: var(--rsw-graphite);
  color: var(--rsw-white);
  padding: 3rem 1rem 2rem;
}

.rsw-footer-newsletter {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-bottom: 2rem;
}

.rsw-footer-newsletter h2,
.rsw-site-footer h3,
.rsw-site-footer p {
  color: var(--rsw-white);
}

.rsw-footer-newsletter h2 {
  margin: 0 0 0.4rem;
}

.rsw-footer-newsletter p,
.rsw-footer-brand p,
.rsw-footer-bottom p {
  color: rgba(255, 255, 255, 0.78);
}

.rsw-footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(280px, 1.35fr) repeat(3, minmax(150px, 0.65fr));
  padding: 2.5rem 0;
}

.rsw-footer-brand img {
  display: block;
  height: auto;
  margin-bottom: 1rem;
  max-width: 320px;
  width: 100%;
}

.rsw-footer-links {
  list-style: none;
  padding-left: 0;
}

.rsw-footer-links li {
  margin-bottom: 0.55rem;
}

.rsw-site-footer a,
.rsw-footer-links a {
  color: var(--rsw-white);
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.rsw-site-footer a:hover,
.rsw-site-footer a:focus,
.rsw-footer-links a:hover,
.rsw-footer-links a:focus {
  color: #9fe7ff;
}

.rsw-footer-bottom {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding-top: 1.25rem;
}

.rsw-form-wrap {
  max-width: 760px;
}

.rsw-contact-form {
  display: grid;
  gap: 1rem;
}

.rsw-contact-form label {
  display: block;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.rsw-contact-form input,
.rsw-contact-form select,
.rsw-contact-form textarea {
  border: 1px solid var(--rsw-line);
  border-radius: 6px;
  box-sizing: border-box;
  color: var(--rsw-ink);
  font: inherit;
  padding: 0.85rem 1rem;
  width: 100%;
}

.rsw-contact-form input:focus,
.rsw-contact-form select:focus,
.rsw-contact-form textarea:focus {
  border-color: var(--rsw-cyan);
  box-shadow: 0 0 0 3px rgba(0, 166, 214, 0.18);
  outline: none;
}

.rsw-contact-form button {
  background: var(--rsw-blue);
  border: 0;
  border-radius: 999px;
  color: var(--rsw-white);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  justify-self: start;
  padding: 0.9rem 1.3rem;
}

.rsw-form-notice {
  border-radius: 8px;
  font-weight: 700;
  margin-bottom: 1rem;
  padding: 1rem;
}

.rsw-form-success {
  background: #e8f8f1;
  color: #0f6b47;
}

.rsw-form-error {
  background: #fff1f1;
  color: #9f1d1d;
}

.rsw-hp-field {
  display: none;
}

@media (max-width: 980px) {
  .rsw-hero-copy h1 {
    font-size: 3.25rem;
  }

  .rsw-product-hero-layout h1 {
    font-size: 3rem;
  }

  .rsw-hero-copy h2 {
    font-size: 1.55rem;
  }

  .rsw-section-heading h2,
  .rsw-split h2 {
    font-size: 2.45rem;
  }

  .rsw-price-line strong {
    font-size: 2.5rem;
  }

  .rsw-hero-inner,
  .rsw-product-hero-layout,
  .rsw-split,
  .rsw-footer-grid {
    grid-template-columns: 1fr;
  }

  .rsw-product-stack,
  .rsw-grid-3,
  .rsw-grid-4,
  .rsw-route-map,
  .rsw-option-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .rsw-hero-copy h1 {
    font-size: 2.45rem;
  }

  .rsw-product-hero-layout h1 {
    font-size: 2.35rem;
  }

  .rsw-hero-copy h2 {
    font-size: 1.25rem;
  }

  .rsw-section-heading h2,
  .rsw-split h2 {
    font-size: 2rem;
  }

  .rsw-price-line strong {
    font-size: 2.25rem;
  }

  .rsw-site-header {
    position: static;
  }

  .rsw-hero {
    min-height: auto;
    padding: 3.25rem 1rem;
  }

  .rsw-product-stack,
  .rsw-grid-2,
  .rsw-grid-3,
  .rsw-grid-4,
  .rsw-feature-panel,
  .rsw-route-map,
  .rsw-option-matrix,
  .rsw-rating-grid,
  .rsw-footer-newsletter {
    grid-template-columns: 1fr;
  }

  .rsw-section {
    padding-bottom: 3rem;
    padding-top: 3rem;
  }

  .rsw-product-card h3 {
    min-height: auto;
  }

  .has-display-font-size {
    font-size: 2.5rem !important;
  }

  .has-xxl-font-size {
    font-size: 2rem !important;
  }

  .rsw-brand-logo img {
    max-width: 260px;
    width: 260px;
  }

  .rsw-signal-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 1rem;
  }
}
