/*
Theme Name: R&M Distribution Image Rich
Theme URI: https://rmdist.com
Author: R&M Distribution Ltd
Description: A clean responsive image rich WordPress theme for R&M Distribution Ltd, built for industrial and commercial electrical wholesale, quote requests, local SEO and customer conversion.
Version: 2.0.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: rm-image-rich
*/

:root {
  --rm-navy: #071827;
  --rm-navy-2: #0e2b43;
  --rm-blue: #143f5f;
  --rm-green: #00a66a;
  --rm-green-dark: #007f55;
  --rm-green-soft: #e8f8f2;
  --rm-white: #ffffff;
  --rm-bg: #f4f8fa;
  --rm-card: #ffffff;
  --rm-line: #dce7ec;
  --rm-text: #1b2e3b;
  --rm-muted: #617482;
  --rm-warning: #9f2727;
  --rm-warning-bg: #fff2f2;
  --rm-max: 1180px;
  --rm-radius: 24px;
  --rm-shadow: 0 18px 52px rgba(7, 24, 39, 0.10);
  --rm-shadow-heavy: 0 28px 80px rgba(7, 24, 39, 0.28);
  --rm-header: 78px;
}

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

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--rm-white);
  color: var(--rm-text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.admin-bar .site-header {
  top: 32px;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--rm-green);
  color: var(--rm-white);
}

.wrapper {
  width: min(var(--rm-max), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--rm-green);
  color: var(--rm-white);
  font-weight: 900;
}

.skip-link:focus {
  top: 16px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Header */

.top-bar {
  background: #04101a;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.top-bar-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.top-bar strong {
  color: var(--rm-white);
}

.top-bar-links {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 24, 39, 0.97);
  color: var(--rm-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: var(--rm-header);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  color: var(--rm-white);
}

.logo-mark {
  display: inline-flex;
  align-items: baseline;
  flex: 0 0 auto;
  line-height: 0.86;
  letter-spacing: -0.08em;
  white-space: nowrap;
}

.logo-r,
.logo-m,
.logo-amp {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
  color: var(--rm-green);
}

.logo-r,
.logo-m {
  font-size: 42px;
}

.logo-amp {
  position: relative;
  top: -7px;
  margin-inline: 1px 5px;
  font-size: 25px;
}

.logo-copy {
  display: block;
  min-width: 0;
  max-width: 176px;
  padding-left: 12px;
  border-left: 2px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.logo-copy strong {
  display: block;
  color: var(--rm-white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo-copy span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.60);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav {
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 7px;
  height: 2px;
  background: var(--rm-green);
  transition: right 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--rm-white);
}

.main-nav a:hover::after,
.main-nav a:focus::after {
  right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.header-button-secondary {
  color: var(--rm-white);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.header-button-primary {
  background: var(--rm-green);
  color: var(--rm-white);
  box-shadow: 0 14px 34px rgba(0, 166, 106, 0.25);
}

.header-button-primary:hover,
.header-button-primary:focus {
  background: var(--rm-green-dark);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(0, 166, 106, 0.28), transparent 28%),
    linear-gradient(135deg, var(--rm-navy) 0%, var(--rm-navy-2) 54%, #04101a 100%);
  color: var(--rm-white);
}

.hero.has-image {
  background:
    linear-gradient(90deg, rgba(7, 24, 39, 0.98) 0%, rgba(7, 24, 39, 0.94) 40%, rgba(7, 24, 39, 0.72) 67%, rgba(7, 24, 39, 0.30) 100%),
    var(--rm-hero-image) center right / cover no-repeat,
    linear-gradient(135deg, var(--rm-navy), var(--rm-navy-2));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.58;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 46px;
  align-items: center;
  min-height: 680px;
  padding-block: 88px;
}

.hero-copy {
  max-width: 800px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--rm-green-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero .kicker,
.panel .kicker,
.quote-intro .kicker,
.shop-coming .kicker {
  color: #c8f5e4;
}

.kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 6px rgba(0, 166, 106, 0.14);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  margin: 24px 0 20px;
  max-width: 860px;
  color: var(--rm-white);
  font-size: clamp(44px, 6.1vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.058em;
}

.hero-lead {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.80);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, border 180ms ease;
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--rm-green);
  color: var(--rm-white);
  box-shadow: 0 18px 44px rgba(0, 166, 106, 0.28);
}

.button-primary:hover,
.button-primary:focus {
  background: var(--rm-green-dark);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--rm-white);
  border-color: rgba(255, 255, 255, 0.20);
}

.button-secondary:hover,
.button-secondary:focus {
  background: rgba(255, 255, 255, 0.12);
}

.panel {
  padding: 26px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.085);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--rm-shadow-heavy);
  backdrop-filter: blur(18px);
}

.panel h2 {
  margin: 16px 0 12px;
  color: var(--rm-white);
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.panel p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.72);
}

.panel-list {
  display: grid;
  gap: 12px;
}

.panel-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 13px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(4, 16, 26, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.panel-row span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(0, 166, 106, 0.18);
  color: #c8f5e4;
  font-weight: 900;
}

.panel-row strong {
  display: block;
  margin-bottom: 4px;
  color: var(--rm-white);
  line-height: 1.2;
}

.panel-row small {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  line-height: 1.45;
}

/* Trust bar */

.trust-bar {
  position: relative;
  z-index: 2;
  margin-top: -42px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border-radius: 26px;
  background: var(--rm-white);
  border: 1px solid var(--rm-line);
  box-shadow: var(--rm-shadow);
}

.trust-item {
  padding: 24px;
  border-right: 1px solid var(--rm-line);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--rm-navy);
  font-size: 24px;
  line-height: 1.05;
}

.trust-item span {
  display: block;
  color: var(--rm-muted);
  font-size: 14px;
  font-weight: 800;
}

/* Sections */

.section {
  padding: 86px 0;
}

.section-soft {
  background: var(--rm-bg);
}

.section-dark {
  background: var(--rm-navy);
  color: var(--rm-white);
}

.section-head {
  max-width: 850px;
  margin-bottom: 36px;
}

h2 {
  margin: 0 0 14px;
  color: var(--rm-navy);
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.048em;
}

.section-dark h2 {
  color: var(--rm-white);
}

.section-head p {
  margin: 0;
  color: var(--rm-muted);
  font-size: 18px;
}

.section-dark .section-head p {
  color: rgba(255, 255, 255, 0.74);
}

/* Quick actions */

.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.action-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  padding: 24px;
  border-radius: var(--rm-radius);
  background: var(--rm-white);
  border: 1px solid var(--rm-line);
  box-shadow: 0 14px 40px rgba(7, 24, 39, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.action-card:hover,
.action-card:focus {
  transform: translateY(-2px);
  box-shadow: var(--rm-shadow);
}

.action-card::after {
  content: "";
  position: absolute;
  right: -44px;
  top: -44px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: var(--rm-green-soft);
}

.action-icon {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--rm-green-soft);
  color: var(--rm-green-dark);
  font-weight: 900;
}

.action-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 8px;
  color: var(--rm-navy);
  font-size: 21px;
  line-height: 1.1;
}

.action-card span {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--rm-muted);
}

/* Product categories */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-card {
  min-height: 240px;
  padding: 28px;
  border-radius: var(--rm-radius);
  background: var(--rm-white);
  border: 1px solid var(--rm-line);
  box-shadow: 0 14px 40px rgba(7, 24, 39, 0.06);
}

.product-card small {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--rm-green-soft);
  color: var(--rm-green-dark);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 0 0 10px;
  color: var(--rm-navy);
  font-size: 24px;
  line-height: 1.1;
}

.product-card p {
  margin: 0;
  color: var(--rm-muted);
}

/* Split service */

.split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 42px;
  align-items: start;
}

.service-box {
  position: sticky;
  top: 116px;
  padding: 34px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 18%, rgba(0, 166, 106, 0.22), transparent 31%),
    linear-gradient(135deg, var(--rm-navy), var(--rm-navy-2));
  color: var(--rm-white);
  box-shadow: var(--rm-shadow-heavy);
}

.service-box h2 {
  color: var(--rm-white);
}

.service-box p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 18px;
}

.service-list {
  display: grid;
  gap: 14px;
}

.service-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 22px;
  border-radius: 22px;
  background: var(--rm-white);
  border: 1px solid var(--rm-line);
}

.service-row span {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--rm-green-soft);
  color: var(--rm-green-dark);
  font-weight: 900;
}

.service-row h3 {
  margin: 0 0 7px;
  color: var(--rm-navy);
  font-size: 22px;
}

.service-row p {
  margin: 0;
  color: var(--rm-muted);
}

/* Sectors */

.sector-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.sector-pill {
  min-height: 66px;
  display: grid;
  place-items: center;
  padding: 14px;
  text-align: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 900;
}

/* Quote section */

.quote-section {
  background:
    radial-gradient(circle at 82% 15%, rgba(0, 166, 106, 0.10), transparent 28%),
    linear-gradient(180deg, var(--rm-bg) 0%, #ffffff 100%);
}

.quote-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 28px;
  align-items: start;
}

.quote-intro {
  padding: 34px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 18%, rgba(0, 166, 106, 0.22), transparent 32%),
    linear-gradient(135deg, var(--rm-navy), var(--rm-navy-2));
  color: var(--rm-white);
  box-shadow: var(--rm-shadow-heavy);
}

.quote-intro h2 {
  color: var(--rm-white);
}

.quote-intro p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.quote-benefits {
  display: grid;
  gap: 13px;
  margin-top: 24px;
}

.quote-benefit {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.quote-benefit span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--rm-green);
  color: var(--rm-white);
  font-weight: 900;
}

.quote-card {
  padding: 30px;
  border-radius: 30px;
  background: var(--rm-white);
  border: 1px solid var(--rm-line);
  box-shadow: var(--rm-shadow);
}

.form-alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 900;
}

.form-alert-success {
  background: var(--rm-green-soft);
  color: var(--rm-green-dark);
  border: 1px solid rgba(0, 166, 106, 0.22);
}

.form-alert-error {
  background: var(--rm-warning-bg);
  color: var(--rm-warning);
  border: 1px solid #f0c1c1;
}

.quote-form {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.quote-form label {
  display: grid;
  gap: 7px;
}

.quote-form label span {
  color: var(--rm-navy);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quote-form input,
.quote-form textarea,
.quote-form select {
  width: 100%;
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid var(--rm-line);
  background: var(--rm-white);
  color: var(--rm-text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.quote-form input:focus,
.quote-form textarea:focus,
.quote-form select:focus {
  border-color: var(--rm-green);
  box-shadow: 0 0 0 4px rgba(0, 166, 106, 0.12);
}

.quote-form textarea {
  min-height: 145px;
  resize: vertical;
}

.file-box,
.captcha-box {
  padding: 18px;
  border-radius: 18px;
  background: var(--rm-bg);
  border: 1px dashed #b8c8cf;
}

.file-box small,
.form-small {
  color: var(--rm-muted);
  font-size: 13px;
  font-weight: 700;
}

.captcha-row {
  display: grid;
  grid-template-columns: auto minmax(0, 190px);
  gap: 14px;
  align-items: center;
}

.captcha-row strong {
  color: var(--rm-navy);
  font-size: 20px;
  white-space: nowrap;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.quote-submit {
  justify-self: start;
  border: 0;
}

.privacy-note {
  margin: 0;
  color: var(--rm-muted);
  font-size: 13px;
}

/* FAQ */

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.faq-item {
  padding: 24px;
  border-radius: 22px;
  background: var(--rm-white);
  border: 1px solid var(--rm-line);
}

.faq-item h3 {
  margin: 0 0 8px;
  color: var(--rm-navy);
  font-size: 21px;
}

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

/* Shop coming soon */

.shop-coming {
  background: var(--rm-bg);
}

.shop-coming-card {
  padding: 42px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 82% 18%, rgba(0, 166, 106, 0.22), transparent 30%),
    linear-gradient(135deg, var(--rm-navy), var(--rm-navy-2));
  color: var(--rm-white);
  box-shadow: var(--rm-shadow-heavy);
}

.shop-coming-card h1 {
  margin-bottom: 18px;
}

.shop-coming-card p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
}

.shop-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.shop-preview-card {
  padding: 22px;
  border-radius: 22px;
  background: var(--rm-white);
  border: 1px solid var(--rm-line);
  box-shadow: 0 12px 34px rgba(7, 24, 39, 0.06);
}

.shop-preview-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--rm-navy);
  font-size: 20px;
}

.shop-preview-card span {
  color: var(--rm-muted);
}

/* Footer */

.site-footer {
  padding: 30px 0;
  background: #04101a;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-inner strong {
  color: var(--rm-white);
}

/* Responsive */

@media (max-width: 1360px) {
  .header-button-secondary {
    display: none;
  }

  .main-nav {
    gap: 14px;
    font-size: 12.5px;
  }
}

@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: auto auto;
  }

  .main-nav {
    display: none;
  }
}

@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .panel {
    max-width: 680px;
  }

  .action-grid,
  .product-grid,
  .shop-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .quote-grid {
    grid-template-columns: 1fr;
  }

  .service-box {
    position: static;
  }

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

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 720px) {
  :root {
    --rm-header: 68px;
  }

  .wrapper {
    width: min(100% - 28px, var(--rm-max));
  }

  body.admin-bar .site-header {
    top: 0;
  }

  .top-bar {
    display: none;
  }

  .header-inner {
    gap: 12px;
  }

  .logo-r,
  .logo-m {
    font-size: 36px;
  }

  .logo-amp {
    top: -5px;
    font-size: 22px;
  }

  .logo-copy {
    max-width: 146px;
    padding-left: 10px;
  }

  .logo-copy strong {
    font-size: 17px;
  }

  .logo-copy span {
    display: none;
  }

  .header-button {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 12px;
  }

  .hero.has-image {
    background:
      linear-gradient(180deg, rgba(7, 24, 39, 0.94) 0%, rgba(7, 24, 39, 0.88) 100%),
      var(--rm-hero-image) center center / cover no-repeat,
      linear-gradient(135deg, var(--rm-navy), var(--rm-navy-2));
  }

  .hero-inner {
    padding-block: 56px 76px;
  }

  .hero-actions .button,
  .quote-submit {
    width: 100%;
  }

  .section {
    padding: 58px 0;
  }

  .trust-bar {
    margin-top: -34px;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trust-item {
    padding: 18px;
  }

  .trust-item:nth-child(2) {
    border-right: 0;
  }

  .trust-item:nth-child(1),
  .trust-item:nth-child(2) {
    border-bottom: 1px solid var(--rm-line);
  }

  .action-grid,
  .product-grid,
  .faq-grid,
  .form-grid,
  .shop-preview-grid {
    grid-template-columns: 1fr;
  }

  .sector-grid {
    grid-template-columns: 1fr 1fr;
  }

  .quote-intro,
  .quote-card,
  .service-box,
  .shop-coming-card {
    padding: 24px;
    border-radius: 23px;
  }

  .service-row {
    grid-template-columns: 1fr;
  }

  .captcha-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .header-button-secondary,
  .header-phone {
    display: none;
  }

  .logo-copy {
    display: none;
  }

  .brand {
    max-width: 122px;
  }
}

@media (max-width: 420px) {
  .trust-grid,
  .sector-grid {
    grid-template-columns: 1fr;
  }

  .trust-item {
    border-right: 0;
    border-bottom: 1px solid var(--rm-line);
  }

  .trust-item:last-child {
    border-bottom: 0;
  }
}


/* =========================================================
   Image rich R&M layout
   ========================================================= */

.section-image {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.section-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.01);
}

.section-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.section-quick::before {
  background-image: url("assets/images/quick-routes.jpg");
}

.section-products::before {
  background-image: url("assets/images/product-range.jpg");
}

.section-services::before {
  background-image: url("assets/images/service-support.jpg");
}

.section-sectors::before {
  background-image: url("assets/images/sectors.jpg");
}

.quote-section::before {
  background-image: url("assets/images/quote-contact.jpg");
}

.section-faq::before {
  background-image: url("assets/images/faq-help.jpg");
}

.shop-coming::before {
  background-image: url("assets/images/shop-coming-soon.jpg");
}

.section-quick::after,
.section-services::after,
.section-faq::after {
  background:
    linear-gradient(90deg, rgba(244, 248, 250, 0.98) 0%, rgba(244, 248, 250, 0.92) 46%, rgba(244, 248, 250, 0.72) 100%),
    radial-gradient(circle at 82% 20%, rgba(0, 166, 106, 0.16), transparent 30%);
}

.section-products::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.90) 48%, rgba(255, 255, 255, 0.62) 100%),
    radial-gradient(circle at 80% 20%, rgba(0, 166, 106, 0.11), transparent 30%);
}

.section-sectors::after {
  background:
    linear-gradient(90deg, rgba(7, 24, 39, 0.95) 0%, rgba(7, 24, 39, 0.88) 46%, rgba(7, 24, 39, 0.64) 100%),
    radial-gradient(circle at 80% 18%, rgba(0, 166, 106, 0.18), transparent 32%);
}

.quote-section::after {
  background:
    linear-gradient(90deg, rgba(244, 248, 250, 0.97) 0%, rgba(244, 248, 250, 0.88) 46%, rgba(244, 248, 250, 0.58) 100%),
    radial-gradient(circle at 82% 18%, rgba(0, 166, 106, 0.13), transparent 30%);
}

.shop-coming::after {
  background:
    linear-gradient(90deg, rgba(244, 248, 250, 0.97) 0%, rgba(244, 248, 250, 0.82) 46%, rgba(244, 248, 250, 0.38) 100%),
    radial-gradient(circle at 82% 18%, rgba(0, 166, 106, 0.13), transparent 30%);
}

.section-image .wrapper {
  position: relative;
  z-index: 1;
}

/* Make content cards feel sharper over image backgrounds */

.action-card,
.product-card,
.service-row,
.faq-item,
.quote-card,
.shop-preview-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.section-head {
  position: relative;
}

.section-quick .section-head,
.section-products .section-head,
.section-services .section-head,
.section-faq .section-head {
  padding: 26px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(220, 231, 236, 0.70);
  box-shadow: 0 14px 44px rgba(7, 24, 39, 0.07);
  backdrop-filter: blur(10px);
}

.section-sectors .section-head {
  padding: 26px;
  border-radius: 26px;
  background: rgba(7, 24, 39, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--rm-shadow-heavy);
  backdrop-filter: blur(10px);
}

.section-sectors .sector-pill {
  background: rgba(7, 24, 39, 0.60);
  backdrop-filter: blur(10px);
}

.quote-intro,
.service-box,
.shop-coming-card,
.panel {
  backdrop-filter: blur(16px);
}

.hero {
  min-height: 680px;
}

.hero.has-image {
  background:
    linear-gradient(90deg, rgba(7, 24, 39, 0.98) 0%, rgba(7, 24, 39, 0.94) 38%, rgba(7, 24, 39, 0.70) 67%, rgba(7, 24, 39, 0.30) 100%),
    var(--rm-hero-image) center right / cover no-repeat,
    linear-gradient(135deg, var(--rm-navy), var(--rm-navy-2));
}

.shop-coming {
  min-height: 720px;
}

@media (max-width: 720px) {
  .section-quick::after,
  .section-products::after,
  .section-services::after,
  .section-faq::after,
  .quote-section::after,
  .shop-coming::after {
    background: rgba(244, 248, 250, 0.94);
  }

  .section-sectors::after {
    background: rgba(7, 24, 39, 0.92);
  }

  .section-quick .section-head,
  .section-products .section-head,
  .section-services .section-head,
  .section-faq .section-head,
  .section-sectors .section-head {
    padding: 20px;
    border-radius: 22px;
  }
}


/* Sectors section text visibility fix */

.section-sectors .kicker {
  color: #c8f5e4;
}

.section-sectors h2,
.section-sectors .section-head h2 {
  color: var(--rm-white);
}

.section-sectors .section-head p {
  color: rgba(255, 255, 255, 0.78);
}

.section-sectors .section-head {
  color: var(--rm-white);
}

.section-sectors .sector-pill {
  color: rgba(255, 255, 255, 0.88);
}
