/* =============================================================
   RR Enterprises & Power Solutions — Custom Styles (Bootstrap Overrides)
   Token system
   Color   ink #17233B · paper #FAF6EE · amber #F2A93C · sky #3C7DA6 · leaf #4C9A6A
   ============================================================= */

:root {
  --ink: #17233B;
  --ink-soft: #4B5875;
  --ink-faint: #7C879E;
  --paper: #FAF6EC;
  --paper-dim: #F1E9D8;
  --card: #FFFFFF;
  --amber: #F2A93C;
  --amber-deep: #D9871A;
  --sky: #3C7DA6;
  --sky-deep: #23516C;
  --leaf: #4C9A6A;
  --leaf-deep: #35754E;
  --rust: #D9622B;
  --line: rgba(23, 35, 59, 0.13);
  --shadow-sm: 0 8px 20px -14px rgba(23, 35, 59, 0.45);
  --shadow-lg: 0 30px 60px -30px rgba(23, 35, 59, 0.45);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
  --header-h: 84px;
}

/* ---------- container overflow prevention ---------- */
.container {
  overflow: hidden;
}

@media (max-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* ---------- reset overrides ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--paper);
}

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

a {
  text-decoration: none;
}

/* ---------- Bootstrap overrides ---------- */
.bg-paper-dim {
  background-color: #030921;
}

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

.text-ink {
  color: var(--ink);
}

.text-ink-soft {
  color: var(--ink-soft);
}

.text-amber {
  color: var(--amber);
}

.border-ink {
  border-color: var(--ink);
}

/* ---------- custom buttons ---------- */
.btn-amber {
  background: var(--amber);
  color: var(--ink);
  border: 1.5px solid transparent;
  border-radius: 100px;
  padding: 12px 24px;
  font-weight: 700;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.btn-amber:hover {
  background: var(--amber-deep);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 100px;
  padding: 12px 24px;
  font-weight: 700;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn-outline-light-custom {
  background: transparent;
  color: var(--paper);
  border: 1.5px solid rgba(250, 246, 236, 0.4);
  border-radius: 100px;
  padding: 12px 24px;
  font-weight: 700;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.btn-outline-light-custom:hover {
  border-color: var(--paper);
  color: var(--paper);
  transform: translateY(-2px);
}

/* ---------- typography ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: white;
  font-weight: 600;
  margin-bottom: 12px;
}

.eyebrow-light {
  color: var(--amber);
}

em {
  font-style: italic;
  color: var(--amber-deep);
}

.section {
  padding: 72px 0;
}

.section-border {
  border-top: 1px solid var(--line);
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- trust strip ---------- */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  margin: 0;
}

.trust-strip li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.trust-strip li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--leaf);
  flex: none;
}

/* =============================================================
   ABOUT SECTION WITH IMAGE
   ============================================================= */
.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-main-image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.about-image-wrapper:hover .about-main-image {
  transform: scale(1.02);
}

.about-image-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 20px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-image-badge span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-image-badge span::before {
  content: '⭐';
  font-size: 0.9rem;
}

/* Service tags */
.about-service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-tag {
  background: var(--paper-dim);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all 0.2s ease;
  cursor: default;
}

.service-tag:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
  transform: translateY(-2px);
}

/* ---------- check list ---------- */
.check-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-left: 0;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-soft);
  list-style: none;
  font-size: 0.95rem;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--leaf);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.6 7.9l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.6 7.9l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ---------- benefit cards ---------- */
.benefit-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.benefit-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--paper-dim);
  color: var(--sky-deep);
  margin-bottom: 16px;
}

.benefit-icon svg {
  width: 22px;
  height: 22px;
}

.benefit-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--ink); /* Forces dark text on white card */
}

.benefit-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: var(--ink-soft);
}

/* ---------- product cards ---------- */
.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.product-card img {
  height: 80px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto 12px;
}

.product-card figcaption {
  font-weight: 700;
  font-size: 0.85rem;
}

.product-card-tags {
  background: var(--ink);
  color: var(--paper);
}

.product-card-tags .tags-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding-left: 0;
  margin: 0;
}

.product-card-tags .chip-list li {
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  list-style: none;
}

.product-block {
  margin-top: 32px;
}

.product-block:first-of-type {
  margin-top: 0;
}

.product-block-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.components-layout {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.components-photo {
  border-radius: var(--radius-md);
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 300px;
}

.chip-list-wrap {
  justify-content: flex-start;
}

.chip-list-wrap li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--paper-dim);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--ink-soft);
  list-style: none;
}

/* ---------- process ---------- */
.process-list {
  padding-left: 0;
  margin: 0;
}

.process-list li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.process-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.process-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 2.2rem;
  color: var(--amber-deep);
  line-height: 1;
}

.process-list h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.process-list p {
  margin-bottom: 0;
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- service cards ---------- */
.service-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0;
  border: 0;
  background: var(--paper-dim);
}

.service-image-contain {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  background: var(--ink);
  padding: 12px;
  display: block;
  margin: 0;
  border: 0;
}

.service-body {
  padding: 24px;
}

.service-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.service-body p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

/* ---------- customer cards ---------- */
.customer-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 1 / 1;
  background: var(--card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.customer-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.customer-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- text link ---------- */
.text-link {
  font-weight: 700;
  color: var(--sky-deep);
  border-bottom: 1.5px solid var(--sky);
  padding-bottom: 2px;
  transition: all 0.2s ease;
}

.text-link:hover {
  color: var(--amber-deep);
  border-color: var(--amber-deep);
}

/* ---------- CTA Band ---------- */
.cta-band {
  padding: 60px 0 !important;
}

.cta-lede {
  font-size: 1rem;
  margin-bottom: 0;
}

.cta-band .btn {
  padding: 14px 28px;
  font-size: 0.95rem;
}

.cta-band .btn-outline-light-custom {
  border-color: rgba(250, 246, 236, 0.3);
}

.cta-band .btn-outline-light-custom:hover {
  border-color: var(--paper);
}

/* ---------- responsive overrides ---------- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .about-main-image {
    min-height: 280px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 48px 0;
  }

  .benefit-card {
    padding: 20px 16px;
  }

  .benefit-card h3 {
    font-size: 0.95rem;
  }

  .benefit-card p {
    font-size: 0.85rem;
  }

  .product-card {
    padding: 12px;
  }

  .product-card img {
    height: 60px;
  }

  .product-card figcaption {
    font-size: 0.8rem;
  }

  .process-list li {
    grid-template-columns: 48px 1fr;
    gap: 16px;
    padding: 18px 0;
  }

  .process-num {
    font-size: 1.6rem;
  }

  .process-list h3 {
    font-size: 1rem;
  }

  .process-list p {
    font-size: 0.85rem;
  }

  .service-body {
    padding: 18px;
  }

  .service-body h3 {
    font-size: 1rem;
  }

  .components-layout {
    padding: 16px;
  }

  .chip-list-wrap li {
    font-size: 0.7rem;
    padding: 4px 8px;
  }

  .trust-strip {
    padding: 12px 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .trust-strip li {
    flex: none;
    font-size: 0.7rem;
  }

  .cta-band {
    padding: 40px 0 !important;
  }

  .cta-band .btn {
    padding: 12px 20px;
    font-size: 0.85rem;
  }

  .cta-lede {
    font-size: 0.9rem;
  }
  
  .about-image-wrapper {
    margin-bottom: 16px;
  }
  
  .about-main-image {
    min-height: 240px;
  }
  
  .about-image-badge {
    bottom: 14px;
    left: 14px;
    padding: 8px 16px;
    font-size: 0.65rem;
  }
  
  .service-tag {
    font-size: 0.7rem;
    padding: 4px 12px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 36px 0;
  }

  .eyebrow {
    font-size: 10px;
  }

  .benefit-card {
    padding: 16px 14px;
  }

  .benefit-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
  }

  .benefit-icon svg {
    width: 18px;
    height: 18px;
  }

  .benefit-card h3 {
    font-size: 0.9rem;
  }

  .benefit-card p {
    font-size: 0.8rem;
  }

  .product-card {
    padding: 10px;
  }

  .product-card img {
    height: 50px;
    margin-bottom: 8px;
  }

  .product-card figcaption {
    font-size: 0.7rem;
  }

  .components-layout {
    padding: 12px;
  }

  .components-photo {
    max-height: 200px;
  }

  .process-list li {
    grid-template-columns: 40px 1fr;
    gap: 12px;
    padding: 14px 0;
  }

  .process-num {
    font-size: 1.3rem;
  }

  .process-list h3 {
    font-size: 0.9rem;
  }

  .process-list p {
    font-size: 0.8rem;
  }

  .service-body {
    padding: 14px;
  }

  .service-body h3 {
    font-size: 0.9rem;
  }

  .service-body p {
    font-size: 0.8rem;
  }

  .service-image {
    height: 140px;
  }

  .service-image-contain {
    height: 140px;
    padding: 12px;
  }

  .check-list li {
    font-size: 0.85rem;
    padding-left: 24px;
  }

  .check-list li::before {
    width: 16px;
    height: 16px;
    background-size: 12px;
  }

  .cta-band {
    padding: 30px 0 !important;
  }

  .cta-band .btn {
    padding: 10px 16px;
    font-size: 0.8rem;
    width: 100%;
    text-align: center;
  }

  .cta-lede {
    font-size: 0.85rem;
  }
  
  .about-main-image {
    min-height: 200px;
  }
  
  .about-image-badge {
    bottom: 10px;
    left: 10px;
    padding: 6px 12px;
    font-size: 0.6rem;
  }
  
  .service-tag {
    font-size: 0.65rem;
    padding: 4px 10px;
  }
}

@media (max-width: 360px) {
  .section {
    padding: 28px 0;
  }

  .benefit-card {
    padding: 14px 12px;
  }

  .benefit-card h3 {
    font-size: 0.85rem;
  }

  .benefit-card p {
    font-size: 0.75rem;
  }

  .product-card img {
    height: 40px;
  }

  .product-card figcaption {
    font-size: 0.65rem;
  }
}