/* =========================================================
   Real Deals - Modern Industrial Theme (Full CSS)
   Mobile Menu + Mobile Search (Amazon style)
========================================================= */

:root{
  --rd-teal: #009899;
  --rd-teal-dark: #007c7d;
  --rd-dark: #0b1b1e;
  --rd-dark-2: #0f2529;

  --rd-text: #1f2937;
  --rd-muted: #6b7280;
  --rd-bg: #ffffff;

  --rd-border: rgba(255,255,255,.12);
  --rd-shadow: 0 10px 30px rgba(0,0,0,.12);
}

*{ box-sizing: border-box; }
html, body{ width:100%; height:100%; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, Helvetica, sans-serif;
  color: var(--rd-text);
  background: var(--rd-bg);
}

a{ text-decoration:none; }
img{ max-width:100%; height:auto; display:block; }

.rd-container{
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 0 16px;
}

/* HEADER */
.rd-header{
  width:100%;
  position: sticky;
  top:0;
  z-index:999;
}

/* TOPBAR */
.rd-topbar{
  background: linear-gradient(90deg,
    var(--rd-teal-dark) 0%,
    var(--rd-teal) 22%,
    var(--rd-dark-2) 55%,
    var(--rd-dark) 100%
  );
  box-shadow: 0 2px 14px rgba(0,0,0,.15);
}

.rd-topbar-inner{
  display:flex;
  align-items:center;
  gap: 14px;
  padding: 10px 0;
}

/* BRAND */
/* ✅ LOGO CLEAN + PREMIUM (NO UGLY WHITE BOX) */
/* ✅ LOGO WITHOUT BOX (VERY CLEAN) */
.rd-brand{
  display:flex;
  align-items:center;
  min-width: 210px;

  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.rd-brand img{
  width: 220px;
  height: auto;

  /* glow effect */
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.35));
}


/* SEARCH (common) */
.rd-search{
  display:flex;
  align-items:center;
  height: 48px;
  border-radius: 14px;
  overflow:hidden;
  background:#fff;
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
}

.rd-search input{
  flex:1;
  height:48px;
  border:0;
  outline:0;
  padding:0 16px;
  font-size:15px;
}

.rd-search button{
  width:56px;
  height:48px;
  border:0;
  outline:0;
  cursor:pointer;
  background:#f3a847;
  display:flex;
  align-items:center;
  justify-content:center;
}
.rd-search button:hover{ filter: brightness(0.95); }

.rd-search-img{
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* Desktop search only */
.rd-search-desktop{
  flex:1;
}

/* Desktop actions */
.rd-actions{
  display:flex;
  align-items:center;
  gap: 12px;
}

.rd-action-btn{
  height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  white-space: nowrap;
}

.rd-action-ghost{
  color:#fff;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
}
.rd-action-ghost:hover{ background: rgba(255,255,255,.12); }

.rd-action-solid{
  background: #f6fffe;
  color:#001a1a;
  border: 1px solid rgba(255,255,255,.35);
}
.rd-action-solid:hover{ background:#ffffff; }

/* NAV */
.rd-nav{ background: var(--rd-teal); }

.rd-nav-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap: 6px;
  align-items:center;
  overflow:auto;
  scrollbar-width: thin;
}

.rd-nav-list li{ margin:0; padding:0; }

.rd-nav-list a{
  display:block;
  padding: 12px 12px;
  color:#ffffff;
  font-weight: 600;
  font-size: 15px;
  border-radius: 12px;
  white-space: nowrap;
}

.rd-nav-list a:hover{
  background: rgba(0,0,0,.12);
  color:#fff;
}

.rd-nav-right{ margin-left:auto; }
.rd-nav-highlight{
  background: rgba(0,0,0,.16);
  border: 1px solid rgba(255,255,255,.18);
}

/* MAIN */
.rd-main{ width:100%; padding:18px 0 40px; }

/* ====== MOBILE ELEMENTS ====== */
.rd-mobile-actions{
  display:none;
  gap: 10px;
  align-items:center;
  margin-left:auto;
}

.rd-search-toggle{
  width:48px;
  height:48px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.rd-search-toggle img{
  width: 50px;
  height: 50px;
}

/* Burger */
.rd-burger{
  display:none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  cursor:pointer;
}
.rd-burger span{
  display:block;
  height:2px;
  width: 22px;
  background:#fff;
  margin: 6px auto;
  border-radius: 4px;
}

/* Mobile Search overlay */
.rd-mobile-search{
  display:none;
  padding: 10px 0 14px;
}

.rd-search-mobile{
  width: 100%;
  position: relative;
}

.rd-search-close{
  position:absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border:0;
  background: rgba(0,0,0,.08);
  cursor:pointer;
  font-size: 18px;
  font-weight: 900;
}

/* ✅ WORKING RULES: When search is open */
.rd-header.rd-search-open .rd-topbar-inner{
  display:none !important;
}

.rd-header.rd-search-open .rd-mobile-search{
  display:block !important;
}

.rd-header.rd-search-open .rd-nav{
  display:none !important;
}

/* ====== FOOTER (Amazon style) ====== */
.rd-footer-amz{
  margin-top: 40px;
  background: #131a22;
  color: #e5e7eb;
  font-size: 14px;
}
.rd-footer-top{ padding: 42px 0; background: #131a22; }
.rd-footer-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.rd-footer-col h4, .rd-footer-col h5{
  margin:0 0 10px 0;
  font-weight: 900;
  color:#fff;
}
.rd-footer-col p{
  margin:0 0 14px 0;
  line-height:1.65;
  color: rgba(255,255,255,.85);
}
.rd-footer-contact{ margin-top: 18px; line-height:1.8; }
.rd-footer-amz a{ color:#dbeafe; }
.rd-footer-amz a:hover{ text-decoration: underline; }

.rd-footer-bottom{
  border-top: 1px solid rgba(255,255,255,.08);
  background: #0f1111;
  padding: 18px 0;
}
.rd-footer-bottom-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.rd-footer-links{ display:flex; gap:18px; flex-wrap: wrap; }
.rd-footer-links a{
  color: rgba(255,255,255,.85);
  font-weight:700;
  font-size:13px;
}
.rd-footer-copy{
  color: rgba(255,255,255,.7);
  font-size:13px;
  font-weight:700;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1020px){
  .rd-brand{ min-width: 160px; }
  .rd-brand img{ width: 165px; }
}

@media (max-width: 920px){
  /* Mobile header layout */
  .rd-search-desktop{ display:none; }
  .rd-actions{ display:none; }

  .rd-mobile-actions{ display:flex; }
  .rd-burger{ display:block; }

  /* Mobile nav dropdown */
  .rd-nav{
    display:none;
    position: relative;
    z-index: 9999;
  }

  .rd-nav.open{
    display:block;
  }

  .rd-nav-list{
    flex-direction: column;
    align-items: stretch;
    padding: 10px 0;
    gap: 6px;
  }

  .rd-nav-list a{
    padding: 12px 14px;
    border-radius: 10px;
  }

  .rd-nav-right{
    margin-left:0;
  }
}


@media (max-width: 980px){
  .rd-footer-grid{
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
/* index-styles.css v5.0
   FIXES:
   - removes white gap above banner (main padding override)
   - slider always moves (CSS only marquee)
   - adds paypal + large selection section
*/

/* ===== IMPORTANT FIX (NO GAP ABOVE HERO) ===== */
.rd-main{
  padding-top: 0 !important;
  padding-bottom: 0;
}

/* ===== HERO ===== */
.rd-hero{
  position:relative;
  min-height:520px;
  background-image:url('https://www.real-deals.ca/images/banner.jpg');
  background-size:cover;
  background-position:center;
  overflow:hidden;
}

.rd-hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(0,0,0,.68) 0%, rgba(0,0,0,.18) 60%, rgba(0,0,0,0) 100%);
  z-index:1;
}

.rd-hero-inner{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:60px 16px;
  min-height:520px;
}

.rd-hero-left{ max-width:62%; }

.rd-hero-badge{
  display:inline-block;
  padding:10px 22px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-weight:900;
  letter-spacing:1.6px;
  border:1px solid rgba(255,255,255,.2);
  margin-bottom:16px;
}

.rd-hero-title{
  margin:0 0 14px;
  color:#fff;
  font-weight:1000;
  font-size:clamp(32px,4vw,64px);
  line-height:1.02;
  text-transform:uppercase;
}

.rd-hero-sub{
  color:rgba(255,255,255,.92);
  font-weight:700;
  margin:0;
  font-size:18px;
  max-width:680px;
}

/* CTA buttons */
.rd-hero-cta{ display:flex; flex-direction:column; gap:14px; }
.rd-cta{
  padding:18px 26px;
  border-radius:16px;
  font-weight:900;
  font-size:18px;
  min-width:260px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  box-shadow:0 14px 40px rgba(0,0,0,.18);
}
.rd-cta-primary{ background:#e04b48; color:#fff; }
.rd-cta-ghost{ background:rgba(255,255,255,.95); color:#062f30; }

/* ===== TITLES ===== */
.rd-sec-title{
  font-weight:950;
  font-size:30px;
  text-align:center;
  margin:0;
  color:#052f30;
}
.rd-sec-sub{
  text-align:center;
  color:rgba(0,0,0,.55);
  margin:10px 0 22px;
  font-weight:750;
}

/* ===== SECTION 2 SLIDER BACKGROUND ===== */
.rd-circles{
  padding:52px 0 40px;
  background:url('https://www.real-deals.ca/images/back.jpg') center/cover fixed no-repeat;
}

/* ===== MARQUEE (CSS ONLY, ALWAYS MOVES) ===== */
.rd-marquee{
  overflow:hidden;
  position:relative;
  padding:10px 0;
}

.rd-marquee-track{
  display:flex;
  gap:44px;
  width:max-content;
  animation: rdMarqueeMove 35s linear infinite;
}

@keyframes rdMarqueeMove{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}

.rd-circle-item{
  flex:0 0 auto;
  width:190px;
  text-align:center;
}



.rd-circle-caption strong{
  display:block;
  margin-top:12px;
  font-weight:950;
  font-size:18px;
  color:#053838;
}
.rd-circle-caption span{
  display:block;
  margin-top:6px;
  font-weight:850;
  color:rgba(0,0,0,.48);
}

/* ===== SECTION 3 ===== */
/* ==========================================
   SECTION 3: Expertise (Premium Bar Style)
   Using ONLY site colors + #E04B48
========================================== */

.rd-expertise{
  padding: 55px 0;
  background: #fff;
}

.rd-expertise-intro{
  text-align:center;
  margin-bottom: 20px;
}

.rd-expertise-intro h2{
  margin:0 0 8px;
  font-size: 34px;
  font-weight: 900;
  color:#052f30;
}

.rd-expertise-intro p{
  margin:0;
  font-size: 15px;
  font-weight: 650;
  color: rgba(0,0,0,.55);
}

/* ✅ Big rounded container (teal gradients from your site) */
.rd-expertise-bar{
  display:flex;
  gap: 14px;
  padding: 18px;
  border-radius: 26px;

  background: linear-gradient(135deg, #009899 0%, #007c7d 55%, #009899 100%);
  box-shadow: 0 22px 70px rgba(0,152,153,.22);
  border: 1px solid rgba(255,255,255,.22);

  overflow-x: auto;
  scrollbar-width: thin;
}

/* ✅ Each pill */
.rd-ex-pill{
  flex: 0 0 auto;
  min-width: 170px;
  max-width: 230px;
  padding: 16px 18px;
  border-radius: 20px;

  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(6px);

  color: #fff;
  transition: 0.35s ease;
}

/* ✅ NOT bold */
.rd-ex-title{
  display:block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing:.2px;
}

.rd-ex-sub{
  display:block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  opacity: .85;
  line-height: 1.35;
}

/* ✅ Hover = your accent red (#E04B48) glow */
.rd-ex-pill:hover{
  transform: translateY(-6px) scale(1.02);
  border: 1px solid rgba(224,75,72,.75);
  background: rgba(224,75,72,.18);
  box-shadow:
    0 12px 40px rgba(224,75,72,.28),
    0 0 0 4px rgba(224,75,72,.08);
}

/* ✅ Desktop: all 7 equal width, no scroll */
@media (min-width: 1100px){
  .rd-expertise-bar{
    overflow-x: hidden;
    justify-content: space-between;
  }
  .rd-ex-pill{
    min-width: 0;
    flex: 1;
  }
}

/* Mobile */
@media (max-width: 720px){
  .rd-expertise-intro h2{ font-size: 28px; }
  .rd-ex-pill{ min-width: 230px; }
}

/* ===== SECTION 4 (PAYPAL + BIG LIST) ===== */
.rd-stock-section{
  padding:70px 0;
  background:url('https://www.real-deals.ca/images/back.jpg') center/cover fixed no-repeat;
}

.rd-stock-card{
  background:rgba(255,255,255,.95);
  border-radius:18px;
  padding:30px;
  display:grid;
  grid-template-columns: 1fr 1.4fr;
  gap:30px;
  box-shadow:0 22px 70px rgba(0,0,0,.14);
}

.rd-stock-left h2{
  margin:0 0 10px;
  font-size:26px;
  font-weight:950;
  color:#052f30;
}
.rd-stock-left p{
  margin:0 0 14px;
  font-weight:850;
  color:rgba(0,0,0,.65);
}

.rd-stock-paypal{
  width:320px;
  max-width:100%;
  margin-top:6px;
}

.rd-stock-right h3{
  margin:0 0 14px;
  font-size:22px;
  font-weight:950;
  color:#052f30;
}

.rd-stock-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
}

.rd-stock-grid span{
  padding:10px 12px;
  border-radius:12px;
  background:rgba(0,152,153,.07);
  border:1px solid rgba(0,152,153,.13);
  font-weight:900;
  color:#052f30;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px){
  .rd-hero-inner{ flex-direction:column; text-align:center; }
  .rd-hero-left{ max-width:100%; }
  .rd-cta{ width:100%; min-width:auto; }
  .rd-expertise-grid{ grid-template-columns:1fr; }
  .rd-stock-card{ grid-template-columns:1fr; }
  .rd-stock-grid{ grid-template-columns:1fr; }
}

@media (max-width: 720px){
  .rd-circle-item{ width:140px; }
  .rd-circle-img{ width:140px;height:140px;border-width:7px; }
}
.rd-nav{
  position: relative;
  z-index: 9999;
}

/* ==========================
   DROPDOWN NAV (HOVER)
   Siemens + Repair
========================== */

/* allow dropdown to overflow navbar */
.rd-nav, .rd-container, .rd-nav-list { overflow: visible !important; }

/* parent */
.rd-nav-list > li.rd-has-submenu{
  position: relative;
}

/* submenu hidden */
.rd-nav-list > li.rd-has-submenu > .rd-submenu{
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  padding: 10px 0;
  margin: 8px 0 0 0;
  list-style: none;

  background: #0d8f8f;
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
  z-index: 999999;
}

/* show on hover */
.rd-nav-list > li.rd-has-submenu:hover > .rd-submenu,
.rd-nav-list > li.rd-has-submenu:focus-within > .rd-submenu{
  display: block;
}

/* submenu links */
.rd-submenu li a{
  padding: 10px 14px !important;
  display: block;
  color: #fff !important;
  font-weight: 600;
}

.rd-submenu li a:hover{
  background: rgba(255,255,255,.14);
}

/* caret */
.rd-caret{
  font-size: 11px;
  margin-left: 6px;
}

/* ✅ IMPORTANT: disable dropdown in mobile (burger menu handles it) */
@media (max-width: 920px){
  .rd-nav-list > li.rd-has-submenu > .rd-submenu{
    position: static;
    display: none;
    margin: 0;
    box-shadow: none;
    border-radius: 0;
    min-width: 100%;
  }
}
/* ✅ Circle image fix */
.rd-circle-img{
  width:190px;
  height:190px;
  border-radius:50%;
  border:10px solid rgba(255,255,255,.95);
  background:rgba(255,255,255,.45);
  box-shadow:0 18px 35px rgba(0,0,0,.12);

  overflow:hidden;              /* ✅ crop inside circle */
  display:flex;
  align-items:center;
  justify-content:center;
}

/* ✅ make image fit PERFECTLY inside circle */
.rd-circle-img img{
  width:100%;
  height:100%;
  object-fit:cover;             /* ✅ crop to circle without stretching */
  display:block;
}
.rd-circle-img{
  border: 10px solid #e5e7eb;

}
/* ✅ Reduce extra space below Expertise section */
.rd-expertise{
  padding-bottom: 10px !important;   /* was 55px */
    padding-top: 10px !important;  
  margin-bottom: 0 !important;
}

/* ✅ Reduce space above next section (Section 4 / stock section) */
.rd-stock-section{
  padding-top: 45px !important;      /* was 70px */
  margin-top: 0 !important;
}

/* ✅ In case any <br> is after section */
.rd-expertise + br{
  display: none !important;
}

