/* =========================================================
   RBC Creations â€” Nicepage-style layout (Full Rewrite)
   - Clean sticky header
   - Big hero with gradient background
   - Overlapping service cards row
   - Split sections, projects grid, contact form
   - Polished spacing + responsive behavior
   ========================================================= */

/* ---------- Theme Tokens ---------- */
:root{
  --bg: #ffffff;
  --text: #101318;
  --muted: #5d6672;
  --line: #e7ebf0;
  --soft: #f6f7f9;

  /* Brand accents inspired by your logo */
  --blue: #1aa6ff;
  --pink: #ff2aa1;
  --teal: #2fd3c8;

  --heroBase1: #0b1020;
  --heroBase2: #0e1731;

  --shadowSm: 0 10px 22px rgba(16,19,24,0.10);
  --shadowMd: 0 18px 45px rgba(16,19,24,0.14);

  --radius: 18px;
  --radiusLg: 22px;

  --container: 1120px;

  --ease: cubic-bezier(.2,.8,.2,1);
}

/* ---------- Global Reset-ish ---------- */
*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

img{ max-width: 100%; height: auto; display: block; }

a{
  color: inherit;
  text-decoration: none;
}
a:hover{ text-decoration: underline; }

.container{
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

/* Optional: smoother anchor jumps */
html{
  scroll-behavior: smooth;
}

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;          /* âœ… Final good default */
  gap: 14px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 160px;
}
.brand-logo{
  height: 64px;             /* âœ… Final good default (desktop) */
  width: auto;
}

.nav{
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav a{
  font-size: 15px;          /* âœ… Balanced with logo size */
  font-weight: 600;
  color: #1a1f27;
  opacity: .92;
}
.nav a:hover{
  opacity: 1;
  text-decoration: none;
}

/* Mobile nav toggle */
.nav-toggle{
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  transition: transform .12s var(--ease);
}
.nav-toggle:hover{ transform: translateY(-1px); }

.nav-toggle span{
  display: block;
  width: 22px;
  height: 2px;
  background: #1a1f27;
  margin: 4px 0;
  border-radius: 2px;
}

.mobile-menu{
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.96);
}
.mobile-menu-inner{
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 0 18px;
}
.mobile-menu a{
  font-size: 15px;
  font-weight: 650;
  color: #1a1f27;
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg{
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      135deg,
      rgba(5,8,16,.50),
      rgba(5,8,16,.25)
    ),
    url("/assets/hero_banner.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.28);
}

.hero-content{
  position: relative;
  color: #fff;
  padding: 60px 0 140px; /* bottom padding allows card overlap */
}

.hero-eyebrow{
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 800;
  opacity: .9;
}

.hero h1{
  margin: 0;
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.06;
  letter-spacing: .2px;
}

.hero-sub{
  margin: 14px auto 20px;
  max-width: 780px;
  font-size: 16px;
  opacity: .92;
}

.hero-actions{
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .5px;
  font-size: 12px;
  border: 1px solid transparent;
  transition: transform .12s var(--ease), background .12s var(--ease), border-color .12s var(--ease), color .12s var(--ease);
  cursor: pointer;
  user-select: none;
}
.btn:hover{
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-solid{
  background: linear-gradient(135deg, var(--blue), var(--pink));
  color: #0b1020;
  border-color: transparent;
}
.btn-outline{
  background: transparent;
  border-color: rgba(255,255,255,.85);
  color: #fff;
}
.btn-ghost{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.25);
  color: #fff;
}

.btn-outline-dark{
  background: transparent;
  border-color: #cfd6de;
  color: #1a1f27;
}

.btn-small{
  padding: 10px 14px;
  font-size: 12px;
}

/* ---------- Overlapping Cards Row ---------- */
.cards-overlap{
  position: relative;
  margin-top: -80px;      /* creates the overlap effect */
  padding-bottom: 34px;
}

.card-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card{
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadowMd);
  padding: 22px 20px;
  text-align: center;
  border: 1px solid rgba(16,19,24,.06);
}

.card-icon{
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #eef6ff;
  border: 1px solid rgba(16,19,24,.04);
  color: #0f5f8c;
}

.card-icon svg{
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3{
  margin: 8px 0 8px;
  font-size: 16px;
  letter-spacing: .1px;
}
.service-card p{
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.card-link{
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .5px;
  color: #0f5f8c;
}
.card-link:hover{ text-decoration: underline; }

/* ---------- Sections ---------- */
.section{
  padding: 56px 0;
}

.section-alt{
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-title{
  margin: 0 0 10px;
  text-align: center;
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: .15px;
}

.section-lead{
  margin: 0 auto 26px;
  text-align: center;
  max-width: 780px;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- Split Layout (image + copy) ---------- */
.split{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
  align-items: center;
}

.split-media img{
  border-radius: var(--radiusLg);
  box-shadow: var(--shadowMd);
}

.split-copy h3{
  margin: 0 0 10px;
  font-size: 22px;
}
.split-copy p{
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
}

.bullets{
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.bullet{
  border-left: 4px solid #e6f0ff;
  padding-left: 12px;
}
.bullet strong{ display:block; }
.bullet span{
  display:block;
  color: var(--muted);
  font-size: 14px;
  margin-top: 2px;
}

/* ---------- Projects Carousel ---------- */
.projects-carousel{
  position: relative;
  overflow: hidden;
}

.projects-track{
  display: flex;
  gap: 18px;
  transition: transform .45s var(--ease);
  cursor: grab;
  touch-action: pan-y pinch-zoom;  /* allow vertical scroll, capture horizontal swipe */
}
.projects-track:active{ cursor: grabbing; }
.projects-track.is-dragging{ transition: none; }

.project-card{
  background: #fff;
  border-radius: var(--radiusLg);
  box-shadow: var(--shadowMd);
  border: 1px solid rgba(16,19,24,.06);
  overflow: hidden;
  min-width: 320px;
  max-width: 360px;
  flex-shrink: 0;
}

/* Carousel dot indicators */
.carousel-dots{
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.carousel-dot{
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .15s var(--ease);
}
.carousel-dot:hover{
  border-color: var(--blue);
  transform: scale(1.15);
}
.carousel-dot.active{
  background: linear-gradient(135deg, var(--blue), var(--pink));
  border-color: transparent;
}

.project-thumb{
  height: 160px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(520px 240px at 25% 30%, rgba(26,166,255,.22), transparent 60%),
    radial-gradient(520px 240px at 75% 30%, rgba(255,42,161,.16), transparent 60%),
    linear-gradient(180deg, #0b1020 0%, #111a35 100%);
}

.project-thumb span{
  font-size: 46px;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.25));
}

.project-body{
  padding: 18px 18px 20px;
}
.project-body h3{
  margin: 0 0 8px;
  font-size: 18px;
}
.project-body p{
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.project-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- Contact ---------- */
.contact{
  padding: 52px 0;
}

.contact-inner{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.contact-inner h2{
  margin: 0 0 10px;
  font-size: clamp(28px, 3.2vw, 40px);
}
.contact-inner p{
  margin: 0;
  color: var(--muted);
}

.contact-card{
  background: #fff;
  border-radius: var(--radiusLg);
  border: 1px solid rgba(16,19,24,.06);
  box-shadow: var(--shadowMd);
  padding: 18px;
}

.form{
  display: grid;
  gap: 12px;
}

label span{
  display: block;
  font-weight: 850;
  font-size: 12px;
  letter-spacing: .4px;
  margin-bottom: 6px;
  color: #1a1f27;
}

input, textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid #dfe6ee;
  outline: none;
  font: inherit;
  background: #fff;
}

input:focus, textarea:focus{
  border-color: rgba(26,166,255,.55);
  box-shadow: 0 0 0 4px rgba(26,166,255,.12);
}

.form-note{
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.footer{
  padding: 30px 0 16px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-grid{
  display: grid;
  grid-template-columns: 1.5fr .8fr .9fr;
  gap: 18px;
  align-items: start;
}

.footer a{
  display: block;
  margin-top: 8px;
  font-weight: 700;
  color: #1a1f27;
}
.footer a:hover{ text-decoration: underline; }

.footer .muted{ color: var(--muted); }

.footer-bottom{
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px){
  .nav{ display: none; }
  .nav-toggle{ display: inline-block; }

  .card-grid{
    grid-template-columns: 1fr 1fr;
  }

  .split{
    grid-template-columns: 1fr;
  }

  .contact-inner{
    grid-template-columns: 1fr;
  }

  .footer-grid{
    grid-template-columns: 1fr;
  }

  /* Carousel cards fill viewport width on tablet */
  .project-card{
    min-width: 280px;
    max-width: 340px;
  }
}

@media (max-width: 560px){
  .brand-logo{ height: 48px; }
  .header-row{ padding: 16px 0; }

  .cards-overlap{ margin-top: -60px; }
  .card-grid{ grid-template-columns: 1fr; }

  .hero{ min-height: 380px; }
  .hero-content{ padding: 44px 0 110px; }
  .hero-sub{ font-size: 14px; }

  /* Section spacing tighter on mobile */
  .section{ padding: 40px 0; }
  .section-lead{ font-size: 14px; }

  /* Split copy text */
  .split-copy h3{ font-size: 20px; }
  .split-copy p{ font-size: 14px; }

  /* Carousel — cards nearly full-width, centered */
  .project-card{
    min-width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
  }

  .project-thumb{ height: 140px; }

  .project-body{ padding: 14px 16px 16px; }
  .project-body h3{ font-size: 16px; }
  .project-body p{ font-size: 13px; margin-bottom: 12px; }

  .project-actions{
    flex-direction: column;
    gap: 8px;
  }
  .project-actions .btn{
    width: 100%;
    text-align: center;
  }

  .carousel-dots{ margin-top: 16px; gap: 12px; }
  .carousel-dot{ width: 10px; height: 10px; }

  /* Contact section */
  .contact{ padding: 36px 0; }
  .contact-inner h2{ font-size: 24px; }

  .contact-card{ padding: 14px; }

  input, textarea{ padding: 10px; font-size: 14px; }

  /* Footer tighter */
  .footer{ padding: 24px 0 12px; }
  .footer-grid{ gap: 20px; }
  .footer-bottom{ font-size: 12px; }

  /* Buttons slightly larger tap target on mobile */
  .btn{ padding: 14px 20px; font-size: 12px; }
  .btn-small{ padding: 12px 16px; }
}